obs-v4l2sink icon indicating copy to clipboard operation
obs-v4l2sink copied to clipboard

format not support

Open softfarr opened this issue 5 years ago • 6 comments

Hi. Thanks for your excellent contribution. I followed all installation instructions. It was well done. When I get into OBS->Tools->V4l2 output a "format not support" message is shown. I tried all video formats with same result. How can It be fixed?

Thanks in advance.

softfarr avatar Jun 07 '20 13:06 softfarr

I have this, too. How can I help investigating?

jcdubacq avatar Jun 10 '20 11:06 jcdubacq

Not sure what distro you are using, but I ended up having to remove the v4l2loopback-dkms module, clone and manually compile https://github.com/umlaeute/v4l2loopback, then manually compile obs-v4l2sink. On Debian-based distros, it looks like the packages are behind a few versions and have a few bugs.

darkpixel avatar Jun 10 '20 15:06 darkpixel

I use a debian distribution, so this might be a hint. However, I am using debian unstable branch. v4l2loopback-dkms: Installed: 0.12.5-1

(so the last stable release of v4l2loopback, according to https://github.com/umlaeute/v4l2loopback/releases). I also manually compiled obs-v4l2sink. For some reason, it was not installed in the correct directory for this distribution, since it was put in /usr/lib/obs-plugins/v4l2sink.so and plugins were expected in /usr/lib/x86_64-linux-gnu/obs-plugins/

I moved manually the so file from /usr/lib/obs-plugins to /usr/lib/x86_64-linux-gnu/obs-plugins/, maybe this causes trouble?

jcdubacq avatar Jun 10 '20 22:06 jcdubacq

I had the same issues on Ubuntu 18.04 with unname -r => 5.3.0-59-generic

Following what @darkpixel did (manually installing v4l2loopback and obs-v4l2sink from source) seemed to work for me. As he said in his post, those libraries in apt are out of date.

thomas-anderson-bsl avatar Jun 24 '20 03:06 thomas-anderson-bsl

Same error message; i tried manually installing v4l2loopback and obs-v4l2sink but i am still seeing the same error message. Using ubuntu 20.04.1

Managed to get it working by changing the default device.

orathaic avatar Nov 13 '20 12:11 orathaic

Isn't this a duplicate of #5 ?

idk it works for me

try this AFTER YOU ENABLE V4L2LOOPBACK : ls /dev/video* And then try each one of them.

there should be a videoX file named what you specified when modprobeing v4l2loopback

For example, if your v4l2loopback modprobe/insmod command is sudo modprobe v4l2loopback video_nr=30 card_label="Virtual Camera" exclusive_caps=1, then you should specify the device path to be /dev/video30.

I chose a really high number so I could be sure not to conflict with any number assigned by default (real webcams).

I think what would stump most people would be that they forget to modprobe/insmod the kernel module (v4l2loopback) after installing it, or that the command fails because they try to use a videoX file that is already taken by a webcam.

Another common reasong why the modprobe/insmod command fails (and usually goes unnoticed somehow) is that they forgot to update the cache. sudo depmod -a

ochen1 avatar Nov 13 '20 19:11 ochen1