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

Vijay Rakesh Munganda vijayrakeshmunganda at gmail.com
Fri Jan 8 18:17:52 EET 2021


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 sample-%003d.aac -c:v libx264 -t -f 25 -g 1 0:10 -segment_time 00:00.040 -f segment frame-%003d.h264

Error: 

 Audio Error:Format mpegts detected only with low score of 2, misdetection possible! Could not detect TS packet size, defaulting to non-FEC/DVHSsample-005.aac: could not find codec parameters Format aac detected only with low score of 1, misdetection possible! Estimating duration from bitrate, this may be inaccurate

Video Error:
frame-006.h264: Invalid data found when processing input=0/0

Kindly please suggest me. 

Thanks & Regards,
Vijay Rakesh


More information about the ffmpeg-user mailing list