Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to stream video #3

Closed
bwang514 opened this issue Nov 30, 2018 · 6 comments
Closed

Failed to stream video #3

bwang514 opened this issue Nov 30, 2018 · 6 comments
Assignees
Labels

Comments

@bwang514
Copy link

Hi ddetommaso, thanks for sharing the code to control tobii glasses!

With your code I can stream the gaze data now but I failed to stream the scene camera video.

I got an error in this line of code.
ipv4_address = "192.168.71.50"
cap = cv2.VideoCapture("rtsp://%s/live/scene" % ipv4_address)
Does using ipv4 address here means the code can only work with wifi connection?
Since in streaming code we seem to use ipv6 I . (e.g. fe80::76fe:......)

Thanks!

@ddetommaso
Copy link
Owner

Hi @bwang514,
you are right, the code works only using IPv4 address.
I wasn't able to access any video streaming of the glasses with IPv6 address, even using VLC software.

What about your experience? Did you try to access the /live/scene using IPV6?

@FranzAlbers
Copy link

Hey @bwang514,
i experienced the same issue while trying to stream the scene camera video.
I solved it by adding port 8554 to the call, which is mentioned in the tobii developers guide.

cap = cv2.VideoCapture("rtsp://%s:8554/live/scene" % ipv4_address)

@ddetommaso
Copy link
Owner

ddetommaso commented Dec 17, 2018

Hi @FranzAlbers,

this doesn't work for me. In your example, are you using IPv6 or IPv4 address ?
Please can you paste here the complete URI provided as argument to the VideoCapture?

@FranzAlbers
Copy link

FranzAlbers commented Dec 17, 2018

I am using an IPv4 address and the Tobii Glasses are connected via Ethernet. I couldn't access the stream using IPv6 either. The complete line of code would be:

cap = cv2.VideoCapture("rtsp://192.168.0.121:8554/live/scene")

Without the port in the URI the connection is refused. The glasses are on 1.25.3-citronkola.

@ddetommaso
Copy link
Owner

Hi @FranzAlbers,

thank you so much for your feedback. I run successfully the video streaming with LAN using IPv4!!
I will change the code and the documentation in the following releases, before closing the issue.

Just to clarify, IPv4 with LAN is feasible only if a DHCP server is present in the network. In your example, the "192.168.0.121" is the address that the glasses receives from the DHCP server present in your network.

@bwang514: Did you try setting a DHCP server in your network and adding the port in the URI as suggested by @FranzAlbers ?

@ddetommaso ddetommaso self-assigned this Dec 19, 2018
@ddetommaso ddetommaso added the bug label Dec 19, 2018
@ddetommaso
Copy link
Owner

closed eec39d1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants