-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
moov atom placement for x264/mp4 #283
Comments
I cannot compile "AtomicParsley". Is there an alternative command to get similar output? |
I have looked here for solutions: One python based tool: |
Some background information about the subject: http://www.adobe.com/devnet/video/articles/mp4_movie_atom.html |
I did look into this and it does not look like we'll be able to do this. Motion uses ffmpeg in order to handle the encoding of the videos. While it is possible to move the atom with ffmpeg, it does not appear that the required libraries are part of the standard implementations. Meaning, it would need a custom ffmpeg build which would break other things. The particular component is within the movenc.h file which is not in the distributed libavformat-devl packages from apt. The alternative would be to use the mkv container which defaults to having the atom at the start and therefore can be started immediately. |
Oh, slowly i understand why this will be not easy, or not in scope of the project itself:
I think the solution for this could be an example script, that can be provided to the on_movie_end option for relocating the moov atom I will have to create the example script. Please only close this issue, if i am not able to provide the example script within 14 days. Thank you. |
@gnanet can you please investigate the following files using AtomicParsley? Which of them (if any) has correct "moov"? |
Beacuse of the need for a second pass, i think the best solution will be anyway an on_movie_end script |
Does it mean that my provided videos also require full download prior to play in browser? |
Does it maybe the NGINX of dropbox create the "206 partial content" that enables seamless pre loading ? |
Tested on a default installation of Apache - same sequence of requests, file plays in a seconds |
that's good to read. what commandline was used with extpipe ? |
I used an example from the default config: |
Closing per previous comments on timeline. If a method is found via a external script or the extpipe, trying finding a spot for it within the motion_guide.html. We can then see about doing a PR for the change to the guide to show others how to do it. |
Since Motion-Project is capable of producing x264 / mp4 video i thought i would not need to transcode videos for playback in a web based event viewer i created.
BUT the produced mp4 does not have the moov atom right after ftyp atom:
This way the video still has to be completely loaded in browser before playback can start.
Is it possible to change the encoder parameters to allow instant playback for x264/mp4 ?
The text was updated successfully, but these errors were encountered: