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
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
10-22-2014, 10:08 AM
#1
Senior Member
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076
how do I copy a DVD image to run transcoder on it later
how do I copy a DVD image to run transcoder on it later ?
will dd do it if so what would the command line be ?
what would the command line be for running transcoder to convert the mpeg2
to mpeg4 ?
will I have to mount the image on a loop device to run transcoder on it ?
10-22-2014, 10:41 AM
#2
Senior Member
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,673
Dunno if this'll help...
You could rip it to MP4 using
Handbrake then use
Transmagedon to change the format later if needed.
I've no experience of transcoder I'm afraid.
Play Bonny!
10-22-2014, 10:49 AM
#3
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313
this is what i do:
Code:
schneidz@xbmc:~$ cat bin/dvdrescue.ksh
#!/bin/bash
dvd=`lsdvd $1 | head -n 1 | awk '{print tolower($3)}' | sed s/_/-/g`
lsdvd /dev/sr0 && ddrescue --no-split --verbose --block-size=2048 /dev/sr0 $dvd.iso
schneidz@xbmc:~$ cat bin/xvidenc-ac3-mkv.ksh
#!/bin/bash
# saved output from xvidenc/h264enc
################### START OF COMMANDS ###################
dvd=`lsdvd $1 | grep "Disc Title:" | awk '{print tolower($3)}' | sed s/_/-/g`
#mkdir /home/xbmc/win/stuff/clips/$dvd
titles=`lsdvd $1 | grep ^Title: | cut -b 8-9 | tail -n 1`
i=1
if [ -n "$2" ]
then
i=$2
titles=$2
fi
while [ $i -le $titles ]
do
/usr/bin/mencoder "dvd://$i" -nosub -dvd-device $1 -o /dev/null -vf pp=al:c,softskip,unsharp=l5x5:.25:c5x5:.25,harddup -aid 128 -channels 6 -oac lavc -lavcopts acodec=ac3:abitrate=192 -a52drc 1 -ovc xvid -xvidencopts pass=1:turbo:me_quality=6:vhq=4:threads=2:max_bframes=2:bvhq=1:nopacked:quant_type=h263:noqpel:nogmc:trellis:nointerlacing:chroma_me:chroma_opt:hq_ac:nolumi_mask:rc_reaction_delay_factor=0:rc_averaging_period=100:closed_gop:autoaspect -passlogfile "$dvd-`zero-pad-2.x $i`.log"
/usr/bin/mencoder "dvd://$i" -nosub -dvd-device $1 -o "$dvd-`zero-pad-2.x $i`".avi -ffourcc XVID -vf pp=al:c,softskip,unsharp=l5x5:.25:c5x5:.25,harddup -aid 128 -channels 6 -oac lavc -lavcopts acodec=ac3:abitrate=192 -a52drc 1 -ovc xvid -xvidencopts pass=2:bitrate=1000:me_quality=6:vhq=4:threads=2:max_bframes=2:bvhq=1:nopacked:quant_type=h263:noqpel:nogmc:trellis:nointerlacing:chroma_me:chroma_opt:hq_ac:nolumi_mask:rc_reaction_delay_factor=0:rc_averaging_period=100:closed_gop:autoaspect -passlogfile "$dvd-`zero-pad-2.x $i`.log"
sleep 2
/usr/bin/mkvmerge --title "$dvd-$title-ac3" --track-name 0:"$dvd-$title-ac3" --language 1:en --track-name 1:"AC3 5.1" "$dvd-`zero-pad-2.x $i`.avi" -o "$dvd-`zero-pad-2.x $i`.mkv"
sleep 2
rm "$dvd-`zero-pad-2.x $i`.avi" "$dvd-`zero-pad-2.x $i`.log"
i=`expr $i + 1`
done
#################### END OF COMMANDS ####################
Last edited by schneidz; 10-22-2014 at 10:55 AM .
1 members found this post helpful.
10-22-2014, 11:47 AM
#4
Senior Member
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076
Original Poster
Quote:
Originally Posted by
schneidz
this is what i do:
Code:
schneidz@xbmc:~$ cat bin/dvdrescue.ksh
#!/bin/bash
dvd=`lsdvd $1 | head -n 1 | awk '{print tolower($3)}' | sed s/_/-/g`
lsdvd /dev/sr0 && ddrescue --no-split --verbose --block-size=2048 /dev/sr0 $dvd.iso
schneidz@xbmc:~$ cat bin/xvidenc-ac3-mkv.ksh
#!/bin/bash
# saved output from xvidenc/h264enc
################### START OF COMMANDS ###################
dvd=`lsdvd $1 | grep "Disc Title:" | awk '{print tolower($3)}' | sed s/_/-/g`
#mkdir /home/xbmc/win/stuff/clips/$dvd
titles=`lsdvd $1 | grep ^Title: | cut -b 8-9 | tail -n 1`
i=1
if [ -n "$2" ]
then
i=$2
titles=$2
fi
while [ $i -le $titles ]
do
/usr/bin/mencoder "dvd://$i" -nosub -dvd-device $1 -o /dev/null -vf pp=al:c,softskip,unsharp=l5x5:.25:c5x5:.25,harddup -aid 128 -channels 6 -oac lavc -lavcopts acodec=ac3:abitrate=192 -a52drc 1 -ovc xvid -xvidencopts pass=1:turbo:me_quality=6:vhq=4:threads=2:max_bframes=2:bvhq=1:nopacked:quant_type=h263:noqpel:nogmc:trellis:nointerlacing:chroma_me:chroma_opt:hq_ac:nolumi_mask:rc_reaction_delay_factor=0:rc_averaging_period=100:closed_gop:autoaspect -passlogfile "$dvd-`zero-pad-2.x $i`.log"
/usr/bin/mencoder "dvd://$i" -nosub -dvd-device $1 -o "$dvd-`zero-pad-2.x $i`".avi -ffourcc XVID -vf pp=al:c,softskip,unsharp=l5x5:.25:c5x5:.25,harddup -aid 128 -channels 6 -oac lavc -lavcopts acodec=ac3:abitrate=192 -a52drc 1 -ovc xvid -xvidencopts pass=2:bitrate=1000:me_quality=6:vhq=4:threads=2:max_bframes=2:bvhq=1:nopacked:quant_type=h263:noqpel:nogmc:trellis:nointerlacing:chroma_me:chroma_opt:hq_ac:nolumi_mask:rc_reaction_delay_factor=0:rc_averaging_period=100:closed_gop:autoaspect -passlogfile "$dvd-`zero-pad-2.x $i`.log"
sleep 2
/usr/bin/mkvmerge --title "$dvd-$title-ac3" --track-name 0:"$dvd-$title-ac3" --language 1:en --track-name 1:"AC3 5.1" "$dvd-`zero-pad-2.x $i`.avi" -o "$dvd-`zero-pad-2.x $i`.mkv"
sleep 2
rm "$dvd-`zero-pad-2.x $i`.avi" "$dvd-`zero-pad-2.x $i`.log"
i=`expr $i + 1`
done
#################### END OF COMMANDS ####################
ok I copyed the scripts
the problem I have with them is what is the command lsdvd I don't have that command on slackware
edit found lsdvd installing it now
what do I feed them for $1
Last edited by rob.rice; 10-22-2014 at 11:52 AM .
10-22-2014, 11:52 AM
#5
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313
install lsdvd (and any other dependencies). i dont use slackware but on fedora it would be
yum install lsdvd .
the first parameter is the name of the dvd file.
Code:
#!/bin/bash
dev=/dev/sr0
dvd=`lsdvd $dev | head -n 1 | awk '{print tolower($3)}' | sed s/_/-/g`
lsdvd /dev/sr0 && ddrescue --no-split --verbose --block-size=2048 /dev/sr0 $dvd.iso
this update mite work better for you (on my pc it is
/dev/sr0 ) but it is hard coded and wont work on iso backups no more.
this was just a quick-and-dirty script i made. sorry for bugs.
10-22-2014, 11:56 AM
#6
Senior Member
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982
I would use vobcopy to copy the VOBs off the DVD, then I would use ffmpeg to re-encode them.
Make sure to check the laws in your area for bypassing CSS encryption.
10-23-2014, 04:40 PM
#7
Moderator
Registered: Mar 2008
Posts: 21,997
I think I ran a windows app that could rip to iso image under wine. Worked pretty well too. Slightly but not greatly slower than native rip in linux.
All times are GMT -5. The time now is 11:32 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News