QUICK GUIDE XVID LINUX

 

  This is going to be a small guide to codify with xvid under linux using like encoder transcode .
Transcode can be used to codify in diverse formats but we will be centered in códec xvid .

This codec has a great quality and it distributes itself with license GNU.

At the moment he does not have support to bframes of official way but if of a capacity of quite high compression and an extraordinary quality that has been contrasted with time.

  The version of transcode which we will use for this guide will be the 0.9.10 that can be found in the Web. This version distinguishes between diverse api of encoder that is to say: 2.1, 3 and 4.
We will so far use the official the actual version is the 0.9.2 with api 2.1.  
In this fast guide we will use the command line (That is clear).

  Let us see an example:

 

[ root@trantor win ] # transcode - i Film/- T 1, -1, 1 - V - w 5400 - to 1 - To - N 0x2000 - xs dvd - and xvid - or/usr/local/Film.avi

 

  In this example we see how to convert a film that is in the hard disk in DVD to format xvid, conserving the audio channel of in format ac3 so as and multiplexing it at the same time that we codified the film. Let us analyze the command line:

 

  - the option -i  it establishes the input file that will be the source, in this case of video DVD, of which we are going to codify. What we have next the directory where it finds film.

  - the option -T 1, -1, 1 is interpreted of the following form: Title 1, all the chapters is chosen (-1), angle 1 to codify.

  - the option -V it establishes that the image in way YV12 is decompressed to codify (adds speed of codification).

  - the option -w 5400  establishes that we will codify to 5400 bitreats the film at issue (in the example ey).

  - the option -a 1  it establishes that we choose the audio channel of 1 (begins by 0.1.2...) to codify.

  - the option -A  it establishes that we will choose of codec internal ac3 .

  - the option -N 0x2000  it establishes that the format of exit of the audio one will be ac3.

  - the option -x dvd  it makes us choose like entrance way format DVD.

  - the option -y xvid  is the one that finally allows us to choose like exit format xvid.

  - the option -o Film  stable the exit file that we are going to use for our film.

 

  Regulating these options we can codify our films in this format conserving the audio format of original.

 

  Although the solution to overturn our film to the hard disk is not simple, I propose one that can be useful and effective. If we arrange in our installation of Wine , that is an emulator of Windows for UNIX we can use DVDDecrypter, I recommend version to you 2.4, since the Aspi Manager does not use and is very stable. Another form is using vobcopy or dvdbackup that is for Linux and which also they can serve for the intention.
I personally prefer first and is the one that I will use in the following example:

 

 

  It is an example that allows to see the possibility certain to use this so good desencriptador under our favorite operating system. Although what this guide tries is to teach of a brief form to codify under Linux with xvid, I am not a purist and believe that we can use the best applications, if it is possible, but I do without the load that supposes to use the operating systems (inoperativos) of Microsoft and who   they have been programmed for Windows. However, I must say, that following this philosophy encounter, that transcode is, if not the best one, one of the transcoders programs better than exists thanks to their power and versatility. In the following example:

 

[ root@trantor win ] # transcode - i Film/- T 1, -1, 1 - V - w 5400 - to 1 - To - N 0x2000 - J extsub=1:100 - x dvd - and xvid - or/usr/local/Film.avi

       

  In this example we added to the option -J extsub=1:100. With this option we can extract and stick the subtitles at the same time. First of the parameters indicated after the equal one it indicates the number of channel of subtitles and following the position in vertical taking like reference the inferior margin of the image and that is located in a centered position.

 

  Good until now we have seen like codifying but without indicating the resolution that we want for our film. Let us see an example:

 

[ root@trantor win ] # transcode - i Film/- T 1, -1, 1 - V - w 5400 - to 1 - To - N 0x2000 - B 5.0.32 - xs dvd - and xvid - or/usr/local/Film.avi

 

  In order to fix the resolution we must consider that takes like reference the original resolution from the video that in the case of format DVD PAL is of 720x576. Analicemos the option?-B 5,0,32?

 

  The first factor multiplies by the third factor and it is reduced to him to the lines.

  The second factor also multiplies by third and it is reduced as well to the columns. That is:

 

  576-(5x32), 720-(0x32) = 416.720     = >   720x416  rows, columns

 

  Another example:

  [ root@trantor win ] # transcode - i Film/- T 1, -1, 1 - V - w 5400 - to 1 - To - N 0x2000 - B 10.0.32 - xs dvd - and xvid - or/usr/local/Film.avi

  

  In this new example we see as this time the resolution is of 720x256 since if we applied it formulates it of above leaves the same one to us. The third factor must be multiple of 8, that is 8.16.32...

 

  In the following example we see like codifying a film to 512x384 that it is a resolution of classic screen:

 

[ root@trantor win ] # transcode - i Film/- T 1, -1, 1 - V - w 4000 - to 1 - To - N 0x2000 - B 24.26.8 - xs dvd - and xvid - or/usr/local/Film.avi

 

  In this occasion we used of multiplication factor the 8. If the indicated operations are made we will see that is to us the indicated resolution (in addition all the examples are verified).

 

Another example:

[ root@trantor win ] # transcode - i Film/- T 1, -1, 1 - V - w 4000 - to 1 - To - N 0x2000 - B 12.10.8 - xs dvd - and xvid - or/usr/local/Film.avi

 

  In this case the resolution is of 640x480.

 

  And if we wanted to increase the resolution? It would be possible. Yes!!. An example:

 

  [ root@trantor win ] # transcode - i Film/- T 1, -1, 1 - V - w 4000 - to 1 - To - N 0x2000 - X 24.38.8 - xs dvd - and xvid - or/usr/local/Film.avi

 

  This time we used the option -X 24,32,8? that we analyzed next:

 

  576+(24x8), 720+(38x8) = 768.1024     = >   1024x768  rows, columns

 

  And if we wanted that the resolution outside 800x600 we would do the following thing:

 

[ root@trantor win ] # transcode - i Film/- T 1, -1, 1 - V - w 4000 - to 1 - To - N 0x2000 - X 3.10.8 - xs dvd - and xvid - or/usr/local/Film.avi

 

  576+(3x8), 720+(10x8) = 600, 800     = >   800x600  rows, columns

 

  That he is complex and it requires a effort of I calculate, but I suggest you try a few resolutions and that you become groups. To say that all the combinations are not possible but I suggest to you you investigate and you choose those that more you like.

 

  Well now we will continue teaching like codifying handling mp3 like codec of audio.

  To say that transcode chooses by defect this codec of audio codifying. A new example:

 

  [ root@trantor win ] # transcode - i Film/- T 1, -1, 1 - V - w 3800 - to 1 - b 192   - and 44000 - X 3.10.8 - xs dvd - and xvid - or/usr/local/Film.avi

 

  We have suppressed to the options -A - N 0x2000  and we have added -b 192 - and 44000. This decides deals with the audio one in mp3. Remember that the channel of audio is the 1 in the example (they are quantified like 0.1.2...)

and that this is codified with bitrates 192 and to 44khz. Another example:

 

[ root@trantor win ] # transcode - i Film/- T 1, -1, 1 - V - w 3800 - to 1 - b 224 - X 3.10.8 - xs dvd - and xvid - or/usr/local/Film.avi

 

  We have chosen of bitrate 224 kbps, audio track 1.

  To say that the track of audio that it chooses by defect is the 0. Normally it is the track of audio in English, so I suggest first we analyze the film visionando it. Therefore in the example:

 

[ root@trantor win ] # transcode - i Film/- T 1, -1, 1 - V - w 3800 - to 0 - b 384 - X 3.10.8 - xs dvd - and xvid - or/usr/local/Alien_Resurrection.avi

 

 

  In this case we would be choosing channel 0 and bitrates 384. To say that it deals with by defect the audio one is of 128 kbps.

 

  I propose next suggestions:

 

  If you do not have patience and you prefer to do it by steps we can do it by chapters:

 

[ root@trantor win ] # transcode - i Film/ - T 1,1-4,1 - V - w 3800 - to 0 - b 224 - B 5.0 - xs dvd - and xvid - Or /usr/local/ Film

 

  In the second factor of the options -T 1, 1-4 ,1  and -U,   we indicated that it codifies of I capitulate 1 to 4.Transcode is in charge to rename using as it bases the name that we give him and adding to the suffix - ch[ner of chapter].avi. And in this other example, of the 5 to the 8, episodes that soon with a software as avimerge we can beat.

 

[ root@trantor win ] # transcode - i Film/- T 1,5-8,1 - V - w 3800 - to 0 - b 224 - B 5.0 - xs dvd - and xvid - Or /usr/local/ Film

 

  These are some of the possibilities that transcode among other many has.

 

[ root@trantor win ] # transcode - i Film/- T 1,5-8,1 - V - w 3800 - to 0 - b 224 - J pv - B 5.0 - xs dvd - and xvid - or/usr/local/Film.avi

 

  With the option -J pv  we can preview in real time the film while it is codified, which allows to appreciate the quality that we obtain and if it is of our affability.

 

FINAL NOTE:

 

  This it has been one first version of this guidel that, I repeat, single it tries to be a fast guide of like codifying with xvid under guide Linux and not a complete one. I suggest you investigate by your own account, since transcode has immense possibilities and this an example is single.

 


Manuel
Translator: Fl0ppy (aka 2k2)
http:///xmanuelator.host.sk
http://fly.to/xvidlinux
http://www.xvidlinux.tk