<div dir="ltr"><div>hi <br><br></div>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:<br><br><p>"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 <code>moveenc.c</code> from ffmpeg’s source code repo and it doesn’t include support for the LOOP atom.</p>
<p>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.</p>
<p>Only <i>after</i> 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."</p><p><br></p><p><br></p><div class="gmail_extra"><br><div class="gmail_quote">2018-01-11 9:49 GMT-02:00 Vikram Parmar <span dir="ltr"><<a href="mailto:parmar.vikram@gmail.com" target="_blank">parmar.vikram@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>      Hi,<br><br>Is it possible to add some custom atom in the header of a video file?<br><br>I need to add the term "loop" in the header of MP4 files before the "moov" atom.<br><br>More information can be found here :<br><br><a href="https://stackoverflow.com/questions/44893316/whatsapp-video-as-gif-sharing-on-android-programatically" target="_blank">https://stackoverflow.com/ques<wbr>tions/44893316/whatsapp-video-<wbr>as-gif-sharing-on-android-<wbr>programatically</a><br><br>Note: Just opening the video file using any text editor shows the file header and atoms.<br><br>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?<br><br>Use Case :-<br><br>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<br><br>I tried loads of -loop and stream loop commands.. Nothing is adding the atom "loop" to my mp4 files<br><br>My current command for converting a GIF to MP4 is as follows :<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">ffmpeg -i giphy9.gif -c:v libx264 -c:a aac -pix_fmt yuv420p -movflags +faststart  giphy9_loop.mp4<br></blockquote><br>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. <br><br></div>Please help!<div class="m_9130803139028121955gmail-adL"><br></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">1111.1010.r.i.1101|n.o.i.s.1110|i.m.1010.g.1110|مقاومة<br>fsf member #5439<br>usuario GNU/Linux #471966<br>|_|0|_|<br>|_|_|0|<br>|0|0|0|<br><a href="<a href="http://www.gunga.com.br" target="_blank">http://www.gunga.com.br</a>">gunga</a><br><a href="<a href="http://www.tempoecoarte.com.br" target="_blank">http://www.tempoecoarte.com.br</a>">tempoecoarte</a><div><a href="<a href="http://www.atelier-labs.org" target="_blank">http://www.atelier-labs.org</a>">atelier-labs</a></div><div><a href="<a href="http://www.mocambos.net" target="_blank">http://www.mocambos.net</a>">rede mocambos</a><br></div></div>
</div></div>