Cheraw Chronicle

Complete News World

YouTube offers free TV shows with commercials in the US – IT Pro – News

Including the ad in the main stream is easier said than done. This requires either installing a set of static ads in the stream, which completely undermines the target advertising model on YouTube, or re-encoding the video for each viewer with targeted ads in it,

No it is not. Sure it requires some implementation work, but you don’t have to re-encode anything, you can just remux on the fly.

When encoding the original video, you just have to make sure that the two frames you want to stop the ad between are now just an I-frame (or the first can also be a P-frame), that way the frames are completely separate from the ad frames you’ll be placing between them.

You simply have to encode your ad, but with the same resolution (resolution) as the video you want to paste the ad into. This is not a problem: YouTube can simply encode all of its ads in all resolutions it supports.

Then, when someone watches a video, you can simply start streaming, and in the original video sequence just up to the I or P frame before the cut, then a few targeted ads, and then the rest of the video from the I frame after the cut.

You don’t have to encode anything on the go, it’s essential that your ad and video have the same frame rate and resolution.

Here is a tip for people who like to glue videos together: With a tool like MKVToolnix, you can create videos which have the same resolution and frame rate Just remux so they are all in one file (with classes if you want) and your CPU doesn’t have to do anything: the bottleneck is just your IO.

See also  Harry and Meghan put their shoulders on the Vax Live party

[Reactie gewijzigd door kiang op 23 maart 2022 16:12]