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

Error: video recv: timeout #29 #77

Closed
CrashxZ opened this issue Feb 18, 2020 · 8 comments
Closed

Error: video recv: timeout #29 #77

CrashxZ opened this issue Feb 18, 2020 · 8 comments

Comments

@CrashxZ
Copy link

CrashxZ commented Feb 18, 2020

Hi, I am trying to get the video from tello, and I am still getting this error ( Error: video recv: timeout)
Its the same from issue #29

Here is the log:

mainak@mainak:~$ python -m tellopy.examples.video_effect
Tello: 02:13:07.741: Info: send connection request (cmd="conn_req:9617")
Tello: 02:13:07.742: Info: state transit State::disconnected -> State::connecting
Tello: 02:13:07.742: Info: start video thread
Tello: 02:13:07.742: Info: video receive buffer size = 425984
Tello: 02:13:07.771: Info: connected. (port=9617)
Tello: 02:13:07.771: Info: send_time (cmd=0x46 seq=0x01e4)
Tello: 02:13:07.772: Info: state transit State::connecting -> State::connected
Tello: 02:13:07.775: Info: get video stream
Tello: 02:13:07.775: Info: start video (cmd=0x25 seq=0x01e4)
Tello: 02:13:07.821: Info: recv: ack: cmd=0x34 seq=0x0000 cc 60 00 27 90 34 00 00 00 00 72 a5
Tello: 02:13:07.821: Info: recv: ack: cmd=0x20 seq=0x0000 cc 60 00 27 b0 20 00 00 00 00 42 b9
Tello: 02:13:07.822: Info: recv: ack: cmd=0x34 seq=0x0000 cc 60 00 27 90 34 00 00 00 00 72 a5
Tello: 02:13:07.823: Info: recv: ack: cmd=0x20 seq=0x0000 cc 60 00 27 b0 20 00 00 00 00 42 b9
Tello: 02:13:13.745: Error: video recv: timeout
Tello: 02:13:18.750: Error: video recv: timeout
Tello: 02:13:23.756: Error: video recv: timeout
Tello: 02:13:28.769: Error: video recv: timeout
Tello: 02:13:33.769: Error: video recv: timeout
Traceback (most recent call last):
File "/home/mainak/.local/lib/python2.7/site-packages/tellopy/examples/video_effect.py", line 17, in main
container = av.open(drone.get_video_stream())
File "av/container/core.pyx", line 274, in av.container.core.open
File "av/container/core.pyx", line 226, in av.container.core.Container.cinit
File "av/container/core.pyx", line 123, in av.container.core.ContainerProxy.init
File "av/container/core.pyx", line 194, in av.container.core.ContainerProxy.err_check
File "av/utils.pyx", line 105, in av.utils.err_check
AVError: [Errno 1094995529] Invalid data found when processing input: ''
[Errno 1094995529] Invalid data found when processing input: ''
Tello: 02:13:37.790: Info: quit
Tello: 02:13:37.790: Info: state transit State::connected -> State::quit
<class 'tellopy._internal.video_stream.VideoStream'>.handle_event(DISCONNECTED)
Tello: 02:13:37.843: Info: exit from the recv thread.
Tello: 02:13:38.771: Error: video recv: timeout
Tello: 02:13:38.771: Info: exit from the video thread.

@ricafort
Copy link

ricafort commented Jul 6, 2020

@hanyazou . I am having same issue too

@tufeixp
Copy link

tufeixp commented Sep 28, 2020

@hanyazou , same here on windows 10 @ python 3.8

Tello: 23:09:15.264: Info: start video thread
Tello: 23:09:15.264: Info: send connection request (cmd="conn_req:9617")
Tello: 23:09:15.298: Info: video receive buffer size = 524288
Tello: 23:09:15.303: Info: state transit State::disconnected -> State::connecting
Tello: 23:09:15.323: Info: connected. (port=9617)
Tello: 23:09:15.333: Info: send_time (cmd=0x46 seq=0x01e4)
Tello: 23:09:15.342: Info: state transit State::connecting -> State::connected
Tello: 23:09:15.343: Info: get video stream
Tello: 23:09:15.353: Info: start video (cmd=0x25 seq=0x01e4)
Tello: 23:09:15.375: Info: recv: ack: cmd=0x34 seq=0x0000 cc 60 00 27 90 34 00 00 00 00 72 a5
Tello: 23:09:15.387: Info: recv: ack: cmd=0x20 seq=0x0000 cc 60 00 27 b0 20 00 00 00 00 42 b9
Tello: 23:09:15.399: Info: recv: ack: cmd=0x34 seq=0x0000 cc 60 00 27 90 34 00 00 00 00 72 a5
Tello: 23:09:15.405: Info: recv: ack: cmd=0x20 seq=0x0000 cc 60 00 27 b0 20 00 00 00 00 42 b9
Tello: 23:09:31.330: Error: video recv: timeout
Tello: 23:09:46.433: Error: video recv: timeout
Tello: 23:10:01.441: Error: video recv: timeout
Tello: 23:10:16.460: Error: video recv: timeout
Tello: 23:10:31.500: Error: video recv: timeout

@Walt-H
Copy link

Walt-H commented Sep 29, 2020

I had the same issues, comments here worked for a few of us Windows users: #78 (comment)

@adrienJeg
Copy link

Same issue on Ubuntu 18.04 and Python 3.8

@AlessandroRuggiero
Copy link

I had the same issue for months, no solutions so far....

@samlaf
Copy link

samlaf commented Feb 23, 2021

I think I found a solution for this.
You just need to add a call to wait_for_connection:

drone.connect()
drone.wait_for_connection(10.0)
drone.start_video()

Alternatively, you can add the call to wait_for_connection directly inside connect, as I did in this pull request.

@Helge543
Copy link

Helge543 commented Aug 19, 2021

@samlaf are you sure that your solution works? I also tried this in the keyboard_and_video.py example but it did not work. What do you mean by "Alternatively, you can add the call to wait_for_connection directly inside connect"? you mean like

def connect(self):
        """Connect is used to send the initial connection request to the drone."""
        self.__publish(event=self.__EVENT_CONN_REQ)
        self.wait_for_connection(10.0)

... because this also does not work. Completely black window, even the status is not shown anymore on the upper left.

@samlaf
Copy link

samlaf commented Aug 20, 2021 via email

@CrashxZ CrashxZ closed this as completed Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants