LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   mencoder stopped working - sometimes (https://www.linuxquestions.org/questions/linux-desktop-74/mencoder-stopped-working-sometimes-501700/)

zzyxx 11-15-2006 12:02 AM

mencoder stopped working - sometimes
 
When I switched from Gentoo to Ubuntu, my mencoder stopped working. I started using acidrip which strangely works sometimes, and when I cut the mencoder line from the queue (which works) and enter it directly on the command line it fails. I even successfully compressed a movie and then went to redo it, changing nothing but the bitrate, and it failed. The error line I think is relevant is the one about opening the video output device. Can anyone help with this? Thanks.

Pass 1 works, but pass 2 fails. Here is the command line and the output.

Code:

/Video/DVD : mencoder dvd://5 -dvd-device . -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:vqmin=2:vbitrate=2000:vpass=2 -vf crop=720:416:0:80 -o out.avi
MEncoder 2:0.99+1.0pre8-0ubuntu8 (C) 2000-2006 MPlayer Team
CPU: AMD Opteron(tm) Processor 250 (Family: 15, Model: 5, Stepping: 10)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Reading disc structure, please wait...
There are 5 titles on this DVD.
There are 13 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
success: format: 0  data: 0x0 - 0x15c7d800
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  9780.0 kbps (1222.5 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe)  48000 Hz  448.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [crop w=720 h=416 x=0 y=80]
Crop: 720 x 416, 0 ; 80
==========================================================================
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 adding the scale filter, 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))
==========================================================================
MP3 audio selected.
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x416 fourcc=34504d46 [FMP4])
[VE_LAVC] High quality encoding selected (non-realtime)!
[mpeg4 @ 0xc67e50]Error: 2pass curve failed to converge
Could not open codec.
FATAL: Cannot initialize video driver.

Exiting...

-- J
:: Tyan S2885 + 2 * Opteron250 + 4GB + NVIDIA @ 2.6.17-10-generic + Edgy

David the H. 11-15-2006 01:28 AM

"Could not open codec".

It looks to me like you don't have libavcodec, or it's in a place where mencoder can't find it. You probably need to install ffmpeg, which has libavcodec as a dependency.

zzyxx 11-16-2006 10:38 AM

Quote:

Originally Posted by David the H.
"Could not open codec".

It looks to me like you don't have libavcodec, or it's in a place where mencoder can't find it. You probably need to install ffmpeg, which has libavcodec as a dependency.

Those are both installed. The souce is simple MPEG2. These videos play in mplayer and I would think that mplayer and mencoder get them from the same place. Is there a path variable for this?

--J


All times are GMT -5. The time now is 04:38 PM.