Hi Dennis, Thank you for your reply. I tried your command: ffmpeg -re -i input.avi -movflags +faststart output.mp4
but like this I can not open at all the file during the conversion. Any suggestions? Julian On Wed, May 5, 2021 at 1:00 PM Dennis Mungai <[email protected]> wrote: > On Sun, 2 May 2021 at 04:54, Julien Dotsev <[email protected]> wrote: > > > Hi, I'm looking for a possibility to play the output file during the > > conversion. I tried with fragmented mp4 and this command: > > ffmpeg -i input.avi -movflags > > +frag_keyframe+separate_moof+omit_tfhd_offset+empty_moov output.mp4 > > > > The problem I have is that when I play the output it plays until the > > momentary time duration of the video. For example If I hit play and I > have > > 2 min converted video at that moment it will play just the 2 minutes and > it > > will not play more even if at the end of that 2 minutes all the video is > > converted. > > > > Is there any way to let the video play all the way during its conversion? > > Maybe some way to insert the real time duration of the video? or maybe > > another video format? Anything that can let me play the video in an html > > <video> tag during its conversion. > > > > Thank you. > > > Try this: > > ffmpeg -re -i input.avi -movflags > +faststart output.mp4 > > That will encode the file in real time, allowing for real time playback. > > The other movfpags are useless unless you’re writing fragmented content, > such as fmp4 for HLS or DASH. The faststart movflag is sufficient. > _______________________________________________ > ffmpeg-user mailing list > [email protected] > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > [email protected] with subject "unsubscribe". > _______________________________________________ ffmpeg-user mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
