[MEncoder-users] Mencoder and lots of duplicate frames / can't get video output
André Medeiros
andre.medeiros at belacena.com
Thu Dec 6 19:26:31 CET 2007
Hello list.
I compiled the latest version of MPlayer (against ffmpeg trunk) in
order to encode some videos using VFW codecs. The encoding process is
somewhat odd since I can't get any video on the output files.
Besides, when encoding, mencoder complains about 30ish duplicate
frames at a time. Any ideas on what's wrong?
Here's what an encoding session outputs:
------------------------------
--------------------------8<--------------------------------------------------------
MEncoder 1.0rc2-4.0.3 (C) 2000-2007 MPlayer Team
CPU: AMD Duron(tm) processor (Family: 6, Model: 8, Stepping: 1)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
Configuration: --prefix=/usr
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
[file] File size is 12050452 bytes
STREAM: [file]
/var/www/html/belacena.com/httpdocs/app/tmp/incomming/20__s_Beatboxing___Nashville__TN.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
success: format: 0 data: 0x0 - 0xb7e014
LAVF_check: avi format
AVI file format detected.
list_end=0x228A
======= AVI Header =======
us/frame: 33366 (fps=29.971)
max bytes/sec: 33000
padding: 0
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
frames total: 2730 initial: 0
streams: 2
Suggested BufferSize: 1048576
Size: 320 x 240
==========================
list_end=0x10F0
==> Found video stream: 0
[aviheader] Video stream found, -vid 0
====== STREAM Header =====
Type: vids FCC: XVID (44495658)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 30000/1001 = 29.970
Start: 0 Len: 2730
Suggested BufferSize: 1048576
Quality -1
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 320
biHeight 240
biPlanes 1
biBitCount 24
biCompression 1145656920='XVID'
biSizeImage 230400
===========================
Regenerating keyframe table for MPEG-4 video.
list_end=0x217E
==> Found audio stream: 1
[aviheader] Audio stream found, -aid 1
====== STREAM Header =====
Type: auds FCC: ^A (1)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 1225/32 = 38.281
Start: 0 Len: 3489
Suggested BufferSize: 12288
Quality -1
Sample size: 0
==========================
Found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 1
Samplerate: 22050
avg byte/sec: 8000
Block align: 576
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=1152
mp3.nFramesPerBlock=1
mp3.nCodecDelay=1393
==========================================================================
list_end=0x2322
hdr=Name size=35
Name : Blake's Beatboxing Nashville, TN
hdr=Comments size=67
Comments : Downloaded with
http://www.sourceforge.net/projects/youtubecatcher
hdr=Software size=12
Software : Lavf51.12.2
list_end=0xB65B5C
Found movie at 0x272E - 0xB65B5C
Reading INDEX block, 6219 chunks for 2730 frames (fpos=11950948).
AVI index offset: 0x272A (movi=0x272E idx0=0x4 idx1=0x169E)
Auto-selected AVI video ID = 0
Auto-selected AVI audio ID = 1
AVI: Searching for audio stream (id:1)
XXX initial v_pts=0.000 a_pos=0 (0.000)
AVI video size=11157233 (2730) audio size=729129 (3489)
VIDEO: [XVID] 320x240 24bpp 29.970 fps 979.9 kbps (119.6 kbyte/s)
[V] filefmt:3 fourcc:0x44495658 size:320x240 fps:29.97 ftime:=0.0334
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using 3DNow!Ex optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 2.0, Layer III, 22050 Hz 64 kbit Single-Channel, BPF: 208
Channels: 1, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 22050 Hz, 2 ch, s16le, 64.0 kbit/9.07% (ratio: 8000->88200)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[file] File size is 0 bytes
STREAM: [file] brasil.flv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
OK, exit
ALLOCATED STREAM N. 1, type=0
======= Win32 (VFW) VIDEO Encoder init =======
Loading codec DLL: 'vp6vfw.dll'
get_path('registry') -> '/root/.mplayer/registry'
Loaded DLL driver vp6vfw.dll at 10000000
HIC: 8ba81f8
568 - 568 - 568
Compressor type: 63646976
Compressor subtype: 32365056
Compressor flags: 40, version 65536, ICM version: 260
Flags:
ICSetState ret: 2056
ICCompressGetFormatSize ret: 40
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [flip]
Opening video filter: [scale w=320 h=240]
SwScale params: 320 x 240 (-1=no scaling)
Opening video filter: [yadif]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
ALLOCATED STREAM N. 2, type=1
Building audio filter chain for 22050Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter lavcresample
[libaf] Adding filter format
[format] Changing sample format from little-endian 16-bit signed int
to big-endian 8-bit signed int
[format] Changing sample format from little-endian 16-bit signed int
to big-endian 8-bit signed int
MP3 audio selected.
Building audio filter chain for 22050Hz/2ch/s16le -> 44100Hz/2ch/s16le...
[format] Changing sample format from little-endian 16-bit signed int
to big-endian 8-bit signed int
[libaf] Removing filter format
[libaf] Reallocating memory in module lavcresample, old len = 0, new len =
2308
[ffmpeg] aspect_ratio: 1.333333
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
Trying filter chain: yadif scale flip expand vfw
VDec: using Planar YV12 as output csp (no 0)
Opening video filter: [flip]
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (320x240->320x240,flags=8,'MPlayer',0x32315659)
REQ: flags=0x641 req=0x0
[swscaler @ 0x877bfe8]SwScaler: using unscaled yuv420p -> bgr24
special converter
REQ: flags=0x603 req=0x0
REQ: flags=0x603 req=0x400
REQ: flags=0x603 req=0x0
REQ: flags=0x203 req=0x400
Opening video filter: [expand]
Expand: -1 x -1, -1 ; -1, osd: 0, aspect: 0.000000, round: 1
REQ: flags=0x203 req=0x0
ICCompressGetFormat OK
Starting compression:
Input format:
biSize 40
biWidth 320
biHeight 240
biPlanes 1
biBitCount 24
biCompression 0x0 ('')
biSizeImage 230400
Output format:
biSize 40
biWidth 320
biHeight 240
biPlanes 1
biBitCount 24
biCompression 0x32365056 ('VP62')
biSizeImage 157696
ICCompressQuery OK
ICCompressBegin OK
Output format after query/begin:
biSize 40
biWidth 320
biHeight 240
biPlanes 1
biBitCount 24
biCompression 0x32365056 ('VP62')
biSizeImage 157696
VIDEO CODEC Init OK!!! ;-)
*** [yadif] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
Pos: 0.0s 1f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0]
A/Vms 2/3 D/B/S 0/1/0
*** [yadif] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
*** [scale] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
*** [vfw] Allocating mp_image_t, 320x240x24bpp BGR packed, 230400 bytes
*** [expand] Direct Rendering mp_image_t, 320x240x24bpp BGR packed, 230400
bytes
*** [flip] Direct Rendering mp_image_t, 320x240x24bpp BGR packed, 230400
bytes
*** [expand] Direct Rendering mp_image_t, 320x240x24bpp BGR packed, 230400
bytes
*** [flip] Direct Rendering mp_image_t, 320x240x24bpp BGR packed, 230400
bytes
Muxer frame buffer sending 21 frame(s) to the muxer.
VIDEO CODEC ID: 94
AUDIO CODEC ID: 15001, TAG: 0
MUXER_LAVF(audio stream) frame_size: 1152, scale: 1152, sps: 44100,
rate: 44100, ctx->block_align = stream->wf->nBlockAlign; 0=1152
stream->wf->nAvgBytesPerS$
Writing header...
--------------------------------------------------------8<--------------------------------------------------------
What worries me the most is this:
--------------------------------------------------------8<--------------------------------------------------------
Starting compression:
Input format:
biSize 40
biWidth 320
biHeight 240
biPlanes 1
biBitCount 24
biCompression 0x0 ('')
biSizeImage 230400
--------------------------------------------------------8<--------------------------------------------------------
Any suggestions would be truly appreciated.
More information about the MEncoder-users
mailing list