The first things to do is to analyse your footage. This process indicate some important things to consider.
They are all the basic questions that you have to know about your footage.
How to analyse your footage :
By detecting the codec, the size of your image, the frame rate, the depht of color, the bitrate, you can improve your understanding and critical vision of codec quality. There are so many fromats from diffrent types of hardware, software and Operating Systems, you eventually have to juggle different formats and codes and perhaps some more exotic types.
To answer at the differents questions about the quality of your footage, size, aspect, framerate... you can use VLC. Open your footage with this tools, or drag on drop it on VLC to read it.
To be informed about the informations that contains your file and go to the Menu/Tools/Codecs information.
As you can see at the screen capture above showing codecs information, this footage contains two codecs for the compression video and the other for the video. Two methods of compression because by their nature, light for images and sound for audio are differents in our cerebral process of perception. This two compression are synchronised in a container the format, named by the extension of the file name.
There are two kinds of containers those who incorporate only the audio and video flux and those who contains chapter for navigation, subtitles, multilanguage choice... for authoring DVD, BluRay, for this last containers please see the chapter Hands on - DVD. This last container is called a Wrapper.
You know probably this wrapper format : QuickTime, MKV from the opensource project Matroska, VOB for the standard version MPEG2 for DVD and MXF from the MPEG Consortium.
For the traditionnal containers, you know certainly the AVI file format and ASF from microsoft, MPEG1, MPEG2, MPEG4 or MP1, MP2, MP4 from the differents version of MPEG consortium, in generical termes MPEG, Mov from Apple qnd for the professionnals some of these : AVC-Intra and DVC-Pro from Panasonic, DV and XD-Cam from Sony...
So differents containers who in theory can encapsulated differents kinds of codecs audio and video. Before to see what is a codec and how does it works. We have to response at the principals questions listed in the introduction. In fact the codecs information of VLC give us the responses.
For this example ;
As you can see VLC gives most informations that can help us to define the different footage. Now, take a look about FFMPEG. For this you need the Terminal or Konsole software, for that in Ubuntu plateform searche with tehe dashBoard the Terminal and open it. Then, you type in it FFMPEG to call the application and the command -i for input. Like this : ffmpeg -i and drag and drop you file media or indicate the location of your file media.
Now, we've got the same informations, but it's more precise, ffmpeg indicates the quality of compression for video 9414 kb/s and for audio 36 kb/s, the total for the footage is also indicated 9459 kb/s
It gives also the duration of the footage : 00:09:46.26 that you can read like this : 00 hour:09 mn:46 sec.26 pictures/30.
FFMpeg uses in fact three different timestamps in different bases in order to work.
The information about the aspect of the film is given by the DAR, in this case : 22/9.
The PAR indicate the pixel ratio. The pixel can have differents dimensions, if this dimension is different of 1/1, we speack about anamophic
Now with this two methods, you can classify your footage and have an approach of your flux of production before editing your video.
Transcoding you video for a DVD
At this step, we believe that you finished your video. You certainly want to provide your work on a material support like DVD. In this part, you will know how to encode in MPEG2 the format for the dvd authoring. At the end of this part, if you want to edit a DVD in the wrapper Vob, we invite you to see the chapter : Hands On - DVD.
The DVD use the compresion MPEG 2. The size or the resolution of the picture is 720x576 in a frame rate of 25 pictures by seconde for europa and for america 720x480 in a frame rate of 29.97 frames per second. The aspect can be in 4/3 or 16/9. The total bitrate is at maximum 9800 kb/s. Generally, the video bitrate is 8000 kb/s and the audio 1536 kb/s. The rate of compression depends of the duration of your video. You have to adapt the quality of your compression with the size of the memory of your optical support in this case the DVD.
Stay with your Terminal or Konsole, we'll use FFMPEG for this in the first case. Why ? Because FFMPEG has a preset for that. The method is very simple. Call FFMPEG, choose your video to encode, call the preset to encode for a DVD and name your new file media in MPEG2 format that will be generated.
ffmpeg -i your_video.mp4 -target pal-dvd your_dvd.mp2
And validate by Enter on your keyboard. The processus of encodage is starting. It will take a certain time.
Some basics commands can refine your project, change the letter x by your own value ;
Let's go with VLC for the same process, go to the menu Open Media, choose Convert or use the shortcuts Alt+c
In the new windows, you will edit a new profile to create a process to encode in MPEG2 format. click on the icon Create a new profile.
Choose a name in the field Profile Name and choose Transmission MPEG (MPEG-TS) or Programm MPEG (MPEG-PS) and jump to the tab Video Codec.
Active the compression of the video by checking the box Video, choose MPEG-2, edit the bitrate and jump to the tab Audio codec.
Active the compression of the audio by checking the box Audio,Choose the MPEG audio codec, edit the bit rate and save.
Now, you have just to use your new profile. Be carreful in the field of destination file, don't omiss the name and the extension of the container.
Transcoding with the preset MPEG-4
Now you know the process to encode with VLC. Let's continue with FFMPEG for the MPEG-4 encoder.
Current presets in descending order of speed are: ultrafast,superfast, veryfast, faster, fast, medium, slow, slower, veryslow, placebo. The default preset is medium. Ignore placebo as it is not useful You can see a list of current presets with -preset help, and what settings they apply with x264 --fullhelp.
You can optionally use -tune to change settings based upon the specifics of your input. Current tunings include: film, animation, grain, stillimage, psnr, ssim, fastdecode, zerolatency. For example, if your input is animation then use the animation tuning, or if you want to preserve grain then use the grain tuning. If you are unsure of what to use or your input does not match any of tunings then omit the -tune option. You can see a list of current tunings with -tune help, and what settings they apply with x264 --fullhelp.
Another optional setting is -profile:v which will limit the output to a specific H.264 profile. This can generally be omitted unless the target device only supports a certain profile. Current profiles include: baseline, main, high, high10, high422, high444. Note that usage of -profile:v is incompatible with lossless encoding.
As a shortcut, you can also list all possible internal presets/tunes for FFmpeg by specifying no preset or tune option at all:
ffmpeg -i input -c:v libx264 -preset -tune dummy.mp4
Exchange with Apple Final Cut User
The ProRes codec is the product for the tools of editing video for the apple users. FFMPEG have some preset to share with them video files.
-vcodec prores
-acodec pcm_s24be
-vf setdar=4:3 ou 16:9 (Aspect)
-profile 0, 1, 2 ou 3
0 : ProRes Proxy
1 : ProRes LT
2 : ProRes 422 for SD (High Frequence)
3 : ProRes HQ for HD (Low Frequence)
ffmpeg -y -i '<inputfile.avi>' -vcodec prores -vf setdar=16:9 -profile 3 -acodec pcm_s24be '<outputfile.mov>'
Exchange with Avid user from Digidesign
The DNxHD codec is the product fort the tools of editing video for the Avid users. This is a simple command line that you can arrange if needed.
ffmpeg -y -i '<inputfile.avi>' -vcodec dnxhd -vb 185000k -acodec pcm_s16le '<outputfile.mov>'
You can add :
Exchange with an uncompressed video file, RAW video file.
ffmpeg -y -i '<inputfile.avi>' -vcodec rawvideo -pix_fmt rgb24 -vtag 0x20776172 -acodec pcm_s16le '<outputfile.mov>'
There has been error in communication with Booktype server. Not sure right now where is the problem.
You should refresh this page.