[FFmpeg-user] generate a poster image with ffmpeg

chovy chovy at protonmail.ch
Mon Dec 28 23:46:27 CET 2015


Actually, I'm seeing weirdness in output now after using this flag.

Here's the full command....am I doing this right? I want to generate a poster every 60 seconds in addition to copy a stream.

ffmpeg \
-y \
-threads 8 \
-analyzeduration 10 \
-probesize 10000000 \
-user-agent "${agent}" \
-headers "User-Agent: ${agent}" \
-headers "Connection: keep-alive" \
-cookies "${cookie} path=/; domain=${cookie_host};\n${cookie2} path=/; domain=${cookie_host};\n" \
-i "${input}" \
-copytb 1 \
-vf fps=1/60 -update 1 "${path}/poster.png" \
-hls_time 10 -hls_list_size 10 -hls_wrap 10 \
-hls_flags delete_segments \
-hls_segment_filename "${path}/video%03d.ts" \
-c:v copy -c:a copy \
"${out_m3u8}"


-------- Original Message --------
Subject: Re: [FFmpeg-user] generate a poster image with ffmpeg
Local Time: December 28 2015 11:15 am
UTC Time: December 28 2015 7:15 pm
From: h.reindl at thelounge.net
To: ffmpeg-user at ffmpeg.org



Am 28.12.2015 um 20:12 schrieb chovy:
> That's what I tried. But got an error.

well, that was missing in your initial post

http://www.catb.org/esr/faqs/smart-questions.html#beprecise helps a lot
because it saves answers "try this and that" when you already tried
"this and that"

> I needed -update 1
>
> -------- Original Message --------
> Subject: Re: [FFmpeg-user] generate a poster image with ffmpeg
> Local Time: December 28 2015 3:07 am
> UTC Time: December 28 2015 11:07 am
> From: h.reindl at thelounge.net
> To: ffmpeg-user at ffmpeg.org
>
>
>
> Am 28.12.2015 um 11:55 schrieb chovy:
>> I'm using this command with ffmpeg to generate a poster image every 60 seconds (it works as expected).
>>
>> -vf fps=1/60 "${path}/poster%03d.png"
>>
>> I would like to however just overwrite poster.png every time instead of creating a unique filename for each image.
>
> so just replace "poster%03d.png" with that filename

_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


More information about the ffmpeg-user mailing list