[FFmpeg-user] How to properly record sound when capturing web cam?

Carl Eugen Hoyos ceffmpeg at gmail.com
Tue May 1 14:04:18 EEST 2018


2018-05-01 12:54 GMT+02:00, Jean Louis <ffmpeg at rcdrun.com>:

> The command that works well is following one:
>
> ffmpeg -f v4l2 -video_size 640x480 -i /dev/video0
> -thread_queue_size 1024 -f alsa -i pulse -bufsize 256k
> output.ogv
>
> however, if I change the format, and use it like:
>
> ffmpeg -f v4l2 -video_size 640x480 -i /dev/video0
> -thread_queue_size 1024 -f alsa -i pulse -bufsize 256k
> output.mp4

Complete, uncut console output missing.

> then in that case the sound get lost some number
> of seconds before the video ends, and all becomes
> silent in the output file.

How do you test the output file?

aac/mp4 output should work better / is much more
tested than vorbis/ogg.

Carl Eugen


More information about the ffmpeg-user mailing list