amymcgovern / pyparrot

Python interface for Parrot Drones
MIT License
276 stars 129 forks source link

Bebop2 with libVLC #170

Open Yeb02 opened 5 years ago

Yeb02 commented 5 years ago

Hi, I've had some issues with the libVLC demo code for the Bebop (using bebop 2 and windows 10): Almost the whole lower half of the stream's pictures is in ultra low resolution, whereas the rest is fine. The VLC window displays the stream, which suffers the flaw mentionned above. The window crashes when closing: it seems like bebopVision.close_video() is the problem since the "print" after it doesnt show up. Do you know how to solve the quality and closing issues ?

Edit: For closing, inducing a syntax error at the end of the user code and then use bebop.disconnect() in the shell works quite well.

Thank you,

amymcgovern commented 5 years ago

Glad you fixed it...

Yeb02 commented 5 years ago

Do you have stream quality issues with your Bebop 2 ?

amymcgovern commented 5 years ago

Not on 5Ghz. On 2Ghz, for sure. Move the Bebop to 5Ghz with the phone app.

Yeb02 commented 5 years ago

I did, but im still getting pictures like the following :

test

The size of the blurred stripe hasnt even changed. Should I reset my drone ? (If it helps, the blurred part is actualized every 1 or 2 second during the stream, unlike the rest (25 fps). Thank you,

amymcgovern commented 5 years ago

I definitely would try a reset. Do you get the same strange area on your phone when you look at the video? Have you recorded from the drone and is it showing there? Almost like your camera isn't sending the last part right. Definitely not what I see. I see dropped frames a lot but not that!

amymcgovern commented 5 years ago

p.s. if you reset you have to go back to 5Ghz again.

Yeb02 commented 5 years ago

The reset didnt change anything, and videos with freeflight pro are fine. I'll try with other versions of VLC. Which one are you running with ? (I had difficulties with other projects so I've reset my computer as well, it didn't change a thing. VLC has to be the problem.) Thank you,

Yeb02 commented 5 years ago

Even using the oldest working versions (like 3.0.2) didn't solve it. Could it have something to do with the bebop's software version ?

amymcgovern commented 5 years ago

I really don't know :( I've never seen that issue on mine at all!

Yeb02 commented 5 years ago

I created a linux (ubuntu 18.04) partition on the same computer and the bug disappeared. Really don't understand the problem since the versions are the same, but well, it works.

nigelveach commented 4 years ago

Hi! I am having exactly the same issue (a blurry bar at the bottom of the VLC). Did either of you discover a fix to this problem, other than running it on linux?

Adnan-961 commented 1 year ago

I did, but im still getting pictures like the following :

test

The size of the blurred stripe hasnt even changed. Should I reset my drone ? (If it helps, the blurred part is actualized every 1 or 2 second during the stream, unlike the rest (25 fps). Thank you,

can u share the code