I'm writing a server and I have to play commercials on demand, so I'm trying to avoid re encoding video.

I assume that video containers have headers and meta data, so it would not be possible.

Is there a format (preferably compressed) that is proper to stream one video after the other without re encode or stopping the streaming? Concatenable in a binary sense, and still playable.

  • 2
    Welcome! If you haven't already, look at HLS and MPEG DASH for widely adopted methods of solving your problem. Commented Feb 20, 2020 at 2:04
  • I really don't know much about video formats, but this seems exactlty what I'm looking for, allied with fragmentation might do the trick, tyvm.
    – user27704
    Commented Feb 20, 2020 at 2:44
  • For server applications and automated, scripted concatenation and encoding, I recommend you take a look at ffmpeg. Commented Feb 20, 2020 at 9:47
  • I did it! Can I post my solution here as an anwswer? (It has some c# code)
    – user27704
    Commented Feb 21, 2020 at 18:57


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.