[FFmpeg-user] generating a poster uses all my ram

chovy chovy at protonmail.ch
Tue Dec 29 06:35:59 CET 2015


I was doing a stream copy which works fine, very little resources are used. But as soon as I add the flags to generate a poster, all my RAM is maxed out.

ffmpeg \
-y \
-threads 8 \
-analyzeduration 10 \
-probesize 10000000 \
-user-agent "${agent}" \
-headers "User-Agent: ${agent}\n" \
-headers "Connection: keep-alive\n" \
-cookies "${cookie2} path=/; domain=${cookie_host};\r\n" \
-headers "Cookie: ${cookie2};\r\n" \
-i "${input}" \
-vf fps=1/60 -update 1 "${path}/poster.png" \
-copytb 1 \
-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}" \
> "$HOME/log/${name}.log" 2>&1 &

Is there any less resource intensive way of doing this?

Ideally the poster image would update every minute.


More information about the ffmpeg-user mailing list