Skip to contentSkip to conversation

Access to MPEG-TS?

DISCUSSION [email protected] 2 participants 2 messages May 24, 2015 – May 25, 2015 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hello,

I'm working on an application that - among other things - should be able to identify the programs in a MPEG transport stream broadcasted via DVB-C. This is what I have figured out so far:

1. Open the DVB frontend.
2. Fill struct dvb_frontend_parameters with transponder frequency etc.
3. Apply struct dvb_frontend_parameters with FE_SET_FRONTEND ioctl call.

After performing these steps, I call the FE_READ_STATUS ioctl and the status is FE_HAS_LOCK.

I should then parse the MPEG transport stream to identify the programs, pids etc. but my problem is that I don't know how to access the transport stream? I have tried to read the file descriptor returned from opening the frontend, but no MPEG data is found there.

Can anyone point me in the right direction?

#1 lore raw
Quoted 13 lines · On Sun, May 24, 2015 at 7:25 PM, <[email protected]> wrote:

Hello,

I'm working on an application that - among other things - should be able to identify the programs in a MPEG transport stream broadcasted via DVB-C. This is what I have figured out so far:

1. Open the DVB frontend.
2. Fill struct dvb_frontend_parameters with transponder frequency etc.
3. Apply struct dvb_frontend_parameters with FE_SET_FRONTEND ioctl call.

After performing these steps, I call the FE_READ_STATUS ioctl and the status is FE_HAS_LOCK.

Quoted 6 lines

I should then parse the MPEG transport stream to identify the programs, pids etc. but my problem is that I don't know how to access the transport stream? I have tried to read the file descriptor returned from opening the frontend, but no MPEG data is found there.

Can anyone point me in the right direction?

Open and configure the demux device, configure it for pid 0x2000 and read from it once your frontend indicates you have signal lock.

Also, for your parsing needs, I suggest you don't re-invent the wheel. Take a look at libdvbpsi.

Signature · 2 lines
Steven Toth - Kernel Labs
http://www.kernellabs.com