stephendade / Rpanion-server

Web-based configurator for companion computers of MAVLink vehicles
https://www.docs.rpanion.com/software/rpanion-server
GNU General Public License v3.0
146 stars 62 forks source link

Can't set "Maximum Bitrate" beyond 10MB on Raspberry Pi3B+ #191

Closed lida2003 closed 10 months ago

lida2003 commented 10 months ago

if I set Maximum Bitrate more than 10Mbps, such as 11Mbps. It will not take effect and blank the web page.

It'll be useful for high rate settings, as 720P@10Hz takes roughly about 7~8Mbps.

Tried gpu_mem=196, no luck!

图片

图片

stephendade commented 10 months ago

That's deliberate - I'd set the max allowable bitrate to 10Mbps. I've now upped this to 60Mbps. Fixed in #193.

lida2003 commented 10 months ago

Just git pull. Got below result:

50M/30M/25M ==> VLC can't work 10M/20M ==> VLC works

Should I re-install(deploy) from the source?

图片

stephendade commented 10 months ago

50M/30M/25M ==> VLC can't work 10M/20M ==> VLC works

Yep, that's expected. The x264 hardware encoder on the Pi can do a maximum of 20Mbps.

The encoder is level 4 compliant, and according to https://blog.mediacoderhq.com/h264-profiles-and-levels/, that equates to 20Mbps.

EDIT: Is there any particular reason you need these high bitrates? At this sort of level, I'd be recommending an Nvidia Jetson or similar.

lida2003 commented 10 months ago

The encoder is level 4 compliant, and according to https://blog.mediacoderhq.com/h264-profiles-and-levels/, that equates to 20Mbps.

Video: Limit bitrate to 20Mbps

I checked link, it seems level 4 can run over 20Mbps when in different profiles. Please correct me if I'm wrong.

Is there any particular reason you need these high bitrates? At this sort of level, I'd be recommending an Nvidia Jetson or similar.

Just test with higher fps rate. I'm trying to install this on my copter.

stephendade commented 10 months ago

In #195 I've updated to using the "high" profile, allowing for up to 50Mbps. Tested on a 3b+ and works well.

Note that the "bitrate" setting in the web GUI is a maximum number. The actual bitrate depends alot on the movement in the frame.

lida2003 commented 10 months ago

In #195 I've updated to using the "high" profile, allowing for up to 50Mbps. Tested on a 3b+ and works well.

I would be nice to have 50Mbps.

stephendade commented 10 months ago

I would be nice to have 50Mbps.

I meant "up to and including 50Mbps"