<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=5981&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Input/output error with EasyCap capture card on VLC and OBS]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=5981</link>
		<description><![CDATA[The most recent posts in Input/output error with EasyCap capture card on VLC and OBS.]]></description>
		<lastBuildDate>Tue, 13 Feb 2024 16:01:52 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Input/output error with EasyCap capture card on VLC and OBS]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=48108#p48108</link>
			<description><![CDATA[<p>Sorry for the long wait, but I tried all of your suggestions as well as ones from other forums and unfortunately I&#039;ve concluded that this EasyCap was a dud. I had already spend so much time on this one I&#039;m embarrassed to admit that I bought a <a href="https://www.amazon.com/UCEC-Capture-Adapter-Converter-support/dp/B00WSAWZ1M/ref=sr_1_5" rel="nofollow">&quot;UCEC&quot; capture card</a> that looks nearly identical (with a number of Linux users who gave good reviews) and it works like a charm. It even uses the same module (uvcvideo) too.</p>]]></description>
			<author><![CDATA[dummy@example.com (hunter0one)]]></author>
			<pubDate>Tue, 13 Feb 2024 16:01:52 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=48108#p48108</guid>
		</item>
		<item>
			<title><![CDATA[Re: Input/output error with EasyCap capture card on VLC and OBS]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44360#p44360</link>
			<description><![CDATA[<p>@hunter0one:</p><p>Have you tried Ralph&#039;s advice?</p><p>(in a terminal):</p><ul><li><p>Switch to the root user (which means <span class="bbc">su -</span>; enter the root password, not sudo)</p></li><li><p><span class="bbc">lsusb</span> will show all connected usb devices</p></li><li><p>enable write access for the <em>other</em> user on the EasyCap device: <span class="bbc">chmod o+w /dev/bus/usb/001/015</span></p></li><li><p>Without rebooting, try <span class="bbc">qv4l2</span> &amp; see if now it will allow you to see your vhs screen in the window.</p></li></ul><p>I very much want to work with you to get my script to work with other devices (such as yours) &amp; get a good result to allow folks to stream it to disc.</p>]]></description>
			<author><![CDATA[dummy@example.com (alexkemp)]]></author>
			<pubDate>Sat, 16 Sep 2023 10:10:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44360#p44360</guid>
		</item>
		<item>
			<title><![CDATA[Re: Input/output error with EasyCap capture card on VLC and OBS]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44338#p44338</link>
			<description><![CDATA[<p>Yes;&#160; expanding on @alexkemp&#039;s note, the file mode string starts which a marker character to tell whether it&#039;s a block device (<span class="bbc">b</span>), a character device (<span class="bbc">c</span>, as here), a directory (<span class="bbc">d</span>), a symbolic link (<span class="bbc">l</span>) or a normal file (<span class="bbc">-</span>). Next it shows three triplets to indicate the access mode setting for <em>user</em>, <em>group</em> and <em>other</em> (plus some special meanings depending in type). </p><p>In this case <span class="bbc">root</span> is the <em>user</em> and <span class="bbc">root</span> is the <em>group</em>, with <span class="bbu">read and write access</span>, while all <em>other</em> users or groups only have <span class="bbu">read acccess</span>. In other words, you only have read access (unless you are running this as root or your user is in root group)</p><p>Quite possibly the lack of write access to the USB device has been the cause here.</p><p>You change that, but only as root, and in this case you could use the command</p><div class="codebox"><pre><code># chmod o+w /dev/bus/usb/001/015</code></pre></div><p> to add write access to <em>other</em>.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Thu, 14 Sep 2023 22:12:35 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44338#p44338</guid>
		</item>
		<item>
			<title><![CDATA[Re: Input/output error with EasyCap capture card on VLC and OBS]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44326#p44326</link>
			<description><![CDATA[<p>For devices you get <span class="bbc">c==character</span> (bytes) or <span class="bbc">b==block</span> (hdd, etc).</p><p>That is a root.root user.group &amp; you will need to use <em>sudo</em> if you wish it to be changed.</p>]]></description>
			<author><![CDATA[dummy@example.com (alexkemp)]]></author>
			<pubDate>Thu, 14 Sep 2023 18:06:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44326#p44326</guid>
		</item>
		<item>
			<title><![CDATA[Re: Input/output error with EasyCap capture card on VLC and OBS]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44321#p44321</link>
			<description><![CDATA[<div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>@hunter0one, did you verify read-write access to the USB device node concerned?</p></div></blockquote></div><p>Yes, I&#039;m sorry I didn&#039;t mention I tried that after the first time you asked:</p><div class="codebox"><pre><code>crw-rw-r-- 1 root root 189, 14 Sep 12 19:40 /dev/bus/usb/001/015</code></pre></div><p>I still don&#039;t understand how to tell what the sequence of &quot;bits&quot; means what in *nix (besides r is read and w is write) but it seems read-write access is allowed.</p><p>To be on the safe side I ran <span class="bbc">chmod +rw /dev/bus/usb/001/015</span> and it results in the same sequence:</p><div class="codebox"><pre><code>crw-rw-r-- 1 root root 189, 14 Sep 12 19:40 /dev/bus/usb/001/015</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (hunter0one)]]></author>
			<pubDate>Thu, 14 Sep 2023 16:42:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44321#p44321</guid>
		</item>
		<item>
			<title><![CDATA[Re: Input/output error with EasyCap capture card on VLC and OBS]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44278#p44278</link>
			<description><![CDATA[<p>@hunter0one, did you verify read-write access to the USB device node concerned?</p><p>Obviously you have read access but you do need write access right as well. Use e.g. <span class="bbc">lsusb</span> to figure out which &quot;bus id&quot; it has, en then chech that <span class="bbc">/dev/bus/usb/xxx/yyy</span>.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Wed, 13 Sep 2023 22:48:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44278#p44278</guid>
		</item>
		<item>
			<title><![CDATA[Re: Input/output error with EasyCap capture card on VLC and OBS]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44275#p44275</link>
			<description><![CDATA[<p>It seems that there&#039;s only a few bits of capture hardware that are capable of doing the job. Sorry that yours is not one of them.</p>]]></description>
			<author><![CDATA[dummy@example.com (alexkemp)]]></author>
			<pubDate>Wed, 13 Sep 2023 21:57:59 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44275#p44275</guid>
		</item>
		<item>
			<title><![CDATA[Re: Input/output error with EasyCap capture card on VLC and OBS]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44273#p44273</link>
			<description><![CDATA[<div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>Check your ID is in the video group. <span class="bbc">id</span> should tell you. Post output from it if not sure.</p></div></blockquote></div><div class="codebox"><pre><code>uid=1000(hunter) gid=1000(hunter) groups=1000(hunter),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),105(netdev),113(lpadmin),121(scanner)</code></pre></div><p>It does appear that I am.</p><div class="quotebox"><cite>alexkemp wrote:</cite><blockquote><div><p>Do you have a broken wire?</p></div></blockquote></div><p>I have tried every combination that qv4l2 would let me to no avail. The wires don&#039;t appear broken. This adapter never really got used before so its almost like brand new, because about a year ago is when I first received it and gave it a try and it wouldn&#039;t even appear as a device in Linux. I never got around to checking out why but most likely I was missing the module. Now that I have the time to try it again, it appears in dmesg and generates video devices but unfortunately it seems to be a paperweight.</p>]]></description>
			<author><![CDATA[dummy@example.com (hunter0one)]]></author>
			<pubDate>Wed, 13 Sep 2023 21:03:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44273#p44273</guid>
		</item>
		<item>
			<title><![CDATA[Re: Input/output error with EasyCap capture card on VLC and OBS]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44265#p44265</link>
			<description><![CDATA[<div class="quotebox"><cite>hunter0one wrote:</cite><blockquote><div><div class="codebox"><pre><code>hunter@ryzen-rig:~$ ls -l /dev/video*
crw-rw----+ 1 root video 81, 0 Sep 12 08:34 /dev/video0
crw-rw----+ 1 root video 81, 1 Sep 12 08:34 /dev/video1</code></pre></div></div></blockquote></div><p>Check your ID is in the video group. <span class="bbc">id</span> should tell you. Post output from it if not sure.</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Wed, 13 Sep 2023 16:02:35 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44265#p44265</guid>
		</item>
		<item>
			<title><![CDATA[Re: Input/output error with EasyCap capture card on VLC and OBS]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44261#p44261</link>
			<description><![CDATA[<div class="quotebox"><cite>hunter0one wrote:</cite><blockquote><div><p>For some reason the capture image format and image size can&#039;t be changed in QV4L2</p></div></blockquote></div><p>That is academic. ffmpeg is near miraculous; it will change a video from any format to any other format. My script has the wrong fps AND pixel dimensions for your supply (the script is using &quot;-s 720x576 -r 25&quot; which was correct for my VHS signal, but not yours) but ffmpeg would happily make that change.</p><p>The issue for you is hardware &amp; region (as best as I can tell).</p><p><span class="bbc">v4l2-ctl --all</span> is giving a full, error-free readout of the input video device.<br /><span class="bbc">arecord -l</span> is accurately recording the audio hardware as &#039;hw:2,0&#039; (&quot;card: 2, subdevice: 0&quot;)</p><p>Only region remains (for me, the picture only appeared in the V4L2 screen when I changed the region from the default NTSC to PAL; ymmv).</p><p>If you cannot find a combo that works then the answer may be that zero signal is arriving at the input. Do you have a broken wire?</p>]]></description>
			<author><![CDATA[dummy@example.com (alexkemp)]]></author>
			<pubDate>Wed, 13 Sep 2023 09:02:34 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44261#p44261</guid>
		</item>
		<item>
			<title><![CDATA[Re: Input/output error with EasyCap capture card on VLC and OBS]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44259#p44259</link>
			<description><![CDATA[<p>Other things at system level would be to ensure you have rw access to the usb dev-node.. (/dev/bus/usb/00?/0??) and make sure the dongle is on a USB 2 port.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Wed, 13 Sep 2023 01:06:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44259#p44259</guid>
		</item>
		<item>
			<title><![CDATA[Re: Input/output error with EasyCap capture card on VLC and OBS]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44258#p44258</link>
			<description><![CDATA[<p>For some reason the capture image format and image size can&#039;t be changed in QV4L2, when I select another option for the first time it changes to the default and won&#039;t let the option be picked again. For the format it is MJPG and the image size is 640x480 like v4l2-ctl shows. I&#039;ve went on and tried as many options as I could as both root and regular user but still get a black screen. This is unfortunate.</p>]]></description>
			<author><![CDATA[dummy@example.com (hunter0one)]]></author>
			<pubDate>Wed, 13 Sep 2023 00:53:14 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44258#p44258</guid>
		</item>
		<item>
			<title><![CDATA[Re: Input/output error with EasyCap capture card on VLC and OBS]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44257#p44257</link>
			<description><![CDATA[<p>You seem to have the correct hardware devices. In your position I would change to the root user &amp; try again. If you cannot get the picture to appear in the V4L2 screen then it is bad.</p><p>Try all the various options with the V4L2 utility. It took me a while to find the correct mix before I got the video to appear. However, if you cannot get it to appear then throw the hardware in the bin &amp; try something else.</p><p>Good luck.</p><p>PS<br />From the <span class="bbc">v4l2-ctl --all</span> output, the fps in the script should be switched from 25 to 30. However, do not touch anything until you get V4L2 to work. Only if it will work there will the script work (using the same setup options).</p><p><em>13 Sep update</em>: made clear re: fps I was referring to the script, not V4L2.</p>]]></description>
			<author><![CDATA[dummy@example.com (alexkemp)]]></author>
			<pubDate>Wed, 13 Sep 2023 00:07:32 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44257#p44257</guid>
		</item>
		<item>
			<title><![CDATA[Re: Input/output error with EasyCap capture card on VLC and OBS]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44256#p44256</link>
			<description><![CDATA[<div class="quotebox"><cite>alexkemp wrote:</cite><blockquote><div><p>What are the results of <span class="bbc">v4l2-ctl --all</span> + <span class="bbc">arecord -l</span> or <span class="bbc">arecord -L</span> or <span class="bbc">cat /proc/asound/cards</span>?</p></div></blockquote></div><p>This is <span class="bbc">v4l2-ctl --all</span>:</p><div class="codebox"><pre class="vscroll"><code>Driver Info:
	Driver name      : uvcvideo
	Card type        : AV TO USB2.0
	Bus info         : usb-0000:01:00.0-6
	Driver version   : 6.5.2
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : AV TO USB2.0
	Serial           : 20150130
	Bus info         : usb-0000:01:00.0-6
	Media version    : 6.5.2
	Hardware revision: 0x00000121 (289)
	Driver version   : 6.5.2
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : AV TO USB2.0
	Function         : V4L2 I/O
	Flags            : default
	Pad 0x01000007   : 0: Sink
	  Link 0x0200000d: from remote pad 0x100000a of entity &#039;Processing 2&#039; (Video Pixel Formatter): Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 640/480
	Pixel Format      : &#039;MJPG&#039; (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 614400
	Colorspace        : sRGB
	Transfer Function : Rec. 709
	YCbCr/HSV Encoding: ITU-R 601
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 640, Height 480
	Default     : Left 0, Top 0, Width 640, Height 480
	Pixel Aspect: 1/1
Selection Video Capture: crop_default, Left 0, Top 0, Width 640, Height 480, Flags: 
Selection Video Capture: crop_bounds, Left 0, Top 0, Width 640, Height 480, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 30.000 (30/1)
	Read buffers     : 0</code></pre></div><p><span class="bbc">And arecord -l</span>:</p><div class="codebox"><pre><code>**** List of CAPTURE Hardware Devices ****
card 1: Generic [HD-Audio Generic], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 2: ALC887-VD Alt Analog [ALC887-VD Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: MS210x [MS210x], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0</code></pre></div><div class="quotebox"><blockquote><div><p>Pay attention to your user. Your ls -l results show that you will have permission errors unless you go root.</p></div></blockquote></div><p>I tried to run ffmpeg with sudo but get the same exact <span class="bbc">/dev/video0: Input/output error</span>. When I try /dev/video1 it results in <span class="bbc">not a video capture device</span></p><div class="quotebox"><blockquote><div><p>Or try the advice in <a href="https://wiki.ubuntuusers.de/Videograbbing/" rel="nofollow">the Wiki link</a>: <span class="bbc">sudo chmod a+r /dev/video0</span>. I&#039;m pretty sure that that is why you are getting the &#039;input/output error&#039;.</p></div></blockquote></div><p>After issuing <span class="bbc">chmod a+r</span> to video0 &amp; video1 they both still give the same respective errors.</p><p>I used your revised script but it still gives the same output for both video0 and video1, albeit with the deprecated warning gone.</p>]]></description>
			<author><![CDATA[dummy@example.com (hunter0one)]]></author>
			<pubDate>Tue, 12 Sep 2023 23:45:50 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44256#p44256</guid>
		</item>
		<item>
			<title><![CDATA[Re: Input/output error with EasyCap capture card on VLC and OBS]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44255#p44255</link>
			<description><![CDATA[<p>I&#039;ve made the <a href="https://ffmpeg.org/ffmpeg.html" rel="nofollow">ffmpeg-recommended</a> fix (search for &quot;vsync is deprecated&quot;) to the bash-file &amp; uploaded it. No checks, but the change is most modest &amp; should work.</p>]]></description>
			<author><![CDATA[dummy@example.com (alexkemp)]]></author>
			<pubDate>Tue, 12 Sep 2023 23:23:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44255#p44255</guid>
		</item>
	</channel>
</rss>
