File conversion

Feb 1, 2009 12:00 PM, By Stoyan Marinov

Avoid systems that promise a universal solution.

             

Containers and codecs

“Codec” stands for “Coder and DECoder,” and usually means “Compressor and DECompressor.” It is the engine that transforms the baseband (uncompressed) video into a compressed stream and vice versa. The container is the file wrapper that is used to hold the compressed stream in one entity (the file) throughout the file system of the storage equipment. File wrappers are related to codecs and to the computer operating system as well. However, these relationships are not very well documented or standardized. As a general rule of thumb, Apple computers use QuickTime containers for storing video, regardless of the codec involved, while Windows computers use a variety of containers depending on codec and implementation, including QuickTime files (if the QuickTime add-on is installed).

The most popular container type on Windows used to be AVI, also known as Video for Windows. It can hold virtually any type of compressed stream. This means that you can find MPEG-2AVI, DV AVI, MPEG-4 AVI, MJPEG AVI, etc. Even though these share the same file extension, their content is not compatible in terms of a single codec. Today, Microsoft is promoting its Windows Media Video, which is stored in WMV or ASF file formats. Additionally, all MPEG formats have their own file types, e.g. MPG, M2P, M2T, MP2, MP4, TS, etc. Note that file extensions are not a warranty of compatibility. For instance, the same file extension, MPG, can be used both for MPEG-1 and MPEG-2 streams. Only an analysis tool can identify the content codec inside.

The trouble with most converters is that they do not care about seemingly nonessential things such as metadata, closed-captioning data, teletext, etc. The reason is that these nonessentials are stored in different ways for each file format or in a different place in the stream. So when choosing a conversion solution and wondering why some cost much more than others, check the small print. It is most likely that the cheap solutions will discard nonessentials. Additionally, during the HD transition period, special attention needs to be paid to aspect ratio information (WSS, AFD) so it's correctly applied during conversion. Advanced converters would offer additional benefits such as audio transformation, normalization, multiple tracks, etc.

An effort has been made toward unifying file containers — at least in broadcast equipment. The MXF format is gaining momentum with all broadcast manufacturers. However, it will be awhile until equipment from one brand properly talks to another through the MXF format. MXF is an excellent move, but it enables so many operating profiles that few manufacturers can entirely support it. The “MXF-compliant” label does not necessarily mean that this equipment can handle any MXF content. This compliance can only refer to a specific codec within an MXF container, or to a specific profile of the format. Therefore, don't assume MXF files can be used with all MXF-compliant equipment.

Select the best converter

Despite the progress with MXF, it seems certain that the number of file types, codecs and wrappers will continue to increase, so format wars are set to continue. The best approach when selecting file converters is to always verify manufacturers' claims. Try to avoid the universal type of converters; they are usually mediocre in most aspects. They will either be too slow or too simplified. Here is a short list of steps that can be taken to ensure against misunderstandings:

  • Get a trial unit or license.
  • Try it with your own files.
  • Benchmark its performance against competing converters with the same content.
  • Benchmark its quality preservation against competing converters at the same target bit rate and other conversion settings (e.g. quantization factors, GOP size, etc.) using a PSNR comparison tool, or visually.
  • Make sure it behaves properly with long files (larger than 2GB).
  • Check the lip sync at the beginning and the end of the converted file.
  • Verify the resulting converted file with the equipment that is destined to use it afterward. Look for drifting lip sync and smooth playback.
  • Look for the small things such as additional audio tracks, metadata, closed-captioning, etc.
  • Optionally, send a small sample file to an analysis facility that can give a verdict on whether the file complies with the relevant standard, e.g. if an MPEG-2 file complies with ISO-13818. These facilities have expensive tools that the average broadcaster cannot afford to purchase.

Stoyan Marinov is chief technology officer at PlayBox Technology.

Production Post production Playout Broadcast
Internet/mobile H.263
MPEG-4
H.264
WMV 2Mb/s-5Mb/s WMV 2Mb/s-5Mb/s WMV < 1Mb/s
Flash < 1Mb/s
SD Beta SP
DV
DV50
IMX
P2
DV
AVC-Intra
MPEG-2 I-frame 50Mb/s
MJPEG
Baseband 270Mb/s
MPEG-2 IBP 8Mb/s-15Mb/s
DV
MPEG-2 2.5Mb/s-5Mb/s
H.264 1Mb/s-3Mb/s
HD DV HD
MPEG-2
HD
DV HD
MPEG-2 HD 8Mb/s-300Mb/s
Baseband 1.5Gb/s
MPEG-2 HD 20Mb/s-80Mb/s MPEG-2 15Mb/s-20Mb/s
H.265 8Mb/s-16Mb/s

Table 1. Compression types and file formats operating at particular data rates are chosen as a “best fit” for each application across SD, HD and Internet/mobile applications, making file conversions essential to run the scene-to-screen workflow.




Want to use this article?
Click here for options!
Get Copyright Clearance

Share this article

blog comments powered by Disqus

 


Current Issue

A view from the top

January 2012

Some of broadcast's brightest reveal where the industry is headed.

Read More articles...

Related Newsletter

HD Technology Update
A twice-monthly newsletter covering high definition technology through example applications.

Related Posts


Confused about the terminology in an article? Find definitions of common terms and abbreviations in Broadcast Engineering's Glossary.

 


Submit your product for our NAB coverage.

Resources

Broadcast Engineering Newsletters Broadcast Engineering Essential Guides Broadcast Engineering White Papers Broadcast Engineering Videos Broadcast Engineering Podcasts Broadcast Engineering Industry Calendar

Industry Calendar

Broadcast Engineering Glossary of Terms

Glossary

Broadcast Engineering RSS feed

RSS

Interactive Media

Broadcast Engineering Webinars Broadcast Engineering Training Broadcast Engineering Blogs Broadcast Engineering Mobile Apps Broadcast Engineering on Facebook

Facebook

Broadcast Engineering JobZone

JobZone

Broadcast Engineering BE Roll

Blog

Featured Products

A Broadcaster's Guide To Camera & Lens Technology

A Broadcaster's Guide To Camera & Lens TechnologyThis eBook provides both new and veteran shooters an in-depth understanding of the technology that lies between the camera lens and the recording medium and how to maximize a camera's performance.

File Based Technology and Workflow

File Based Technology and WorkflowFile-based technologies have replaced video tape methods for a majority of production and broadcast operations. The worlds of AV and IT are coalescing to create new methods and workflows for media

Digital Television Fundamentals

Digital Television FundamentalsThis course, written by broadcast engineer Phil Cianci, provides a basic tutorial platform on the hows and whys of ATSC digital operation.

Video Compression, Editing and Displays

Video Compression, Editing and DisplaysVideo compression, editing and displays is an in-depth tutorial on MPEG compression technology, editing MPEG content and evaluating color video monitors written by long-time video expert, trainer and writer Steve Mullen, Ph. D.

 

 

Sound Off Podcasts

Erik Moreno, co-general manager of the Mobile Content Venture

MCV racks up successes on way to bright mobile DTV future

2012 will be the year of mobile DTV. That’s the view of Erik Moreno, who along with Salil Dalvi, senior VP for Mobile Platform Development at NBC Universal, is co-general manager of the Mobile Content Venture.

Danny Wilson

OTT year in review

Hear snippets of podcast interviews done throughout 2011 with Pat McDonough of The Nielsen Company, Glen Friedman of Ideas & Solutions!, Danny Wilson of Pixelmetrix and Greg Herman of Watch TV. Pictured is Danny Wilson, Pixelmetrix.

 

Broadcast Engineering Digital Reference Guide

Browse Back Issues

Back to Top