Ask a Question
GoPro Support Hub Ask a question. Share an answer. Find a solution. Stay stoked.
Announcements
Is your GoPro gear up to date? Check to see If it is on our Update page.
GoPro Apps for Desktop
Reply
Sightseer
Posts: 1

Re: GoPro as webcam in Linux

[ New ]

I can't get it to work with Hero 8 either. Steps I follow:

1. ifconfig gives the name of the Ethernet over USB connection for the gopro as "enx3662cc6fcb4c"

2.Install dependencies, run the modprobe command and run the aforementioned python script by "python v4l2-hero9-webcam.py enx3662cc6fcb4c" which then outputs:

 

Waking up...
Camera successfully connected!
Connected to 172.25.182.51

and a bunch of ffmpeg settings but no window/gui showing video.

 

3. ls /dev/video* confirms that /dev/video44 exists.

4. v4l2-ctl -d /dev/video44 --info outputs:

 

Driver Info:
Driver name : v4l2 loopback
Card type : GoPro
Bus info : platform:v4l2loopback-044
Driver version : 5.4.73
Capabilities : 0x85208002
Video Output
Video Memory-to-Memory
Read/Write
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x05208002
Video Output
Video Memory-to-Memory
Read/Write
Streaming
Extended Pix Format

 

5. No program (tried VLC, Cheese, Zoom, Firefox) can find the video stream. VLC logs say:

 

main debug: creating access: v4l2:///dev/video44
main debug: (path: /dev/video44)
main debug: looking for access module matching "v4l2": 28 candidates
v4l2 debug: opening device '/dev/video44'
lua debug: skipping script (unmatched scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/02_frenchtv.luac
v4l2 debug: device GoPro using driver v4l2 loopback (version 5.4.73) on platform:v4l2loopback-044
v4l2 debug: with capabilities 0x05208002 (overall 0x85208002)
v4l2 error: not a video capture device
main debug: no access modules matched
main debug: dead input

 

among other things.

 

Can anyone help identify where things are going wrong?

Hiker
Posts: 7

Re: GoPro as webcam in Linux

[ New ]

Nice!
I would also like to jump in and say that I've purchased the GoPro because it also has the webcam support.

I regularly use linux too, and would love to see it supported.

Tourist
Posts: 3

Re: GoPro as webcam in Linux

[ New ]

I tried two other machines and I got it to work without any issues.  For some reason, it won't work with my ThinkPad.  I'm using the same version of Fedora and v4l2loopback module.  

Tourist
Posts: 2

Re: GoPro as webcam in Linux

[ New ]

One more asking gopro to make this happen. It should work as webcam on Linux simply plugging it in. All these jumping all sorts of hoops or installing some proprietary software is not good. Although that would be improvement over current situation if gopro released they software for Linux.

Tourist
Posts: 3

Re: GoPro as webcam in Linux

[ New ]

Proprietary Software?  All the software required to make this work on Linux is Open Source.  If GoPro released an "official" solution, that would be closed source.  

Sightseer
Posts: 1

Re: GoPro as webcam in Linux

[ New ]

Hi Gopro,

 

Really, still no Linux support. Considering a lot major hardware providers now create software (even if its closed source) for Linux. Packaging is not an issue with formats like snap, flatpak or appimage you can bundle your own software with the libraries you choose to support. There is no real excuse. This is 2021.

 

Regards

Bevan

Sightseer
Posts: 4

Betreff: GoPro as webcam in Linux

[ New ]

I created a script that makes the process a bit more simple. See here:

https://github.com/jschmid1/gopro_as_webcam_on_linux

Tourist
Posts: 2

Betreff: GoPro as webcam in Linux

[ New ]

Thank you for your efforts. I tried running the script, everything seems to work. But when I then run vlc nothing happens, I can see the webcam text on the gopro screen but vlc does not show anything. I'm running Fedora 33