Demistate
Veteran
When encoding video, think about your audience. Put video into a format that is best for the audience. The easier it is for them, the better it will be for you.
Streaming video on your personal website:
Use h.264 video with AAC Audio inside F4V/Mp4 containers (They are technically both MPEG-4 Part 12 ISO containers). This will stream right away on over 90% of web browsers and your audience won't have to download a thing.
Quick Settings:
4:3 content
If 2-pass encoding is available use it. It will make your videos look less compressed without using more bits.
Encoding the file is only the first step. After that you will need to embed it into a page, and upload those files to your webserver. If you run a Wordpress blog, you can upload a .f4v/.mp4 and have it play easily.
If you're still managing your own pages you can use Dreamweaver to place FLV/F4V/MP4s video by embedding it.
There is also a free player called JW FLV Player that can let you embed FLVs into web pages, but you better know a little bit about editing HTML with a text editor.
If your video does not stream from the web server you'll need to place the MOOV atom at the beginning of the file to stream with a program like YAMB. Creating a .f4v from Adobe Media encoder should present no problems.
Free tools are: ASX gui, Stax Rip, JW FLV Player (to embed it in a HTML)
Pay tools: Adobe Media Encoder (Cheapest way to buy is Premiere Pro Standalone) , Dreamweaver(A more user friendly way to embed it into HTML)
Other Editors:
ASK YOUR EDITOR WHAT FORMAT THEY WANT BEFORE GIVING THEM ANYTHING.
An editor doesn't care about how big or small the file is. All that matters is that it can be opened and edited quickly. Quicktime is compatible with all major NLE systems. Be careful about gamma shift if you are not exporting from Final Cut Pro. Gamma shift fixes are different depending on what software you are using to export.
SD Content:
Alternatively: All major NLE softwares will have a DV exporter. If your NLE has a native DV exporter, use that instead of Quicktime's to avoid gamma shift.
HD CONTENT:
Free Tools: None as of this writing
Pay tools: Final Cut Studio , Quicktime Pro
Personal Archive:
Hard drives are incredibly cheap now.
Buy 2 of them and copy the entire project folder over to each drive. You can back up multiple projects to a drive to save money. Use a label so that you can find your project quickly without plugging up the drive to browse the contents.
Store one drive near your editing machine so that you have easy access to it.
Store the second drive in a different building. If there is a fire in one of the buildings, you will still have your project data.
To go to Youtube (or other video sharing webpage):
Youtube has recently gone Widescreen and HD. This means you need to encode your files differently for Video sharing online.
See this post for more information http://www.dvxuser.com/V6/showthread.php?p=1479260
Mobile Phone local playback:
All modern smartphones support h.264 video and AAC audio via hardware. As long as it's in a ISO standard .mp4 you should have no problems playing it back.
Quick settings:
I'm using the first generation iPhone as a basis for these settings seeing as it is one of the oldest "modern smartphones" capable of playing back locally stored video. You can go higher, but you'll limit the ammount of mobile phones that can be supported.
DVD-Video disc:
DVD operates on the Mpeg-2 video standard, and either PCM or Dolby Digital (AC-3) standard. To make the best use out of the disc's space you'll want to do a 2-pass Mpeg-2 video encode, and use Dolby Digital for the audio.
Quick settings:
Free software: HCenc
Pay software: DVD Studio Pro, Adobe Encore, iDVD
Other considerations:
Reducing Frame size:
If you have to resize the video frame ever (which you will do for Web streaming) always try divide your frame sizes by a whole number where the resulting frame dimensions are whole numbers.
For example:
Assume all Standard Definition 4x3 content is 640x480: For web streaming you should use 320x240 for the frame size, or 160x120. Frame size divisions that yield fractions of a pixel will not be as clear results as a clean frame size division by 2 or 4.
For all HD content there is 1280x720, 960x540, and 640x360.
If you need to do a custom size due to a web design, seek a professional compressionst to help scale your footage properly as most NLE software packages will do a poor job resizing your footage.
What bitrate should I use?
You should always experiment with bitrates, Take a small sample of 15-45 seconds of video and run it through the encoder at three different bitrates, pick the best settings. Ask questions online. See what settings other people are using. There is no "right" answer.
What framerate should I use?
Use the same framerate as your source. Never try to change frame-rates unless you know what you are doing or being instructed to do so by another person.
Remember, that 29.97 is different from 30. So make sure you get all of the numbers correct!
Should I de-interlace?
You should always try to get your format to match the output device as close as possible.
Interlaced Displays
*NTSC and PAL Tube TVs
*Most Live Broadcasting equipment/switcher boards
Progressive Displays
*All Comptuer Monitors
*LCD/Plasma/DLP TV
*Film/Digital Projectors
If you are ever going to go back to tape, you need to preserve the interlacing. Broadcasting equipment usually doesn't deal with a progressive source.
Just remember that an interlaced source will need a lot more bitrate, and takes up more space if you try to compress it to a file.
If you are never going back to tape and staying purely on the web, you should de-interlace your footage (if it was interlaced to begin with). Be careful when you use de-interlacing filters though as they can reduce the perceived resolution of the file in half. Some are better than others, so TEST a few 30 second clips before rendering out the whole sequence. Make sure you're happy with the results.
All footage should be published on the web in a PROGRESSIVE format. De-interlace any interlaced footage you have before posting online.
If you shoot progressive, your life will be a lot easier.
I'm still lost:
Video compression is just as much a science as it is an art form. Over time you'll learn how to use it, but you just need to test, test, test. Test different sources, read up about codecs and containers on wikipedia, and have patience.
This guide is in no ways the end all to be all in terms of encoding as this stuff changes every year. In two years this whole post, with the exception of the "Read everything" advice, will be useless as more advances in technology come along. Just keep reading, and keep compressing those files!
Extended reading:
Doom9 Forums
VC-1 On Wikipedia
Codec on Wikipedia
Free software encoding thread
Streaming video on your personal website:
Use h.264 video with AAC Audio inside F4V/Mp4 containers (They are technically both MPEG-4 Part 12 ISO containers). This will stream right away on over 90% of web browsers and your audience won't have to download a thing.
Quick Settings:
4:3 content
- 320x240, 400Kbps, h.264 codec, 96K AAC Audio
- 640x480, 800kbps, h.264 codec, 96K AAC Audio
- 640x360, 500kBps, h.264 codec, 96K AAC Audio
- 960x540, 900kbps, h.264 codec, 96K AAC Audio
If 2-pass encoding is available use it. It will make your videos look less compressed without using more bits.
Encoding the file is only the first step. After that you will need to embed it into a page, and upload those files to your webserver. If you run a Wordpress blog, you can upload a .f4v/.mp4 and have it play easily.
If you're still managing your own pages you can use Dreamweaver to place FLV/F4V/MP4s video by embedding it.
There is also a free player called JW FLV Player that can let you embed FLVs into web pages, but you better know a little bit about editing HTML with a text editor.
If your video does not stream from the web server you'll need to place the MOOV atom at the beginning of the file to stream with a program like YAMB. Creating a .f4v from Adobe Media encoder should present no problems.
Free tools are: ASX gui, Stax Rip, JW FLV Player (to embed it in a HTML)
Pay tools: Adobe Media Encoder (Cheapest way to buy is Premiere Pro Standalone) , Dreamweaver(A more user friendly way to embed it into HTML)
Other Editors:
ASK YOUR EDITOR WHAT FORMAT THEY WANT BEFORE GIVING THEM ANYTHING.
An editor doesn't care about how big or small the file is. All that matters is that it can be opened and edited quickly. Quicktime is compatible with all major NLE systems. Be careful about gamma shift if you are not exporting from Final Cut Pro. Gamma shift fixes are different depending on what software you are using to export.
SD Content:
- Video: APPLE DV/DVCPRO - NTSC (Or PAL if you live in Europe)
- Audio: Linear PCM
Alternatively: All major NLE softwares will have a DV exporter. If your NLE has a native DV exporter, use that instead of Quicktime's to avoid gamma shift.
HD CONTENT:
- Video: ProRes 422
- Audio: Linear PCM
Free Tools: None as of this writing
Pay tools: Final Cut Studio , Quicktime Pro
Personal Archive:
Hard drives are incredibly cheap now.
Buy 2 of them and copy the entire project folder over to each drive. You can back up multiple projects to a drive to save money. Use a label so that you can find your project quickly without plugging up the drive to browse the contents.
Store one drive near your editing machine so that you have easy access to it.
Store the second drive in a different building. If there is a fire in one of the buildings, you will still have your project data.
To go to Youtube (or other video sharing webpage):
Youtube has recently gone Widescreen and HD. This means you need to encode your files differently for Video sharing online.
See this post for more information http://www.dvxuser.com/V6/showthread.php?p=1479260
Mobile Phone local playback:
All modern smartphones support h.264 video and AAC audio via hardware. As long as it's in a ISO standard .mp4 you should have no problems playing it back.
Quick settings:
- Resolution No larger than 640x480 (You can go smaller)
- h.264 video codec at 1,100kb/s
- Baseline Profile
- Level 3.0
- 30FPS or lower. (Use FPS that matches your source content)
- AAC Audio codec at 128kb/s
I'm using the first generation iPhone as a basis for these settings seeing as it is one of the oldest "modern smartphones" capable of playing back locally stored video. You can go higher, but you'll limit the ammount of mobile phones that can be supported.
DVD-Video disc:
DVD operates on the Mpeg-2 video standard, and either PCM or Dolby Digital (AC-3) standard. To make the best use out of the disc's space you'll want to do a 2-pass Mpeg-2 video encode, and use Dolby Digital for the audio.
Quick settings:
- Highest Quality: 2-pass VBR Video low 1.5mbps, video avg 7mbps, video peak 9.0 mbps, Audio Dolby Digital at 384kbps. This will yield about 1.2 hours on a single layer DVD.
- If you are encoding DV material, set your fields to Lower (or Odd).
- Always keep the source framerate. 23.976 is 24P, 29.976 is DV standard. (see "what framerate do I use?" section)
Free software: HCenc
Pay software: DVD Studio Pro, Adobe Encore, iDVD
Other considerations:
Reducing Frame size:
If you have to resize the video frame ever (which you will do for Web streaming) always try divide your frame sizes by a whole number where the resulting frame dimensions are whole numbers.
For example:
Assume all Standard Definition 4x3 content is 640x480: For web streaming you should use 320x240 for the frame size, or 160x120. Frame size divisions that yield fractions of a pixel will not be as clear results as a clean frame size division by 2 or 4.
For all HD content there is 1280x720, 960x540, and 640x360.
If you need to do a custom size due to a web design, seek a professional compressionst to help scale your footage properly as most NLE software packages will do a poor job resizing your footage.
What bitrate should I use?
You should always experiment with bitrates, Take a small sample of 15-45 seconds of video and run it through the encoder at three different bitrates, pick the best settings. Ask questions online. See what settings other people are using. There is no "right" answer.
What framerate should I use?
Use the same framerate as your source. Never try to change frame-rates unless you know what you are doing or being instructed to do so by another person.
Remember, that 29.97 is different from 30. So make sure you get all of the numbers correct!
Should I de-interlace?
You should always try to get your format to match the output device as close as possible.
Interlaced Displays
*NTSC and PAL Tube TVs
*Most Live Broadcasting equipment/switcher boards
Progressive Displays
*All Comptuer Monitors
*LCD/Plasma/DLP TV
*Film/Digital Projectors
If you are ever going to go back to tape, you need to preserve the interlacing. Broadcasting equipment usually doesn't deal with a progressive source.
Just remember that an interlaced source will need a lot more bitrate, and takes up more space if you try to compress it to a file.
If you are never going back to tape and staying purely on the web, you should de-interlace your footage (if it was interlaced to begin with). Be careful when you use de-interlacing filters though as they can reduce the perceived resolution of the file in half. Some are better than others, so TEST a few 30 second clips before rendering out the whole sequence. Make sure you're happy with the results.
All footage should be published on the web in a PROGRESSIVE format. De-interlace any interlaced footage you have before posting online.
If you shoot progressive, your life will be a lot easier.
I'm still lost:
Video compression is just as much a science as it is an art form. Over time you'll learn how to use it, but you just need to test, test, test. Test different sources, read up about codecs and containers on wikipedia, and have patience.
This guide is in no ways the end all to be all in terms of encoding as this stuff changes every year. In two years this whole post, with the exception of the "Read everything" advice, will be useless as more advances in technology come along. Just keep reading, and keep compressing those files!
Like most things, learning the fundamentals of how and why things work the way they do is more important than just using a bunch of recipes.
Extended reading:
Doom9 Forums
VC-1 On Wikipedia
Codec on Wikipedia
Free software encoding thread
Last edited: