[MPlayer-users] Mencoder problem with /dev/dsp

Prakash Sompura pssompura at gmail.com
Wed Jun 29 17:07:06 CEST 2011


I have Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
Multimedia controller. I am using Fedora13 kernel 2.6.34.8-68.fc13.i686.PAE.

I am trying to record TV by command:
mencoder tv:// -tv driver=v4l2:input=0:norm=pal:width=640:height=480:
device=/dev/video0:forceaudio:audiorate=32000 buffersize=64 -ovc lavc
-lavcopts vcodec=mpeg4:vbitrate=800:keyint=30 -oac mp3lame -lameopts
br=128:cbr:mode=3 -ffourcc divx -endpos 10 -o `date +%y%m%d_%H%M`-m.avi

And I am getting following output with /dev/dsp busy error.

[root at phost test]# ./tv.sh
MEncoder SVN-r31628-4.4.4 (C) 2000-2010 MPlayer Team
success: format: 9  data: 0x0 - 0x0
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: LifeView/Typhoon FlyVIDEO2000
 Tuner cap: STEREO LANG1 LANG2
 Tuner rxs: MONO
 Capabilites:  video capture  video overlay  VBI capture device  tuner
read/write  streaming
 supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 =
PAL; 5 = PAL-BG; 6 = PAL-H; 7 = PAL-I; 8 = PAL-DK; 9 = PAL-M; 10 = PAL-N; 11
= PAL-Nc; 12 = PAL-60; 13 = SECAM; 14 = SECAM-B; 15 = SECAM-G; 16 = SECAM-H;
17 = SECAM-DK; 18 = SECAM-L; 19 = SECAM-Lc;
 inputs: 0 = Television; 1 = Composite1; 2 = Composite2; 3 = S-Video;
 Current input: 0
 Current format: BGR24
v4l2: current audio mode is : MONO
Unable to open '/dev/dsp': Device or resource busy
Unable to open '/dev/dsp': Device or resource busy
Unable to open '/dev/dsp': Device or resource busy
v4l2: 0 frames successfully processed, 0 frames dropped.
============ Sorry, this file format is not recognized/supported
=============
=== If this file is an AVI, ASF or MPEG stream, please contact the author!
===
Cannot open demuxer.

Exiting...

I have uncommented following line in /etc/modprobe.d/dist-oss.conf
install snd-pcm /sbin/modprobe --ignore-install snd-pcm && /sbin/modprobe
snd-pcm-oss && /sbin/modprobe snd-seq-device && /sbin/modprobe snd-seq-oss

/etc/udev/rules.d/10-dsp.rules contains the following:
KERNEL=="dsp", SUBSYSTEM=="sound", MODE="0666"

ls -ls /dev/dsp shows:
0 crw-rw-rw-+ 1 root audio 14, 3 Jun 29 20:29 /dev/dsp

id command shows:
uid=0(root) gid=0(root)
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),63(audio)

lsof | grep /dev/dsp returns nothing.

Please help.

Prakash Sompura


More information about the MPlayer-users mailing list