Command line DVD interaction... [Please disregard this thread]
Please disregard this thread. I thought my problem had something to do with a program, but the problem seems to be limited to my scripting ability.
My solution was to remove the `back ticks` from the command. Somewhere along my process I added them in when they weren't necessary and it broke my script.
That's 2 points for stupidity in 2 weeks.... Maybe I'll get a break someday.
For any who are interested, my completed script can be found at this site: http://script.jmap82.com
----------------Original Post Below-----------------
Question: What program will provide title and duration information from a DVD in a way that can be captured when run inside a script.
I know there are a number of programs out there that do various things with Video DVDs. I tend to like HandBrakeCLI for ripping DVDs into the MP4 file format. I've written several scripts to help automate the some of my tasks.
I'm now in the process of writing a script that will rip episodes off of DVDs from TV shows. Its easy enough to write a script that will rip specific titles, but now I want to have a script to rip all titles over, say, 20 minutes. I have most of the difficult programming figured out, what is holding me up is finding away to get a list of titles and durations from the DVD and piping it or saving it to a file to be processed.
HandBrakeCLI has an option to print title information, which I have been using up until now. I can capture HandBrake's output with this command during a regular terminal session:
However, this command does not work when run inside a script. I assume that it has something to do with way HandBrakeCLI puts out the information, but I really don't know enough about how computers work to know for sure.
$ `/home/jmap82/HandBrakeCLI -i /media/cdrom0/VIDEO_TS/ -t 0 2>&1`| tee titles.txt
The Question and purpose of this thread is:
Does anyone know of any other programs that can help me get title and duration information from a DVD in a way that can be capture when run inside of a script?
Last edited by jmap82; April 11th, 2009 at 11:21 AM.
Reason: Wanted to delete, but couldn't.... Added link to final script.
Dell Optiplex 755, Proc: Intel® Core™2 Duo CPU E8400 @ 3.00GHz × 2, RAM: 2.0 GB, VC: MSi N440GT, Stor: 80GB(sda1-ntfs 65GB, sda2-ext4 13GB, sda3-swap 2GB)