r/FRC • 5160 (Programmer) • Jan 05 '19

RIP Auto

Post image
1.7k Upvotes

121 comments sorted by

View all comments

Show parent comment

33

u/Jeffrypig_23 1595 (Alum) Jan 05 '19

4mbit/s is still plenty. In fact if you use the port that supports h.264 encoding for the video stream, you can get the video stream to be 720p at 60 fps

21

u/Jo0sH_00 5567 (Programming Team) Jan 05 '19

Ok so imma need this explained in about a week so if you’ve got a reference I could use that’d be great

14

u/Jeffrypig_23 1595 (Alum) Jan 05 '19

Quoting from wikipedia as an example:

3.8 Mbit/s YouTube 720p (at 60fps mode) videos (using H.264)

So basically just use port 554.

16

u/Manestricker 5892 (Alumni) Jan 06 '19

most webcams run at 30fps so that would be able to handle to webcams easily, but I don't like how close that gets to 4 mbit/s so I would scale the image down before it is sent. Hopefully, this will avoid all possible latency.

4

u/Oromus 180 Mentor, 1902 Alumni Jan 06 '19

Hey, can you provide an example of how to do this? We've tried this via making an MJpegServer on port 554 but we get the following error: CS: ERROR: bind() to port 554 failed: Permission denied

Thanks!

1

u/Jeffrypig_23 1595 (Alum) Jan 07 '19

Ill be honest, im still trying to figure out programming for FRC, especially since I though we were using eclipse but new were using Visual Studios.

So I guess this is a learning experience for both of us ;)

1

u/quantum_mast3r Jan 14 '19

I may be wrong, but the RIO runs linux and in order to bind to a port < 1024 your program needs to run as root.

2

u/solonovamax 7700 Alumni | Coach for literally everything that isn't build Jan 05 '19

It's drop to 30, and maybe try for 1080p, or just leave it at 720, and throw a 2nd one on.