I own one easycap card, 1b71:3002 Fushicai USBTV007 Video Grabber [EasyCAP]. 
I've made it working without problem on raspbian (Linux raspberrypi 4.1.7+ #817 
PREEMPT Sat Sep 19 15:25:36 BST 2015 armv6l GNU/Linux) installed on my 
raspberry PI. Because I need more CPUvpower for encoding+streaming at the same 
time, I give up to use raspberry PI and tried to install it under a virtual 
linux machine running on my vmware-esxi server.

I installed first on vista (another virtual machine running on the same esxi 
server), and was  able to audio+video. So for sure, from here I decided that 
esxi is configured ok, and device connected is working properly. Moving from 
vista to ubuntu (14.x, 15.x) or fedora-22, v4l2-ctl hangs after I am trying to 
access /dev/video0. See below:

root@alex-virtual-machine:~# cat /etc/issue
Ubuntu 14.04.3 LTS \n \l

root@alex-virtual-machine:~#

1. activating fushicai usbtv007 on ubuntu via esxi

# tail -f /var/log/syslog
Nov  5 22:41:11 alex-virtual-machine kernel: [  338.680737] usb 1-1: new 
high-speed USB device number 2 using ehci-pci
Nov  5 22:41:11 alex-virtual-machine kernel: [  339.030255] usb 1-1: config 1 
interface 0 altsetting 1 bulk endpoint 0x83 has invalid maxpacket 256
Nov  5 22:41:11 alex-virtual-machine kernel: [  339.038867] usb 1-1: New USB 
device found, idVendor=1b71, idProduct=3002
Nov  5 22:41:11 alex-virtual-machine kernel: [  339.038869] usb 1-1: New USB 
device strings: Mfr=3, Product=4, SerialNumber=2
Nov  5 22:41:11 alex-virtual-machine kernel: [  339.038871] usb 1-1: Product: 
usbtv007
Nov  5 22:41:11 alex-virtual-machine kernel: [  339.038872] usb 1-1: 
Manufacturer: fushicai
Nov  5 22:41:11 alex-virtual-machine kernel: [  339.038872] usb 1-1: 
SerialNumber: 300000000002
Nov  5 22:41:11 alex-virtual-machine mtp-probe: checking bus 1, device 2: 
"/sys/devices/pci0000:00/0000:00:11.0/0000:02:01.0/usb1/1-1"
Nov  5 22:41:11 alex-virtual-machine mtp-probe: bus: 1, device: 2 was not an 
MTP device
Nov  5 22:41:11 alex-virtual-machine kernel: [  339.080463] media: Linux media 
interface: v0.10
Nov  5 22:41:11 alex-virtual-machine kernel: [  339.085238] Linux video capture 
interface: v2.00
Nov  5 22:41:11 alex-virtual-machine kernel: [  339.095182] usbtv 1-1:1.0: 
Fushicai USBTV007 Audio-Video Grabber
Nov  5 22:41:11 alex-virtual-machine kernel: [  339.095911] usbcore: registered 
new interface driver usbtv
Nov  5 22:41:11 alex-virtual-machine pulseaudio[1827]: [pulseaudio] 
alsa-util.c: Disabling timer-based scheduling because running inside a VM.
Nov  5 22:41:11 alex-virtual-machine pulseaudio[1827]: [pulseaudio] source.c: 
Default and alternate sample rates are the same.
Nov  5 22:41:11 alex-virtual-machine rtkit-daemon[1337]: Successfully made 
thread 2331 of process 1827 (n/a) owned by '1000' RT at priority 5.
Nov  5 22:41:11 alex-virtual-machine rtkit-daemon[1337]: Supervising 2 threads 
of 1 processes of 1 users.

2. all fine, device is well recognized ...

root@alex-virtual-machine:~# v4l2-ctl -V
Format Video Capture:
        Width/Height  : 720/576
        Pixel Format  : 'YUYV'
        Field         : Interlaced
        Bytes per Line: 1440
        Size Image    : 829440
        Colorspace    : Broadcast NTSC/PAL (SMPTE170M/ITU601)
        Custom Info   : feedcafe
root@alex-virtual-machine:~#

3. list formats

root@alex-virtual-machine:~# v4l2-ctl --list-formats-ext -d /dev/video0
ioctl: VIDIOC_ENUM_FMT
        Index       : 0
        Type        : Video Capture
        Pixel Format: 'YUYV'
        Name        : 16 bpp YUY2, 4:2:2, packed

root@alex-virtual-machine:~#

root@alex-virtual-machine:~# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: usbtv [usbtv], device 0: USBTV Audio [USBTV Audio Input]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@alex-virtual-machine:~#

root@alex-virtual-machine:~# lsusb
Bus 001 Device 002: ID 1b71:3002
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@alex-virtual-machine:~#

Till here, all looks normal.

and now:

# mplayer tv:// -tv 
driver=v4l2:norm=PAL:width=720:height=576:outfmt=uyvy:device=/dev/video0:input=0:fps=25:alsa:amode=1:forcechan=1:audiorate=48000:adevice=hw.0,0:forceaudio:immediatemode=0
 -vf pp=lb -aspect 16:9 -ao alsa -vo x11

Creating config file: /root/.mplayer/config
MPlayer 1.1-4.8 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing tv://.
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <[email protected]>
comment: first try, more to come ;-)
Selected device: usbtv
Capabilities:  video capture  read/write  streaming
supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = 
NTSC-443; 5 = PAL; 6 = PAL-BG; 7 = PAL-H; 8 = PAL-I; 9 = PAL-DK; 10 = PAL-M; 11 
= PAL-60;
inputs: 0 = Composite; 1 = S-Video;
Current input: 0
Current format: YUYV
Selected input hasn't got a tuner!
Channel count not available - reverting to default: 2
Channel count not available - reverting to default: 2
v4l2: ioctl set mute failed: Inappropriate ioctl for device
v4l2: ioctl query control failed: Inappropriate ioctl for device
v4l2: ioctl query control failed: Inappropriate ioctl for device
v4l2: ioctl query control failed: Inappropriate ioctl for device
v4l2: ioctl query control failed: Inappropriate ioctl for device
v4l2: select timeout
v4l2: select timeout
v4l2: select timeout
v4l2: select timeout
v4l2: select timeout
v4l2: select timeout

HIT CTRL+C

MPlayer interrupted by signal 2 in module: read_subtitles_file
v4l2: select timeout
v4l2: select timeout
v4l2: select timeout


MPlayer interrupted by signal 2 in module: read_subtitles_file
^C^C^C^C^C^C^C^C^C^C

and nothing happen. mplayer pid cannot be killed l!!!!!
root@alex-virtual-machine:~# pidof mplayer
2358
root@alex-virtual-machine:~#

root@alex-virtual-machine:~# kill -9 2358

root@alex-virtual-machine:~# ps aux|grep mpl
root      2358  0.0  0.0      0     0 pts/14   D+   22:48   0:00 [mplayer]
root@alex-virtual-machine:~#

mplayer has been used for -v flag (verbose) and can not be stopped without 
reboot!!!! process remain in uninteruptible sleep (D+)

and v4ctl hangs at the end ...

root@alex-virtual-machine:~# v4l2-ctl -V
Format Video Capture:
        Width/Height  : 720/576
        Pixel Format  : 'YUYV'
        Field         : Interlaced
        Bytes per Line: 1440
        Size Image    : 829440
        Colorspace    : Broadcast NTSC/PAL (SMPTE170M/ITU601)
        Custom Info   : feedcafe

will never return root prompt #

I want to mention that I've tested and tried to access /dev/video0 using other 
software (ex: fswebcam, mplayer, ffmpeg) and get the same behaviour. So for 
sure, presented problem is not related to distribution (ubuntu, fedora) and has 
the same behaviour when mplayer, ffmpeg or fswebcam is used. All binarie hangs 
and put device (/dev/video0) in an uninterruptible sleep.

This is looks like a bug report ... so please help me to fill it accordingly!

Alx
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to