I would like to convert some music videos to mp3 using ffmpeg.
How can I add a cover image from a specific part of the video (maybe by giving a minute and (decimal?)second) ?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityUse
ffmpeg -i video.mp4 -map 0:v:0 -map 0:a -vf trim=start='MM\:SS.mmm',trim=end_frame=1,setpts=0,scale=320:-1 -c:v:0 mjpeg -disposition:0 attached_pic out.mp3
where MM\:SS.mmm
represents the time stamp of the image; (Colons should be escaped).
You don't usually to need to store a full-sized frame so I've added a scale filter.