Go to Post So, you're saying there's a correlation between hard work and success? Who woulda thunk it?! - Tom Bottiglieri [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-01-2015, 21:59
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
Using USB Camera with SmartDashboard SFX

Title says it all.
We are using the example code to put the USB camera stream onto the default SmartDashboard. This works.
But we want to use the SmartDashboard SFX. How can we view the camera stream in it? (Or, more simply, what is the URL the usb camera stream is on?)
__________________

2012 Head of Programming and Electrical
2013-14 Overall Team Captain and Programming Head
2012-14 Mentor of FLL Team Power Surge
2014 Dean's List Finalist
2014 CIR Xerox Creativity Award
Webpage
  #2   Spotlight this post!  
Unread 24-01-2015, 13:28
AndrewGRowles's Avatar
AndrewGRowles AndrewGRowles is offline
4901 Mentor
FRC #1876 (BeachBotics)
Team Role: Alumni
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Hilton Head Island, SC
Posts: 20
AndrewGRowles is an unknown quantity at this point
Re: Using USB Camera with SmartDashboard SFX

I have the same question. I've tried listening to port 1180 to see if the robot streams the video from that port, but no luck. Also I tried using WireShark to find the streaming packet.
  #3   Spotlight this post!  
Unread 24-01-2015, 17:49
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Using USB Camera with SmartDashboard SFX

USB cameras are not supported out of the box with SFX. Only MJPG streams are. USB cameras require the sfxcv plugin, which currently causes memory exploding issues with playback and requires some minor changes to sfx to support loading multiple external libraries (namely all of ffmpeg and opencv). I will try to get it working (though without playback) soon.
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #4   Spotlight this post!  
Unread 24-01-2015, 21:56
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
Re: Using USB Camera with SmartDashboard SFX

Quote:
Originally Posted by byteit101 View Post
USB cameras are not supported out of the box with SFX. Only MJPG streams are. USB cameras require the sfxcv plugin, which currently causes memory exploding issues with playback and requires some minor changes to sfx to support loading multiple external libraries (namely all of ffmpeg and opencv). I will try to get it working (though without playback) soon.
Is the camera stream being produced by the RIO not a MJPG stream?
Is there any documentation on the CameraServer available?
__________________

2012 Head of Programming and Electrical
2013-14 Overall Team Captain and Programming Head
2012-14 Mentor of FLL Team Power Surge
2014 Dean's List Finalist
2014 CIR Xerox Creativity Award
Webpage
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:03.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi