[FFmpeg-user] Adding "loop" atom to the video header via FFMPEG
Vikram Parmar
parmar.vikram at gmail.com
Fri Jan 12 04:45:10 EET 2018
Hey Moritz,
Thanks for the detailed reply...
Any other tools you are aware of which would allow adding of custom atoms?
Those instructions in stackoverflow answer were quite daunting. Woukd
mp4box help in any way? We are using php, would it be possible to
add/modify file headers in php?
Also, there is a "beam" atom too before the "loop" atom, is that too a
custom non standard atom?
Thanks....
On 12 Jan 2018 02:00, "Moritz Barsnick" <barsnick at gmx.net> wrote:
> On Thu, Jan 11, 2018 at 15:33:43 +0530, Vikram Parmar wrote:
> > Is it possible to add some custom atom in the header of a video file?
>
> No, ffmpeg can't add custom or arbitrary atoms.
>
> > I need to add the term "loop" in the header of MP4 files before the
> "moov"
> > atom.
> >
> > More information can be found here :
> >
> > https://stackoverflow.com/questions/44893316/whatsapp-
> video-as-gif-sharing-on-android-programatically
>
> That doesn't seem to be a standard atom. I do see mention of a "LOOP"
> atom here though:
>
> https://developer.apple.com/library/content/documentation/
> QuickTime/QTFF/QTFFChap2/qtff2.html
>
> > Note: Just opening the video file using any text editor shows the file
> > header and atoms.
>
> AtomicParsley is a nice tool for showing atoms and their hierarchies.
>
> > I do not want to edit the headers via too much calculations, as the
> answer
> > suggests. Is there a simple FFMPEG command to add the atom "loop" to any
> > MP4 files?
>
> If those instructions work, they're probably scriptable, and you're
> best off with that.
>
> AtomicParsley, while being able to edit atoms, unfortunately doesn't
> seem to be able to add arbitrary atoms.
>
> If the atom was some kind of standard, you could modify ffmpeg to add
> it (e.g. with an output option similar to the gif muxer's "-loop").
>
> > I wish to add some parameter to the above command (or maybe run a
> separate
> > command) so that the output mp4 file has that "loop" atom in the header.
>
> Someone who knows their way around this fishy atom business ("fishy"
> just because I'm too stupid to wrap my head around it) could probably
> implement this in ffmpeg in a breeze. Since, from what I found, it's
> not even "standard", I doubt it would be accepted for ffmpeg.
>
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user
mailing list