3d0c / gmf

Go Media Framework
MIT License
885 stars 170 forks source link

How Can I move mp4 moov , ( fastStart ) #132

Open Hpsyche opened 3 years ago

Hpsyche commented 3 years ago

How Can I move mp4 moov , ( fastStart ) . is there an example ?

3d0c commented 3 years ago

Hi, @Hpsyche As far as I remember there is no ready to use function to do it. So you have to do it manually. I have ported original faststart to Go. You can check this is out here: https://gist.github.com/3d0c/ef674299914f1df11533afc1f0b1c02b and a test https://gist.github.com/3d0c/07d38e2ae8b25902607c53f8b68936f5

Hpsyche commented 3 years ago

Thank you for your reply. But it doesn't seem to work. I use a video(2.7MB) as an example,and call fastStart method,but i get a binary file ( size = ftyp+moov ) . How can I add mdat to splice ? thanks~