[FFmpeg-user] Unable to play recorded audio and video from webcam using ffmpeg

Vijay Rakesh Munganda vijayrakeshmunganda at gmail.com
Sat Jan 9 07:13:24 EET 2021


Hi Carl,

Thanks for the reply.  -f 25 for encoding the video in 25 FPS (because 1000 milliseconds / 40 milliseconds = 25 frames) and tell FFmpeg to use every frame as a key frame (-g 1).

Thanks & Regards,
Vijay Rakesh

> On 09-Jan-2021, at 01:04, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> 
> 
> 
>> Am 08.01.2021 um 17:17 schrieb Vijay Rakesh Munganda <vijayrakeshmunganda at gmail.com>:
>> 
>> 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 sample-%003d.aac -c:v libx264 -t -f 25 -g 1 0:10 -segment_time 00:00.040 -f segment frame-%003d.h264
> 
> Complete, uncut console output missing.
> -f 25 looks wrong, did you mean -r 25?
> 
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list