[FFmpeg-user] How to record video and audio in parallel for every 40ms continuous upto 10s

Vijay Rakesh Munganda vijayrakeshmunganda at gmail.com
Thu Jan 7 14:56:26 EET 2021


Hi,

I’m new to FFMEPG, how to record video and audio in a separate files for every 40ms continuously upto 10 seconds from webcam using FFMPEG? I used below command, but it is generating 250 audio and only 1 video file. Also it is generating audio then video, I need it parallel, video with respective audio. 

ffmpeg -f alsa -thread_queue_size 1024 -i hw:0 -f video4linux2 -i /dev/video0 -c:a aac -t 0:10 -segment_time 00:00.040 -f segment audio_%003d.aac -c:v libx264 -t 0:10 -segment_time 00:00.040 -f segment out_%003d.h264

Thanks & Regards,
Vijay Rakesh


More information about the ffmpeg-user mailing list