LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 11-15-2006, 12:02 AM   #1
zzyxx
LQ Newbie
 
Registered: Nov 2006
Posts: 11

Rep: Reputation: 0
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
 
Old 11-15-2006, 01:28 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946
"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.
 
Old 11-16-2006, 10:38 AM   #3
zzyxx
LQ Newbie
 
Registered: Nov 2006
Posts: 11

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
x stopped working sleepwalk Slackware 1 03-25-2006 09:52 AM
X stopped working ... Rackerz Ubuntu 1 12-11-2005 08:09 PM
Converting mpeg4 to mpeg1 using mencoder not working slothpuck Linux - Software 4 10-25-2005 02:24 PM
su stopped working bulldogzerofive Linux - Software 5 01-17-2005 02:05 AM
My X just stopped working??? freeindy Linux - Newbie 4 11-30-2002 10:53 AM


All times are GMT -5. The time now is 06:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration