FinlayDaG33k
Posts: 14
Joined: Mon Feb 22, 2016 5:56 pm

ffmpeg recording with low FPS

Wed Aug 03, 2016 3:05 pm

Hii there,
so I'm trying to get my pi to be a portable recording box...
but unfortunately I can only get unworkable results so far.

I get very low FPS (about 7FPS) and very bad audio (just a bunch of noise with the actual thing it should record, which cuts off all the time) using ffmpeg.

here is the command that I'm using:

Code: Select all

ffmpeg -thread_queue_size 12 -s hd720 -i /dev/video0 -f alsa -i hw:1,0 -qscale 0 "test.mp4"
is there some way to make it run properly? (not that noise and extremely laggy video?)
For demonstration on how it is now, I have uploaded this video to my youtube so you can get a bit of a view on how terrible it runs now..

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26660
Joined: Sat Jul 30, 2011 7:41 pm

Re: ffmpeg recording with low FPS

Wed Aug 03, 2016 3:11 pm

That's probably using software encoding rather than the HW encoder which is good for 1080p30.

What are you trying to record, from where with what desired results?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

FinlayDaG33k
Posts: 14
Joined: Mon Feb 22, 2016 5:56 pm

Re: ffmpeg recording with low FPS

Wed Aug 03, 2016 3:13 pm

jamesh wrote:That's probably using software encoding rather than the HW encoder which is good for 1080p30.

What are you trying to record, from where with what desired results?
I am trying to record my webcam, and I expect it to well... record decent quality videos with fully working audio without all the lag.

Return to “Troubleshooting”