Showing posts with label Uncatergorised. Show all posts
Showing posts with label Uncatergorised. Show all posts

27 Mar 2009

Tutorial on Converting and Burning an AVI File onto DVD


This is going to be a quick tutorial on how to convert an avi movie so that it can be burned onto a DVD, all done via the terminal in Linux. For Extra credit I will also show you how you can to this on a remote computer.





For this you will need the following tools:



Optional: Setting up a remote connection

On my setup at home my Desktop PC has the tools and the avi on them, but my laptop is over by the comfy sofa. So what I do is ssh in to my PC from my laptop on the sofa. I also use a program called Screen.
This is an example of what I do.
screen ssh <ip of desktop of pc>

Convert the AVI into MPEG

As DVD films are more or less in the mpeg format and the film we want to burn is an avi. We need to convert it into a mpeg.
First we use the screen program this allows us to set a program running and then close the terminal window and the program continues to run.
screen

Now we need to use Tovid. This will convert the avi into the desired mpeg format. On my system a two hour film takes just over two hours to convert.
tovid -dvd -pal -in movie.avi -out movie
Don't forget this is going to take a long time.  I shall now explain the switches used.

The dvd switch basicly converts the avi into dvd screen resolution. The pal switch converts the avi in to the PAL format. Tovid defaults to NTSC. The in switch is the path to the avi, and the out switch is the prefix of the mpeg file we wish to create.

When this is done we will have a shiney new file called movie.mpg which we can convert into the DVD format.

Convert the mpeg into DVD file format

OK the last step took about two hours, but don't worry the next couple of steps are going to take 10 minutes tops.

Before we burn the mpeg file on to the DVD we need to create a DVD filesystem. We do this;
dvdauthor -t -v pal movie.mpg  -o movie/

The t switch gives the DVD a title. All DVD files need a tile so we give it a blank one. The v pal switch is just to make sure it remains in the PAL format. Then we have the name of the mpg file, finally the o switch is the path to the DVD filesytem.

Once we have done this we just run;
dvdauthor -T -o movie/

This just gives the the DVD a table of contents, which as far as I'm aware is just needed so we can burn the DVD.

Lets burn this baby to disc

Now we have the DVD filesytem on our PC we need to get it on to a coaster.
growisofs -dvd-video -Z /dev/dvd movie/
/dev/dvd is the path to your DVD writer and movie/ is the path to your movie DVD filesytem we created in the previous step.

In Summary

Well thats it we managed to burn an avi file onto a dvd just using the terminal, and we didn't even need to use a GUI. This process usually takes about 2.5 hours, so using screen comes in handy as we can just let it run in the background.

Now lets have all the commands we used in one place.
screen
tovid -dvd -pal -in movie.avi -out movie
dvdauthor -t -v pal movie.mpg  -o movie/
dvdauthor -T -o movie/
growisofs -dvd-video -Z /dev/dvd movie/

picture credit john_a_ward

11 Jul 2008

Creative Commons and Flickr

Owl at Southend Airshow 2008 I have just opened an account at Flickr so I can upload some photos to it. One of the reasons I choose Flickr, is that you have the option of registering your images photos under a Creative Commons License(CC), instead of them being copyrighted by default.

Copyright v Creative Commons

Traditionally people have wanted to protect their ideas and artworks, this enables them to retain control of who does what with their property. Copyright works in this area, and is the norm in commercial circles. Nowadays people are writing blogs and uploading their photos to various social media websites. CC allows people to use other peoples media on their blogs, whilst still giving the owner of the media some rights on how their media is used.

Creative Commons Licenses

The thing with CC is it allows you to set various levels of restrictions on your work. Below is a brief summary of each license copy & pasted from http://creativecommons.org/about/license/.

Attribution (by)

This license lets others distribute, remix, tweak, and build upon your work, even commercially, as long as they credit you for the original creation. This is the most accommodating of licenses offered, in terms of what others can do with your works licensed under Attribution.

Attribution Share Alike (by-sa)
This license lets others remix, tweak, and build upon your work even for commercial reasons, as long as they credit you and license their new creations under the identical terms. This license is often compared to open source software licenses. All new works based on yours will carry the same license, so any derivatives will also allow commercial use.

Attribution No Derivatives (by-nd)
This license allows for redistribution, commercial and non-commercial, as long as it is passed along unchanged and in whole, with credit to you.

Attribution Non-commercial (by-nc)
This license lets others remix, tweak, and build upon your work non-commercially, and although their new works must also acknowledge you and be non-commercial, they don’t have to license their derivative works on the same terms.

Attribution Non-commercial Share Alike (by-nc-sa)
This license lets others remix, tweak, and build upon your work non-commercially, as long as they credit you and license their new creations under the identical terms. Others can download and redistribute your work just like the by-nc-nd license, but they can also translate, make remixes, and produce new stories based on your work. All new work based on yours will carry the same license, so any derivatives will also be non-commercial in nature.

Attribution Non-commercial No Derivatives (by-nc-nd)
This license is the most restrictive of our six main licenses, allowing redistribution. This license is often called the “free advertising” license because it allows others to download your works and share them with others as long as they mention you and link back to you, but they can’t change them in any way or use them commercially.

In summary I believe that if more people are aware of CC both media owners and media users, then this will have a positive effect as blog writers will use more good quality media in their blogs.