<div dir="ltr">For mp4 in your case, ffmpeg muxer doesn't support this... though this enhancement should be done several years ago...<div><br></div><div><a href="https://trac.ffmpeg.org/ticket/2798">https://trac.ffmpeg.org/ticket/2798</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 29, 2017 at 12:40 PM, YIRAN LI <span dir="ltr"><<a href="mailto:mrfun.china@gmail.com" target="_blank">mrfun.china@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">Hi guys,</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">I'm investigating how to insert/keep video cover art with ffmpeg.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Could any one give me help on these 2 questions.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">1. Of all these formats asf, avi, dv, flv, mkv, mov, mp4, m4v, mpeg, ogg, rm. swf, webm, which ones support cover art. I know a cover art will/can be added as a video stream into target file. By "Support" I mean standard has a definition and the existence of cover art can be viewed/verified by some tools?</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">2. Of all above formats that support cover art, which of them are supported by ffmpeg so that we can add cover art with ffmpeg?</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">I used following ffmpeg command line to add an image into a MP4, but in Win10 folder preview doesn't show that image </div><div class="gmail_default" style="font-family:georgia,serif"><i><br></i></div><div class="gmail_default"><div class="gmail_default" style="font-family:georgia,serif"><i><font color="#38761d">$ ffmpeg -i big10.mp4 -i Untitled.png -c:a copy -c:v copy -map 0 -map 1:0 aaa.mp4</font></i></div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">ffprobe you can see it does have 3 streams </div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default"><div class="gmail_default" style="font-family:georgia,serif"><i><font color="#38761d"> Duration: 00:01:00.19, start: 0.000000, bitrate: 805 kb/s</font></i></div><div class="gmail_default" style="font-family:georgia,serif"><i><font color="#38761d"> Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 727 kb/s, 23.91 fps, 23.98 tbr, 19168 tbn, 38336 tbc (default)</font></i></div><div class="gmail_default" style="font-family:georgia,serif"><i><font color="#38761d"> Metadata:</font></i></div><div class="gmail_default" style="font-family:georgia,serif"><i><font color="#38761d"> handler_name : VideoHandler</font></i></div><div class="gmail_default" style="font-family:georgia,serif"><i><font color="#38761d"> Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, stereo, fltp, 76 kb/s (default)</font></i></div><div class="gmail_default" style="font-family:georgia,serif"><i><font color="#38761d"> Metadata:</font></i></div><div class="gmail_default" style="font-family:georgia,serif"><i><font color="#38761d"> handler_name : SoundHandler</font></i></div><div class="gmail_default" style="font-family:georgia,serif"><i><font color="#38761d"> Stream #0:2(und): Video: png (mp4v / 0x7634706D), rgb24(pc), 640x360 [SAR 3779:3779 DAR 16:9], 912 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc</font></i></div><div class="gmail_default" style="font-family:georgia,serif"><i><font color="#38761d"> Metadata:</font></i></div><div class="gmail_default" style="font-family:georgia,serif"><i><font color="#38761d"> handler_name : VideoHandler</font></i></div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">But if I add cover art via AtomicParsley, generated file can show preview in Win explorer. Bellow is the ffprobe output of AtomicParsley generated file</div><div style="font-family:georgia,serif"><br></div><div><div><font face="georgia, serif" color="#38761d"><i>[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000eb98e0] stream 0, timescale not set</i></font></div><div><font face="georgia, serif" color="#38761d"><i>Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'big11-temp-25498.mp4':</i></font></div><div><font face="georgia, serif" color="#38761d"><i> Metadata:</i></font></div><div><font face="georgia, serif" color="#38761d"><i> major_brand : isom</i></font></div><div><font face="georgia, serif" color="#38761d"><i> minor_version : 512</i></font></div><div><font face="georgia, serif" color="#38761d"><i> compatible_brands: isomiso2avc1mp41</i></font></div><div><font face="georgia, serif" color="#38761d"><i> encoder : Lavf55.33.100</i></font></div><div><font face="georgia, serif" color="#38761d"><i> Duration: 00:01:00.19, start: 0.000000, bitrate: 805 kb/s</i></font></div><div><font face="georgia, serif" color="#38761d"><i> Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 727 kb/s, 23.91 fps, 23.98 tbr, 19168 tbn, 38336 tbc (default)</i></font></div><div><font face="georgia, serif" color="#38761d"><i> Metadata:</i></font></div><div><font face="georgia, serif" color="#38761d"><i> handler_name : VideoHandler</i></font></div><div><font face="georgia, serif" color="#38761d"><i> Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, stereo, fltp, 76 kb/s (default)</i></font></div><div><font face="georgia, serif" color="#38761d"><i> Metadata:</i></font></div><div><font face="georgia, serif" color="#38761d"><i> handler_name : SoundHandler</i></font></div><div><font face="georgia, serif" color="#38761d"><i> Stream #0:2: Video: png, rgb24(pc), 640x360 [SAR 3779:3779 DAR 16:9], 90k tbr, 90k tbn, 90k tbc</i></font></div></div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">Thanks for help</div></div></div></div>
<br>______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/<wbr>listinfo/libav-user</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Shu. Wang @ Bestminr<br><a href="http://halfelf.me" target="_blank">http://halfelf.me</a></div></div>
</div>