Say you have an archive of DVD-Video ISOs that you want to transcode, but you don't want to extract each ISO manually and combine the VOBs to use as an input file for your transcoder.
With Linux loopback interfaces and the cat command, it's possible to transcode straight from ISOs without any intermediary files.
Here's an example bash script:
If executed in a directory that contains a bunch of ISOs, this script will:Code:#/bin/bash bitrate=$1 for i in *.iso do basename=$(basename $i .iso) mount -o loop,ro -t iso9660 $i /mnt/loop0 cat /mnt/loop0/VIDEO_TS/VTS_01_?.VOB | ffmpeg -i pipe: -target ntsc-dvd -s 720x480 -b $bitrate -pass 1 -aspect 16:9 -r 29.97 -vf yadif -y -mbd rd -trellis 2 -cmp 2 -subcmp 2 -an -threads 4 -f rawvideo -y /dev/null cat /mnt/loop0/VIDEO_TS/VTS_01_?.VOB | ffmpeg -i pipe: -target ntsc-dvd -s 720x480 -b $bitrate -pass 2 -passlogfile ffmpeg2pass -aspect 16:9 -r 29.97 -vf yadif -y -mbd rd -trellis 2 -cmp 2 -subcmp 2 -acodec copy -threads 4 $basename.mpg; umount /mnt/loop0 rm -f ffmpeg2pass-0.log done
Usage:
- Mount the ISO on /mnt/loop0
- On-the-fly, combine all VOBs and pipe them to ffmpeg for a 2-pass encode
- Use the ISO's filename as the name for the output file
- Use the first argument as the target bitrate
Code:sh isobatch.sh <target video bitrate> e.g.: sh isobatch.sh 3087k
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 3 of 3
Thread
-
-
In the above example I'm using a 2-pass, DVD-compliant MPEG2 invocation. It's a good starting point for any MPEG2 encode.
Similar Threads
-
bash scripts for extracting and removing subtitles from mkv files
By alidaf in forum SubtitleReplies: 0Last Post: 6th Aug 2010, 04:21 -
To many .ISOs to deal with
By jclarkyyy in forum DVD RippingReplies: 12Last Post: 20th Jan 2010, 23:56 -
Cat 1 or Cat 2 HDMI Cables?
By Hal05154 in forum DVD & Blu-ray PlayersReplies: 2Last Post: 10th Jan 2010, 21:25 -
Archiving-files vs isos
By Dr.Gee in forum Newbie / General discussionsReplies: 3Last Post: 18th Apr 2009, 15:19 -
ISOs & Vista
By ahhaa in forum ComputerReplies: 3Last Post: 12th May 2008, 10:20