LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-07-2003, 02:09 PM   #1
joshandcar
LQ Newbie
 
Registered: May 2003
Posts: 7

Rep: Reputation: 0
problems with mplayer locking up system


hi

I am having big problems with Mplayer (I think)

the story so far is that I was running man82 and mplayer v0.90pre5 and doing dvd rips, until about a week ago I experimented with bash scripts for doing dvd rips.

the script is as follows if that helps

#!/bin/bash

rm -f lavc_stats.txt

clear

echo " D I V X RIPPING TOOL"
echo ; echo
echo " 3 times rip"
echo " To rip 2 tracks and record them to CD"
echo ; echo
echo ; echo
echo " Enter the details for track number 1"
echo ; echo
echo -n "Enter the DVD track number: "; read DVDTRACK1
echo ; echo
echo -n "Enter a filename (no .avi): " ; read FILENAME1
echo ; echo
echo -n "Enter a bitrate: " ; read BITRATE1
echo ; echo
echo -n "Enter the crop numbers (seperated by a : i.e ?:?:?:? " ; read CROP1
echo ; echo
echo ; echo
echo ; echo
echo " Enter the details for track number 2"
echo ; echo
echo -n "Enter the DVD track number: "; read DVDTRACK2
echo ; echo
echo -n "Enter a filename (no .avi): " ; read FILENAME2
echo ; echo
echo -n "Enter a bitrate: " ; read BITRATE2
echo ; echo
echo -n "Enter the crop numbers (seperated by a : i.e ?:?:?:? " ; read CROP2
echo ; echo

mencoder -dvd $DVDTRACK1 -dvd-device /dev/scd0 -aid 128 -oac mp3lame -lameopts br=96 -ovc frameno -o frameno.avi

mencoder -dvd $DVDTRACK1 \
-dvd-device /dev/scd0 \
-sws 2 \
-oac copy \
-ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=$BITRATE1:vpass=1 \
-forceidx \
-vop crop=$CROP1 \
-o $FILENAME1.avi

mencoder -dvd $DVDTRACK1 \
-dvd-device /dev/scd0 \
-sws 2 \
-oac copy \
-ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=$BITRATE1:vpass=2 \
-forceidx \
-vop crop=$CROP1 \
-o $FILENAME1.avi

rm -f /mnt/windows/divx2/frameno.avi
rm -f lavc_stats.txt
echo ; echo
echo ; echo
mencoder -dvd $DVDTRACK2 -dvd-device /dev/scd0 -aid 128 -oac mp3lame -lameopts br=96 -ovc frameno -o frameno.avi

mencoder -dvd $DVDTRACK2 \
-dvd-device /dev/scd0 \
-sws 2 \
-oac copy \
-ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=$BITRATE2:vpass=1 \
-forceidx \
-vop crop=$CROP2 \
-o $FILENAME2.avi

mencoder -dvd $DVDTRACK2 \
-dvd-device /dev/scd0 \
-sws 2 \
-oac copy \
-ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=$BITRATE2:vpass=2 \
-forceidx \
-vop crop=$CROP2 \
-o $FILENAME2.avi

mkisofs -r -J -v -o film.iso /mnt/windows/divx2/$FILENAME1.avi /mnt/windows/divx2/$FILENAME2.avi

cdrecord -v speed=4 dev=0,1,0 -pad -data -ignsize film.iso
echo ; echo
echo ; echo
echo " C O M P L E T E D , ENJOY THE FILM !!"

rm -f frameno.avi

exit 0


After that mplayer would not complete a rip without locking the whole machine.

So I though I would upgrade to man9.0 and this I did, but I still have the same problem in man9.0 and I have tried many different versions of mplayer install
, I currently have V0.90pre9 on. I installed it ok using ./configure --enable-gui
make , make install.

mplayer plays dvd ets ok. but the problem is that when you type the command to rip the dvd as follows

mencoder -dvd 1 -dvd-device /dev/scd0 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=850 -oac mp3lame -lameopts br=96:cbr -alang en -idx -o film.avi

it runs quite happily for a while and then just stops at different times, i.e from 1% up to 28%.

when i say stops i mean there is no error message , the rip just stops and the keyboard and mouse are also locked, so you have to do a re-boot.

it would also appear no "core" file is created to help you.

Do you think this could be a memory/cpu problem or is there an error with my mplayer install ?

my cpu is an Athlon XP 1800+ , my ram is 512ddr

I am going to run the following teste now to see what happens

memtest86 , mprime , cpuburn

Can anybody help , please !!



joshandcar
 
Old 05-08-2003, 01:48 AM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Re: problems with mplayer locking up system

Quote:
Originally posted by joshandcar
hi

I am having big problems with Mplayer (I think)

the story so far is that I was running man82 and mplayer v0.90pre5 and doing dvd rips, until about a week ago I experimented with bash scripts for doing dvd rips.

the script is as follows if that helps

#!/bin/bash

rm -f lavc_stats.txt

clear

echo " D I V X RIPPING TOOL"
echo ; echo
echo " 3 times rip"
echo " To rip 2 tracks and record them to CD"
echo ; echo
echo ; echo
echo " Enter the details for track number 1"
echo ; echo
echo -n "Enter the DVD track number: "; read DVDTRACK1
echo ; echo
echo -n "Enter a filename (no .avi): " ; read FILENAME1
echo ; echo
echo -n "Enter a bitrate: " ; read BITRATE1
echo ; echo
echo -n "Enter the crop numbers (seperated by a : i.e ?:?:?:? " ; read CROP1
echo ; echo
echo ; echo
echo ; echo
echo " Enter the details for track number 2"
echo ; echo
echo -n "Enter the DVD track number: "; read DVDTRACK2
echo ; echo
echo -n "Enter a filename (no .avi): " ; read FILENAME2
echo ; echo
echo -n "Enter a bitrate: " ; read BITRATE2
echo ; echo
echo -n "Enter the crop numbers (seperated by a : i.e ?:?:?:? " ; read CROP2
echo ; echo

mencoder -dvd $DVDTRACK1 -dvd-device /dev/scd0 -aid 128 -oac mp3lame -lameopts br=96 -ovc frameno -o frameno.avi

mencoder -dvd $DVDTRACK1 \
-dvd-device /dev/scd0 \
-sws 2 \
-oac copy \
-ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=$BITRATE1:vpass=1 \
-forceidx \
-vop crop=$CROP1 \
-o $FILENAME1.avi

mencoder -dvd $DVDTRACK1 \
-dvd-device /dev/scd0 \
-sws 2 \
-oac copy \
-ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=$BITRATE1:vpass=2 \
-forceidx \
-vop crop=$CROP1 \
-o $FILENAME1.avi

rm -f /mnt/windows/divx2/frameno.avi
rm -f lavc_stats.txt
echo ; echo
echo ; echo
mencoder -dvd $DVDTRACK2 -dvd-device /dev/scd0 -aid 128 -oac mp3lame -lameopts br=96 -ovc frameno -o frameno.avi

mencoder -dvd $DVDTRACK2 \
-dvd-device /dev/scd0 \
-sws 2 \
-oac copy \
-ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=$BITRATE2:vpass=1 \
-forceidx \
-vop crop=$CROP2 \
-o $FILENAME2.avi

mencoder -dvd $DVDTRACK2 \
-dvd-device /dev/scd0 \
-sws 2 \
-oac copy \
-ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=$BITRATE2:vpass=2 \
-forceidx \
-vop crop=$CROP2 \
-o $FILENAME2.avi

mkisofs -r -J -v -o film.iso /mnt/windows/divx2/$FILENAME1.avi /mnt/windows/divx2/$FILENAME2.avi

cdrecord -v speed=4 dev=0,1,0 -pad -data -ignsize film.iso
echo ; echo
echo ; echo
echo " C O M P L E T E D , ENJOY THE FILM !!"

rm -f frameno.avi

exit 0


After that mplayer would not complete a rip without locking the whole machine.

So I though I would upgrade to man9.0 and this I did, but I still have the same problem in man9.0 and I have tried many different versions of mplayer install
, I currently have V0.90pre9 on. I installed it ok using ./configure --enable-gui
make , make install.

mplayer plays dvd ets ok. but the problem is that when you type the command to rip the dvd as follows

mencoder -dvd 1 -dvd-device /dev/scd0 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=850 -oac mp3lame -lameopts br=96:cbr -alang en -idx -o film.avi

it runs quite happily for a while and then just stops at different times, i.e from 1% up to 28%.

when i say stops i mean there is no error message , the rip just stops and the keyboard and mouse are also locked, so you have to do a re-boot.

it would also appear no "core" file is created to help you.

Do you think this could be a memory/cpu problem or is there an error with my mplayer install ?

my cpu is an Athlon XP 1800+ , my ram is 512ddr

I am going to run the following teste now to see what happens

memtest86 , mprime , cpuburn

Can anybody help , please !!



joshandcar
Don't know:but maybe a bug?
DVD ripping eats up your CPU
Even though you have a very good machine a good idea may be to run few processes while trying for DVD
rip.
 
Old 05-08-2003, 07:03 AM   #3
joshandcar
LQ Newbie
 
Registered: May 2003
Posts: 7

Original Poster
Rep: Reputation: 0
do you mean try running extra apps while ripping, if so
I have tried running other apps while ripping a cd
and the system does lock up , but not straight away.

or do you mean shut down apps while ripping ?

I always reboot the computer before attempting a dvd rip
so all that is running is the start up files for mandrake 9.0
are you thinking that i should remove some boot up items that are
cached.

also

i am having problems running the tests I listed

does anybody know how to test memory/cpu etc

as i would like to test mine as this problem only occured recently,
i have been ripping dvd's for a while before that ?.

joshandcar

Last edited by joshandcar; 05-08-2003 at 07:14 AM.
 
Old 05-08-2003, 08:56 AM   #4
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Quote:
Originally posted by joshandcar
do you mean try running extra apps while ripping, if so
I have tried running other apps while ripping a cd
and the system does lock up , but not straight away.

or do you mean shut down apps while ripping ?

I always reboot the computer before attempting a dvd rip
so all that is running is the start up files for mandrake 9.0
are you thinking that i should remove some boot up items that are
cached.

also

i am having problems running the tests I listed

does anybody know how to test memory/cpu etc

as i would like to test mine as this problem only occured recently,
i have been ripping dvd's for a while before that ?.

joshandcar
of course i mean that you run less apps
do a ps -aux|less
and kill any processes that is not required
or try top
there are many memory test apps
and if your bios is good enough it will point out the memory errors
a good test is the linux os itself
you get a damaged mem /floppy/cdrom etc in windows (but they do not function properly) but they will not run in linux
 
Old 05-08-2003, 10:31 AM   #5
joshandcar
LQ Newbie
 
Registered: May 2003
Posts: 7

Original Poster
Rep: Reputation: 0
thank you

I will try that and let you know how I get on

joshandcar
 
Old 05-13-2003, 01:41 AM   #6
joshandcar
LQ Newbie
 
Registered: May 2003
Posts: 7

Original Poster
Rep: Reputation: 0
I have now got it working

I removed unwanted apps , and installed mplayer-20020919.tar.gz

which seems to work best with man9.0

and one last thing I am now using a 2 pass method , my old commands I used in man82 just don't work anymore. if it helps anybody here is the 2 pass script (I am ripping 6 episodes from a dvd , so you will have to delete
what you don't want)

also at the end I am making an iso file of 2 episodes at a time to record to cd

#!/bin/bash

rm -f lavc_stats.txt
rm -f frameno.avi
rm -f divx2pass.log

#cd /Desktop/divx

clear

echo " D I V X RIPPING TOOL"
echo ; echo
echo " Written by Spike (credits also to ralph)"
echo ; echo
echo " 2 pass rip (no bitrate)"
echo " To rip 6 tracks"
echo ; echo
echo ; echo
echo " Enter the details for track number 1"
echo ; echo
echo -n "Enter the DVD track number: "; read DVDTRACK1
echo ; echo
echo -n "Enter a filename (no .avi): " ; read FILENAME1
echo ; echo
echo ; echo
echo ; echo
echo ; echo
echo " Enter the details for track number 2"
echo ; echo
echo -n "Enter the DVD track number: "; read DVDTRACK2
echo ; echo
echo -n "Enter a filename (no .avi): " ; read FILENAME2
echo ; echo
echo ; echo
echo ; echo
echo ; echo
echo " Enter the details for track number 3"
echo ; echo
echo -n "Enter the DVD track number: "; read DVDTRACK3
echo ; echo
echo -n "Enter a filename (no .avi): " ; read FILENAME3
echo ; echo
echo ; echo
echo ; echo
echo ; echo
echo " Enter the details for track number 4"
echo ; echo
echo -n "Enter the DVD track number: "; read DVDTRACK4
echo ; echo
echo -n "Enter a filename (no .avi): " ; read FILENAME4
echo ; echo
echo ; echo
echo ; echo
echo " Enter the details for track number 5"
echo ; echo
echo -n "Enter the DVD track number: "; read DVDTRACK5
echo ; echo
echo -n "Enter a filename (no .avi): " ; read FILENAME5
echo ; echo
echo ; echo
echo ; echo
echo " Enter the details for track number 6"
echo ; echo
echo -n "Enter the DVD track number: "; read DVDTRACK6
echo ; echo
echo -n "Enter a filename (no .avi): " ; read FILENAME6
echo ; echo
echo ; echo
echo ; echo

#file1
mencoder -dvd $DVDTRACK1 -dvd-device /dev/scd0 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -alang en -idx -o $FILENAME1.avi

mencoder -dvd $DVDTRACK1 -dvd-device /dev/scd0 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -alang en -idx -o $FILENAME1.avi
rm -f divx2pass.log

#file2
mencoder -dvd $DVDTRACK2 -dvd-device /dev/scd0 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -alang en -forceidx -o $FILENAME2.avi

mencoder -dvd $DVDTRACK2 -dvd-device /dev/scd0 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -alang en -forceidx -o $FILENAME2.avi
rm -f divx2pass.log

#file3
mencoder -dvd $DVDTRACK3 -dvd-device /dev/scd0 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -alang en -forceidx -o $FILENAME3.avi

mencoder -dvd $DVDTRACK3 -dvd-device /dev/scd0 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -alang en -forceidx -o $FILENAME3.avi
rm -f divx2pass.log

#file4
mencoder -dvd $DVDTRACK4 -dvd-device /dev/scd0 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -alang en -forceidx -o $FILENAME4.avi

mencoder -dvd $DVDTRACK4 -dvd-device /dev/scd0 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -alang en -forceidx -o $FILENAME4.avi
rm -f divx2pass.log

#file5
mencoder -dvd $DVDTRACK5 -dvd-device /dev/scd0 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -alang en -forceidx -o $FILENAME5.avi

mencoder -dvd $DVDTRACK5 -dvd-device /dev/scd0 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -alang en -forceidx -o $FILENAME5.avi
#rm -f divx2pass.log

#file6
mencoder -dvd $DVDTRACK6 -dvd-device /dev/scd0 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -alang en -forceidx -o $FILENAME6.avi

mencoder -dvd $DVDTRACK6 -dvd-device /dev/scd0 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -alang en -forceidx -o $FILENAME6.avi
rm -f divx2pass.log

mkisofs -r -J -v -o film.iso $FILENAME1.avi $FILENAME2.avi
mkisofs -r -J -v -o film2.iso $FILENAME3.avi $FILENAME4.avi
mkisofs -r -J -v -o film3.iso $FILENAME5.avi $FILENAME6.avi

Thanks for all the help

joshandcar
 
Old 05-13-2003, 01:59 AM   #7
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Quote:
I have now got it working
That's good news!
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
system locking up ??? michael_util Linux - General 4 09-15-2004 10:28 AM
cdemu locking system snorkis Linux - Software 0 07-16-2004 06:06 AM
System locking up Drogo Linux - Hardware 1 08-25-2003 07:26 PM
Mplayer V 0.90 locking up the system joshandcar Linux - General 2 05-04-2003 04:33 PM
How do I troubleshoot my system locking up? eboladog Linux - Newbie 7 02-07-2001 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:42 AM.

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