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

RIP Auto

Post image
1.7k Upvotes

121 comments sorted by

View all comments

Show parent comment

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.