Page 1 of 1

264 format not played

Posted: 03 Sep 2020 15:07
by plouf
Hi
i have some videos in .264 format from DVR, this format is not played by vlc,but i am really sure that vlc support AdvancedVideoFormat

sample video here https://we.tl/t-YVdkfDm3T9, video is played in mediaplayes Classic 9but maybe an codedc is isntalled ?)

media info

Code: Select all

General Complete name : C:\Users\artion-pc-2\Desktop\ch01-200903-141854-142042-00p0000000000.264 Format : AVC Format/Info : Advanced Video Codec File size : 8.59 MiB Video Format : AVC Format/Info : Advanced Video Codec Format profile : Baseline@L4.2 Format settings, CABAC : No Format settings, ReFrames : 1 frame Format settings, GOP : M=1, N=50 Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Color primaries : BT.601 PAL Transfer characteristics : BT.709 Matrix coefficients : BT.601

Re: 264 format not played

Posted: 03 Sep 2020 16:31
by Rémi Denis-Courmont
Rename to .h264

Re: 264 format not played

Posted: 04 Sep 2020 18:11
by plouf
i have try that ! and did not work,
does it work for you that way?

Re: 264 format not played

Posted: 04 Sep 2020 18:22
by Rémi Denis-Courmont
Then it's not AVC / H264 format.

Re: 264 format not played

Posted: 04 Sep 2020 18:32
by plouf
considering that mediaplayer classic , plays it and displays this info, isnt possible that VLC lacks something
and/or it is very "strict" in decoding and could improved to play it ?

Re: 264 format not played

Posted: 05 Sep 2020 21:20
by mederi
VLC-3.0.2 can play it with forced "H264 video demuxer" in VLC preferences:
Tools > Preferences > Show settings=All > Input/Codecs \ Demuxers: Demux module [H264 video demuxer]
If I check the prerences after VLC restart, next option "HEVC/H.265 video demuxer" is selected in the drop-down list. The 2 options are swapped in current VLC-3.0.11 and the 264 video does not play. "Avformat demuxer" shows a big black video window for a split of second and stops/fails immediately.
The 264 video works normally if it is muxed in mkv container (mkvtoolnix).
I think you should file a bug report with provided sample and a link to this forum thread: https://trac.videolan.org/vlc/

Re: 264 format not played

Posted: 06 Sep 2020 10:45
by Lotesdelere
This stream has troubles, neither MP4Box nor L-Smash would mux it to MP4.

Error message from MP4Box:

Code: Select all

Cannot find H264 start code Error importing ch01-200903-141854-142042.h264: BitStream Not Compliant

FFmpeg can mux it to MP4 but it also complains:

Code: Select all

Output #0, mp4, to 'ch01-200903-141854-142042.mp4': Metadata: encoder : Lavf58.20.100 Stream #0:0: Video: h264 (Baseline) (avc1 / 0x31637661), yuvj420p(pc, bt470bg/bt470bg/bt709, progressive), 1920x1080, q=2-31, 25 fps, 25 tbr, 1200k tbn, 1200k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [mp4 @ 000000ade5acb900] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly

Re: 264 format not played

Posted: 06 Sep 2020 16:22
by mederi

Re: 264 format not played

Posted: 07 Sep 2020 12:34
by mederi