radek-k / FFMediaToolkit

FFMediaToolkit is a cross-platform video decoder/encoder library for .NET that uses FFmpeg native libraries. It supports video frames extraction, reading stream metadata and creating videos from bitmaps in any format supported by FFmpeg.
MIT License
357 stars 56 forks source link

Preparing file for streaming with movflags +faststart #41

Closed baldvinhansson closed 3 years ago

baldvinhansson commented 3 years ago

Thank you so much for this wonderful toolkit. I have a question that I've so far been unable to figure out by my self and hope someone might have some answers to.

I am preparing files that will be used for streaming over the internet. At the moment, the files I create do not allow skipping in the player until the entire file has been downloaded. I'm suspecting this might have to do with the index (my knowledge of this is very superficial, but I think I'm on the right track here) being at the end of the file rather than beginning.

Is there a way to apply the movflags +faststart ffmpeg option/feature to the generated file? If so, how?

Currently I'm trying: videoSettings.CodecOptions.Add("movflags", "+faststart"); but I'm not seeing this make any difference.

Your help or input is much appreciated! Thank you.