[MPlayer-users] Problems encoding with crop

D Richard Felker III dalias at aerifal.cx
Mon Mar 1 23:57:23 CET 2004


On Mon, Mar 01, 2004 at 12:12:03PM -0700, Pete Ashdown wrote:
> I am having an problem encoding lavc mpeg4 with a crop.  It will go through
> the motions of doing the encode, but the final file does not playback.  When I
> encode without a crop, it works just fine.  In spite of what the error says
> below, other files play fine on my setup.
> 
> Original MPEG:
> Cache fill:  0.00% (0 bytes)    MPEG-PS file format detected.
> VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  8000.0 kbps (1000.0 kbyte/s)
> 
> 3 pass encoding:
> 
> mencoder input.mpg  -alang en -ovc frameno -oac mp3lame -lameopts
> cbr:br=192:aq=0 -ofps 25 -o frameno.avi
> 
> mencoder input.mpg -oac copy -ovc lavc -lavcopts \
>  vcodec=mpeg4:vpass=1:vbitrate=1200:v4mv:trell:autoaspect:mbd=2 \
>  -vf crop=706:440:8:68 -ofps 25 -o output.avi
> 
> mencoder input.mpg -oac copy -ovc lavc -lavcopts \
>  vcodec=mpeg4:vpass=2:vbitrate=1200:v4mv:trell:autoaspect:mbd=2 \
>  -vf crop=706:440:8:68 -ofps 25 -o output.avi

Although this is not your problem, final size before encoding should
ALWAYS be multiples of 16 in both dimensions.

> The error given playing the result:
> 
> mplayer output.avi
> Playing output.avi
> Cache fill:  0.00% (0 bytes)    AVI file format detected.
> VIDEO:  [DIVX]  706x440  24bpp  25.000 fps  1203.8 kbps (146.9 kbyte/s)
> Clip info:
>  Software: MEncoder 1.0pre2-3.3.2
> ==========================================================================
> Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
> MP3lib: init layer2&3 finished, tables done
> AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 24000->192000 (192.0 kbit)
> Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
> ==========================================================================
> vo: X11 running at 1280x1024 with depth 16 and 16 bpp (":0.0" => local
> display)
> Opening video filter: [lavcdeint]
> ==========================================================================
> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
> Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
> ==========================================================================
> Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
> AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int 
> AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
> SDL: Samplerate: 48000Hz Channels: Stereo Format Signed 16-bit (Little-Endian)
> AO: [sdl] 47360Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
> Building audio filter chain for 48000Hz/2ch/16bit -> 47360Hz/2ch/16bit...
> Starting playback...
> VDec: vo config request - 706 x 440 (preferred csp: Planar YV12)
> VDec: using Planar YV12 as output csp (no 0)
> Movie-Aspect is 1.71:1 - prescaling to correct movie aspect.
> FATAL: Cannot initialize video driver.
> 
> FATAL: Could not initialize video filters (-vop) or video output (-vo).
> 
> 
> Exiting... (End of file)

This error output is definitely not complete. It's been cut and it's
missing -v!!!

Rich




More information about the MPlayer-users mailing list