Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: reading two elementary PIDs (Aud and Vid) at once



On Fri, 1 Nov 2002 00:36, Johannes Stezenbach wrote:
> On Thu, Oct 31, 2002 at 02:44:23PM +1100, Mike Doyle wrote:
> > having problems reading two elementary PIDs at once.
>
> ...
>
> > fd = open("/dev/ost/demux",O_RDWR)
> >
> > Set up filter:
> > 	pesFilterParams.pid     = pid;
> > 	pesFilterParams.input   = DMX_IN_FRONTEND;
> > 	pesFilterParams.output  = DMX_OUT_TAP;
> >         pesFilterParams.pesType = DMX_PES_OTHER;
> > 	pesFilterParams.flags   = DMX_IMMEDIATE_START;
> >
> > 	if (ioctl(fd, DMX_SET_PES_FILTER, &pesFilterParams) < 0)
> > 		perror("DMX SET PES FILTER:");
> >
> > Doing this twice (on difference FD's of course).
> >
> > I then have two different processes, in a loop reading the data like.
> > n = read(fd,buffer,sizeof(buffer));
>
> Indeed, you hit a bug which IIRC was once fixed and is now back again.
> Easily reproducable with two instances of DVB/apps/test_pes.
>
> Can't remember what is was, though. Ralph was the one who fixed it.

Thanks Johannes...as always, much appreciated.

Does this mean I should be trying another way of getting two Elementary 
streams (any suggestions)?

If not, is there a fix? Or work around?

thanks again
Mike


--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index