[MPlayer-users] mplayer pvr:// errors

Steve Dibb steve at wonkabar.org
Fri Nov 16 20:31:20 CET 2007


So, once upon a time[1] I actually had mplayer pvr:// support working 
just fine.  I've started testing it again, and with recent kernel 
(2.6.23.1) and recent SVN of MPlayer (25056), it's not working at all.

AFAICT, it's not an issue with the cmdline opts I'm passing, but you 
never know.

I can verify that the IVTV drivers are indeed working, since "cat 
/dev/video0 | mplayer -" works just fine.  After doing any attempts at 
playback with mplayer, it will lock up though (cat no longer works), and 
I have to remove and reload the IVTV driver.

Looks to me like it is dying somewhere in the demuxing.  The command 
exits fine, but of course nothing plays.

mplayer pvr:// -tv chanlist=us-cable:input=0:normid=10:channel=15 -pvr 
fmt=dvd:aspect=1 -v

MPlayer dev-SVN-r25056-4.1.2 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3000+ (Family: 15, Model: 44, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
get_path('codecs.conf') -> '/home/steve/.mplayer/codecs.conf'
Reading /home/steve/.mplayer/codecs.conf: Can't open 
'/home/steve/.mplayer/codecs.conf': No such file or directory
Reading /usr/etc/mplayer/codecs.conf: Can't open 
'/usr/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --prefix=/usr --enable-debug=3 --enable-mmx 
--enable-mmxext --enable-sse --enable-sse2 --enable-3dnow 
--enable-3dnowext --enable-largefiles --disable-rtc --disable-ftp 
--disable-sdl --disable-lirc --disable-lircc --disable-arts 
--disable-ivtv --disable-dvb --disable-fbdev --disable-esd --disable-smb 
--disable-tga --disable-md5sum --disable-pnm --disable-speex 
--disable-sunaudio --disable-arts --disable-jack --disable-pulse 
--disable-dxr2 --disable-openal --disable-vidix-internal 
--disable-vidix-external --disable-dga1 --disable-dga2 --disable-gl 
--disable-aa --disable-caca --disable-dvbhead --disable-cddb 
--disable-cdparanoia --disable-libcdio --disable-liblzo --disable-xanim 
--disable-unrarlib --disable-fribidi --disable-faad-internal 
--disable-faad-external --mandir=/usr/share/man 
--realcodecsdir=/usr/lib64/real --enable-xvmc --with-xvmclib=XvMCNVIDIA
CommandLine: 'pvr://' '-tv' 
'chanlist=us-cable:input=0:normid=10:channel=15' '-pvr' 
'fmt=dvd:aspect=1' '-v'
init_freetype
get_path('font/font.desc') -> '/home/steve/.mplayer/font/font.desc'
font: can't open file: /home/steve/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/steve/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/steve/.mplayer/input.conf'
Parsing input config file /home/steve/.mplayer/input.conf
Input config file /home/steve/.mplayer/input.conf parsed: 5 binds
get_path('.conf') -> '/home/steve/.mplayer/.conf'

Playing pvr://.
get_path('sub/') -> '/home/steve/.mplayer/sub/'
[v4l2] select channel list us-cable, entries 133
[v4l2]   0: [X] channel:        1 - freq:    73250 - station:
[v4l2]   1: [X] channel:        2 - freq:    55250 - station:
<snip>the very long remaning v4l2 list</snip>
[v4l2] Switch to user station channel:       15 - freq:   127250 - station:
[pvr] Using device /dev/video0
[pvr] Detected WinTV PVR 500 (unit #1)
[v4l2] Available video inputs: '#0, Tuner 1' '#1, S-Video 1' '#2, 
Composite 1' '#3, S-Video 2' '#4, Composite 2'
[v4l2] Available audio inputs: '#0, Tuner 1' '#1, Line In 1' '#2, Line 
In 2'
[v4l2] Available norms: '#0, PAL-BGH' '#1, PAL-DK' '#2, PAL-I' '#3, 
PAL-M' '#4, PAL-N' '#5, PAL-Nc' '#6, SECAM-BGH' '#7, SECAM-DK' '#8, 
SECAM-L' '#9, SECAM-L'' '#10, NTSC-M' '#11, NTSC-J' '#12, NTSC-K'
[v4l2] set norm to NTSC-M
[v4l2] Frequency 127250 already set.
[v4l2] Video input: Tuner 1
[v4l2] Audio input: Tuner 1
[v4l2] Norm: NTSC-M.
STREAM: [pvr] pvr://
STREAM: Description: V4L2 MPEG Input (a.k.a PVR)
STREAM: Author: Benjamin Zores
STREAM: Comment:
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
Checking for YUV4MPEG2
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
ASF_check: not ASF guid!
Checking for NuppelVideo
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
Checking for REAL
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
Checking for SMJPEG
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
Searching demuxer type for filename pvr:// ext: (null)
Checking for Nullsoft Streaming Video
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
Checking for MOV
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
Checking for VIVO
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
Checking for PVA
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
Checking for MPEG-TS...
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
THIS DOESN'T LOOK LIKE AN MPEG-TS FILE!
TRIED UP TO POSITION 0, FOUND ffffff00, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
LMLM4 Stream Format not found
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG packet stats: p100: 0  p101: 0 p1B6: 0 p12x: 0 sli: 0 a: 0 b: 0 c: 
0 idr: 0 sps: 0 pps: 0 PES: 0  MP3: 0, synced: 0
Not MPEG System Stream format... (maybe Transport Stream?)
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG packet stats: p100: 0  p101: 0 p1B6: 0 p12x: 0 sli: 0 a: 0 b: 0 c: 
0 idr: 0 sps: 0 pps: 0 PES: 0  MP3: 0, synced: 3
Not MPEG System Stream format... (maybe Transport Stream?)
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
ds_fill_buffer: EOF reached (stream: video)
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
demux_aac_probe, failed to detect an AAC stream

vo: x11 uninit called but X11 not inited..

Exiting... (End of file)

Now for relevant OS info ...

Gentoo Linux
Linux charlie 2.6.23.1 #1 Fri Nov 16 10:44:30 MST 2007 x86_64 AMD 
Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux

$ ls -l /lib/libc[.-]*
-rwxr-xr-x 1 root root 1293456 Oct 22 17:21 /lib/libc-2.6.1.so
lrwxrwxrwx 1 root root      13 Oct 22 17:22 /lib/libc.so.6 -> libc-2.6.1.so

$ gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: 
/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure 
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include 
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2 
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man 
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info 
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4 
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec 
--enable-nls --without-included-gettext --with-system-zlib 
--disable-checking --disable-werror --enable-secureplt 
--disable-libunwind-exceptions --enable-multilib --disable-libmudflap 
--disable-libssp --disable-libgcj --enable-languages=c,c++ 
--enable-shared --enable-threads=posix --enable-__cxa_atexit 
--enable-clocale=gnu
Thread model: posix
gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)

GNU ld (GNU Binutils) 2.18

GNU assembler (GNU Binutils) 2.18
This assembler was configured for a target of `x86_64-pc-linux-gnu'.

Lemme know what else you need.  The card is a Hauppauge PVR-500.

[ 3444.741787] ivtv:  Start initialization, version 1.0.0
[ 3444.742893] ivtv0: Initializing card #0
[ 3444.742899] ivtv0: Autodetected Hauppauge card (cx23416 based)
[ 3444.743053] ACPI: PCI Interrupt 0000:03:08.0[A] -> Link [LNKD] -> GSI 
18 (level, low) -> IRQ 18
[ 3445.080127] ivtv0: Loaded v4l-cx2341x-enc.fw firmware (376836 bytes)
[ 3445.178931] ivtv0: Encoder revision: 0x02060039
[ 3445.188120] tuner 0-0060: TEA5767 detected.
[ 3445.188124] tuner 0-0060: chip found @ 0xc0 (ivtv i2c driver #0)
[ 3445.188264] tuner 0-0060: type set to 62 (Philips TEA5767HN FM Radio)
[ 3445.188415] tuner 0-0061: chip found @ 0xc2 (ivtv i2c driver #0)
[ 3445.196240] cx25840 0-0044: cx25843-24 found @ 0x88 (ivtv i2c driver #0)
[ 3448.041685] cx25840 0-0044: loaded v4l-cx25840.fw firmware (16382 bytes)
[ 3448.114547] wm8775 0-001b: chip found @ 0x36 (ivtv i2c driver #0)
[ 3448.173697] tveeprom 0-0050: Hauppauge model 23552, rev E587, serial# 
8825922
[ 3448.173704] tveeprom 0-0050: tuner model is Samsung TCPN 2121P30A 
(idx 87, type 70)
[ 3448.173707] tveeprom 0-0050: TV standards NTSC(M) (eeprom 0x08)
[ 3448.173710] tveeprom 0-0050: second tuner model is Philips TEA5768HL 
FM Radio (idx 101, type 62)
[ 3448.173712] tveeprom 0-0050: audio processor is CX25843 (idx 37)
[ 3448.173715] tveeprom 0-0050: decoder processor is CX25843 (idx 30)
[ 3448.173717] tveeprom 0-0050: has radio, has no IR receiver, has no IR 
transmitter
[ 3448.173720] ivtv0: Autodetected WinTV PVR 500 (unit #1)
[ 3448.216217] tuner 0-0061: type set to 70 (Samsung TCPN 2121P30A)
[ 3448.521134] ivtv0: Registered device video0 for encoder MPEG (4 MB)
[ 3448.523570] ivtv0: Registered device video32 for encoder YUV (2 MB)
[ 3448.526493] ivtv0: Registered device vbi0 for encoder VBI (1 MB)
[ 3448.528653] ivtv0: Registered device video24 for encoder PCM audio (1 MB)
[ 3448.531100] ivtv0: Registered device radio0 for encoder radio
[ 3448.554444] ivtv0: Initialized card #0: WinTV PVR 500 (unit #1)
[ 3448.554670] ivtv1: Initializing card #1
[ 3448.554674] ivtv1: Autodetected Hauppauge card (cx23416 based)
[ 3448.554792] ACPI: PCI Interrupt 0000:03:09.0[A] -> Link [LNKA] -> GSI 
17 (level, low) -> IRQ 17
[ 3449.201846] ivtv1: Loaded v4l-cx2341x-enc.fw firmware (376836 bytes)
[ 3449.379124] ivtv1: Encoder revision: 0x02060039
[ 3449.394010] tuner 1-0061: chip found @ 0xc2 (ivtv i2c driver #1)
[ 3449.407980] cx25840 1-0044: cx25843-24 found @ 0x88 (ivtv i2c driver #1)
[ 3453.106814] cx25840 1-0044: loaded v4l-cx25840.fw firmware (16382 bytes)
[ 3453.181644] wm8775 1-001b: chip found @ 0x36 (ivtv i2c driver #1)
[ 3453.242516] tveeprom 1-0050: Hauppauge model 23552, rev E587, serial# 
8825922
[ 3453.242522] tveeprom 1-0050: tuner model is Samsung TCPN 2121P30A 
(idx 87, type 70)
[ 3453.242526] tveeprom 1-0050: TV standards NTSC(M) (eeprom 0x08)
[ 3453.242529] tveeprom 1-0050: second tuner model is Philips TEA5768HL 
FM Radio (idx 101, type 62)
[ 3453.242531] tveeprom 1-0050: audio processor is CX25843 (idx 37)
[ 3453.242534] tveeprom 1-0050: decoder processor is CX25843 (idx 30)
[ 3453.242536] tveeprom 1-0050: has radio, has no IR receiver, has no IR 
transmitter
[ 3453.242539] ivtv1: Correcting tveeprom data: no radio present on 
second unit
[ 3453.242541] ivtv1: Autodetected WinTV PVR 500 (unit #2)
[ 3453.287250] tuner 1-0061: type set to 70 (Samsung TCPN 2121P30A)
[ 3453.588542] ivtv1: Registered device video1 for encoder MPEG (4 MB)
[ 3453.591192] ivtv1: Registered device video33 for encoder YUV (2 MB)
[ 3453.593564] ivtv1: Registered device vbi1 for encoder VBI (1 MB)
[ 3453.595749] ivtv1: Registered device video25 for encoder PCM audio (1 MB)
[ 3453.618847] ivtv1: Initialized card #1: WinTV PVR 500 (unit #2)
[ 3453.619038] ivtv:  End initialization

Steve

1. http://wonkabar.org/archives/190



More information about the MPlayer-users mailing list