1

For creating fragmented MP4 video file, I'm using FFMPEG AVCodec library(Accord VideoWriter) and set movflags with value frag_keyframe+empty_moov based on How to output fragmented mp4 with ffmpeg?

 av_dict_set(&videoOptions, "movflags", "frag_keyframe+empty_moov", 0);
 avformat_write_header(oc, &videoOptions);

Sample output video

As you see, video is not played while all of video frames downloaded completely.
I tried to set moov_size , frag_duration and min_frag_duration flags for correction, but doesn't change anything.

Result of all my test:
enter image description here

Micle
  • 159
  • 10

0 Answers0