Closed ranwer-dev closed 1 month ago
Fast start is unfortunately quite broken, because Microsoft Media Foundation is broken in this regard. I've been working on a fix, but it requires editing the headers manually, so it's a bit complicated.
Any progress on that @sskodje?
Fast start is unfortunately still fundamentally broken in Media Foundation. Fragmented mp4 should work though, even though fast start does not. The two flags are mutually exclusive as far as i know.
IsMp4FastStartEnabled and IsFragmentedMp4Enabled don't work together. IsMp4FastStartEnabled works perfectly if the Fragmented option is off.
That's good fast start works for you, but I'm a bit confused what your issue is then.
Fast start is only meaningful when streaming non-fragmented mpegs. What it does is to write the headers at the start of the video instead of at the end, so you don't have to download the entire video to start streaming. Fragmented mpegs already fully support streaming due to their fragmented nature, and thus the flag does nothing by design. The headers in a fragmented mpeg are written periodically every few seconds.
Do you have a specific issue with streaming videos recorded with any of the flags?
Right now the only reason I want to use FramgmentedMp4 option is to avoid corrupted video if the recording breaks in the middle. Sometimes, while doing long recordings, the recorder crashed for memory or some other unknown reason. This is very rare, but even if there's very little chance, this option can preserve the completed part of the recording.
If we use both IsMp4FastStartEnabled & IsFragmentedMp4Enabled options, video doesn't faststart. Is there any way to fix this?