AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Ffmpeg mp4 faststart2/17/2023 # /usr/local/bin/qt-faststart /path/to/src_vid.mp4 /path/to/output.mp4 Use it from the command line or add this step to your web application transcoding logic. Follow the following steps to compile it: ffmpeg-src# make tools/qt-faststartįfmpeg-src# cp tools/qt-faststart /usr/local/bin To achieve this, there’s a tool that comes with the FFMPEG source code called “qt-faststart” which basically rearranges a MP4/Quicktime files such that the moov atoms in front of the data, thus facilitating network streaming. In order to get the video streamed back to the user’s browser as soon as the play button is hit, the moov atom of the file has to be located in the front of the file (seriously don’t ask what are MP4 atoms it’s geek). The reason behind has to do with the metadata (“atoms”) information of the MP4 video files. However I noticed that in WindowsXP or when using non HTML5 enabled browsers, the video was completeley downloaded before the streaming actually started. That worked great, quality was good enough and the final video files were lighter to download than the original ones. I worked on a website that hosted a lot of videos uploaded directly by the users, home recorded videos with different formats, coding and resolutions so I came up with a solution to transcode them with FFMPEG to h264 after being uploaded.
0 Comments
Read More
Leave a Reply. |