You are not logged in.
The zramen script (by atweiden) from Void Linux is like my guinea pig for learning to package on other distributions. It is a simple script that creates a zram device and uses environment variables to configure the size and compression algorithm. I've made a DEB package with a sysvinit script for Devuan which you can find here: https://git.disroot.org/hunter0one/devu … ter/zramen
The problem is we don't have an AppStream repository like Debian does. AppStream is what holds all the fancy metadata showing the icons, screenshots, and info in software centers like Discover or GNOME Software. You can fix it by doing what Konna (post #12) said here.
I would like to make my own Devuan packages but I have far more experience with packaging for RPM and XBPS. The maint-guide is quite confusing to me. Is there maybe a guide or tutorial which describes how to package for DEB in a way an RPM packager understands? Thanks
EDIT: I am finding all the man pages for debhelper now. These have helped a lot.
It's the same issue we had here. https://dev1galaxy.org/viewtopic.php?id=4726
Long story short, Devuan doesn't have an appstream database like Debian does to get package information in Discover or GNOME software.
Sorry for the long wait, but I tried all of your suggestions as well as ones from other forums and unfortunately I've concluded that this EasyCap was a dud. I had already spend so much time on this one I'm embarrassed to admit that I bought a "UCEC" capture card 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.
You could try Ristretto which is the Xfce image viewer, as far as I know it should follow xfce4's settings more so than eom because of xfconf.
ffmpegthumbnailer is what I have installed and get thumbnails in Caja.
It's hard to believe this was a real thing when I first heard of it several weeks ago.
@hunter0one, did you verify read-write access to the USB device node concerned?
Yes, I'm sorry I didn't mention I tried that after the first time you asked:
crw-rw-r-- 1 root root 189, 14 Sep 12 19:40 /dev/bus/usb/001/015
I still don't understand how to tell what the sequence of "bits" means what in *nix (besides r is read and w is write) but it seems read-write access is allowed.
To be on the safe side I ran chmod +rw /dev/bus/usb/001/015 and it results in the same sequence:
crw-rw-r-- 1 root root 189, 14 Sep 12 19:40 /dev/bus/usb/001/015
Check your ID is in the video group. id should tell you. Post output from it if not sure.
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)
It does appear that I am.
Do you have a broken wire?
I have tried every combination that qv4l2 would let me to no avail. The wires don'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'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.
For some reason the capture image format and image size can't be changed in QV4L2, when I select another option for the first time it changes to the default and won't let the option be picked again. For the format it is MJPG and the image size is 640x480 like v4l2-ctl shows. I'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.
What are the results of v4l2-ctl --all + arecord -l or arecord -L or cat /proc/asound/cards?
This is v4l2-ctl --all:
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 'Processing 2' (Video Pixel Formatter): Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
Width/Height : 640/480
Pixel Format : 'MJPG' (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
And arecord -l:
**** 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
Pay attention to your user. Your ls -l results show that you will have permission errors unless you go root.
I tried to run ffmpeg with sudo but get the same exact /dev/video0: Input/output error. When I try /dev/video1 it results in not a video capture device
Or try the advice in the Wiki link: sudo chmod a+r /dev/video0. I'm pretty sure that that is why you are getting the 'input/output error'.
After issuing chmod a+r to video0 & video1 they both still give the same respective errors.
I used your revised script but it still gives the same output for both video0 and video1, albeit with the deprecated warning gone.
I already told you that the error was the same input/output message that I get from ffmpeg by itself. I also said options like AUDIO_DEVICE did not work. Here's an example of what I had originally tried:
hunter@ryzen-rig:~$ encode_stream OUTPUT_NAME=test VIDEO_DEVICE=/dev/video0 AUDIO_DEVICE=hw:2,0 REGION=NTSC
-vsync is deprecated. Use -fps_mode
Passing a number to -vsync is deprecated, use a string argument as described in the manual.
[video4linux2,v4l2 @ 0x56175e071200] Cannot open video device AUDIO_DEVICE=hw:2,0: No such file or directory
AUDIO_DEVICE=hw:2,0: No such file or directory
When I try to do it with just the OUTPUT_NAME and REGION since all the defaults are correct except for the region:
hunter@ryzen-rig:~$ encode_stream OUTPUT_NAME=test REGION=NTSC
-vsync is deprecated. Use -fps_mode
Passing a number to -vsync is deprecated, use a string argument as described in the manual.
/dev/video0: Input/output error
An input/output error seems to be the biggest one I get across the board. What would cause it?
Yes, that's what I used to see those options.
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
Thanks, I just tried that qv4l2 tool and followed the article but I get a black screen even with the VCR turned on.
After the first try with YUYV as the capture format, it switches to Motion-JPEG and won't let me pick anything but that. MJPG doesn't show anything either though.
If anything, my device doesn't appear as usbtv but instead "Camera 1".
I have that same USB dongle and successfully captured a stack of videos, but a year or so ago. So it was a different computer; probably beowulf but possibly ascii even.
And there was no I/O error?
From memory I used uvccapture or possibly ffmpeg directly. I have a vague memory that only one of its two /dev/videoN worked. Package v4l-utils is also useful, eg list devices with v4l2 --list-devices.
I got v4l2-utils to list the devices as well but I haven't gotten the uvccapture package. I tried ffmpeg directly but got the same input/output error.
EDIT: See also
https://gordonlesti.com/digitize-a-vhs- … p-on-linux
This leads to a 404.
My copy on desktop machine of encode_stream script is dated Dec 21 2021, and I have not used it recently, but I know of zero reason why it should not work today.
Thanks. I tried your script but some of the options like AUDIO_DEVICE and REGION did not work, and I got an input/output error when given just the device and output file.
EDIT: Also tried uvccapture, but it doesn't work either. I looked at the man page and it only creates jpeg's.
EDIT #2: For those curious, trying to play /dev/video1 gives "Inappropriate ioctl for device". I cannot seem to select /dev/video1 in a program like OBS.
I have a little AV to USB capture card called a MacroSilicon MS210x according to lsusb. When plugged in, it generates a /dev/video0, /dev/video1, and /dev/media0 device and within OBS Studio it can be captured as "Camera 1". This leaves a black screen, even when a VCR or something similar is plugged in. When I try to access it in VLC by navigating to Media -> Open Capture Device and opening /dev/video0, VLC buffers for a moment and then gives this error:
v4l2 error: cannot set format: Input/output error
v4l2 error: not a radio tuner device
v4l2 error: cannot set format: Input/output error
Interestingly, OBS shows the same errors when I checked its log.
People on Ubuntu had no problems and also an Artix user reported that they had the AV cord in Line In but my cords are plugged into the line out ports which are just the composite video and mono audio (the yellow and white), yet I get this input/output error. I've tried playing a tape in the VCR to see if it would show anything after a video starts playing but unfortunately not.
The dmesg output:
[ 2943.095846] usb 1-8: Product: AV TO USB2.0
[ 2943.095849] usb 1-8: Manufacturer: MACROSILICON
[ 2943.095851] usb 1-8: SerialNumber: 20150130
[ 2943.102906] usb 1-8: Found UVC 1.00 device AV TO USB2.0 (534d:0021)
[ 2943.107836] usb 1-8: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
[ 2948.392268] usb 1-8: 2:2: failed to get current value for ch 0 (-110)
[ 2948.411902] usb 1-8: Warning! Unlikely big volume range (=8191), cval->res is probably wrong.
[ 2948.\411905] usb 1-8: [2] FU [Mic Capture Volume] ch = 1, val = 0/8191/1
I'm using a custom kernel which is 6.5.2. It uses the same config as the one from Devuan but I just enabled the rtl8xxxu untested drivers option since my wifi adapter needs this in order to work.
Any help would be appreciated.
libpam-ck-connector is for Consolekit2 to communicate with PAM. Consolekit2 is a more Unix respecting alternative to elogind and seatd is used alongside it to cover Wayland sessions.
Until Debian has an ISO that come with multiple init systems and a menu to select the one you want I'll stick with Devuan. Also good luck removing systemd if you decide to change init systems after.
Hi again Iggy64. I know more about PCLOS than AntiX, though I've tried both because they make this list. They are both great fully systemd-free options, though I will say PCLOS is definitely not server oriented (also has a problem with dependency hell) and both add quite a lot of "bling" when I enjoy having most things shipped plain and vanilla. This is the main reason I've stuck with Devuan despite elogind being needed still if you want some convenience (things like automount or a trash can) like me.
It is asking a lot to work around elogind, as it has tentacles in so many key areas. I was therefore surprised and excited to see the release notes for Daedalus mention the possiblity of avoiding elogind.
Agreed. PCLOS uses consolekit2 in place of elogind so that KDE, MATE, and Xfce work as intended but it sometimes requires heavy patches. For operating systems like FreeBSD, this is their only option when seat management is needed, but FBSD has far more port maintainers willing to make it happen. I can't blame the Devuan maintainers for not going any further than they have already, it takes baby steps with the kind of manpower they have. I unfortunately have no clue how to do Debian packaging, despite using Debian-based distros almost my entire time on Linux, or I would investigate making drop-in packages for elogind-dependent ones. :-)
Alternatively things like turnstile might make patching unnecessary in the future.
Trying to install dummy-logind conflicts with libpam-ck-connector, even on Xfce which should be the easiest conversion. It also removes a lot of things that it could potentially keep.
I have the same issue with the offline *desktop* iso, since I have to set up without any way to connect to the internet at first.
I also tried to use apt-get -s install task-mate-desktop libpam-ck-connector on my web server to see how it goes and had similar results:
The following packages have unmet dependencies:
dummy-logind : Conflicts: libpam-ck-connector but 1.2.4-2 is to be installed
E: Unable to correct problems, you have held broken packages.
It seems in a pretty clean tty environment dummy-logind is what prevents most desktop environments from being installed. I have elogind blacklisted, but if I nullify the blacklist then it says default-logind or logind instead. Xfce can be installed with libpam-ck-connector, but then I lose udisks and thus gvfs.
I have gravitated to using Devuan, as well as antiX. The latter has gone so far as to essentially eliminate the use of elogind, a major component of systemd.
Agreed. We need better support for consolekit2 which is in fact still maintained and works well so long as other packages are built with it in mind. We don't have a lot of packages that sit well with it as of now (thinking udisks2/gvfs in particular)..
I also have the same questions so sorry for the little to no help.
- Are there any adverse side effects that might result from this process?
You will not be able to use all of the conventional features in most file managers today because udisks2 isn't without elogind and this leads to gvfs not being installable. Additionally, Network Manager can't be used but most Devuan users are probably just using ifupdown or connman.