[pvrusb2] MPEG1 stream type

Frédéric Jouault f.jouault at gmail.com
Sun May 20 12:24:09 CDT 2007


Hello,

> > Has anybody been able to get an MPEG1 stream from a pvrusb2 device under Linux?
> >
> > Under Windows, with VLC, I was able to get such a stream and send it
> > to a MPEG1 player, which does not support MPEG2.
> >
> > However, when I play with the settings in
> > /sys/class/pvrusb2/sn-xxxxxxx/ (especially ctl_stream_type), although
> > I manage to get something that looks like MPEG1, the video is
> > distorted.
> >
> > Before doing any further investigation (I must admit I do not even
> > have the latest version of the driver installed), I would like to know
> > if this is supposed to work or not ;-).
> >
>
> That control (like a lot of them) directly map down to controls exported
> by the mpeg encoder chip.  The pvrusb2 driver merely passes down the
> information.  I've played around with various things using those
> controls (mainly with filtering), but I haven't tried that particular
> one.

Ok. Thank you for these precisions.

There may be some coupling between the controls, and I may need to
change something else to have it working properly.

Currently, with the MPEG1 settings, the picture is distorted
(vertically compressed) and the right part is missing. MPEG1 may
require a different configuration of x, y, width, and height (not sure
if that makes sense).


However, I am still interested to know if anyone has tried, and what
was the outcome, before investigating further. For instance, the
problem may come from the standard (i.e., PAL vs. NTSC), and if
someone reports that it works with NTSC (I tried with PAL), we may be
able to better understand the issue.

Trying is merely a matter of doing:
$ echo -n "MPEG-1 System Stream" >
/sys/class/pvrusb2/sn-xxxxxxx/ctl_stream_type/cur_val
$ mplayer /dev/video0   (or whatever you normally do)

and see if the video looks good or not.


Thanks,

Frédéric


More information about the pvrusb2 mailing list