media icon indicating copy to clipboard operation
media copied to clipboard

transformed video not streamable

Open YumengNevix opened this issue 1 year ago • 6 comments

transformer library don't support faststart option, so the output mp4 file is always not streamable. image Is there any way to move moov atom to the beginning of the mp4 file?

YumengNevix avatar Oct 13 '23 10:10 YumengNevix

Hi @YumengNevix, could you please provide more detail on the input media format as well as if you are using InAppMuxer or MediaMuxer?

droid-girl avatar Oct 13 '23 12:10 droid-girl

input media format is mov, muxer is MediaMuxer.

YumengNevix avatar Oct 16 '23 03:10 YumengNevix

Hi @YumengNevix, Unfortunately there is no option to move "moov" box at the beginning. The MediaMuxer tries to write "moov" box in the beginning but if the size of the "moov" box exceeds a certain value then it is placed at the end of the file. Hence streamable MP4 is not always guaranteed. At this point the support for streamable MP4 is not available via "InAppMuxer" muxer as well but we can add this feature in our backlog and see if we can prioritise it in the near future. Thanks.

SheenaChhabra avatar Oct 18 '23 10:10 SheenaChhabra

I see, thank u for your response.

YumengNevix avatar Oct 23 '23 02:10 YumengNevix

I am reopening it as it is a feature request. This issue will be closed when the feature will be implemented

droid-girl avatar Jan 16 '24 15:01 droid-girl

@YumengNevix We are currently exploring this feature and I wanted to understand whether you were trying to produce a very large output file? If possible can you please share the duration and size of your output file?

SheenaChhabra avatar Apr 26 '24 14:04 SheenaChhabra