Opened 13 years ago

Last modified 13 years ago

#1964 new defect

Bad A/V sync on transport stream with -demuxer lavf (works fine with ffmpeg)

Reported by: cehoyos Owned by: reimar
Priority: normal Component: demuxer
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

Most of the past problems with PAFF seem solved, the sample from FFmpeg issue 1302 still shows severe A/V desync when played with -demuxer lavf (both with -correct-pts and with -nocorrect-pts). The sample plays fine with ffplay and transcodes fine with ffmpeg.

mplayer undemuxable_h264.ts -demuxer lavf
MPlayer SVN-r33996-12.0.5 (C) 2000-2011 MPlayer Team

Playing undemuxable_h264.ts.
libavformat file format detected.
[h264 @ 0x11541a0]non-existing PPS referenced
[h264 @ 0x11541a0]non-existing PPS 0 referenced
[h264 @ 0x11541a0]decode_slice_header error
[h264 @ 0x11541a0]non-existing PPS 0 referenced
[h264 @ 0x11541a0]decode_slice_header error
[h264 @ 0x11541a0]non-existing PPS 0 referenced
[h264 @ 0x11541a0]decode_slice_header error
[h264 @ 0x11541a0]no frame!

...

[h264 @ 0x11541a0]non-existing PPS referenced
[h264 @ 0x11541a0]non-existing PPS 0 referenced
[h264 @ 0x11541a0]decode_slice_header error
[h264 @ 0x11541a0]non-existing PPS 0 referenced
[h264 @ 0x11541a0]decode_slice_header error
[h264 @ 0x11541a0]non-existing PPS 0 referenced
[h264 @ 0x11541a0]decode_slice_header error
[h264 @ 0x11541a0]no frame!
[mpegts @ 0x10ccb60]max_analyze_duration 5000000 reached at 5016000
[NULL @ 0x11541a0]start time is not set in estimate_timings_from_pts
[mpegts @ 0x10ccb60]Continuity Check Failed
[mpegts @ 0x10ccb60]PES packet size mismatch
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (mp2), -aid 0
[lavf] stream 2: subtitle (dvb-teletext), -sid 0, -slang eng
LAVF: Program 10
VIDEO: [H264] 720x576 0bpp 50.000 fps 0.0 kbps ( 0.0 kbyte/s)
Load subtitles in ./
[mpegts @ 0x10ccb60]Continuity Check Failed
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 192.0 kbit/6.25% (ratio: 24000->384000)
Selected audio codec: [ffmp2float] afm: ffmpeg (FFmpeg MPEG layer-1 and layer-2 audio)
==========================================================================
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Movie-Aspect is 1.36:1 - prescaling to correct movie aspect.
VO: [vdpau] 720x576 => 786x576 Planar YV12
A:39344.7 V:39341.6 A-V: 3.120 ct: 0.602 0/ 0 2% 0% 0.3% 0 0

Exiting... (Quit)

Change History (1)

comment:1 by cehoyos, 13 years ago

It plays fine with -demuxer lavf -fps 25, but there are samples that are also incorrectly reported as 50fps and do not need this work-around.

Note: See TracTickets for help on using tickets.