[MEncoder-users] Reencoding mjpeg from Pana TZ10/SZ7 offsets sound from video

Marc MERLIN marc_mplayer at merlins.org
Mon Aug 29 00:13:25 CEST 2011


On Sun, Aug 28, 2011 at 10:02:58PM +0000, Carl Eugen Hoyos wrote:
> Marc MERLIN <marc_mplayer <at> merlins.org> writes:
> 
> > > > mplayer does not deal well with the H264 video that the camera creates.
> > > 
> > > Could you point us to such a sample? That sounds important.
> > 
> > Sure:
> > http://marc.merlins.org/tmp/vid/00001.MTS
> 
> Works fine with -demuxer lavf.
> (If it doesn't work with your - still very old - version, please update to
> latest svn head.)

Ok, so even if unreleased ubuntu is too old, I got the nightly then.
MPlayer SVN-r34010-4.4.5 (C) 2000-2011 MPlayer Team

Default codec does not work:
Playing 00001.MTS.
TS file format detected.
VIDEO H264(pid=4113) AUDIO A52(pid=4352) SUB Teletext(pid=4608)  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)
==========================================================================
==========================================================================
Forced audio codec: mad
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] 44100Hz 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: [xv] 1280x720 => 1280x720 Planar YV12  [zoom]


But  -demuxer lavf helps:
gandalfthegrey:/var/www/Pix/new$ mplayer -demuxer lavf 00001.MTS
MPlayer SVN-r34010-4.4.5 (C) 2000-2011 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing 00001.MTS.
libavformat file format detected.
[mpegts @ 0x8898600]Continuity Check Failed
[mpegts @ 0x8898600]Continuity Check Failed
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (ac3), -aid 0
[lavf] stream 2: subtitle (pgssub), -sid 0
LAVF: Program 1 
VIDEO:  [H264]  1280x720  0bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
Load subtitles in ./
[mpegts @ 0x8898600]Continuity Check Failed
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Forced audio codec: mad
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] 44100Hz 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: [xv] 1280x720 => 1280x720 Planar YV12  [zoom]
No pts value from demuxer to use for frame!
pts after filters MISSING
pts after filters MISSING
pts after filters MISSING
No pts value from demuxer to use for frame!
pts after filters MISSING
pts after filters MISSING
No pts value from demuxer to use for frame!


The OSD timing is off, it outputs a lot of crap on the console (I cut out the
rest), but A/V sync is ok now, thanks.

I take it I need to override the demuxer in some config file somewhere so that
the right one is picked for those MTS files?

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  


More information about the MEncoder-users mailing list