Adding "loop" atom to the video header?
farid abdelnour
snd.noise at gmail.com
Fri Jan 12 21:04:35 UTC 2018
hi
i saw you posted this at the website as well... maybe you missed Harald's
answer (which is basically the same as Vincent's one) so here it goes:
"Kdenlive leverages ffmpeg for encoding, so if ffmpeg doesn’t support
certain atoms, there’s no way for Kdenlive to get it into the rendered
output file. I checked the most recent moveenc.c from ffmpeg’s source code
repo and it doesn’t include support for the LOOP atom.
I highly recommend consulting the ffmpeg forum for your question; it might
be even better to file a feature request or issue with the ffmpeg project.
Only *after* ffmpegs adds support for the LOOP atom with a corresponding
metadata key(!!) you can start using it in Kdenlive without the need for
any Kdenlive updates, as you could then simply set the key through the
project meta data dialog. But you need ffmpeg supporting this."
2018-01-11 9:49 GMT-02:00 Vikram Parmar <parmar.vikram at gmail.com>:
> Hi,
>
> Is it possible to add some custom atom in the header of a video file?
>
> 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
>
> Note: Just opening the video file using any text editor shows the file
> header and atoms.
>
> 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?
>
> Use Case :-
>
> WhatsApp does a smart thing. Their animated GIFs are actually MP4 files
> (which contain this atom "loop"), and the MP4 files which it wants to treat
> as videos in their UI, they do not add that "loop" atom
>
> I tried loads of -loop and stream loop commands.. Nothing is adding the
> atom "loop" to my mp4 files
>
> My current command for converting a GIF to MP4 is as follows :
>
> ffmpeg -i giphy9.gif -c:v libx264 -c:a aac -pix_fmt yuv420p -movflags
>> +faststart giphy9_loop.mp4
>>
>
> 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.
>
> Please help!
>
>
--
1111.1010.r.i.1101|n.o.i.s.1110|i.m.1010.g.1110|مقاومة
fsf member #5439
usuario GNU/Linux #471966
|_|0|_|
|_|_|0|
|0|0|0|
<a href="http://www.gunga.com.br">gunga</a>
<a href="http://www.tempoecoarte.com.br">tempoecoarte</a>
<a href="http://www.atelier-labs.org">atelier-labs</a>
<a href="http://www.mocambos.net">rede mocambos</a>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdenlive/attachments/20180112/01435674/attachment-0001.html>
More information about the kdenlive
mailing list