[FFmpeg-user] Audio cut when using select filter

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Feb 8 12:09:43 EET 2017


2017-01-17 17:15 GMT+01:00 Martin Ždila <m.zdila at gmail.com>:

> I am trying to grab a screen with audio, record it to mp4 file and also
> extract 60th frame as jpeg:
>
> ffmpeg -hide_banner -y -thread_queue_size 512 -video_size 800x600
> -framerate 30 -r 30 -f x11grab -draw_mouse 0 -i :0.0 -thread_queue_size 512
> -f pulse -i default -filter_complex
> "[0:v]split=2[in1][in2];[in2]copy[out2];[in1]select=eq(n\,60)[out1]" -map
> '[out2]' -map '1:a' -vcodec libx264 -acodec libmp3lame -preset fast xxx.mp4
> -map '[out1]' -frames:v 1 xxx.jpeg

Remove "-r 30" and provide both command line and complete, uncut
console output.

Carl Eugen


More information about the ffmpeg-user mailing list