Greetings. please be gentle. 1st post
I am using Avidemux and want to mux to MP4
I get options at Configure -> Optimize for Streaming.
"No optimization"
"Move index to the beginning of the file"
"Use fragmentation"
Can someone can tell me advantages and/or disadvantages of each? that would be awesome
Thank you for reading.
(... assuming the second one is so you can avoid VFR. Then why would you choose otherwise if VFR is problematic?)
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 5 of 5
Thread
-
-
MP4 normally has the keyframe index near the end of the file. Because the size of the index is unknown until the video compression is done. That's not good for streaming because the player has to seek to the end of the file to get the index, then back to the beginning to start playing. With locally stored files that will only take a few tens of milliseconds. But with files streamed over the internet it could take several seconds.
Putting the index near the start of the file eliminates that seeking, allowing the video to start playing sooner. The disadvantage is that program building the file will take a little longer to make the video since it may not be able to tell how big the index is going to be. It may build a normal file with the index at the end, then remux it (create a second file) with the index at the start (since it no knows how big the index is) and the A/V data after the index.
I'm not sure about "fragmentation", but I suspect it interleaves portions of the index along with the A/V streams as the file is being built. Ie, some A/V data followed by the index for those frames, some more A/V data and some more index, etc. That should help with linear streaming (the player can linearly preload a bunch of data that includes the first A/V segment and the index for that segment, then start playing that segment, then linearly move on to the next segment. But it makes the decoding more difficult and won't help with random seeks. -
hi jagabo, thank you for your answer!
Here's my understanding:
-Putting index to the beginning is faster for decoding, particularly in streaming.
-No optimization is advantageous in that it will mux the file much faster.
I have tested that no optimization does indeed create the file quicker, but if this is the only advantage I'll stick with putting it to the beginning. the extra muxing time is nothing really if it does avoid playback delays to a minimum
Fragmantation sounds like minor science, and likely beyond my scope, ha ha -
Read answer #2.
https://avidemux.org/smif/index.php/topic,19533.0.html -
I'm thinking a good balance of good streaming and local playback, with minimum problems, etc, is "Move index to the beginning of the file", just my hunch unless I'm wrong.
yup, it seems like "Use fragmentation" is best with files you know you will want to stream, and pretty much ONLY stream, otherwise use something else.
Similar Threads
-
Constraining x264's max bitrate to optimize (remote) streaming
By sebastiaaan in forum Newbie / General discussionsReplies: 0Last Post: 15th Nov 2023, 04:14 -
can anybody optimize the accident video and find the guilty party ?
By curieux in forum Newbie / General discussionsReplies: 7Last Post: 7th Dec 2022, 01:23 -
Optimize bad source material ripped from MakeMKV
By marco000 in forum Video ConversionReplies: 11Last Post: 21st Jun 2021, 10:18 -
Streaming media solution... but no streaming (hardwired only)
By Reading Bug in forum Media Center PC / MediaCentersReplies: 41Last Post: 12th Jan 2020, 13:35 -
How to optimize video conversion? (H.265)
By villaquien in forum Video ConversionReplies: 6Last Post: 19th Aug 2019, 16:08