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

2021-01-11 Thread Vijay Rakesh Munganda
Hi All, Kindly please anyone suggest me. Thanks & Regards, Vijay Rakesh > On 11-Jan-2021, at 10:06, Vijay Rakesh Munganda > wrote: > >  > Hi Moritz, > >> Assuming ffmpeg actually segments like this (and not on keyframes): >> Individual >> frames cannot normally be played, unless they are

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

2021-01-10 Thread Vijay Rakesh Munganda
Hi Moritz, Assuming ffmpeg actually segments like this (and not on keyframes): > Individual > frames cannot normally be played, unless they are keyframes. You should > play the complete segment "playlist" as a whole. ffplay will have > trouble identifying the streams and codecs in such a short

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

2021-01-09 Thread Vijay Rakesh Munganda
Hi Moritz, > > "-segment_time 00:00.040"? > Are you trying to create a segment for each single frame? > No, I’m trying to create h264 video and aac audio of every 40ms continuously upto 10s. So that I can send these video and audio files as a fragments to the AWS kinesis video streams, at

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

2021-01-09 Thread Moritz Barsnick
Hi Vijay, On Sat, Jan 09, 2021 at 14:33:59 +0530, Vijay Rakesh Munganda wrote: > 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 -s:v 640x480 -t 0:10 -r 25 -g 1 > -segment_time

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

2021-01-09 Thread Vijay Rakesh Munganda
Hi Carl, Just now gone through the documentation, and got know -r used for FPS. So I had made changes and executed the command as follows, but I got the same following errors while playing using ffplay. Kindly please help me in this regard. Command: ffmpeg -f alsa -thread_queue_size 1024 -i

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

2021-01-08 Thread Vijay Rakesh Munganda
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 wrote: > >  > >> Am

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

2021-01-08 Thread Carl Eugen Hoyos
> Am 08.01.2021 um 17:17 schrieb Vijay Rakesh Munganda > : > > 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

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

2021-01-08 Thread Vijay Rakesh Munganda
Hi, I’m trying to record audio and video from webcam with ffmpeg using below command, but I’m unable to play all generated files using ffplay. Command: 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