Open simspace-dev opened 3 years ago
Hi @KonradIT, any chance you might know what's happening here and how I might be able to resolve this problem? I'm a developer. My Python skills are so-so, but I'd be happy to help if you can point me in the right direction of handling the "Packet corrupt" errors. Seems like it may be an ffmpeg thing, but I'm not sure.
Hi @simspace-dev ,
I had a bit of a look since I had the same error on my end, with a GoPro Hero 8.
In the "stream" function, calling for "self.KeepAlive()" was causing the error.
By using the loop given in the example opencv_gopro/ffmpegless-preview.py
, I could recreate the same effect as we want from KeepAlive, but without the error. I also thing that it probably comes from ffmpeg itself.
@simspace-dev following on the overview() issue: I did get different errors depending on the kind of gopro I was setting up. Here are some various options:
gopro = GoProCamera.GoPro(constants.gpcontrol) gopro = GoProCamera.GoPro(constants.auth) gopro = GoProCamera.GoPro() Best would be to make this function more resilient, but in the meantime what I did was making my own local overview function, which is almost a copypaste of the lib"s version, without the crashing parts.
Hi @KonradIT,
I am trying to stream GoPro Hero 8 Black video to MPV as shown in this video called "GoPro HERO7 with Python API": https://www.youtube.com/watch?v=i-X4fPVfoW0
I am on Mac OS Catalina running Python 3.9 and I installed gopro-py-api as follows:
pip install goprocam
I can ...
gopro.listMedia(True)
gopro.shoot_video(10)
gopro.take_photo()
Error 1 |
gopro.stream("udp://127.0.0.1:10000")
displays "packet corrupt" messages See the command line output at the bottom of this post.Error 2 |
gopro.overview()
throws this error:I did set a
breakpoint()
in theoverview()
method in "GoProCamera.py" and found there is noSTATUS.mode
with a key of "43" in the raw status data, but I do see a key with "43" in thesettings
json object. Should this be gettingsettings
data instead ofstatus
data?Do you have any suggestions or ideas how I can resolve these issues?
Thanks, Chris
[CLI log of "Packet corrupt" messages]