Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

With AtomicParsley, you can set the thumbnail that will be displayed when you look at the file in a file explorer. Example commands

$ atomicparsley infile.mp4 --artwork infile.png

$ atomicparsley infile.mp4 -t
Atom "covr" contains: 1 piece of artwork

I notice that the artwork shows up as a stream with FFmpeg

ffmpeg version N-51639-g7775992 Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr  5 2013 22:29:42 with gcc 4.8.0 (GCC)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'A Knight's Tale (2001).mp4':
  Duration: 02:12:08.96, start: 0.000000, bitrate: 2364 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
                             1280x544 [SAR 1:1 DAR 40:17], 2071 kb/s, 23.98 fps,
                             23.98 tbr, 24k tbn, 47.95 tbc
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp,
                             287 kb/s
    Stream #0:2: Video: png, rgb24, 1280x544 [SAR 1:1 DAR 40:17], 90k tbr,
                        90k tbn, 90k tbc

So, is it possible to mux in thumbnail artwork using FFmpeg?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

An alternative to AtomicParsley is mp4box

MP4Box -itags cover=Indestructible.jpg Disturbed-Criminal.mp4

Retrieving cover image from MP4

share|improve this answer

Yes you can, but support depends on your container format; mp4 will work but others may not.

ffmpeg -i INPUT.mp4 -i IMAGE.png -acodec copy -vcodec copy -map 0 -map 1:0 OUTPUT.mp4
share|improve this answer
    
On my system this does not change the default thumbnail, in fact resultant file is left without a thumbnail at all. –  Steven Penny May 21 '13 at 4:17
    
Got you as far as you could AFAIK with ffmpeg. There's a commandline utility called 'mp4art' bundled with the mp4v2 library (found at code.google.com/p/mp4v2/#) that probably does what you really want. –  Patrice Levesque May 21 '13 at 4:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.