androidx / media

Jetpack Media3 support libraries for media use cases, including ExoPlayer, an extensible media player for Android
https://developer.android.com/media/media3
Apache License 2.0
1.52k stars 364 forks source link

transformed video not streamable #727

Open YumengNevix opened 10 months ago

YumengNevix commented 10 months ago

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?

droid-girl commented 10 months ago

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

YumengNevix commented 10 months ago

input media format is mov, muxer is MediaMuxer.

SheenaChhabra commented 10 months ago

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.

YumengNevix commented 10 months ago

I see, thank u for your response.

droid-girl commented 7 months ago

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

SheenaChhabra commented 4 months ago

@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?