Ok so you've got everything installed on your system and you should now be ready to run the script.
copy makedvd.sh into /usr/bin/ and
chmod 755 /usr/bin/makedvd.sh
not too difficult I hope now all you need to do is select a movie and find a blank dvd. Create a folder if it hasnt one already, and cd to that folder.
If you have a subtitle file you'd like to include with the movie enter its filename together with its directory as the 2nd argument to makedvd.sh
For example:
makedvd.sh nameofyourmovie.avi subs/english.srt
If not dont bother just use:
makedvd.sh nameofyourmovie.avi
Now you should see everything start to happen. First the script creates a copy of your film in mpg format. This takes a while so be prepared to wait. In the meantime you can check its progress by opening the file browser and there you will see another movie in mpg format steadily growing in size.
But wait something else is there too its a dvd.xml file and this is very important for the next stage.
Dont worry the script does all this automatically you don't need to do a thing yet.
The dvd.xml file divides the film into chapters on a dvd.
Once it has finished creating the new mpg movie file makedvd.sh then starts creating a copy of the dvd to be burnt under the directory dvd this should take a while too. Now unfortunately I didnt mention the fact that makedvd.sh is not aware of the size of the dvd disc you have in the drive, so if it isnt big enough it will ask you if you wish to burn another say 'YES' if you have the correct size of dvd for the movie otherwise quit.
Normally most movies will burn to a 4gig dvd easily, so you shouldnt need to worry.
You can run this script simultaneously for each film you download and press yes to burn each to dvd. This is handy if you have limited disc space and you want to delete the files after burning BUT be sure
to check the dvd works first before deleting your files. Use mplayer for this :-
mplayer dvd://
Once makedvd.sh finishes writing the disc it automatically erases the files it created leaving you back at the start so if there is any problem with the burn wait to test the dvd first before saying no to burn another? the reason being you could save yourself the time of remaking the files it just made.
If for some reason it will not burn no matter how many times you say yes burn another say no to delete files and/or ctrl +d to quit from the program then do the following:-
mplayer dvd:// -dvd-device dvd (to check the dvd copy is correct)
then check the size of the dvd isnt too much for the disc you are burning to using du dvd,
and finally rerun the script if it still don't work ask a friend..
makedvd.sh
linux script to help anyone burn dvd's from movies they have saved in any format on their computer previously downloaded or copied. You can even use this to burn dvd's of your home movies.
Tuesday, 11 January 2011
RE:makedvd.sh
This is just a simple blog to get you started writing your own dvd's from movies downloaded from the web, be that through torrents or from pay4 sites.
Now a word of warning before we get started this script works only on linux and there are some prerequisites in order that it can work.
prequisites/requirements:-
hardware: atleast a dvd-burner is attached to your system
software: you need to be running some flavour of linux (not windows) with the following installed
(first off make sure you can play dvd's on your computer using linux if not install libdvdread and libdvdcss both of these are needed to play dvd's)
you need mplayer preferably with codecs you can find out how to install these on the web
but so long as you can playback a dvd you should be fine.
ok with me so far?
mencoder comes with mplayer but just check its there or you might need to do some more downloading.
what you need next is dvdauthor you can yum install this or apt-get it.
and the last thing is growisofs you need this to do the actual burning again install automatically with either yum or apt-get.
Once you have all these your all set to go, and you can download my script.
Now a word of warning before we get started this script works only on linux and there are some prerequisites in order that it can work.
prequisites/requirements:-
hardware: atleast a dvd-burner is attached to your system
software: you need to be running some flavour of linux (not windows) with the following installed
(first off make sure you can play dvd's on your computer using linux if not install libdvdread and libdvdcss both of these are needed to play dvd's)
you need mplayer preferably with codecs you can find out how to install these on the web
but so long as you can playback a dvd you should be fine.
ok with me so far?
mencoder comes with mplayer but just check its there or you might need to do some more downloading.
what you need next is dvdauthor you can yum install this or apt-get it.
and the last thing is growisofs you need this to do the actual burning again install automatically with either yum or apt-get.
Once you have all these your all set to go, and you can download my script.
Subscribe to:
Comments (Atom)