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

Michael Koch astroelectronic at t-online.de
Thu Apr 30 14:05:42 EEST 2020


Am 30.04.2020 um 10:23 schrieb Gyan Doshi:
>
>
> On 30-04-2020 12:09 pm, Michael Koch wrote:
>> Am 30.04.2020 um 06:33 schrieb Gyan Doshi:
>>>
>>> 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|
>>
>> What's the meaning of the "|" characters at the beginning and end?
>> What's the meaning of the "\" character and how must this command 
>> line be modified for a Windows batch file?
>
> Sorry, it seems the line break wasn't preserved. Delete the \. Don't 
> know how the | showed up.

At first your command line didn't work with my video, probably because 
my video has a timecode stream. I did replace "-map 0" by "-map 0:0 -map 
0:1" and now it works fine.

Michael



More information about the ffmpeg-user mailing list