Mailing List archive

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

[linux-dvb] Re: Reception of raw TS or multiple PIDS



Miernik writes:
 > [1  <text/plain; us-ascii (quoted-printable)>]
 > On Fri, Feb 07, 2003 at 01:04:57PM +0100, Marcus Metzler wrote:
 > > There is a program called dvbaudio which is part of dvb-mpegtools (
 > > http://www.metzlerbros.org/dvb/index.html). You can either use it to
 > > get the audio elementary stream and pipe it into mpg123 or similar
 > > programs. 
 > 
 > The docs I could find in the DVB drivers distribution and 
 > dvb-mpegtools don't give much information about how to do this. In 
 > fact this whole project (linux-dvb) does not have any good docs or 
 > HOWTOs. Files included in the distribution or CVS do not give enough 
 > information for somebody who starts using it, and does not want to 
 > guess some things or spend next couple of days reading the source. 
 > There is no place where somebody who wants to RTFM can do it. There 
 > are some www sites around, but all of them either have specific 
 > information on some small subject, or out of date (0.8.x drivers for 
 > example). 
 > 

There is documentation for the API in the CVS. Since only the tuning
and diseqc API has had major changes, most of the description is still
valid. There is also sample code in it.
I think Holger wrote where you can find the changes that need to be
made for tuning a couple of mails ago. For everything else use the
source Luke. 
In order to get anything from the dvr device you need to set demux
filters like in this example from the very short file dvbaudio.c in
dvb-mpegtools:

void set_pes_filt(int fd,uint16_t pes_pid)
{
        struct dmx_pes_filter_params pesFilterParams;

        pesFilterParams.pid     = pes_pid;
        pesFilterParams.input   = DMX_IN_FRONTEND;
        pesFilterParams.output  = DMX_OUT_TS_TAP;
        pesFilterParams.pes_type = DMX_PES_OTHER;
        pesFilterParams.flags   = DMX_IMMEDIATE_START;

        if (ioctl(fd, DMX_SET_PES_FILTER, &pesFilterParams) < 0)
                perror("DMX SET PES FILTER:");
}

If you set pes_pid to 8192 you will get the unfiltered TS in a budget
card.

Marcus

-- 
/--------------------------------------------------------------------\
| Dr. Marcus O.C. Metzler        |                                   |
|--------------------------------|-----------------------------------|
| mocm@metzlerbros.de            | http://www.metzlerbros.de/        |
\--------------------------------------------------------------------/



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



Home | Main Index | Thread Index