Hi All,
Scripting after some time now... I've recently started watching videos on my iPhone and have come to the realization that theres no really easy way (I mean mostly automatic) of ripping files. I tried Artista Transcoder and Handbrake. They're both good programs but I've got more experience with handbrake so i wrote a little right-click script for nautilus which rips videos into whatever format you want based on the presets.
to install handbrake from the ppa: (only works for 9.10 & 10.04 check the ppa for a how to on installing in earlier versions)
Code:
sudo add-apt-repository ppa:handbrake-ubuntu/ppa && sudo apt-get update && sudo apt-get install handbrake-cli
Copy the following code into a file and place it into ~/.gnome2/nautilus-scripts folder
Code:
#!/bin/bash
# Right-click video ripper for HandBrakeCLI
# Owner:
# Anand Kapre
# ak@anandkapre.com
# Licence: GNU GPL
# Copyright (C) Anand Kapre
# Dependency:
# HandBrakeCLI
# Created on Tuesday May 4th 2010
# Tested on Ubuntu 9.04 Jaunty Jackalope, 10.04 Lucid Lynx
# Uncomment the preset of your choice below
#ripto="Universal"
#ripto="iPod"
#ripto="AppleTV"
#ripto="Normal"
#ripto="High Profile"
#ripto="Classic"
#ripto="AppleTV Legacy"
#ripto="iPhone Legacy"
#ripto="iPod Legacy"
ripto="iPhone & iPod Touch"
folder=$(pwd)
for arg in "$@"
do
pid=$(pidof HandBrakeCLI)
if [ $pid -gt 0 ] ;
then
sleep 5
else
gnome-terminal --geometry=75x10 -x HandBrakeCLI --preset "$ripto" -i $folder/"$arg" -o $folder/"$arg".mp4 && sleep 5
fi
done
hope this helps someone...enjoy
Bookmarks