Go to Post I didn't know that Dean Kamen had 3 arms. - kevin.li.rit [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-18-2012, 03:27 PM
dan2915 dan2915 is offline
Registered User
None #2915
 
Join Date: Nov 2008
Location: Oregon
Posts: 5
dan2915 is an unknown quantity at this point
Can't connect SmartDashboard to Camera

Hello all,
We're having trouble connecting our SmartDashboard to our camera. We're using the WPICameraExtension and we're getting the following error:


Stream #0.0: Video: mjpeg, yuvj420p, 320x240, 25 fps, 25 tbr, 1200k tbn, 25 tbc

[swscaler @ 0473CE60] No accelerated colorspace conversion found from yuv420p to bgr24.

[mjpeg @ 04787920] max_analyze_duration reached

[mjpeg @ 04787920] Estimating duration from bitrate, this may be inaccurate

Input #0, mjpeg, from 'http://10.29.15.11/mjpg/video.mjpg':

Duration: N/A, bitrate: N/A


We have our camera setup for Anonymous viewing, and the weird thing is that if we wait long enough, it will sometimes connect. We have scoured ChiefDelphi and we have tried nearly everything.

We believe that the problem is with our copy of ffmpeg. Any suggestions? We can't display the raw image on the SmartDashboard but we can see it fine from the Axis Camera browser tool. Any help would be great, thank you!
Reply With Quote
  #2   Spotlight this post!  
Unread 02-29-2012, 08:12 PM
LukeS LukeS is offline
4272 mentor, 1024 alumnus
AKA: Luke Shumaker
FRC #4272
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Indianapolis, IN
Posts: 60
LukeS is an unknown quantity at this point
Re: Can't connect SmartDashboard to Camera

We have the same problem. It appears to be that ffmpeg was compiled without x264 support (which contains the yuv420p to bgr24 conversion), or for some reason isn't loading it.

This confuses me, as others are able to use the camera with the SmartDashboard.

Replacing ffmpeg usually requires a recompile of dependent programs (usually not binary compatible), which in this case means OpenCV. I'd feel comfortable doing this on a real operating system, but am unsure of what I need to do on Windows.

I have verified that http://10.10.24.11/mjpg/video.mjpg is a valid video stream, and that it is ffmpeg/OpenCV that is having problems reading it.

We are using the 2012 image for the E09 netbook.
Reply With Quote
  #3   Spotlight this post!  
Unread 03-03-2012, 06:27 PM
LukeS LukeS is offline
4272 mentor, 1024 alumnus
AKA: Luke Shumaker
FRC #4272
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Indianapolis, IN
Posts: 60
LukeS is an unknown quantity at this point
Re: Can't connect SmartDashboard to Camera

When logged in as Developer, we are sometimes able to fix this by opening a command prompt and running
Code:
cd \MinGW\bin
ffplay http://10.te.am.11/mjpg/video.mjpg
Why this works, and why it only works sometimes; I have no idea, but it's a step.
Reply With Quote
  #4   Spotlight this post!  
Unread 04-24-2012, 07:05 PM
jarruda jarruda is offline
Software Engineer
AKA: Justin Arruda
FRC #1350 (Rambots)
Team Role: Mentor
 
Join Date: Apr 2012
Rookie Year: 2004
Location: United States
Posts: 16
jarruda is an unknown quantity at this point
Re: Can't connect SmartDashboard to Camera

Has anyone found a solution to this problem, yet?

We would really like to be able to do our image tracking via SmartDashboard and send commands to the robot, but it seems to randomly work very rarely.

Has anyone opted for another dashboard system in place of SmartDashboard?
Reply With Quote
Reply


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 07:51 AM.

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