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

format not supported error. How can i overcome that ?

Open rifaterdemsahin opened this issue 3 years ago • 12 comments

i am on ubuntu 20

Screenshot from 2020-09-01 12-00-27 Screenshot from 2020-09-01 12-00-42

rifaterdemsahin avatar Sep 01 '20 11:09 rifaterdemsahin

similar issues https://github.com/CatxFish/obs-v4l2sink/issues/5

rifaterdemsahin avatar Sep 01 '20 11:09 rifaterdemsahin

[ 20%] Automatic MOC and UIC for target v4l2sink [ 20%] Built target v4l2sink_autogen [100%] Built target v4l2sink erdem@erdem-NUC8i7HVK:~/obs-v4l2sink/build$ make && sudo make install [ 20%] Automatic MOC and UIC for target v4l2sink [ 20%] Built target v4l2sink_autogen [100%] Built target v4l2sink [ 20%] Automatic MOC and UIC for target v4l2sink [ 20%] Built target v4l2sink_autogen [100%] Built target v4l2sink Install the project... -- Install configuration: "" -- Up-to-date: /usr/lib/obs-plugins/v4l2sink.so -- Up-to-date: /usr/share/obs/obs-plugins/v4l2sink/locale -- Up-to-date: /usr/share/obs/obs-plugins/v4l2sink/locale/zh-TW.ini -- Up-to-date: /usr/share/obs/obs-plugins/v4l2sink/locale/en-US.ini -- Up-to-date: /usr/share/obs/obs-plugins/v4l2sink/locale/de-DE.ini erdem@erdem-NUC8i7HVK:~/obs-v4l2sink/build$ sudo depmod -a erdem@erdem-NUC8i7HVK:~/obs-v4l2sink/build$ modprobe v4l2loopback modprobe: FATAL: Module v4l2loopback not found in directory /lib/modules/5.4.0-42-generic erdem@erdem-NUC8i7HVK:~/obs-v4l2sink/build$

rifaterdemsahin avatar Sep 01 '20 11:09 rifaterdemsahin

I did install this and restarted

sudo apt-get install v4l2loopback-dkms

rifaterdemsahin avatar Sep 01 '20 11:09 rifaterdemsahin

i did reboot and redtered a mod and after the restart nothing changed. i cant heve the viurtual cam enabled in ubuntu

rifaterdemsahin avatar Sep 01 '20 11:09 rifaterdemsahin

Had the same problem

Shellowb avatar Sep 03 '20 01:09 Shellowb

I realize, that v4l2loopback an v4l2sink were not properly configured. The fact is that the /dev/video* that was selected in OBS studio, wasn't the one created. I recommend check which video device is using v4l2sink

Shellowb avatar Sep 04 '20 00:09 Shellowb

I recommend check which video device is using v4l2sink

how do i do that ?

rifaterdemsahin avatar Sep 04 '20 13:09 rifaterdemsahin

You can check as any file, because drivers look like files in Unix derived systems. So you can easily do: ls /dev/video* (on your terminal) to check which video devices are available, and if is not video0, maybe can be one or two. As I have already install another video device, and my computer has a webcam, my video device for v4l2sink was /dev/video2. I hope that helps :)

Shellowb avatar Sep 04 '20 14:09 Shellowb

You can check as any file, because drivers look like files in Unix derived systems. So you can easily do: ls /dev/video* (on your terminal) to check which video devices are available, and if is not video0, maybe can be one or two. As I have already install another video device, and my computer has a webcam, my video device for v4l2sink was /dev/video2. I hope that helps :)

This helped. Thanks alot, kind sir. It haappened to be video2 for me

ShuaibKunji avatar Oct 29 '20 14:10 ShuaibKunji

Isn't this a duplicate of #5 and #51 ?

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

It'd be a good idea to close this issue if your problem has been solved :)

ochen1 avatar Nov 13 '20 19:11 ochen1

sudo modprobe v4l2loopback video_nr=30 card_label="Virtual Camera" exclusive_caps=1

I wasn't sure which of my devices were real or fake, so I ran the above command after i installed the dkms module. It created /dev/video30 which works fine, meaning that my previous issue was probably conflict with a real camera. If this solves your problem make sure you close the issue.

redbrain avatar Dec 09 '20 17:12 redbrain