Opened 13 years ago

Last modified 12 years ago

#1035 new defect

lavc mpeg4: bitrate too low for this video with these parameters.

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



sometimes when I re-encode some mpeg video (recorded from TV) I encounter this problem, as in subject.

Here is an example. If I issue the command

$ mencoder -ss 8191 -endpos 291 -oac copy -ovc lavc \

-lavcopts vcodec=mpeg4:autoaspect:vbitrate=800:vpass=1 \
-vf crop=704:560:10:8 -o nice-clip.avi recording.mpeg

the above works quite fine, but when I try to do a second pass, that is
$ mencoder -ss 8191 -endpos 291 -oac copy -ovc lavc \

-lavcopts vcodec=mpeg4:autoaspect:vbitrate=800:vpass=2
-vf crop=704:560:10:8 -o nice-clip.avi recording.mpeg

I get

MEncoder dev-SVN-r25059-4.1.2 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(TM) XP 1800+ (Family: 6, Model: 6, Stepping: 2)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
success: format: 0 data: 0x0 - 0x7240000
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 1) 25.000 fps 4500.0 kbps (562.5 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x576 fps:25.00 ftime:=0.0400
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 224.0 kbit/14.58% (ratio: 28000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [crop w=704 h=560 x=10 y=8]
Crop: 704 x 560, 10 ; 8
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
audiocodec: framecopy (format=50 chans=2 rate=48000 bits=16 B/s=28000 sample-1)
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.25:1 - prescaling to correct movie aspect.
videocodec: libavcodec (704x560 fourcc=34504d46 [FMP4])
[mpeg4 @ 0x882dc90][lavc rc] Error: bitrate too low for this video with these parameters.
Could not open codec.
FATAL: Cannot initialize video driver.


The funny part is that the above command may work fine on a MPEG (both 1st and 2nd pass), and not on another.


ps: the above commands are simplified from what is done by the re-encoding plugin of freevo

Change History (1)

comment:1 Changed 12 years ago by compn

-ovc lavc default codec is mpeg4
so you dont need to specify vcodec=mpeg4 in the command line ...

but i dont know whats wrong here :)

Note: See TracTickets for help on using tickets.