Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-12-2012, 05:16 PM
|
#1
|
Member
Registered: Aug 2008
Posts: 113
Rep:
|
VLC & Sabrent USB Video Capture Adapter - USB-AVCPT
I purchased a Sabrent USB Video Capture Adapter from Newegg. The Item Number is USB-AVCPT and "lsusb -d 05e1:0408" shows the device as:
Code:
Bus 002 Device 006: ID 05e1:0408 Syntek Semiconductor Co., Ltd STK1160 Video Capture Device
I'm running Slackware 14 (32 Bit) and my Sabrent Dongle is detected as:
Code:
root@slackware:~# ls -alt /dev/vid*
crw-rw---- 1 root video 81, 1 Nov 12 14:38 /dev/video1
crw-rw---- 1 root video 81, 0 Nov 12 03:51 /dev/video0
root@slackware:~#
lsmod finds the easycap drivers:
Code:
root@slackware:~# lsmod
Module Size Used by
snd_usb_audio 75436 0
snd_usbmidi_lib 15476 1 snd_usb_audio
snd_rawmidi 14662 1 snd_usbmidi_lib
easycap 1214158 0
pci_stub 961 1
vboxpci 15028 0
vboxnetadp 19239 0
vboxnetflt 16627 0
vboxdrv 221978 3 vboxnetflt,vboxnetadp,vboxpci
snd_seq_dummy 1119 0
snd_seq_oss 24956 0
snd_seq_midi_event 4568 1 snd_seq_oss
snd_seq 41599 5 snd_seq_midi_event,snd_seq_oss,snd_seq_dummy
snd_seq_device 4276 4 snd_seq,snd_seq_oss,snd_seq_dummy,snd_rawmidi
snd_pcm_oss 33254 0
snd_mixer_oss 12984 3 snd_pcm_oss
ipv6 238549 32
cpufreq_ondemand 5272 2
speedstep_lib 2567 0
acpi_cpufreq 4977 1
mperf 923 1 acpi_cpufreq
freq_table 2103 2 acpi_cpufreq,cpufreq_ondemand
lp 7119 0
ppdev 4710 0
parport_pc 16755 0
parport 26159 3 parport_pc,ppdev,lp
fuse 58282 3
uvcvideo 55700 0
videodev 66999 2 uvcvideo,easycap
usbhid 31118 0
hid 65824 1 usbhid
i915 372988 2
snd_hda_codec_hdmi 21721 1
drm_kms_helper 22825 1 i915
intel_agp 8712 1 i915
drm 151850 3 drm_kms_helper,i915
intel_gtt 11571 3 intel_agp,i915
i2c_i801 6952 0
i2c_algo_bit 4543 1 i915
intel_ips 10370 0
snd_hda_codec_conexant 39260 1
joydev 7668 0
asus_laptop 14635 0
video 9938 1 i915
jme 32903 0
mii 3335 1 jme
jmb38x_ms 7249 0
sdhci_pci 8872 0
sdhci 20264 1 sdhci_pci
memstick 5544 1 jmb38x_ms
agpgart 22087 3 intel_gtt,drm,intel_agp
battery 9119 0
processor 23020 1 acpi_cpufreq
thermal 6587 0
i2c_core 16454 6 i2c_algo_bit,i2c_i801,drm,drm_kms_helper,i915,videodev
thermal_sys 12122 3 thermal,processor,video
mmc_core 69202 2 sdhci,sdhci_pci
snd_hda_intel 19503 4
snd_hda_codec 70505 3 snd_hda_intel,snd_hda_codec_conexant,snd_hda_codec_hdmi
ath9k 76483 0
snd_hwdep 4802 2 snd_hda_codec,snd_usb_audio
snd_pcm 59013 6 snd_hda_codec,snd_hda_intel,snd_hda_codec_hdmi,snd_pcm_oss,easycap,snd_usb_audio
ath9k_common 1526 1 ath9k
snd_page_alloc 5925 2 snd_pcm,snd_hda_intel
ath9k_hw 335026 2 ath9k_common,ath9k
snd_timer 14798 2 snd_pcm,snd_seq
snd 43657 20 snd_timer,snd_pcm,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_mixer_oss,snd_pcm_oss,snd_seq_device,snd_seq,snd_seq_oss,easycap,snd_rawmidi,snd_usbmidi_lib,snd_usb_audio
ath 11983 3 ath9k_hw,ath9k_common,ath9k
soundcore 4570 3 snd
mac80211 202703 1 ath9k
psmouse 54408 0
cfg80211 145277 3 mac80211,ath,ath9k
sparse_keymap 2492 1 asus_laptop
rfkill 12432 4 cfg80211,asus_laptop
ac 2563 0
button 3665 1 i915
mei 27885 0
hwmon 1033 1 thermal_sys
serio_raw 3349 0
evdev 7314 11
input_polldev 2134 1 asus_laptop
loop 14650 0
root@slackware:~#
I am using S-Video for the video feed and the device is working, but my video is flipped upside down.
(S-Video is input=5)
Is there is an easy way to flip the video? My Webcam has the video flipped also when I open it in VLC as a test.
Thanks.
Larry
Last edited by lkraemer; 11-12-2012 at 05:20 PM.
|
|
|
11-12-2012, 05:28 PM
|
#2
|
Senior Member
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802
Rep: 
|
You likely need to configure it with one of the V4L2 utilities,... forget which one... Something probably inverted the video input device settings in V4L2.
|
|
|
11-12-2012, 07:13 PM
|
#3
|
Senior Member
Registered: Oct 2007
Distribution: Slackware
Posts: 1,387
|
For playback under vlc there is the geometry filter under Tools -- Effects and Filters -- Video Effects -- Geometry. But I suspect you want to right the image before playback....
|
|
|
11-13-2012, 02:19 AM
|
#4
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,646
|
|
|
|
11-13-2012, 09:29 AM
|
#5
|
Member
Registered: Aug 2008
Posts: 113
Original Poster
Rep:
|
ponce,
THANKS, for the URL to the documentation on the Modules. This URL is also useful:
http://wiki.videolan.org/Documentation:Modules
To list all the available modules in your VLC build, use:
To list a module's configuration options, use:
Code:
% vlc -p <modulename> --advanced --help-verbose
I tried using the wrapper and it worked, so I just built a script. It is attached with the commands noted inside.
Code:
#!/bin/bash
#
#Use the wrapper to flip the video.
#
#http://ubuntuforums.org/showthread.php?t=838210&highlight=LIBV4LCONTROL_FLAGS&page=26
#Posting 259
#
#VLC with NO User controls command.
#/usr/bin/cvlc -vvv v4l2:///dev/video1:input=5:width=720:height=576 :norm=ntsc :fps=25 :input-slave=alsa://plughw:1,0 --audio-desync=-.40 --demux rawvideo 2>vlc.err
#
#
#VLC with user controls command.
#/usr/bin/vlc -vvv v4l2:///dev/video1:input=5:width=720:height=576 :norm=ntsc :fps=25 :input-slave=alsa://plughw:1,0 --audio-desync=-.40 --demux rawvideo 2>vlc.err
#
#/usr/bin/cvlc -vvv v4l2:///dev/video1:input=5:width=720:height=576 :norm=ntsc :fps=25 :input-slave=alsa://plughw:1,0 --audio-desync=-.40 --demux rawvideo 2>vlc.err
#
#
#The following is for Slackware 14 (32 Bit) -- (64 Bit may vary in lib locations)
export LIBV4LCONTROL_FLAGS=3
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so vlc
#
As andrew.46 also suggested, I tried Rotate by 180 Degrees, and that also worked.
Thanks.
Larry
Last edited by lkraemer; 11-13-2012 at 10:05 AM.
|
|
|
All times are GMT -5. The time now is 07:30 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|