Opened 13 years ago

Last modified 13 years ago

#1898 new defect

Panasonic camera recording plays badly with -demuxer mpegts

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

Description

mplayer Panasonic.mts used to play fine with mplayer Panasonic.mts -demuxer mpegts -corrects-pts (1.0rc3), A/V sync was bad with -nocorrect-pts (the default) and it also failed with -demuxer lavf.

Current HEAD plays bad with -demuxer lavf (FFmpeg regression), but also fails with -demuxer mpegts -correct-pts (the default) and -nocorrect-pts.

$ mplayer -frames 400 201103261601_tapping_test.mts
MPlayer SVN-r33148-4.5.2 (C) 2000-2011 MPlayer Team

Playing 201103261601_tapping_test.mts.
TS file format detected.
VIDEO H264(pid=4113) AUDIO A52(pid=4352) NO SUBS (yet)! PROGRAM N. 1
FPS seems to be: 59.940060
Load subtitles in ./
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x720 => 1280x720 Planar YV12
A: 9.0 V: 13.4 A-V: -4.447 ct: -1.931 400/400 59% 8% 0.3% 6 0

(Note the high A/V sync value after nine seconds: It starts with ~ 0)

Change History (2)

comment:1 by cehoyos, 13 years ago

Sample uploaded to /samples/mplayer-bugs/bug1898/Panasonic.mts

comment:2 by reimar, 13 years ago

-correct-pts is not the default, but it avoids the issue almost completely.
-mc 100 also helps a lot.
-mc 100 also seems to make -demuxer lavf work fine, though I did not listen closely.
Sounds to me like it's unchanged, and probably the issue is that it's badly mixed/cut with either audio and video not well interleaved or not starting at the same time.

Note: See TracTickets for help on using tickets.