Video ads and the MP4 MOOV atomWritten by Roy
Jan 9, 2023 • 5 min read
The position of the MOOV atom in an MP4 file is important when serving video ad content. Placing the MOOV atom at the correct position will allow video ads to start more efficiently. In this article, written for ad ops professionals and ad server vendors, you'll learn all about it. What is the MOOV atom?The MOOV atom (movie atom) is an important component of the MP4 video format and contains information about the file structure, the video duration and the exact location of the media stream. The MP4 container contains many data structures, each with their own function. Important ones are
The MOOV atom acts like a table of contents. It contains information where the exact video data can be located in the file. Why should the MOOV atom be located at the beginning of the file?The MOOV atom is typically placed at the beginning of the MP4 video file. This is especially important for video content played on the internet, and even more important for users with slow network connections. It's impossible for the video to start playing without reading the MOOV atom first. Since it acts as a table of contents, the video player has to know where the first seconds of the video are located in the data stream. Videos that are encoded with the MOOV atom at the beginning of the file are able to start playing right after the first bits of data have been downloaded, since the table of contents is available in those first few KBs. Here are the main reasons why it should be placed at the beginning of the file:
This allows for a great user experience with minimal buffering. It's why you'll see most MP4 videos streamed over the internet with a fast start playback option. In this study from Professor Ramesh K. Sitarman of the University of Massachusetts, a 2-second delay in video playing will cause users to start abandoning the video. This is obviously something you want to avoid in all cases. For example, if the video is seeked to 18 seconds, it knows that it has to download from 1,420,298 bytes onwards. The browser typically does this using the What if the MOOV atom is found at the end of the file?If the MOOV atom were at the end of the file, the whole MP4 file has to be downloaded before playback can begin. Video ads are generally a couple of MBs in file size, which takes time to be downloaded by the user's browser. Moreover, most VAST players have a playback threshold when the ad should begin playing. If it doesn't start playing within a certain number of seconds, it will skip the ad automatically and play the main video content. This has obvious devastating consequences for both the publisher as the advertiser. At last, memory usage will be higher as the complete video file has to be held in memory. For users on devices with limited memory, this may have an effect on user experience. To sum up, having the MOOV atom in the middle or at the end of the file has non-negligible consequences:
It's therefore imperative for ad ops professionals doing quality assurance checks to verify the MOOV atom's location. Here are 3 simple ways to to check the location of the MOOV atom
ConclusionAdding the MOOV atom at the beginning of the file improves streaming efficiency and the overall user experience, while reducing memory usage. It's common practice when QA-ing video ads. Online tools to analyze video ads are typically used to automate the whole video ad validation process. •••
Download this article as PDF?
No time to read the whole article? Download a free PDF version of this article for later: Permalink
To link to this article, please use: External ResourcesMore from AdValify.io |