prev/next

Video Compression

What is the difference between CBR and VBR encoding?

Constant bit rate (CBR) encoding persists the set data rate to your setting over the whole video clip. Use CBR only if your clip contains a similar motion level across the entire duration.  CBR is most commonly used for streaming video content using the Flash Media Server (rtmp)
 
Variable bit rate (VBR) encoding adjusts the data rate
 More -->
Constant bit rate (CBR) encoding persists the set data rate to your setting over the whole video clip. Use CBR only if your clip contains a similar motion level across the entire duration.  CBR is most commonly used for streaming video content using the Flash Media Server (rtmp)
 
Variable bit rate (VBR) encoding adjusts the data rate down and to the upper limit you set, based on the data required by the compressor. VBR takes longer to encode but produces the most favorable results.  VBR is most commonly used for http delivery if video content (http progressive)
<-- Hide
tools: email  |  print  |  share  |  click to rate (rated 22 times):
  • BlinkList
  • Del.icio.us
  • Digg
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • MySpace
  • Newsvine
  • Reddit
  • Sphinn
  • Technorati
  • Twitter

Video Converting Made Easy by Encoding.com

In order to maximize revenues and distribution points, video content publishers should make their videos available in as many popular formats as possible across the various internet-connected devices.  To do this, they must convert video from its source (recorded) format to widely adopted consumer device formats such as Flash and Quicktime.

Video encoding is the process of converting digital

 More -->

In order to maximize revenues and distribution points, video content publishers should make their videos available in as many popular formats as possible across the various internet-connected devices.  To do this, they must convert video from its source (recorded) format to widely adopted consumer device formats such as Flash and Quicktime.

Video encoding is the process of converting digital video files from one format to another.  All of the videos we watch on our computers, tablets, mobile phones and set-top boxes must go through an encoding process to convert the original “source” video to be viewable on these devices.  Why?  Because different devices and browsers support different video formats.  This process can also be called “transcoding” or “video conversion.”

Digital video can exist in many different formats with specific variables such as containers (.MOV, .FLV, .MP4, .OGG, .WMV, WebM), codecs (H264, VP6, ProRes) and bitrates (in megabits or kilobits per second).  Different devices and browsers have different specifications involving these variables, and others.  With Encoding.com, you have full control across many variables to convert videos from one format to another.

If you're interested in using Encoding.com's platform to convert video files from your source content, there's a number of ways to achieve that using the options listed below:

+ Use our web UI, located @ http://www.encoding.com/login, to create a Watch Folder and turn an entire folder of source content into your desired output. Watch Folders can exist on Amazon S3, Rackspace CloudFiles or your own FTP site.

+ Upload a single media file using our 'Add Media' feature in the web UI. Select 'Add Task' and utilize our presets for popular output formats to convert your source content.  As with Watch Folders, 'Add Media' can download video from Amazon S3, Rackspace CloudFiles, FTP sites or your local drive / network.

+ Implement our powerful API to submit source content and create output files in a snap.  Complete API documentation here.

<-- Hide
tools: email  |  print  |  share  |  click to rate (rated 1 time):
  • BlinkList
  • Del.icio.us
  • Digg
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • MySpace
  • Newsvine
  • Reddit
  • Sphinn
  • Technorati
  • Twitter

Transcoding How to Guide

Video transcoding is the process of converting one digital video file format to another digital format.  Using Encoding.com, you can control many parameters during the transcoding process including codecs, container formats, bitrates, frame rates, size, etc.

Video transcoding is the process of converting one digital video file format to another digital format.  Using Encoding.com, you can control many parameters during the transcoding process including codecs, container formats, bitrates, frame rates, size, etc.

<-- Hide
tools: email  |  print  |  share  |  click to rate (rated 4 times):
  • BlinkList
  • Del.icio.us
  • Digg
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • MySpace
  • Newsvine
  • Reddit
  • Sphinn
  • Technorati
  • Twitter

How do I Convert Video Files?

As video producers in the web publishing, film, and broadcast industries look to maximize revenues for each video, it is imperative that they make their videos available in as many popular formats as possible across the various internet-connected devices.  To do this, they must convert, or transcode, video from its source recorded format to widely adopted consumer formats such as

 More -->

As video producers in the web publishing, film, and broadcast industries look to maximize revenues for each video, it is imperative that they make their videos available in as many popular formats as possible across the various internet-connected devices.  To do this, they must convert, or transcode, video from its source recorded format to widely adopted consumer formats such as Flash, Quicktime and Silverlight.  Other controllable parameters during the video conversion process include codecs, container formats, bitrates, frame rates, and size.

<-- Hide
tools: email  |  print  |  share  |  click to rate (rated 3 times):
  • BlinkList
  • Del.icio.us
  • Digg
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • MySpace
  • Newsvine
  • Reddit
  • Sphinn
  • Technorati
  • Twitter

How do I Convert Apple TV Video

Apple TV is a device from Apple that enables consumers to distribute media including HD movies, music and photos from their computers to their HDTVs.  It can connect wirelessly to home networks and with a single HDMI cable to the HDTV. Apple TV supports the H.264 codec at various high-resolution and standard bitrates using the .m4v, .mp4, and .mov file

 More -->

Apple TV is a device from Apple that enables consumers to distribute media including HD movies, music and photos from their computers to their HDTVs.  It can connect wirelessly to home networks and with a single HDMI cable to the HDTV. Apple TV supports the H.264 codec at various high-resolution and standard bitrates using the .m4v, .mp4, and .mov file formats.  It also supports a number of audio file formats including AAC, MP3, Apple Lossless, AIFF, WAV, and Dolby Digital 5.1 surround sound.

<-- Hide
tools: email  |  print  |  share  |  click to rate (rated 4 times):
  • BlinkList
  • Del.icio.us
  • Digg
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • MySpace
  • Newsvine
  • Reddit
  • Sphinn
  • Technorati
  • Twitter

HD Encoding

With HD’s takeover, the demand has never been higher to deliver the best possible content to your audience. Proper HD encoding is a big part of that process. Whether you’re broadcasting, downloading or turning out locally available content, use Encoding.com’s platform to create stunning HD files that meet the aesthetic needs of your project.

Encoding.com: Cloud-Based HD Encoding

 More -->

With HD’s takeover, the demand has never been higher to deliver the best possible content to your audience. Proper HD encoding is a big part of that process. Whether you’re broadcasting, downloading or turning out locally available content, use Encoding.com’s platform to create stunning HD files that meet the aesthetic needs of your project.

Encoding.com: Cloud-Based HD Encoding Software

With our HD encoding software, simply choose the HD codec you’d like to convert to, define a watchfolder or upload your source, and you’re done! Your reformatted video will be delivered back to you, at the location of your choice.

HD Transcoding and Compression

With Encoding.com’s powerful platform, you can swiftly up-convert SD to HD, or reformat HD media, using our web interface, powerful API or desktop application. We also have HD transcoding and compression solutions that are scalable and easy to use.

<-- Hide
tools: email  |  print  |  share  |  click to rate (rated 14 times):
  • BlinkList
  • Del.icio.us
  • Digg
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • MySpace
  • Newsvine
  • Reddit
  • Sphinn
  • Technorati
  • Twitter

How do I encode video for mobile devices?

There are a number of very popular mobile devices that support video playback including:

  • iPhone / iPod
  • Blackberry
  • Nokia
  • Droid
  • PSP
  • Zune

Of course, many of these devices have their own video format requirements.  Encoding.com provides simple presets for the most popular mobile devices so that you can properly encode your video

 More -->

There are a number of very popular mobile devices that support video playback including:

  • iPhone / iPod
  • Blackberry
  • Nokia
  • Droid
  • PSP
  • Zune

Of course, many of these devices have their own video format requirements.  Encoding.com provides simple presets for the most popular mobile devices so that you can properly encode your video for your target device without requiring you to research the various device specifications. Use our web interface to browse to the presets and choose from an encode flavor that you can use as-is, or customize however you'd like. Go ahead and create one watch folder and add multiple presets to create all of your mobile content. It's that easy!

<-- Hide
tools: email  |  print  |  share  |  click to rate (rated 5 times):
  • BlinkList
  • Del.icio.us
  • Digg
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • MySpace
  • Newsvine
  • Reddit
  • Sphinn
  • Technorati
  • Twitter

Suggestions for improving quality with H.264 settings

Since users often will be uploading a wide variety of videos, I generally like to break them down into two types:

Static/Low Action - stable tripod shots, very little background movement, actors standing still 
Active/High Action - panning/jerky camera, lots of action, sports-like movement

A good starting point is to choose a variable bitrate setting equal

 More -->

Since users often will be uploading a wide variety of videos, I generally like to break them down into two types:

Static/Low Action - stable tripod shots, very little background movement, actors standing still 
Active/High Action - panning/jerky camera, lots of action, sports-like movement

A good starting point is to choose a variable bitrate setting equal to the width of the video. So, for example: 640x480 SD at 640 kilobits per sec (kbps), or 1280x720 HD at 1280 kbps. Higher action video may require a slightly higher bitrate to prevent blocking artifacts.

Noise Reduction

Applying some noise reduction is useful to save bits for high detail regions, but be careful not to overdo it. I've seen video samples where whole areas of ocean and grassy fields disappear to achieve a lower bitrate. This of course, falls under artistic preference, but generally I'd rather see a smaller framesize and more detail. At low bitrates, it is increasing important to improve the quality of noisy video sources, such as film containing lots of grain or video shot in low light. The 3D noise reduction in ffmpeg allows control over both luma and chroma values for fine-tuning your output image quality.

	<noise_reduction>4:3:6</noise_reduction> 

luma_spatial – Spatial Luma Strength. Allowed values: [0,255]
chroma_spatial – Spatial Chroma Strength. Allowed values: [0,255]
luma_temp – Temporal Luma Strength. Allowed values: [0,255]

General recommended starting value is 4:3:6. [luma_spatial:chroma_spatial:luma_temp] Noise reduction is also available via our web interface as the High Quality 3D Denoiser option.

 

Single Pass vs. Two Pass

For most purposes 2-pass encoding achieves very good results. It's a tradeoff of diminishing returns, 2-pass gaining perhaps 10% quality bit-for-bit but doubling the encoding time. Do not lower qcomp, CBR is horrible on quality. I'd experiment with values floating between 0.60 and 0.80 if you want more VBR. if qcomp = 1.00 then quantizer is constant for second pass. Real variable bitrate with constant quality. if qcomp = 0.00 then bitrate is constant for second pass. Real constant bitrate with variable quality.

<two_pass>yes</two_pass>

I'd recommend having two sample videos, tell your users to choose Low or High Action content setting, experiment a bit with your B-frames then define two "baseline" settings for each bitrate. For web video it's best to narrow your targets to four different bitrates at most, especially if you are going to be processing thousands of users uploading. Most folks have a slow (up to 240kbits), good (~700kbits), or fast (2mbits and higher) connection. I'd say H.264 over 2mbits is generally overkill for website content. For general purposes, I'd recommend 2-pass and we push a 10 second keyframe interval (300 frames) which may not be appropriate for "high-action" source video.

For more detail on H.264 controls for scenecut thresholds, B-frames, and more, please refer to:

Advanced H.264 Guide http://sites.google.com/site/linuxencoding/x264-ffmpeg-mapping

H.264 parameters for our API http://www.encoding.com/help/article/advanced_configuration_options_for_the_libx264_video_codec

An excellent collection of HD videos at 2mbits/sec can be found at http://californiaisaplace.com/cali/ 

 

16x16 Macroblocks

H.264/AVC does a much more efficient job when the horizontal and vertical framesize dimensions are multiples of 16. Good examples include:

SD (4:3) aspect ratios: 320x240, 432x320, 480x360, 544x400, 640x480, 768x576
HD (16:9) aspect ratios: 432x240, 576x320, 640x360, 720x400, 848x480, 1024x576, 1280x720, 1920x1080

In 4:2:0 H.264/AVC coding, each block contains 4 luminance samples (Y), 1 blue sample (Cb), and 1 red sample (Cr). Modern video decoding chips (GPUs) are optimized for playback of 16x16 macroblocking.

 

Keyframes and GOPs

Low action scenes generally handle more bidirectional (B-frames) better since they don't have to track interframe motion as aggressively. Higher action content will require more keyframes (I-frames) to keep the picture from breaking apart. Longer GOPs with more B-frames also require more buffering by the playback GPU to recursively track the motion for each macroblock. Fortunately, x264 offers very good scene detection, which is why for most applications, we set keyframes to 300.

H.264/AVC sample for modern mobiles (30 fps with a 10 second GOP)

	<framerate>30</framerate>
	<keyframe>300</keyframe>

For older computers, and early generations of iPod and Blackberry phones, the chips might not have enough processing power and memory to successfully buffer longer GOPs. Keep your bitrates low, try lower framerates, and shorter GOPs.

H.264/AVC sample for older mobiles (15 fps with a 4 second GOP)

	<framerate>15</framerate>
	<keyframe>60</keyframe>

More information about GOPs available on wiki http://en.wikipedia.org/wiki/Group_of_pictures

 

Turbo Mode

NOTE: For bigger or longer HD encoding jobs, turbo mode is absolutely recommended since you will see speed gains in the neighborhood of 3x faster vs. normal mode. Please be aware turbo is running on more powerful encoders, so it costs an extra $1 per gigabyte.

<turbo>yes</turbo>

 

<-- Hide
tools: email  |  print  |  share  |  click to rate (rated 8 times):
  • BlinkList
  • Del.icio.us
  • Digg
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • MySpace
  • Newsvine
  • Reddit
  • Sphinn
  • Technorati
  • Twitter

Video Encoding - What is it?

Video encoding is the process of converting digital video files from one format to another.  All of the videos we watch on our computers, tablets, mobile phones and set-top boxes must go through an encoding process to convert the original “source” video to be viewable on these devices.  Why?  Because different devices and browsers support different video formats.  This process

 More -->

Video encoding is the process of converting digital video files from one format to another.  All of the videos we watch on our computers, tablets, mobile phones and set-top boxes must go through an encoding process to convert the original “source” video to be viewable on these devices.  Why?  Because different devices and browsers support different video formats.  This process can also be called “transcoding” or “video conversion.”

Digital video can exist in many different formats with specific variables such as containers (.MOV, .FLV, .MP4, .OGG, .WMV, WebM), codecs (H264, VP6, ProRes) and bitrates (in megabits or kilobits per second).  Different devices and browsers have different specifications involving these variables, and others.  With Encoding.com, you have full control across many variables to convert videos from one format to another.

If you're interested in using Encoding.com's platform to convert video files from your source content, there's a number of ways to achieve that using the options listed below:

+ Use our web UI, located @ http://www.encoding.com/login, to create a Watch Folder and turn an entire folder of source content into your desired output. Watch Folders can exist on Amazon S3, Rackspace CloudFiles or your own FTP site.

+ Upload a single media file using our 'Add Media' feature in the web UI. Select 'Add Task' and utilize our presets for popular output formats to convert your source content.  As with Watch Folders, 'Add Media' can download video from Amazon S3, Rackspace CloudFiles, FTP sites or your local drive / network.

+ Implement our powerful API to submit source content and create output files in a snap.  Complete API documentation here.

<-- Hide
tools: email  |  print  |  share  |  click to rate (rated 12 times):
  • BlinkList
  • Del.icio.us
  • Digg
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • MySpace
  • Newsvine
  • Reddit
  • Sphinn
  • Technorati
  • Twitter