[MPlayer-users] Hauppauge WinTV PVR 2 (USB) MPEG2

roger roger at eskimo.com
Tue Jan 11 22:04:51 CET 2005


Thanks for the tip/refresher.

I noticed you were only piping to a file, and I already know "cat
/dev/v4l/video0 > test.mpg" and then "mplayer test.mpg" will work.

I believe what you meant was:
$ mkfifo test.mpg
$ cat /dev/v4l/video0 > test.mpg | mplayer test.mpg

This works!

I did a brief and found using stdin to be difficult?
(ie. $ cat /dev/v4l/video0 | mplayer)

Well, atleast now I'm using a player that is able to utilize video
acceleration(?)

I'll post my notes on my web page and should greatly curb this same
question from being asked again on this list. ;-)


On Tue, 2005-01-11 at 11:45, eyagerlist at chartermi.net wrote:
> 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
> 
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-users
-- 

Roger
http://www.eskimo.com/~roger/index.html




More information about the MPlayer-users mailing list