[MPlayer-dev-eng] [PATCH] fix mencoder creates bad avi files when recording h264 in ts container from DVB
vladisslav vladisslav
vladisslav at inbox.ru
Thu Jul 2 15:08:56 CEST 2009
-----Original Message-----
From: Attila Kinali <attila at kinali.ch>
To: mplayer-dev-eng at mplayerhq.hu
Date: Thu, 2 Jul 2009 14:17:06 +0200
Subject: Re: [MPlayer-dev-eng] [PATCH] fix mencoder creates bad avi files
when recording h264 in ts container from DVB
> We should have enough sample files to reproduce, unless there are special
> files required.
>
> BTW: we have our own ftp server for uploads
ftp://ftp.mplayerhq.hu does not allow uploads under anonymous account.
So I have uploaded testcase to mediafire:
source ts:
http://www.mediafire.com/?zvdulfd2zyz
resulting avi:
http://www.mediafire.com/?sjutugteti4
MEncoder command:
mencoder -ovc copy -oac copy testcase-h264-in-ts-remux.ts -o testcase-h264-in-ts-remux.avi
Output:
MEncoder 2:1.0~rc2-0ubuntu13.1+medibuntu1 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model: 75,
Stepping: 2)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0 data: 0x0 - 0x190daa0
TS file format detected.
VIDEO H264(pid=529) AUDIO MPA(pid=681) NO SUBS (yet)! PROGRAM N. 13
FPS seems to be: 25.000000
[V] filefmt:29 fourcc:0x10000005 size:0x0 fps:25.00 ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
videocodec: framecopy (0x0 24bpp fourcc=10000005)
audiocodec: framecopy (format=50 chans=2 rate=48000 bits=16 B/s=16000 sample-1)
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp
header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.
....
TS_PARSE: COULDN'T SYNC%) 0.00fps Trem: 0min 21mb A-V:-0.046 [2064:128]
Writing index...13f (100%) 0.00fps Trem: 0min 21mb A-V:-0.046 [2062:128]
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.
Video stream: 2062.263 kbit/s (257782 B/s) size: 21107260 bytes 81.880
secs 2013 frames
Audio stream: 128.000 kbit/s (16000 B/s) size: 1299424 bytes 81.214 secs
MPlayer plays resulting avi fine but shows 0x0 resolution:
mplayer testcase-h264-in-ts-remux.avi
MPlayer 1.0rc2-4.2.4 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model: 75, Step
ping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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 testcase-h264-in-ts-remux.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [] 0x0 24bpp 25.000 fps 2062.3 kbps (251.7 kbyte/s)
Clip info:
Software: MEncoder 2:1.0~rc2-0ubuntu13.1+medibuntu1
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
[ass] auto-open
[ass] Init
[ass] Updating font cache.
==========================================================================
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: [libmad] libmad mpeg audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 544 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.37:1 - prescaling to correct movie aspect.
VO: [xv] 544x576 => 792x576 Planar YV12
GNOME screensaver enabled.000 ct: 0.000 343/343 17% 2% 1.2% 0 0
Exiting... (Quit)
> BTW2: it's MPlayer, not Mplayer
> BTW3: please limit your line length to 75 characters, especially when you
> are using a webmail interface.
Sorry. Mail.ru WebUI has many bugs...
>
>
> Attila Kinali
> --
> If you want to walk fast, walk alone.
> If you want to walk far, walk together.
> -- African proverb
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>
More information about the MPlayer-dev-eng
mailing list