LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-12-2012, 05:16 PM   #1
lkraemer
Member
 
Registered: Aug 2008
Posts: 113

Rep: Reputation: 10
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
Attached Thumbnails
Click image for larger version

Name:	easycap.png
Views:	163
Size:	32.9 KB
ID:	11220   Click image for larger version

Name:	screen.jpg
Views:	169
Size:	57.6 KB
ID:	11221  

Last edited by lkraemer; 11-12-2012 at 05:20 PM.
 
Old 11-12-2012, 05:28 PM   #2
JaseP
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: Reputation: 157Reputation: 157
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.
 
Old 11-12-2012, 07:13 PM   #3
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
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....
 
Old 11-13-2012, 02:19 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
http://wiki.videolan.org/Documentation:Modules/v4l2
 
Old 11-13-2012, 09:29 AM   #5
lkraemer
Member
 
Registered: Aug 2008
Posts: 113

Original Poster
Rep: Reputation: 10
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:
Code:
% vlc --list
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB video capture lothario Linux - Hardware 1 03-30-2010 08:27 AM
mplayer issure with MSI vox USB video capture adapter Dr_Death_UAE Linux - Hardware 0 07-21-2009 05:55 PM
USB Video Capture sandoz Linux - Hardware 1 07-07-2007 06:33 PM
USB 2.0 Video Audio Capture Adapter Adaptor Card namit Linux - Hardware 0 03-27-2007 12:21 PM
HP Deskjet (USB) & CUPS & Slackware 9.1: Unable to open USB device "usb:/dev/usb/lp0&qu arnostienen Slackware 2 01-29-2004 03:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration