SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2010-12-07 17:22:05

slipshot
#! CrunchBanger
Registered: 2009-05-13
Posts: 171

Make DVD Thunar custom action.

Tovid is a little known dvd authoring suite that has a gui (that i
never use) but it also has a very nice cli back end.
Using this backend you can make thunar have a custom action
to make dvd's in just a few clicks.

Make DVD thunar custom actoin
# What you need
Thunar, Tovid, Terminator, xfburn, dvdauthor, mkisofs, a script to
make the dvd image and a small zenity script to start xfburn to
burn the dvd.

Install Tovid via instructions on there wiki.
URL-- http://tovid.wikia.com/wiki/Tovid_Wiki

After installing tovid use this command in thunar

terminator -e"tovid mpg -in movie.* -out ~/Desktop/Movie && cd ~/Desktop && tovid xml Movie.mpg -out ~/Desktop/1 && mkiso Movie.mpg && rm -rf 1.xml && rm -rf Movie.mpg && rm -rf dvd/" && ~/.scripts/dvdimg

# Making zenity script

Create a text file called "dvdimg" and open it with your text editor.
Copy and paste this in there.

#!/bin/bash

zenity --question --ok-label=Burn --cancel-label=Cancel '--text=Burn Image?'

if [[ $? == 0 ]] ; then
   xfburn -i
 else
   exit0
fi

Save the text and close the text editor. Make the text file executable
Now create a folder called ".scripts" and put the dvdimg text file
in that folder.

# Making mkiso script

Make a text file and open with text editor, copy and paste this in there

#!/bin/bash
#Make iso from MPG's
dvdauthor -o dvd -t $1 &&
dvdauthor -o dvd -T &&
mkisofs -dvd-video -o dvd.iso dvd/ &&
exit 

Save the text and make it executable and move it to /usr/bin

I also make another custom action so i can set the default options
for tovid on the dvd's i want to burn, (aspect ratio, quality, etc...)
To edit default options find a section in the tovid.ini file that looks
like this. These are my default options and the only things i ever really
change is -aspect and -quality. For anyone not in the US may have to
change -ntsc to -pal but other than that they should be set.

[mpg]
options = -ffmpeg -noask -ntsc -dvd -aspect 16:9 -quality 7
;    -aspect 16:9
;    -dvd
;    -ntsc
;    -quality 8
;    -ffmpeg
;    -overwrite
;    -noask

Edit Make DVD Config, custom action

<text editor> ~/.tovid/tovid.ini

Now all you got to do is change the name of the movie you want to burn to "movie.avi,
movie.mp4, just movie. extension" and execute the dvd custom action
and presto dvd! This will not make any kinda menu on the dvd, so when
you pop the dvd in the player the movie will just start.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo