jschmid1 / gopro_as_webcam_on_linux

Allows to use your GoPro camera as a webcam on linux
Apache License 2.0
517 stars 64 forks source link

Connection fails when using the GoPro Media Mod #47

Open Ridnois opened 1 year ago

Ridnois commented 1 year ago

Model: GoPro Hero 10 Black

This is the log when i do sudo gopro webcam

Running GoPro Webcam Util for Linux [0.0.3]
.....
Discovered: wlp1s0.
Using wlp1s0 to discover the GOPRO_IP.
Found 192.168.100.8
To control the GoPro, we need to contact another interface (GOPRO_IP ending with .51).. Adapting internally..
Now using this GOPRO_IP internally: 192.168.100.51
Error while starting the Webcam mode. # TODO Useful message.

And this is without the GoPro Media Mod

Discovered: enxd474f7536ad1.
Using enxd474f7536ad1 to discover the GOPRO_IP.
Found 172.22.133.52
To control the GoPro, we need to contact another interface (GOPRO_IP ending with .51).. Adapting internally..
Now using this GOPRO_IP internally: 172.22.133.51
{ "status": 2, "error": 0 }
{ "status": 2, "error": 0 }
Sucessfully started the GoPro Webcam mode. (The icon on the Camera should have changed)

You should be ready to use your GoPro on your prefered videostreaming tool. Have Fun!

If you want to use the GoPro in your prefered Video conferencing software (browser and apps works alike) pipe the UDP stream to a video device (that was created already
) with this command: 

ffmpeg -nostdin -threads 1 -i 'udp://@0.0.0.0:8554?overrun_nonfatal=1&fifo_size=50000000' -f:v mpegts -fflags nobuffer -vf format=yuv420p -f v4l2 /dev/video42

To get a preview of the output in vlc you can run this command
To test this try this command(vlc needs to be installed): 

vlc -vvv --network-caching=300 --sout-x264-preset=ultrafast --sout-x264-tune=zerolatency --sout-x264-vbv-bufsize 0 --sout-transcode-threads 4 --no-audio udp://@:8554

I think it couldn't be an issue at all, but i'm just learning how to use this API. any support is very appreciated!