VLC does not seem to decode h264 fully till the end

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Ryo Y
New Cone
New Cone
Posts: 1
Joined: 29 Feb 2020 00:21

VLC does not seem to decode h264 fully till the end

Postby Ryo Y » 29 Feb 2020 02:06

Hi All,

I've been struggling with very strange behaviour on VLC regarding h264 playbacks. I'm using VLC 3.0.8 on Debian.

It seems that VLC does not manage to playback till the end of clip, In 2 min clip, it seem to drop the last 48 frames.
I have encoded using ffmpeg to create a 2 min clip from 6:00.00 of the timeline.

ffmpeg -ss 6:00.00 -t 2:00.00 -i tears_of_steel_720p.mov -c:v libx264 -x264opts force_cfr=1 -framerate 24.000 -c:a mp3 Tears_of_Steel-720p-h264-120s-encoded.ts
Original clip can be found here - https://mango.blender.org/download/

Comparing to ffplay, vlc stops about 1~2 sec before the end of timeline, the seek-bar is displaying 1:59.

This is apparent by re-muxing the "Tears_of_Steel-720p-h264-120s-encoded.ts" again using vlc's interface. While preserving original file and audio track. And play back using ffplay as well as vlc. This time the result basically matches.

I noticed this problem by saving a rtp stream sent by vlc as ts on rtp and saved by vlc using two separate muxers, rawdump and ts.
If I compare the Original file (120s ts file) and rawdump capture, by converting them into raw yuv files, they are off by 48 frames but SSIM/PSNR seems perfect for the bit that exists on captured file.

If this is a configuration issue it would be great if I could get some help.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: VLC does not seem to decode h264 fully till the end

Postby mederi » 02 Mar 2020 14:27

Try VLC 3.0.9 nightly build: http://nightlies.videolan.org/


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 26 guests