[FFmpeg-user] How to set preview of video?

Gyan Doshi ffmpeg at gyani.pro
Thu Apr 30 07:33:33 EEST 2020



On 29-04-2020 11:53 pm, Cemal Direk wrote:
> Hi, i wanna set preview  of any video? like thumbnail.
>
> is ffmpeg supporting this property?
>
> i am using this code  its other method...
>
> ffmpeg -i video.mp4 -i image.png -map 0 -map 1 -c copy -c:v:1 png
> -disposition:v:1 attached_pic -y out.mp4
>
>
> but i wondered. can i set 15. seconds of video as  thumbnail. without
> import any video or image?

Basic syntax is

|ffmpeg -i file.mp4 -ss 15 -i file.mp4 -map 1:v:0 -map 0 \ -filter:v:0 
scale=320:-1,trim=end_frame=1 -c copy -c:v:0 mjpeg -disposition:0 
attached_pic out.mp4|


Gyan


More information about the ffmpeg-user mailing list