LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-06-2002, 10:24 PM   #1
ddpicard
Member
 
Registered: Oct 2001
Location: Texas
Distribution: Slackware 13
Posts: 214

Rep: Reputation: 31
MEncoder audio codec problems


Hello everyone. I am trying to rip a DVD with Mencoder. Everything but the audio is going great. The only way I can get sound is with uncompressed audio.

I have lame_3.92-1 installed on my system. When I compile mplayer it is not autodecting it. When I check the codecs.conf it is not listed under the audio codecs.

When I do mencoder -oac help it tells me only copy and pcm are available. Below is the output:

ddpicard@linux:~/rip> mencoder -oac help
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MEncoder 0.90pre10-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPU: Advanced Micro Devices Duron SF Spitfire (Family: 6, Stepping: 1)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Reading /home/ddpicard/.mplayer/codecs.conf: 44 audio & 110 video codecs
File not found: 'frameno.avi'

Available codecs:
copy - frame copy, without re-encoding (usefull for AC3)
pcm - uncompressed PCM audio

I searched on google and found some posts saying that lame does not work with mplayer. I don't believe this because I think MasterC posted he uses mp3lame.

Here is how I am using mencoder. I think MasterC posted how he rips and that is where I came across it. The video quality is AWESOME. Now to get the audio working.

mencoder -dvd 1 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=1100 -vop cale -zoom -xy 640 -oac mp3lame -lameopts abr:br=128 -o tremors.avi

I don't think this is a stupid question like my last one.

Thanks
dave
 
Old 12-07-2002, 11:07 AM   #2
ddpicard
Member
 
Registered: Oct 2001
Location: Texas
Distribution: Slackware 13
Posts: 214

Original Poster
Rep: Reputation: 31
Hello again everyone. I got it to work.

Man it feels good to actually figure something out on my own.

Here is what it was. I had lame installed, but, I had installed it using RPM's. Don't know why, but, when I downloaded the source for lame and then compiled and recompiled mplayer I know have my lame.

YEAH!!!!!!!!!

Something small I know but for me it is a big step in learning what I am doing in linux.

dave
 
Old 12-07-2002, 11:55 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if you ever get bored, have a ./configure on mplayer and see just how many 'no's you can turn into 'yes's it's a super fun game, and there's *always* another one to try...
 
Old 12-07-2002, 11:55 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
oh btw. http://acidrip.thirtythreeandathird.net

Last edited by acid_kewpie; 12-07-2002 at 12:01 PM.
 
Old 12-07-2002, 11:20 PM   #5
ddpicard
Member
 
Registered: Oct 2001
Location: Texas
Distribution: Slackware 13
Posts: 214

Original Poster
Rep: Reputation: 31
Hey acid, i have been reading the configure and i am going to compile for my tv card and try recording.

I downloaded your acid rip and I am going to give it a try. It's just I like playing around with the command line. But first, I have to figure out one more problem.

While playing or ripping a dvd it will crash and give me:

libdvdread: Can't seek to block (this differs with different dvd's)

I installed libdvdread 0.9.3-ogle1 because I was using ogle until I got mplayer to work. But, I had never sat through an entire movie and while testing mplayer and ogle they both crash before the end of the movie. I hope it is the version of libdvdread.

I am going to search the mplayer website and see what libdvdread they suggest. But, if anyone has any ideas i would appreciate the help.

dave
 
Old 12-08-2002, 05:43 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
mplayer will use it's own static version of libdvdread the renamed "libmpdvdkit", not a standard library on your system.
 
Old 12-08-2002, 08:15 AM   #7
ddpicard
Member
 
Registered: Oct 2001
Location: Texas
Distribution: Slackware 13
Posts: 214

Original Poster
Rep: Reputation: 31
Yes, I was reading and that was what I found. So, I uninstalled everything to do with playing a DVD.

I then uninstalled mplayer and went to mplayer's home page and downloaded the latest version: MPlayer-0.90rc1.tar.bz2

Did

./configure
make
su -
make install

Played a DVD and and stepped through the movie until it crashed and said:

MPlayer interrupted by signal 11 in module: unknown
- MPlayer crashed by bad usage of CPU/FPU/RAM. Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and disassembly. For details, see DOCS/bugreports.html section 5.b.
- MPlayer crashed. This shouldn't happen. It can be a bug in the MPlayer code _or_ in your drivers _or_ in your gcc version. If you think it's MPlayer's fault, please read DOCS/bugreports.html and follow instructions there. We can't and won't help unless you provide these informations when reporting a possible bug.

I know that this is not an mplayer issue only because ogle was crashing also before the end of a movie before I uninstalled it. I have tried this with about 7 or 8 DVD's and the same thing happens at different times.
 
Old 12-08-2002, 08:17 AM   #8
ddpicard
Member
 
Registered: Oct 2001
Location: Texas
Distribution: Slackware 13
Posts: 214

Original Poster
Rep: Reputation: 31
So, I recompiled with --enable-debug and this is the total error I got when it crashed.

libdvdread: Can't seek to block 1474419 (gave this about 100 times)

DEMUXER: Too many (4096 in 8257536 bytes) audio packets in the buffer!
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.
libdvdread: Can't seek to block 1474419

DEMUXER: Too many (4096 in 8257536 bytes) audio packets in the buffer!
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.

DEMUXER: Too many (4096 in 8257536 bytes) audio packets in the buffer!
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.

DEMUXER: Too many (4096 in 8257536 bytes) audio packets in the buffer!
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.

DEMUXER: Too many (4096 in 8257536 bytes) audio packets in the buffer!
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.

DEMUXER: Too many (4096 in 8257536 bytes) audio packets in the buffer!
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.
a52: CRC check failed!
a52: error at resampling
a52: CRC check failed!
a52: error at resampling
a52: CRC check failed!
a52: error at resampling
a52: CRC check failed!
a52: error at resampling
a52: CRC check failed!
a52: error at resampling
a52: CRC check failed!
a52: error at resampling
libdvdread: Can't seek to block 1474419
libdvdread: Can't seek to block 1474419
libdvdread: Can't seek to block 1474419
libdvdread: Can't seek to block 1474419
libdvdread: Can't seek to block 1474419
libdvdread: Can't seek to block 1474419

DEMUXER: Too many (4096 in 8257536 bytes) audio packets in the buffer!
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.
A:3424.7 V: 0.0 A-V:3424.741 ct: 0.100 640/518 0% 0% 0.0% 0 0 0%


MPlayer interrupted by signal 11 in module: unknown
- MPlayer crashed by bad usage of CPU/FPU/RAM. Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and disassembly. For details, see DOCS/bugreports.html section 5.b.
- MPlayer crashed. This shouldn't happen. It can be a bug in the MPlayer code _or_ in your drivers _or_ in your gcc version. If you think it's MPlayer's fault, please read DOCS/bugreports.html and follow instructions there. We can't and won't help unless you provide these informations when reporting a possible bug.


Hope this helps. I am trying to provide as much info as I can. I searched on google for the "bad usage of CPU/FPU/RAM and found alot of threads but not much in english and no answers.

Thanks for all the help,
dave
 
Old 12-08-2002, 08:23 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well as this is a potential bug you should contact the mplayer-users list and submit a proper report, after searching the archives of course.
 
Old 12-08-2002, 02:40 PM   #10
ddpicard
Member
 
Registered: Oct 2001
Location: Texas
Distribution: Slackware 13
Posts: 214

Original Poster
Rep: Reputation: 31
Well Acid, my problem is that ogle does the same thing. Before I uninstalled it anyway.

I will search there archives and see what I find. I also have Mandy 9.0 on an extra drive. I need to install it and see if I can watch a complete movie on it also. I had never just sat down and watched a movie or skiped forward until the end before. So I am not sure whether the drive with Mandy will do the same or not.

I will post what I find out.

Thanks for all the support,
dave
 
Old 12-08-2002, 05:07 PM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You did uninstall libdvdread though, before doing the ./configure for Mplayer?

Basically, check the configure script, make sure you see that it is using Mplayer's own version. It appears that it is still using libdvdread rather than the libmpdvdkit.

Cool
 
Old 12-08-2002, 05:24 PM   #12
ddpicard
Member
 
Registered: Oct 2001
Location: Texas
Distribution: Slackware 13
Posts: 214

Original Poster
Rep: Reputation: 31
Yes, I uninstalled the libdvdread and also any other dvd related program or lib.

I then uninstalled mplayer.

Then did a fresh compile of the latest version of mplayer.

I just did a fresh install of Mandy 9.0 on an extra drive. Compiled mplayer and started a dvd. Skipped forward and before the end of the movie it crashed also.

I'm starting to wonder if I have a hardware issue. I am using an older DVD ROM. It is a 6x.

MasterC, I used the mencoder settings that you posted somewhere, and the part of the movie that I was able to rip looked very good. Hope I can get this figured out so I can get the entire movie ripped.

Thanks,
Dave
 
Old 12-08-2002, 05:30 PM   #13
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yeah, it does look great. It gives great quality movies, sound is just fine, and a filesize to fit on a single CDR. Makes for great, uh, backup of movies.

I would blame the drive too, if everything else is running fine though, I don't really know if that's your problem. Do you have another drive you could give it a try on before having to buy another? They are going for really cheap right now though, you can get one for ~30 bux at some places.

Anyway, good luck, and it sucks it's not working out perfectly for you. I would suspect faulty equipment though if the movie is playing, and then regardless of movie, it faults.

Oh, and I am sure that you just missed a letter when pasting the line you use, but the -vop scale is missing an s. And I just checked it against the one I always use, looks fine and should be working, so I am still blaming the hardware.

Cool
 
Old 12-08-2002, 05:31 PM   #14
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I don't know if this is something available in mencoder, but maybe the -cache option will help you to not have the problem. Try adding the flag '-cache 128' to your command, see if that improves at all, although I doubt it. But hey, it's worth a shot.

Cool
 
Old 12-08-2002, 06:15 PM   #15
ddpicard
Member
 
Registered: Oct 2001
Location: Texas
Distribution: Slackware 13
Posts: 214

Original Poster
Rep: Reputation: 31
Sure does suck. It is so frustrating for it to be so easy in linux to "backup" our DVD's but can't because of something flacky going on.

Tried the -cache 128 but no go.

As for the drive. I have other Tech friends I've worked with that I can borrow one from for testing. So, we will see if it is a hardware issue or not.

I can't complain to much though. You always here about the Linux horror stories with hardware. But, I have very easy installs and with my suse when you do an update after the install the GeForce 4 drivers are installed. Although I did install them on the Mandrake and it was not that dificult.

So one minor snag at the moment. I will over come.

I'll keep y'all posted. Thanks again.

dave
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mencoder audio resample mrsolo Linux - Software 0 11-17-2004 11:03 PM
mencoder / xvid codec voodoochild117 Linux - Software 1 06-25-2004 02:00 AM
mencoder audio off-snyc help estatik Linux - Software 1 03-12-2004 08:02 PM
VIA VT8233/A/8235 AC97 Audio Codec problems spank Linux - Newbie 0 02-22-2004 10:51 AM
ac97 audio codec shini Linux - Software 3 08-18-2003 12:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:55 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration