v4l2 hangs - easycap fushicai usbtv007
lista email
lista.email at yahoo.com
Thu Nov 5 23:06:21 UTC 2015
Dear ubuntu experts,
I am trying to get video and audio from an easycap device. Doing the same on raspberry pi (wheezy) I was able to get it working but PI does not have enough CPU power to stream and encode at the same time. So I've installed ubuntu on vmware esxi. All good, with the same device, moved to vista, I am getting audio+video. Moving from vista to ubuntu, v4ctl hangs after I am trying to play /dev/video0. See below:
root at alex-virtual-machine:~# cat /etc/issue
Ubuntu 14.04.3 LTS \n \l
root at 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 recognized fine ...
root at 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 at alex-virtual-machine:~#
3. list formats
root at 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 at alex-virtual-machine:~#
root at 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 at alex-virtual-machine:~#
root at 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 at alex-virtual-machine:~#
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 <olschewski at zpr.uni-koeln.de>
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 at alex-virtual-machine:~# pidof mplayer
2358
root at alex-virtual-machine:~#
root at alex-virtual-machine:~# kill -9 2358
root at alex-virtual-machine:~# ps aux|grep mpl
root 2358 0.0 0.0 0 0 pts/14 D+ 22:48 0:00 [mplayer]
root at alex-virtual-machine:~#
mplayer caanot be stopped without reboot!!!!
and v4ctl hangs at the end ...
root at 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 #
Please help.
Alx
More information about the ubuntu-users
mailing list