11

I would like to understand:

  1. What connections between the camera device and my computer are needed?
  2. Is possible to do this without other external devices?
  3. What applications are needed?

Here there're some references i found, but didn't help so much (to me):

  1. How to use my GoPro as a webcam
  2. Elgato CamLink
  3. Use a Canon camcoder as a webcan
2
  • 1
    Why did the first reference not help you? It basically says you should be able to use your GoPro as a USB video device. Try connecting it to a USB port, start VLC player (sudo apt-get install vlc if you don't have it). Then in VLC try Media -> Open Capture Device... and under "Video device name" see if it finds a device and select it.
    – Sebastian
    Jan 3, 2020 at 9:44
  • Did you run into issues with OBS?
    – Crabtree
    Jan 4, 2020 at 21:33

3 Answers 3

7

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

https://github.com/jschmid1/gopro_as_webcam_on_linux

6
  • This works for me.
    – Chololoco
    Apr 15, 2021 at 20:41
  • This doesn't seem to work with GoPro Hero8 and Linux Mint.
    – Clockwork
    Aug 7, 2022 at 20:29
  • 2
    I found out the problem: I had to disable Linux Mint's enabled Firewall. That might be why the connection was refused when I tried the answer from @MichaelBevilacqua. And now it's working perfectly.
    – Clockwork
    Aug 7, 2022 at 20:36
  • 2
    gr8 script, thx! (works with GoPro Hero9 Black)
    – zuko
    Aug 11, 2022 at 11:11
  • 1
    @AndreLeonRangel yes, that works
    – jaiks
    Oct 6 at 8:11
3

This is what I use for a GoPro Hero 8 Black on Ubuntu 18.04.

The v4l2loopback module can be cloned and compiled from:

https://github.com/umlaeute/v4l2loopback.git

I use this for Zoom on Linux and have tested thoroughly.

#!/bin/bash

echo
read -p "Plug in USB cable and turn on device. Press any key to continue.  " -n 1 -r
echo

echo
echo inserting module v4l2loopback
echo

modprobe v4l2loopback exclusive_caps=1 card_label="LinuxGoPro" video_nr=13

interface=`ip link | grep enp0 | cut -b 4-17`

echo
echo using interface: $interface
echo

dhclient -v ${interface}

echo
echo activating webcam
echo

curl 172.23.100.51/gp/gpWebcam/START

echo
echo running ffmpeg
echo

ffmpeg -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/video13
7
  • 2
    From your script, it looks like linux automatically creates a network interface to connect with the gopro. Is this correct?
    – DBear
    Jan 19, 2021 at 0:45
  • 2
    Would this only work with GoPro 8&9 or also with the 7? Mar 5, 2021 at 23:15
  • @RienHeuver yes
    – jaiks
    Apr 6, 2022 at 8:41
  • @DBear The gopro does that when connecting via USB
    – jaiks
    Apr 6, 2022 at 8:42
  • My Hero6 Black didn’t do it. It must be a thing for GoPro 8 and later.
    – DBear
    Apr 7, 2022 at 12:12
2

I am currently in the process of research/accomplishing this goal. Here's what I have found thus far and what steps I'll be taking next.

1) You can use the GoPro USB device, but there will be significant lag due to high latency. Because of this, it is recommended that you get an HDMI capture card. To answer the question, you will need a Micro HDMI to HDMI cable connecting the GoPro to the capture card. You will also need a USB 3 to mini/micro/etc. cable to connect the capture card to your computer.

2) As stated above, it can be accomplished as a USB device, by using to gopro-py-ap. However, the high latency suggests that this option is non-ideal.

3) There are numerous different video streaming apps, but the main recommendation is going to be OBS, as it is designed for professional recording, and thus has been worked on extensively. That being said, things like Cheese, can be used to tap into the feed. Any meeting apps such as Jitsi or Zoom can also access these feeds.

Here are the resources that have helped me thus far:

This answer will be updated if any more details emerge.

Hope that helps!

2
  • Recent gopro do not have a HDMI port and you need to buy the mediamod, not cheap
    – Mehdi
    Jan 6, 2021 at 14:51
  • It's funny, I was just planning on getting back to this recently after getting a HDMI to USB decoder and the correct cord. That said, I have a Hero 4 Black and can't REALLY speak to newer devices.
    – Salt
    Jan 6, 2021 at 16:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .