Difference between revisions of "Video Capture Station"

From CDOT Wiki
Jump to: navigation, search
(OS Installation)
(Troubleshooting)
 
(10 intermediate revisions by the same user not shown)
Line 343: Line 343:
 
  [fsoss@fsoss2 ~]$
 
  [fsoss@fsoss2 ~]$
  
  [fsoos@fsoss2 ~]$ cd freeseer-1.9.7/src
+
  [fsoss@fsoss2 ~]$ cd freeseer-1.9.7/src
 +
[fsoss@fsoss2 src]$ make
 +
pyuic4 forms/freeseer_ui_qt.ui -o freeseer_ui_qt.py
 +
pyuic4 forms/freeseer_about.ui -o freeseer_about.py
 +
pyrcc4 forms/resource.qrc -o resource_rc.py
 +
Re-generating GUI
 +
You can now run ./freeseer
 +
[fsoss@fsoss2 src]$
 +
 
 +
Copy the file src/modprobe.d/vga2usb.conf to /etc/modprobe.d/ directory
 +
[root@fsoss2 modprobe.d]# cp /home/fsoss/freeseer-1.9.7/src/modprobe.d/vga2usb.conf /etc/modprobe.d/
 +
[root@fsoss2 modprobe.d]#
  
 
=== Video Capturing Hardware driver Installation ===
 
=== Video Capturing Hardware driver Installation ===
* install vga2usb driver
+
* Download the appropriate device driver for Fedora 13:
* configure vga2usb loadable module parameters
+
** [http://www.epiphan.com/downloads/linux/vga2usb-3.24.9.12-2.6.34.7-56.fc13.x86_64.tbz 64-bit vga2usb kernel driver for fedora 13]
 +
** [http://www.epiphan.com/downloads/linux/vga2usb-3.24.9.12-2.6.34.7-56.fc13.i686.tbz 32-bit vga2usb kernel driver for fedora 13]
 +
* The file should be downloaded to the Downloads directory
 +
* Unpack the file vga2usb-3.24.9.12-2.6.34.7-56.fc13.x86_64.tbz
 +
[fsoss@fsoss2 ~]$ pwd
 +
/home/fsoss
 +
[fsoss@fsoss2 ~]$ mkdir vga2usb
 +
[fsoss@fsoss2 ~]$ cd vga2usb
 +
[fsoss@fsoss2 vga2usb]$ tar xvfj ../Downloads/vga2usb-3.24.9.12-2.6.34.7-56.fc13.x86_64.tbz
 +
./
 +
./drvwrapper_lib.h
 +
./drvwrapper.h
 +
./Config.mak
 +
./v2u_id.h
 +
./.drvwrapper.o.cmd
 +
./Module.symvers
 +
./vga2usb_bins.o
 +
./README
 +
./drvwrapper_lib.c
 +
./.drvwrapper_lib.o.cmd
 +
./drvwrapper_lib.o
 +
./vga2usb.ko
 +
./Makefile
 +
./.vga2usb.mod.o.cmd
 +
./.vga2usb.o.cmd
 +
./.vga2usb.ko.cmd
 +
./drvwrapper.c
 +
./vga2usb.mod.c
 +
./.tmp_versions/
 +
./.tmp_versions/vga2usb.mod
 +
./vga2usb.mod.o
 +
./modules.order
 +
./drvwrapper.o
 +
./vga2usb.o
 +
* Copy the kernel module vga2usb.ko to /lib/modules/2.6.34.7-56/
 +
[root@fsoss2 2.6.34.7-56.fc13.x86_64]# pwd
 +
/lib/modules/2.6.34.7-56.fc13.x86_64
 +
[root@fsoss2 2.6.34.7-56.fc13.x86_64]# cp /home/fsoss/vga2usb/vga2usb.ko .
 +
[root@fsoss2 2.6.34.7-56.fc13.x86_64]# depmod -a
 +
 
 +
* configure vga2usb loadable module parameters:
 +
** edit the file /etc/modprobe.d/vga2usb.conf (copy from freeseer's download)
 +
*** comment out the line "options vga2usb num_frame_buffers=2"
 +
*** add the line "options vga2usb v4l_num_buffers=2"    (note: v4l_num_buffers is from drvwrapper_lib.h)
 +
 
 +
===Troubleshooting===
 +
 
 +
After installing the device driver for vga2usb, plug in the USB cable connected to the VGA2USB device and you should see the following message pop up in the system log file /var/log/messages:
 +
 
 +
Oct 24 11:08:30 f13 kernel: usb 1-3: new high speed USB device using ehci_hcd and address 2
 +
Oct 24 11:08:31 f13 kernel: usb 1-3: New USB device found, idVendor=5555, idProduct=1110
 +
Oct 24 11:08:31 f13 kernel: usb 1-3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
 +
Oct 24 11:08:31 f13 kernel: Epiphan Systems frame grabber driver version 3.24.9.12 loaded
 +
Oct 24 11:08:31 f13 kernel: VGA2USB is now attached to vga2usb-192
 +
Oct 24 11:08:31 f13 kernel: usbcore: registered new interface driver vga2usb
 +
Oct 24 11:08:31 f13 kernel: usb 1-3: USB disconnect, address 2
 +
Oct 24 11:08:31 f13 kernel: vga2usb: Disconnect
 +
Oct 24 11:08:32 f13 kernel: usb 1-3: new high speed USB device using ehci_hcd and address 3
 +
Oct 24 11:08:32 f13 kernel: usb 1-3: New USB device found, idVendor=5555, idProduct=1110
 +
Oct 24 11:08:32 f13 kernel: usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 +
Oct 24 11:08:32 f13 kernel: usb 1-3: Product: VGA to USB
 +
Oct 24 11:08:32 f13 kernel: usb 1-3: Manufacturer: Epiphan
 +
Oct 24 11:08:32 f13 kernel: usb 1-3: SerialNumber: V2U68595
 +
Oct 24 11:08:33 f13 kernel: VGA2USB is now attached to vga2usb-192
 +
 
 +
Connect the vga connector on the VGA2USB device to an VGA output and run the freeseer application, you should see the following debugging messages:
 +
[rchan@f13 src]$ ./freeseer
 +
Video directory exists.
 +
2010-10-25 23:06:33 freeseer: <INFO> Logger initialized.
 +
2010-10-25 23:06:33 freeseer: <DEBUG> Video output resolution changed to 800x600
 +
2010-10-25 23:06:33 freeseer: <INFO> Core initialized
 +
2010-10-25 23:06:33 freeseer: <DEBUG> Available video sources: ['desktop', 'usb', 'firewire']
 +
2010-10-25 23:06:33 freeseer: <DEBUG> pulsesrc is available.
 +
2010-10-25 23:06:33 freeseer: <DEBUG> alsasrc is available.
 +
2010-10-25 23:06:33 freeseer: <DEBUG> Available audio sources: ['pulsesrc', 'alsasrc']
 +
2010-10-25 23:06:33 freeseer: <DEBUG> Available talk titles:
 +
2010-10-25 23:06:33 freeseer: <DEBUG>  T103 - Thanh Ha - Intro to Freeseer
 +
2010-10-25 23:06:33 freeseer: <INFO> Video Preview Activated
 +
2010-10-25 23:06:33 freeseer: <DEBUG> Video source changed to desktop using
 +
2010-10-25 23:06:33 freeseer: <DEBUG> loading pulsesrc
 +
2010-10-25 23:06:33 freeseer: <DEBUG> pulsesrc loaded.
 +
2010-10-25 23:07:07 freeseer: <DEBUG> Available video devices for usb: ['/dev/video0']
 +
2010-10-25 23:07:07 freeseer: <DEBUG> Video source changed to usb using /dev/video0
 +
freeseer directory exists.
 +
2010-10-25 23:07:09 freeseer: <DEBUG> Video output resolution changed to 800x600
 +
freeseer directory exists.
 +
2010-10-25 23:07:11 freeseer: <DEBUG> Video output resolution changed to 800x600
 +
2010-10-25 23:07:18 freeseer: <DEBUG> Set record name to 2010-10-25_-_2307_-_T103_-_Thanh_Ha_-_Intro_to_Freeseer.ogg
 +
libv4l2: error getting capabilities: Unknown error 515
 +
2010-10-25 23:07:18 freeseer: <INFO> Recording started
 +
2010-10-25 23:07:18 freeseer: <DEBUG> Error: Could not get/set settings from/on resource.v4l2_calls.c(98): gst_v4l2_get_capabilities ():    /GstPipeline:player/GstV4l2Src:vidsrc:
 +
system error: Unknown error 515
 +
2010-10-25 23:07:18 freeseer: <DEBUG> v4l2src failed, falling back to v4lsrc
 +
2010-10-25 23:42:12 freeseer: <INFO> Recording stopped
 +
2010-10-25 23:42:14 freeseer: <INFO> Exiting freeseer...
 +
2010-10-25 23:42:14 freeseer: <INFO> Recording stopped
 +
[rchan@f13 src]$
 +
 
 +
Please note that freeseer can't find v4l2src and fall back to v4lsrc. Why was it failing to use v4l2src?

Latest revision as of 22:43, 25 October 2010

Video Capture Station Set up for 2010 FSOSS

  • Hardware: DELL Inspiron 6400 Laptop
    • Main Memory: 2048MB
    • 160GB Harddisk - share between Window7 and Fedora13

OS Installation

  • Install from Fedora 13 64bit DVD - Kernel version: 2.6.33.3-85
  • run yum update after initial installation
  • reboot system - updated kernel version:2.6.34.7-56

Install packages needed by freeseer

You need make, git and PyQt4-devel for freeseer on Fedora 13

[root@fsoss2 ~]# yum install git PyQt4-devel
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package PyQt4-devel.x86_64 0:4.7.3-1.fc13 set to be installed
--> Processing Dependency: PyQt4 = 4.7.3-1.fc13 for package: PyQt4-devel-4.7.3-1.fc13.x86_64
--> Processing Dependency: qt4-devel for package: PyQt4-devel-4.7.3-1.fc13.x86_64
--> Processing Dependency: sip-devel for package: PyQt4-devel-4.7.3-1.fc13.x86_64
--> Processing Dependency: libQtCore.so.4()(64bit) for package: PyQt4-devel-4.7.3-1.fc13.x86_64
--> Processing Dependency: libQtXml.so.4()(64bit) for package: PyQt4-devel-4.7.3-1.fc13.x86_64
--> Processing Dependency: libQtGui.so.4()(64bit) for package: PyQt4-devel-4.7.3-1.fc13.x86_64
---> Package git.x86_64 0:1.7.2.3-1.fc13 set to be installed
--> Processing Dependency: perl-Git = 1.7.2.3-1.fc13 for package: git-1.7.2.3-1.fc13.x86_64
--> Processing Dependency: perl(Error) for package: git-1.7.2.3-1.fc13.x86_64
--> Processing Dependency: perl(Git) for package: git-1.7.2.3-1.fc13.x86_64
--> Running transaction check
---> Package PyQt4.x86_64 0:4.7.3-1.fc13 set to be installed
--> Processing Dependency: sip-api(7) >= 7.1 for package: PyQt4-4.7.3-1.fc13.x86_64
--> Processing Dependency: libphonon.so.4()(64bit) for package: PyQt4-4.7.3-1.fc13.x86_64
---> Package perl-Error.noarch 1:0.17016-1.fc13 set to be installed
---> Package perl-Git.noarch 0:1.7.2.3-1.fc13 set to be installed
---> Package qt.x86_64 1:4.6.3-8.fc13 set to be installed
---> Package qt-devel.x86_64 1:4.6.3-8.fc13 set to be installed
--> Processing Dependency: libjpeg-devel for package: 1:qt-devel-4.6.3-8.fc13.x86_64
--> Processing Dependency: libGL-devel for package: 1:qt-devel-4.6.3-8.fc13.x86_64
--> Processing Dependency: libXrandr-devel for package: 1:qt-devel-4.6.3-8.fc13.x86_64
--> Processing Dependency: libXt-devel for package: 1:qt-devel-4.6.3-8.fc13.x86_64
--> Processing Dependency: libGLU-devel for package: 1:qt-devel-4.6.3-8.fc13.x86_64
--> Processing Dependency: libXft-devel for package: 1:qt-devel-4.6.3-8.fc13.x86_64
--> Processing Dependency: libXi-devel for package: 1:qt-devel-4.6.3-8.fc13.x86_64
--> Processing Dependency: libXext-devel for package: 1:qt-devel-4.6.3-8.fc13.x86_64
--> Processing Dependency: libXrender-devel for package: 1:qt-devel-4.6.3-8.fc13.x86_64
--> Processing Dependency: libICE-devel for package: 1:qt-devel-4.6.3-8.fc13.x86_64
--> Processing Dependency: libXinerama-devel for package: 1:qt-devel-4.6.3-8.fc13.x86_64
--> Processing Dependency: xorg-x11-proto-devel for package: 1:qt-devel-4.6.3-8.fc13.x86_64
--> Processing Dependency: libSM-devel for package: 1:qt-devel-4.6.3-8.fc13.x86_64
--> Processing Dependency: libpng-devel for package: 1:qt-devel-4.6.3-8.fc13.x86_64
--> Processing Dependency: libXfixes-devel for package: 1:qt-devel-4.6.3-8.fc13.x86_64
--> Processing Dependency: libXcursor-devel for package: 1:qt-devel-4.6.3-8.fc13.x86_64
--> Processing Dependency: libX11-devel for package: 1:qt-devel-4.6.3-8.fc13.x86_64
---> Package qt-x11.x86_64 1:4.6.3-8.fc13 set to be installed
--> Processing Dependency: qt-sqlite(x86-64) = 1:4.6.3-8.fc13 for package: 1:qt-x11-4.6.3-8.fc13.x86_64
--> Processing Dependency: phonon-backend(x86-64) >= 4.3 for package: 1:qt-x11-4.6.3-8.fc13.x86_64
---> Package sip-devel.x86_64 0:4.10.2-1.fc13 set to be installed
--> Processing Dependency: python-devel for package: sip-devel-4.10.2-1.fc13.x86_64
--> Running transaction check
---> Package libICE-devel.x86_64 0:1.0.6-2.fc13 set to be installed
---> Package libSM-devel.x86_64 0:1.1.0-7.fc12 set to be installed
---> Package libX11-devel.x86_64 0:1.3.1-3.fc13 set to be installed
--> Processing Dependency: pkgconfig(xcb) >= 1.1.92 for package: libX11-devel-1.3.1-3.fc13.x86_64
--> Processing Dependency: pkgconfig(xcb) for package: libX11-devel-1.3.1-3.fc13.x86_64
---> Package libXcursor-devel.x86_64 0:1.1.10-4.fc13 set to be installed
---> Package libXext-devel.x86_64 0:1.1.2-2.fc13 set to be installed
---> Package libXfixes-devel.x86_64 0:4.0.4-2.fc13 set to be installed
---> Package libXft-devel.x86_64 0:2.1.14-1.fc13 set to be installed
--> Processing Dependency: pkgconfig(freetype2) for package: libXft-devel-2.1.14-1.fc13.x86_64
--> Processing Dependency: pkgconfig(fontconfig) for package: libXft-devel-2.1.14-1.fc13.x86_64
---> Package libXi-devel.x86_64 0:1.3.2-1.fc13 set to be installed
---> Package libXinerama-devel.x86_64 0:1.1-2.fc13 set to be installed
---> Package libXrandr-devel.x86_64 0:1.3.0-5.fc13 set to be installed
---> Package libXrender-devel.x86_64 0:0.9.5-1.fc13 set to be installed
---> Package libXt-devel.x86_64 0:1.0.7-1.fc13 set to be installed
---> Package libjpeg-devel.x86_64 0:6b-46.fc12 set to be installed
---> Package libpng-devel.x86_64 2:1.2.44-1.fc13 set to be installed
--> Processing Dependency: zlib-devel for package: 2:libpng-devel-1.2.44-1.fc13.x86_64
---> Package mesa-libGL-devel.x86_64 0:7.8.1-8.fc13 set to be installed
--> Processing Dependency: pkgconfig(libdrm) >= 2.4.15 for package: mesa-libGL-devel-7.8.1-8.fc13.x86_64
--> Processing Dependency: pkgconfig(xxf86vm) for package: mesa-libGL-devel-7.8.1-8.fc13.x86_64
--> Processing Dependency: pkgconfig(xdamage) for package: mesa-libGL-devel-7.8.1-8.fc13.x86_64
---> Package mesa-libGLU-devel.x86_64 0:7.8.1-8.fc13 set to be installed
---> Package phonon.x86_64 0:4.4.2-1.fc13 set to be installed
---> Package phonon-backend-gstreamer.x86_64 2:4.4.2-1.fc13 set to be installed
---> Package python-devel.x86_64 0:2.6.4-27.fc13 set to be installed
---> Package qt-sqlite.x86_64 1:4.6.3-8.fc13 set to be installed
---> Package sip.x86_64 0:4.10.2-1.fc13 set to be installed
---> Package xorg-x11-proto-devel.noarch 0:7.4-36.fc13 set to be installed
--> Running transaction check
---> Package fontconfig-devel.x86_64 0:2.8.0-1.fc13 set to be installed
---> Package freetype-devel.x86_64 0:2.3.11-6.fc13 set to be installed
---> Package libXdamage-devel.x86_64 0:1.1.2-2.fc13 set to be installed
---> Package libXxf86vm-devel.x86_64 0:1.1.0-1.fc13 set to be installed
---> Package libdrm-devel.x86_64 0:2.4.21-2.fc13 set to be installed
--> Processing Dependency: kernel-headers >= 2.6.27-0.144.rc0.git2.fc10 for package: libdrm-devel-2.4.21-2.fc13.x86_64
---> Package libxcb-devel.x86_64 0:1.5-1.fc13 set to be installed
--> Processing Dependency: pkgconfig(xau) >= 0.99.2 for package: libxcb-devel-1.5-1.fc13.x86_64
---> Package zlib-devel.x86_64 0:1.2.3-23.fc12 set to be installed
--> Running transaction check
---> Package kernel-headers.x86_64 0:2.6.34.7-56.fc13 set to be installed
---> Package libXau-devel.x86_64 0:1.0.5-1.fc12 set to be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                      Arch       Version              Repository   Size
================================================================================
Installing:
 PyQt4-devel                  x86_64     4.7.3-1.fc13         fedora      7.8 M
 git                          x86_64     1.7.2.3-1.fc13       updates     3.2 M
Installing for dependencies:
 PyQt4                        x86_64     4.7.3-1.fc13         fedora      2.5 M
 fontconfig-devel             x86_64     2.8.0-1.fc13         fedora      209 k
 freetype-devel               x86_64     2.3.11-6.fc13        updates     363 k
 kernel-headers               x86_64     2.6.34.7-56.fc13     updates     720 k
 libICE-devel                 x86_64     1.0.6-2.fc13         fedora       15 k
 libSM-devel                  x86_64     1.1.0-7.fc12         fedora       12 k
 libX11-devel                 x86_64     1.3.1-3.fc13         fedora      1.0 M
 libXau-devel                 x86_64     1.0.5-1.fc12         fedora       13 k
 libXcursor-devel             x86_64     1.1.10-4.fc13        fedora       21 k
 libXdamage-devel             x86_64     1.1.2-2.fc13         fedora      8.8 k
 libXext-devel                x86_64     1.1.2-2.fc13         updates      77 k
 libXfixes-devel              x86_64     4.0.4-2.fc13         fedora       11 k
 libXft-devel                 x86_64     2.1.14-1.fc13        fedora       18 k
 libXi-devel                  x86_64     1.3.2-1.fc13         updates      93 k
 libXinerama-devel            x86_64     1.1-2.fc13           fedora       12 k
 libXrandr-devel              x86_64     1.3.0-5.fc13         fedora       19 k
 libXrender-devel             x86_64     0.9.5-1.fc13         fedora       15 k
 libXt-devel                  x86_64     1.0.7-1.fc13         fedora      326 k
 libXxf86vm-devel             x86_64     1.1.0-1.fc13         fedora       17 k
 libdrm-devel                 x86_64     2.4.21-2.fc13        updates      64 k
 libjpeg-devel                x86_64     6b-46.fc12           fedora       91 k
 libpng-devel                 x86_64     2:1.2.44-1.fc13      updates     111 k
 libxcb-devel                 x86_64     1.5-1.fc13           fedora      139 k
 mesa-libGL-devel             x86_64     7.8.1-8.fc13         updates     486 k
 mesa-libGLU-devel            x86_64     7.8.1-8.fc13         updates     111 k
 perl-Error                   noarch     1:0.17016-1.fc13     fedora       29 k
 perl-Git                     noarch     1.7.2.3-1.fc13       updates      28 k
 phonon                       x86_64     4.4.2-1.fc13         updates     161 k
 phonon-backend-gstreamer     x86_64     2:4.4.2-1.fc13       updates     100 k
 python-devel                 x86_64     2.6.4-27.fc13        updates     162 k
 qt                           x86_64     1:4.6.3-8.fc13       updates     3.8 M
 qt-devel                     x86_64     1:4.6.3-8.fc13       updates      10 M
 qt-sqlite                    x86_64     1:4.6.3-8.fc13       updates      51 k
 qt-x11                       x86_64     1:4.6.3-8.fc13       updates      17 M
 sip                          x86_64     4.10.2-1.fc13        fedora      106 k
 sip-devel                    x86_64     4.10.2-1.fc13        fedora      129 k
 xorg-x11-proto-devel         noarch     7.4-36.fc13          fedora      250 k
 zlib-devel                   x86_64     1.2.3-23.fc12        fedora       40 k

Transaction Summary
================================================================================
Install      40 Package(s)

Total download size: 49 M
Installed size: 157 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 49 M
(1/40): PyQt4-4.7.3-1.fc13.x86_64.rpm                    | 2.5 MB     00:04    
(2/40): PyQt4-devel-4.7.3-1.fc13.x86_64.rpm              | 7.8 MB     00:15    
(3/40): fontconfig-devel-2.8.0-1.fc13.x86_64.rpm         | 209 kB     00:00    
(4/40): freetype-devel-2.3.11-6.fc13.x86_64.rpm          | 363 kB     00:00    
(5/40): git-1.7.2.3-1.fc13.x86_64.rpm                    | 3.2 MB     00:06    
(6/40): kernel-headers-2.6.34.7-56.fc13.x86_64.rpm       | 720 kB     00:01    
(7/40): libICE-devel-1.0.6-2.fc13.x86_64.rpm             |  15 kB     00:00    
(8/40): libSM-devel-1.1.0-7.fc12.x86_64.rpm              |  12 kB     00:00    
(9/40): libX11-devel-1.3.1-3.fc13.x86_64.rpm             | 1.0 MB     00:02    
(10/40): libXau-devel-1.0.5-1.fc12.x86_64.rpm            |  13 kB     00:00    
(11/40): libXcursor-devel-1.1.10-4.fc13.x86_64.rpm       |  21 kB     00:00    
(12/40): libXdamage-devel-1.1.2-2.fc13.x86_64.rpm        | 8.8 kB     00:00    
(13/40): libXext-devel-1.1.2-2.fc13.x86_64.rpm           |  77 kB     00:00    
(14/40): libXfixes-devel-4.0.4-2.fc13.x86_64.rpm         |  11 kB     00:00    
(15/40): libXft-devel-2.1.14-1.fc13.x86_64.rpm           |  18 kB     00:00    
(16/40): libXi-devel-1.3.2-1.fc13.x86_64.rpm             |  93 kB     00:00    
(17/40): libXinerama-devel-1.1-2.fc13.x86_64.rpm         |  12 kB     00:00    
(18/40): libXrandr-devel-1.3.0-5.fc13.x86_64.rpm         |  19 kB     00:00    
(19/40): libXrender-devel-0.9.5-1.fc13.x86_64.rpm        |  15 kB     00:00    
(20/40): libXt-devel-1.0.7-1.fc13.x86_64.rpm             | 326 kB     00:00    
(21/40): libXxf86vm-devel-1.1.0-1.fc13.x86_64.rpm        |  17 kB     00:00    
(22/40): libdrm-devel-2.4.21-2.fc13.x86_64.rpm           |  64 kB     00:00    
(23/40): libjpeg-devel-6b-46.fc12.x86_64.rpm             |  91 kB     00:00    
(24/40): libpng-devel-1.2.44-1.fc13.x86_64.rpm           | 111 kB     00:00    
(25/40): libxcb-devel-1.5-1.fc13.x86_64.rpm              | 139 kB     00:00    
(26/40): mesa-libGL-devel-7.8.1-8.fc13.x86_64.rpm        | 486 kB     00:01    
(27/40): mesa-libGLU-devel-7.8.1-8.fc13.x86_64.rpm       | 111 kB     00:00    
(28/40): perl-Error-0.17016-1.fc13.noarch.rpm            |  29 kB     00:00    
(29/40): perl-Git-1.7.2.3-1.fc13.noarch.rpm              |  28 kB     00:00    
(30/40): phonon-4.4.2-1.fc13.x86_64.rpm                  | 161 kB     00:00    
(31/40): phonon-backend-gstreamer-4.4.2-1.fc13.x86_64.rp | 100 kB     00:00    
(32/40): python-devel-2.6.4-27.fc13.x86_64.rpm           | 162 kB     00:00    
(33/40): qt-4.6.3-8.fc13.x86_64.rpm                      | 3.8 MB     00:07    
(34/40): qt-devel-4.6.3-8.fc13.x86_64.rpm                |  10 MB     00:19    
(35/40): qt-sqlite-4.6.3-8.fc13.x86_64.rpm               |  51 kB     00:00    
(36/40): qt-x11-4.6.3-8.fc13.x86_64.rpm                  |  17 MB     00:34    
(37/40): sip-4.10.2-1.fc13.x86_64.rpm                    | 106 kB     00:00    
(38/40): sip-devel-4.10.2-1.fc13.x86_64.rpm              | 129 kB     00:00    
(39/40): xorg-x11-proto-devel-7.4-36.fc13.noarch.rpm     | 250 kB     00:00    
(40/40): zlib-devel-1.2.3-23.fc12.x86_64.rpm             |  40 kB     00:00    
--------------------------------------------------------------------------------
Total                                           468 kB/s |  49 MB     01:47    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : xorg-x11-proto-devel-7.4-36.fc13.noarch                 1/40
  Installing     : 1:qt-4.6.3-8.fc13.x86_64                                2/40
  Installing     : sip-4.10.2-1.fc13.x86_64                                3/40
  Installing     : libICE-devel-1.0.6-2.fc13.x86_64                        4/40
  Installing     : libSM-devel-1.1.0-7.fc12.x86_64                         5/40
  Installing     : 1:perl-Error-0.17016-1.fc13.noarch                      6/40
  Installing     : zlib-devel-1.2.3-23.fc12.x86_64                         7/40
  Installing     : 1:qt-sqlite-4.6.3-8.fc13.x86_64                         8/40
  Installing     : 1:qt-x11-4.6.3-8.fc13.x86_64                            9/40
  Installing     : phonon-4.4.2-1.fc13.x86_64                             10/40
  Installing     : 2:phonon-backend-gstreamer-4.4.2-1.fc13.x86_64         11/40
  Installing     : freetype-devel-2.3.11-6.fc13.x86_64                    12/40
  Installing     : PyQt4-4.7.3-1.fc13.x86_64                              13/40
  Installing     : fontconfig-devel-2.8.0-1.fc13.x86_64                   14/40
  Installing     : 2:libpng-devel-1.2.44-1.fc13.x86_64                    15/40
  Installing     : git-1.7.2.3-1.fc13.x86_64                              16/40
  Installing     : perl-Git-1.7.2.3-1.fc13.noarch                         17/40
  Installing     : libXau-devel-1.0.5-1.fc12.x86_64                       18/40
  Installing     : libxcb-devel-1.5-1.fc13.x86_64                         19/40
  Installing     : libX11-devel-1.3.1-3.fc13.x86_64                       20/40
  Installing     : libXt-devel-1.0.7-1.fc13.x86_64                        21/40
  Installing     : libXext-devel-1.1.2-2.fc13.x86_64                      22/40
  Installing     : libXfixes-devel-4.0.4-2.fc13.x86_64                    23/40
  Installing     : libXrender-devel-0.9.5-1.fc13.x86_64                   24/40
  Installing     : libXcursor-devel-1.1.10-4.fc13.x86_64                  25/40
  Installing     : libXrandr-devel-1.3.0-5.fc13.x86_64                    26/40
  Installing     : libXft-devel-2.1.14-1.fc13.x86_64                      27/40
  Installing     : libXdamage-devel-1.1.2-2.fc13.x86_64                   28/40
  Installing     : libXxf86vm-devel-1.1.0-1.fc13.x86_64                   29/40
  Installing     : libXi-devel-1.3.2-1.fc13.x86_64                        30/40
  Installing     : libXinerama-devel-1.1-2.fc13.x86_64                    31/40
  Installing     : kernel-headers-2.6.34.7-56.fc13.x86_64                 32/40
  Installing     : libdrm-devel-2.4.21-2.fc13.x86_64                      33/40
  Installing     : mesa-libGL-devel-7.8.1-8.fc13.x86_64                   34/40
  Installing     : mesa-libGLU-devel-7.8.1-8.fc13.x86_64                  35/40
  Installing     : libjpeg-devel-6b-46.fc12.x86_64                        36/40
  Installing     : 1:qt-devel-4.6.3-8.fc13.x86_64                         37/40
  Installing     : python-devel-2.6.4-27.fc13.x86_64                      38/40
  Installing     : sip-devel-4.10.2-1.fc13.x86_64                         39/40
  Installing     : PyQt4-devel-4.7.3-1.fc13.x86_64                        40/40 

Installed:
  PyQt4-devel.x86_64 0:4.7.3-1.fc13         git.x86_64 0:1.7.2.3-1.fc13       

Dependency Installed:
  PyQt4.x86_64 0:4.7.3-1.fc13                                                  
  fontconfig-devel.x86_64 0:2.8.0-1.fc13                                       
  freetype-devel.x86_64 0:2.3.11-6.fc13                                        
  kernel-headers.x86_64 0:2.6.34.7-56.fc13                                     
  libICE-devel.x86_64 0:1.0.6-2.fc13                                           
  libSM-devel.x86_64 0:1.1.0-7.fc12                                            
  libX11-devel.x86_64 0:1.3.1-3.fc13                                           
  libXau-devel.x86_64 0:1.0.5-1.fc12                                           
  libXcursor-devel.x86_64 0:1.1.10-4.fc13                                      
  libXdamage-devel.x86_64 0:1.1.2-2.fc13                                       
  libXext-devel.x86_64 0:1.1.2-2.fc13                                          
  libXfixes-devel.x86_64 0:4.0.4-2.fc13                                        
  libXft-devel.x86_64 0:2.1.14-1.fc13                                          
  libXi-devel.x86_64 0:1.3.2-1.fc13                                            
  libXinerama-devel.x86_64 0:1.1-2.fc13                                        
  libXrandr-devel.x86_64 0:1.3.0-5.fc13                                        
  libXrender-devel.x86_64 0:0.9.5-1.fc13                                       
  libXt-devel.x86_64 0:1.0.7-1.fc13                                            
  libXxf86vm-devel.x86_64 0:1.1.0-1.fc13                                       
  libdrm-devel.x86_64 0:2.4.21-2.fc13                                          
  libjpeg-devel.x86_64 0:6b-46.fc12                                            
  libpng-devel.x86_64 2:1.2.44-1.fc13                                          
  libxcb-devel.x86_64 0:1.5-1.fc13                                             
  mesa-libGL-devel.x86_64 0:7.8.1-8.fc13                                       
  mesa-libGLU-devel.x86_64 0:7.8.1-8.fc13                                      
  perl-Error.noarch 1:0.17016-1.fc13                                           
  perl-Git.noarch 0:1.7.2.3-1.fc13                                             
  phonon.x86_64 0:4.4.2-1.fc13                                                 
  phonon-backend-gstreamer.x86_64 2:4.4.2-1.fc13                               
  python-devel.x86_64 0:2.6.4-27.fc13                                          
  qt.x86_64 1:4.6.3-8.fc13                                                     
  qt-devel.x86_64 1:4.6.3-8.fc13                                               
  qt-sqlite.x86_64 1:4.6.3-8.fc13                                              
  qt-x11.x86_64 1:4.6.3-8.fc13                                                 
  sip.x86_64 0:4.10.2-1.fc13                                                   
  sip-devel.x86_64 0:4.10.2-1.fc13                                             
  xorg-x11-proto-devel.noarch 0:7.4-36.fc13                                    
  zlib-devel.x86_64 0:1.2.3-23.fc12                                            

Complete!
[root@fsoss2 ~]#

Video Capturing Application Installation

  • download freeseer - latest version 1.9.7 to /home/fsoss/Downloads directory (on the Fedora 13 laptop)
  • install freeseer:
[fsoss@fsoss2 ~]$ cd
[fsoss@fsoss2 ~]$ tar xvfz Downloads/freeseer-1.9.7.tgz
freeseer-1.9.7/
freeseer-1.9.7/index.html
freeseer-1.9.7/release_notes.txt
freeseer-1.9.7/src/
freeseer-1.9.7/src/makefile
freeseer-1.9.7/src/__init__.py
freeseer-1.9.7/src/LICENSE
freeseer-1.9.7/src/forms/
freeseer-1.9.7/src/forms/stop_red_button.png
freeseer-1.9.7/src/forms/freeseer_logo.png
freeseer-1.9.7/src/forms/headphones.png
freeseer-1.9.7/src/forms/record_red_button.png
freeseer-1.9.7/src/forms/freeseer_ui_qt.ui
freeseer-1.9.7/src/forms/freeseer_about.ui
freeseer-1.9.7/src/forms/resource.qrc
freeseer-1.9.7/src/freeseer
freeseer-1.9.7/src/backend/
freeseer-1.9.7/src/backend/__init__.py
freeseer-1.9.7/src/backend/gstreamer.py
freeseer-1.9.7/src/modprobe.d/
freeseer-1.9.7/src/modprobe.d/vga2usb.conf
freeseer-1.9.7/src/framework/
freeseer-1.9.7/src/framework/logger.py
freeseer-1.9.7/src/framework/core.py
freeseer-1.9.7/src/framework/__init__.py
freeseer-1.9.7/src/framework/qt_area_selector.py
freeseer-1.9.7/src/framework/config.py
freeseer-1.9.7/.gitattributes
freeseer-1.9.7/README.txt
freeseer-1.9.7/LICENSE
freeseer-1.9.7/pkg/
freeseer-1.9.7/pkg/freeseer.spec
freeseer-1.9.7/setup.py
freeseer-1.9.7/.gitignore
freeseer-1.9.7/tools/
freeseer-1.9.7/tools/transcode_em.sh
freeseer-1.9.7/tools/bump_version.py
[fsoss@fsoss2 ~]$
[fsoss@fsoss2 ~]$ cd freeseer-1.9.7/src
[fsoss@fsoss2 src]$ make
pyuic4 forms/freeseer_ui_qt.ui -o freeseer_ui_qt.py
pyuic4 forms/freeseer_about.ui -o freeseer_about.py
pyrcc4 forms/resource.qrc -o resource_rc.py
Re-generating GUI
You can now run ./freeseer
[fsoss@fsoss2 src]$

Copy the file src/modprobe.d/vga2usb.conf to /etc/modprobe.d/ directory

[root@fsoss2 modprobe.d]# cp /home/fsoss/freeseer-1.9.7/src/modprobe.d/vga2usb.conf /etc/modprobe.d/
[root@fsoss2 modprobe.d]#

Video Capturing Hardware driver Installation

[fsoss@fsoss2 ~]$ pwd
/home/fsoss
[fsoss@fsoss2 ~]$ mkdir vga2usb
[fsoss@fsoss2 ~]$ cd vga2usb
[fsoss@fsoss2 vga2usb]$ tar xvfj ../Downloads/vga2usb-3.24.9.12-2.6.34.7-56.fc13.x86_64.tbz
./
./drvwrapper_lib.h
./drvwrapper.h
./Config.mak
./v2u_id.h
./.drvwrapper.o.cmd
./Module.symvers
./vga2usb_bins.o
./README
./drvwrapper_lib.c
./.drvwrapper_lib.o.cmd
./drvwrapper_lib.o
./vga2usb.ko
./Makefile
./.vga2usb.mod.o.cmd
./.vga2usb.o.cmd
./.vga2usb.ko.cmd
./drvwrapper.c
./vga2usb.mod.c
./.tmp_versions/
./.tmp_versions/vga2usb.mod
./vga2usb.mod.o
./modules.order
./drvwrapper.o
./vga2usb.o
  • Copy the kernel module vga2usb.ko to /lib/modules/2.6.34.7-56/
[root@fsoss2 2.6.34.7-56.fc13.x86_64]# pwd
/lib/modules/2.6.34.7-56.fc13.x86_64
[root@fsoss2 2.6.34.7-56.fc13.x86_64]# cp /home/fsoss/vga2usb/vga2usb.ko .
[root@fsoss2 2.6.34.7-56.fc13.x86_64]# depmod -a
  • configure vga2usb loadable module parameters:
    • edit the file /etc/modprobe.d/vga2usb.conf (copy from freeseer's download)
      • comment out the line "options vga2usb num_frame_buffers=2"
      • add the line "options vga2usb v4l_num_buffers=2" (note: v4l_num_buffers is from drvwrapper_lib.h)

Troubleshooting

After installing the device driver for vga2usb, plug in the USB cable connected to the VGA2USB device and you should see the following message pop up in the system log file /var/log/messages:

Oct 24 11:08:30 f13 kernel: usb 1-3: new high speed USB device using ehci_hcd and address 2
Oct 24 11:08:31 f13 kernel: usb 1-3: New USB device found, idVendor=5555, idProduct=1110
Oct 24 11:08:31 f13 kernel: usb 1-3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Oct 24 11:08:31 f13 kernel: Epiphan Systems frame grabber driver version 3.24.9.12 loaded
Oct 24 11:08:31 f13 kernel: VGA2USB is now attached to vga2usb-192
Oct 24 11:08:31 f13 kernel: usbcore: registered new interface driver vga2usb
Oct 24 11:08:31 f13 kernel: usb 1-3: USB disconnect, address 2
Oct 24 11:08:31 f13 kernel: vga2usb: Disconnect
Oct 24 11:08:32 f13 kernel: usb 1-3: new high speed USB device using ehci_hcd and address 3
Oct 24 11:08:32 f13 kernel: usb 1-3: New USB device found, idVendor=5555, idProduct=1110
Oct 24 11:08:32 f13 kernel: usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 24 11:08:32 f13 kernel: usb 1-3: Product: VGA to USB
Oct 24 11:08:32 f13 kernel: usb 1-3: Manufacturer: Epiphan
Oct 24 11:08:32 f13 kernel: usb 1-3: SerialNumber: V2U68595
Oct 24 11:08:33 f13 kernel: VGA2USB is now attached to vga2usb-192

Connect the vga connector on the VGA2USB device to an VGA output and run the freeseer application, you should see the following debugging messages:

[rchan@f13 src]$ ./freeseer
Video directory exists.
2010-10-25 23:06:33 freeseer: <INFO> Logger initialized.
2010-10-25 23:06:33 freeseer: <DEBUG> Video output resolution changed to 800x600
2010-10-25 23:06:33 freeseer: <INFO> Core initialized
2010-10-25 23:06:33 freeseer: <DEBUG> Available video sources: ['desktop', 'usb', 'firewire']
2010-10-25 23:06:33 freeseer: <DEBUG> pulsesrc is available.
2010-10-25 23:06:33 freeseer: <DEBUG> alsasrc is available.
2010-10-25 23:06:33 freeseer: <DEBUG> Available audio sources: ['pulsesrc', 'alsasrc']
2010-10-25 23:06:33 freeseer: <DEBUG> Available talk titles:
2010-10-25 23:06:33 freeseer: <DEBUG>   T103 - Thanh Ha - Intro to Freeseer
2010-10-25 23:06:33 freeseer: <INFO> Video Preview Activated
2010-10-25 23:06:33 freeseer: <DEBUG> Video source changed to desktop using
2010-10-25 23:06:33 freeseer: <DEBUG> loading pulsesrc
2010-10-25 23:06:33 freeseer: <DEBUG> pulsesrc loaded.
2010-10-25 23:07:07 freeseer: <DEBUG> Available video devices for usb: ['/dev/video0']
2010-10-25 23:07:07 freeseer: <DEBUG> Video source changed to usb using /dev/video0
freeseer directory exists.
2010-10-25 23:07:09 freeseer: <DEBUG> Video output resolution changed to 800x600
freeseer directory exists.
2010-10-25 23:07:11 freeseer: <DEBUG> Video output resolution changed to 800x600
2010-10-25 23:07:18 freeseer: <DEBUG> Set record name to 2010-10-25_-_2307_-_T103_-_Thanh_Ha_-_Intro_to_Freeseer.ogg
libv4l2: error getting capabilities: Unknown error 515
2010-10-25 23:07:18 freeseer: <INFO> Recording started
2010-10-25 23:07:18 freeseer: <DEBUG> Error: Could not get/set settings from/on resource.v4l2_calls.c(98): gst_v4l2_get_capabilities ():     /GstPipeline:player/GstV4l2Src:vidsrc:
system error: Unknown error 515
2010-10-25 23:07:18 freeseer: <DEBUG> v4l2src failed, falling back to v4lsrc
2010-10-25 23:42:12 freeseer: <INFO> Recording stopped
2010-10-25 23:42:14 freeseer: <INFO> Exiting freeseer...
2010-10-25 23:42:14 freeseer: <INFO> Recording stopped
[rchan@f13 src]$

Please note that freeseer can't find v4l2src and fall back to v4lsrc. Why was it failing to use v4l2src?