[MPlayer-users] Hauppauge WinTV PVR 2 (USB) MPEG2
eyagerlist at chartermi.net
eyagerlist at chartermi.net
Tue Jan 11 17:45:58 CET 2005
On Mon, 10 Jan 2005, Roger wrote:
> Hauppauge WinTV PVR 2 (USB) MPEG2
> 29032 REV D18 NTSC/NTSC-J
>
> Rather then using a cvs version of xawtv to play the live stream from
> /dev/v4l/video0, I'm trying to use the reknown mplayer to play the stream.
>
>
> When I cat /dev/v4l/video0 > test.mpg, it successfully plays with mplayer.
>
> TRIED UP TO POSITION 70315, FOUND 47, packet_size= 0, SEEMS A TS? 0
> VIDEO: MPEG2 720x480 (aspect 2) 29.970 fps 6000.0 kbps (750.0 kbyte/s)
> MPEG 1.0, Layer II, 48000 Hz 224 kbit Stereo, BPF: 672
> Channels: 2, copyright: No, original: No, CRC: Yes, emphasis: 0
> AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 28000->192000 (224.0 kbit)
The WinTV PVR USB 2 outputs an mpeg transport stream. As you can see.
> Cache fill: 0.00% (0 bytes) TV 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: Hauppauge WinTV pvr-usb2
> Tuner cap: STEREO LANG1 LANG2
> Tuner rxs: MONO
> Opening video decoder: [raw] RAW Uncompressed Video
> Opening video decoder: [hmblck] Hauppauge Macroblock/NV12/NV21 Decoder
> Selected video codec: [rawnv21] vfm:hmblck (RAW NV21)
It appears that mplayer is expecting the output of the video4linux
driver to be raw uncompressed video rather than an mpeg stream. Unlike
the PCI Hauppauge cards, I don't think the usb version can do raw
video.
An alternative would be to try to use named pipes.
mkfifo test.mpg
cat /dev/v4l/video0 > test.mpg &
mplayer test.mpg
Hopefully that will work. You won't be able to change channels via
mplayer, but maybe you can with an external program.
--
Eric
More information about the MPlayer-users
mailing list