LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problems encoding DVDs with MEncoder. (https://www.linuxquestions.org/questions/linux-software-2/problems-encoding-dvds-with-mencoder-108237/)

adz 10-25-2003 12:28 AM

Problems encoding DVDs with MEncoder.
 
Hi there.

I've just started trying to encode a DVD with MEncoder. When I execute the command mencoder dvd://1 -ovc frameno -o frameno.avi -oac mp3lame -lameopts vbr=3 (as suggested by the MPlayer site) I get the following error:

MEncoder 0.92-2.95.4 (C) 2000-2003 MPlayer Team

CPU: Intel (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Reading /home/adz/.mplayer/codecs.conf: can't open '/home/adz/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf
File not found: 'frameno.avi'
Reading config file /home/adz/.mplayer/mencoder: No such file or directory
font: can't open file: /home/adz/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Unknown protocol 'dvd'
Unable to open URL: dvd://1
Cannot open file/device.

Exiting...

I've bolded the important bits. I'm not quite sure what this means. I've installed every libdvdread package available from debian and recompiled mplayer. I'm not sure what the problem is. Anyone have any ideas?

adz 10-25-2003 04:34 AM

Hmmm... I've changed the above command to read mencoder -dvd 1 -ovc frameno -o frameno.avi -oac mp3lame -lameopts vbr=3 (same as I would for playback) and everything seems to work fine so far. I haven't finished encoding yet but it looks promising...

I don't know why the mplayer site gave the command using dvd:// instead of -dvd. What do people use here?

vivekiyer 10-25-2003 07:30 AM

Well the -dvd option didnt work the last time I tried it. The correct command was something close to dvd://. I am not on my Linux machien right now. will go back check and let you know. Hey btw if u wanna rip dvd's why dont u try dvd::rip . You can get it using synaptic / apt. Nice ui and very easy to use also highly configurable. Try it out. You will love it
Cheers

acid_kewpie 10-25-2003 12:00 PM

Quote:

I don't know why the mplayer site gave the command using dvd:// instead of -dvd. What do people use here?
1.0 uses "dvd://" 0.9x uses "-dvd". MPlayer itself had had a suitable transition between the two syntaxes for a good number of months, but MEncoder was neglected from this, so the syntax has changed instantly. Hey btw if u wanna rip dvd's why dont u try acidrip!

adz 10-25-2003 08:57 PM

Thanks for the tip, Acid. Saved me having to worry about it.

Hmmm... I'd actually posted another message here but it's either disappeared, I didn't actually post it or I posted it in the wrong thread... Anyway, in it I said that I was having some trouble even after the "-dvd" option. I was trying the 3 pass method and after the first pass (the audio part) I played the resulting avi and it was something akin to static. I thought that it might get better after the next two passes but it didn't. I got a movie (in the wrong aspect ratio) with static for sound. I don't get what I did wrong. The command I used was mencoder -dvd 1 -ovc frameno -o frameno.avi -oac mp3lame -lameopts vbr=3. Is there something wrong with it?

Acid, I did actually try to get your program but it seemed to rely on parts on gnome. I don't like gnome/kde simply because I have to d/l huge amounts of stuff just to use the apps. Especially since I don't like/use the window managers. They're too bulky.

If anyone's got any hints on ripping DVDs I'm all ears. I tried dvd::rip last night but it gave me a whole bunch of garbage. Also, it took over my computer to the point that it was almost unusable. Mencoder seemed to give me enough spare RAM and processor time to do other things while ripping.

Oh and do people recommend upgrading to 1.0 from 0.92 even though it's a prerelease?

Edit: Oh and Acid, I couldn't get your program to run. It compiled and installed without errors. But gave me this error:

adz@hades:~/ripped/dvd$ acidrip
Can't locate Gtk2.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.1 /usr/local/share/perl/5.8.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8.1 /usr/share/perl/5.8.1 /usr/local/lib/site_perl .) at /usr/local/share/perl/5.8.1/AcidRip/interface.pm line 1.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.8.1/AcidRip/interface.pm line 1.
Compilation failed in require at /usr/local/share/perl/5.8.1/AcidRip/acidrip.pm line 8.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.8.1/AcidRip/acidrip.pm line 8.
Compilation failed in require at /usr/bin/acidrip line 14.
BEGIN failed--compilation aborted at /usr/bin/acidrip line 14.

adz 10-26-2003 12:39 AM

Oh and these are the errors I get (I meant to post these earlier).

At the beginning:

a52: error at resampling
a52: CRC check failed! ) 0fps Trem: 0min 0mb A-V:0.000 [0:0]
a52: error at resampling
a52: CRC check failed! ) 0fps Trem: 9min 1mb A-V:0.004 [0:0]
a52: error at resampling
a52: CRC check failed! ) 3fps Trem: 12min 1mb A-V:0.008 [0:0]
a52: error at resampling
a52: CRC check failed! ) 3fps Trem: 14min 1mb A-V:0.012 [0:0]
a52: error at resampling
Pos: 0.2s 5f ( 0%) 3fps Trem: 14min 1mb A-V:0.016 [0:0]


Then later I get a whole bunch of these:

Too many video packets in the buffer: (4096 in 8266086 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

Too many video packets in the buffer: (4096 in 8266086 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.


When I execute the (1st pass) command:

mencoder -dvd 1 -ovc frameno -o frameno.avi -oac mp3lame -lameopts vbr=3


All times are GMT -5. The time now is 08:15 PM.