Hi there! I'm having a bit of a problem right now. I need to record/stream a feed from a USB camera at 1280x720@30fps. I tried the following command:It works well for the first 1-2 seconds, then it slows down and drops frames. example If I use -c:v copy it works without a problem, but I need a h264 video.Code:sudo ffmpeg -f v4l2 -input_format mjpeg -framerate 30 -video_size 1280x720 -i /dev/video0 -pix_fmt yuv420p -r 30 -c:v h264_v4l2m2m -b:v 5M output_26.mp4
I have overclocked the Pi at 1000MHz and I expected better performace. I suspect it's ffmpeg's fault, as it works for a second, but then slows down. Is there anything I can change in my command to fix this issue? Maybe buffer for 10-15 seconds before starting recording/streaming?
+ Reply to Thread
Results 1 to 1 of 1
-
Last edited by Andrei2; 27th Mar 2023 at 02:22.
Similar Threads
-
FFMPEG Save video from rtsp stream to hls stream
By Wisperrio in forum Video Streaming DownloadingReplies: 2Last Post: 26th Aug 2021, 22:38 -
Trying to make continuous ffmpeg live stream but failing
By SanaNe in forum Newbie / General discussionsReplies: 1Last Post: 12th Jul 2021, 02:51 -
Ffmpeg - webm live input to HLS m3u8 live output
By 1ewis in forum Video ConversionReplies: 0Last Post: 15th Apr 2021, 08:54 -
NEWBIE Raspberry Pi Zero W | ffmpeg video output issue. | via ssh
By EvasiveSnail in forum Newbie / General discussionsReplies: 3Last Post: 4th Nov 2020, 10:53 -
video settings for a raspberry pi with the official pi camera.
By damienbourgeois in forum Newbie / General discussionsReplies: 0Last Post: 27th May 2018, 11:02