[MPlayer-dev-eng] Status of libavformat output for mencoder

Gianluigi Tiesi mplayer at netfarm.it
Sun Jun 19 18:09:13 CEST 2005


On Sun, Jun 19, 2005 at 05:08:09PM +0200, Nico Sabbi wrote:
> Gianluigi Tiesi wrote:
> 
> >Someone yet working on it? it would be great to have a working .mp4
> >output and .3gp, I've tried .mp4 but it produces a bad output.
> >
> >Bye
> > 
> >
> if there aren't b-frames it may work.
> How bad was your sample?
> 

I was using:
mencoder matrix.mov -ovc xvid -xvidencopts bitrate=1000 -oac faac -faacopts br=128 -of lavf -o output.mp4

I really dunno about faac options and out, but anyway the output.mp4
audio works even if mplayer complains about a lot of problems with audio

FAAD: error: Gain control not yet implemented, trying to resync!
FAAD: error: Gain control not yet implemented, trying to resync!
FAAD: error: Channel coupling not yet implemented, trying to resync!
FAAD: error: Gain control not yet implemented, trying to resync!
FAAD: error: Gain control not yet implemented, trying to resync!
FAAD: error: Maximum number of scalefactor bands exceeded, trying to resync!
FAAD: error: Maximum number of scalefactor bands exceeded, trying to resync!

But this is not the real problem since also in avi it does some messages
but the audio is ok.

Then using -o output.avi (even if lavf) audio and video are there,
in the mp4 I cannot see video, from the log always seams ok but there is
no video displayed:

in stderr, excluding the faad cruft:
VDec: Codec did not set sh->disp_w and sh->disp_h, trying workaround.

stdout log:
MPlayer Sherpya-MinGW-20050618-3.4.4 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon Thunderbird (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx


CommandLine: '-v' 'output.mp4'
init_freetype
get_path('font/font.desc') ->
'J:/Devel/mplayer/Binary/dist/mplayer/font/font.desc'
font: can't open file:
J:/Devel/mplayer/Binary/dist/mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Windows native timing
get_path('input.conf') ->
'J:/Devel/mplayer/Binary/dist/mplayer/input.conf'
Parsing input config file
J:/Devel/mplayer/Binary/dist/mplayer/input.conf
Input config file J:/Devel/mplayer/Binary/dist/mplayer/input.conf
parsed: 42 binds
get_path('output.mp4.conf') ->
'J:/Devel/mplayer/Binary/dist/mplayer/output.mp4.conf'
Playing output.mp4.
WINSOCK2 init: 0
[file] File size is 11082079 bytes
STREAM: [file] output.mp4
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for Nullsoft Streaming Video
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename output.mp4 ext: .mp4
Trying demuxer 7 based on filename extension
Checking for MOV
ISO: File Type Major Brand: ISO Base Media
ISO: File Type Minor Version: 512
ISO: File Type Compatible Brand #0: mp41
MOV: Movie DATA found!
MOV: Movie header found!
QuickTime/MOV file format detected.
MOV: Movie header (100 bytes): tscale=1000  dur=78625
--------------
MOV: Track #0:
MOV:  Track header!
tkhd len=84 ver=0 flags=0x0 id=1 dur=78625 lay=0 vol=0
MOV:  Media stream!
MOV:   Media header!
MOV:   Handler header: /vide () VideoHandler
MOV: unknown handler class: 0x0 ()
MOV:   Media info!
MOV:    Video header!
MOV: unknown chunk: dinf 28
MOV:    Sample info!
MOV:     Description list! (cnt:1)
MOV:      desc #0: mp4v  (105 bytes)
MOV:     Sample duration table! (1 blocks)
MOV:     Syncing samples (keyframes) table! (109 entries)
(ver:0,flags:0)
MOV:     Sample->Chunk mapping table!  (1 blocks) (ver:0,flags:0)
MOV:     Sample size table! (entries=1887 ss=0) (ver:0,flags:0)
MOV:     Chunk offset table! (1887 chunks)
MOV track #0: 1887 chunks, 1887 samples
pts=1887  scale=24  time=78.625
==> Found video stream: 0
MOV: Found MPEG4 movie Elementary Stream Descriptor atom (35)!
ESDS MPEG4 version: 0  flags: 0x000000
ESDS MPEG4 ES Descriptor (21Bytes):
 -> ESId: 1
 -> streamPriority: 0
ESDS MPEG4 Decoder Config Descriptor (13Bytes):
 -> objectTypeId: 32
 -> streamType: 0x11
 -> bufferSizeDB: 0x000000
 -> maxBitrate: 800.000kbit/s
 -> avgBitrate: 0.000kbit/s
Image size: 0 x 0 (24 bpp)
Display size: 0 x 0
Fourcc: mp4v  Codec: ''
--------------
MOV: Track #1:
MOV:  Track header!
tkhd len=84 ver=0 flags=0x0 id=2 dur=78600 lay=0 vol=256
MOV:  Media stream!
MOV:   Media header!
MOV:   Handler header: /soun () SoundHandler
MOV: unknown handler class: 0x0 ()
MOV:   Media info!
MOV:    Sound header!
MOV: unknown chunk: dinf 28
MOV:    Sample info!
MOV:     Description list! (cnt:1)
MOV:      desc #0: mp  (55 bytes)
MOV:     Sample duration table! (1 blocks)
MOV:     Sample->Chunk mapping table!  (1 blocks) (ver:0,flags:0)
MOV:     Sample size table! (entries=3385 ss=0) (ver:0,flags:0)
MOV:     Chunk offset table! (3385 chunks)
MOV track #1: 3385 chunks, 3385 samples
pts=3466240  scale=44100  time=78.600
==> Found audio stream: 1
Audio bits: 16  chans: 2  rate: 44100
MOV: Found MPEG4 audio Elementary Stream Descriptor atom (35)!
ESDS MPEG4 version: 0  flags: 0x000000
ESDS MPEG4 ES Descriptor (21Bytes):
 -> ESId: 2
 -> streamPriority: 0
ESDS MPEG4 Decoder Config Descriptor (13Bytes):
 -> objectTypeId: 64
 -> streamType: 0x15
 -> bufferSizeDB: 0x000000
 -> maxBitrate: 128.000kbit/s
 -> avgBitrate: 0.000kbit/s
Fourcc: mp
--------------
Quicktime Clip Info:
 Requirements: QuickTime 6.0 or greater
MOV: longest streams: A: #1 (3385 samples)  V: #0 (1887 samples)
VIDEO:  [mp4v]  0x0  24bpp  24.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7  fourcc:0x7634706D  size:0x0  fps:24.00  ftime:=0.0417
get_path('sub/') -> 'J:/Devel/mplayer/Binary/dist/mplayer/sub/'
get_path('default.sub') ->
'J:/Devel/mplayer/Binary/dist/mplayer/default.sub'
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
dec_audio: Allocating 4608 bytes for input buffer.
dec_audio: Allocating 49152 + 65536 = 114688 bytes for output buffer.

AAC_PROBE: 4608 bytes

AAC_PROBE: ret 0
FAAD: Decoder init done (4608Bytes)!
FAAD: Negotiated samplerate: 44100Hz  channels: 2
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [faad] afm:faad (FAAD AAC (MPEG-2/MPEG-4 Audio)
decoder)
==========================================================================
<vo_directx><INFO>checking primary surface
<vo_directx><FORMAT PRIMARY>14 BGR32 supported
<vo_directx><INFO>testing supported overlay pixelformats
<vo_directx><FORMAT OVERLAY>0 YV12  supported
<vo_directx><FORMAT OVERLAY>1 I420  not supported
<vo_directx><FORMAT OVERLAY>2 IYUV  not supported
<vo_directx><FORMAT OVERLAY>3 YVU9  supported
<vo_directx><FORMAT OVERLAY>4 YUY2  supported
<vo_directx><FORMAT OVERLAY>5 UYVY  supported
<vo_directx><FORMAT OVERLAY>6 BGR8  not supported
<vo_directx><FORMAT OVERLAY>7 RGB15 not supported
<vo_directx><FORMAT OVERLAY>8 BGR15 not supported
<vo_directx><FORMAT OVERLAY>9 RGB16 not supported
<vo_directx><FORMAT OVERLAY>10 BGR16 not supported
<vo_directx><FORMAT OVERLAY>11 RGB24 not supported
<vo_directx><FORMAT OVERLAY>12 BGR24 not supported
<vo_directx><FORMAT OVERLAY>13 RGB32 not supported
<vo_directx><FORMAT OVERLAY>14 BGR32 not supported
<vo_directx><INFO>Your card supports 4 of 15 overlayformats
<vo_directx><INFO>can mirror up down
<vo_directx><INFO>hardware supports overlay
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/s16le ->
44100Hz/2ch/s16le...
[libaf] Adding filter dummy 
[dummy] Was reinitialized: 44100Hz/2ch/s16le
AF_pre: 44100Hz/2ch/s16le
ao_dsound: Output Devices:
0 Driver audio principale <--
1 Periferica wave SB Live! 
2 Riproduzione linea #0 modem (emulazione) 
ao_dsound: DirectSound initialized
ao_dsound: Samplerate:44100Hz Channels:2 Format:s16le
ao_dsound: Buffersize:176400 bytes (1000 msec)
ao_dsound: primary buffer created
ao_dsound: secondary (stream)buffer created
AO: [dsound] 44100Hz 2ch s16le (2 bps)
AO: Description: Windows DirectSound audio output
AO: Author: Gabor Szecsi <deje at miki.hu>
Building audio filter chain for 44100Hz/2ch/s16le ->
44100Hz/2ch/s16le...
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Starting playback...
[ffmpeg] aspect_ratio: 2.222222
*** [vo] Exporting mp_image_t, 640x288x12bpp YUV planar, 276480 bytes
Uninit audio filters...
[libaf] Removing filter dummy 
uninit audio: faad
FAAD: Closing decoder!
uninit video: ffmpeg
WINSOCK2 uninit
ao_dsound: DirectSound uninitialized


I can test it also on linux if needed

Bye


-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/




More information about the MPlayer-dev-eng mailing list