619
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 13 Jun 2024
619 points (98.4% liked)
Technology
59454 readers
1981 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each another!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed
Approved Bots
founded 1 year ago
MODERATORS
Other ramifications aside, it wouldn’t be that costly to splice real time.
YouTube has standard profiles of video and audio quality levels. As long as the video stream is the same quality, the stream can basically be concatenated one after another without any meaningful over head. Try it:
ffmpeg -f concat -i files.list -c copy output.mp4
for two files with same codec (audio and video) was processed at over 900x speed for me with just CPU.So all YouTube would need to do is transcode the ads they’d intend to splice in into the standard formats they’d offer the stream at (which they’d already have the video transcoded into), and splice the ads they’d want to show in realtime at request time.
Yes, it is doable. But it also implies keeping track of individual sessions, to make sure you serve the right ad at the right time to the right people. Nothing impossible, but definitely more work to do per individual player, and on the scale of youtube this is quite a lot.