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

Video Stream does not work #64

Open
duncanmix opened this issue Sep 29, 2019 · 8 comments
Open

Video Stream does not work #64

duncanmix opened this issue Sep 29, 2019 · 8 comments

Comments

@duncanmix
Copy link

Pygame shows a black screen when the code runs

@trooperisme
Copy link

same here @hanyazou please come and help us

@hanyazou
Copy link
Owner

hanyazou commented Mar 8, 2020

Some people, including me, can run without errors. But others cannot...
At least, I tested on MacOS 10.13 and ubuntu 16.04.
Are you using Windows?

@trooperisme
Copy link

trooperisme commented Mar 10, 2020

@hanyazou first of all, I am sorry for the late response. Yes, I actually run on Windows 7 and when I try the other sample script such as "python -m tellopy.examples.joystick_and_video". I ended up getting the error

Tello: 01:01:41.501: Error: video recv: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/home/dusan/miniconda2/lib/python2.7/site-packages/tellopy/_internal/tello.py", line 694, in __video_thread
self.__publish(event=self.EVENT_VIDEO_FRAME, data=data[2:])
File "/home/dusan/miniconda2/lib/python2.7/site-packages/tellopy/_internal/tello.py", line 154, in __publish
dispatcher.send(event, sender=self, **args)
File "/home/dusan/miniconda2/lib/python2.7/site-packages/tellopy/_internal/dispatcher.py", line 35, in send
receiver(event=sig, **named)
File "keyboard_and_video.py", line 191, in videoFrameHandler
video_player = Popen(cmd + ['-'], stdin=PIPE)
File "/home/dusan/miniconda2/lib/python2.7/subprocess.py", line 394, in init
errread, errwrite)
File "/home/dusan/miniconda2/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

@trooperisme
Copy link

trooperisme commented Mar 10, 2020

And then I try to find the issue on github, I find out that you have already solved the issue in this thread: #33. Actually, I try to follow your instruction (install the latest mplayer from pypi). However, I still get the same issue. In my opinion, there could be something wrong with the mplayer library, so that the window is unable to show up properly
(I am thinking of getting a brand new laptop to give it another try now lol)

@hanyazou
Copy link
Owner

I am not familiar with Windows. Did you check where mplayer executable file and dynamic link libraries are? Did you try to add those path to your environment variables?

@trooperisme
Copy link

hi @hanyazou , could you review #78 (its very easy, im just not familiar with '%s')

@ricafort
Copy link

ricafort commented Jul 6, 2020

@hanyazou . I am having same issue too

@Helge543
Copy link

Helge543 commented Aug 19, 2021

Some people, including me, can run without errors. But others cannot...
At least, I tested on MacOS 10.13 and ubuntu 16.04.
Are you using Windows?

@hanyazou what did you do that the PyGame screen shows correct images on Ubuntu ?

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

5 participants