Re: Access to MPEG-TS?

2015-05-25 Thread Steven Toth
On Sun, May 24, 2015 at 7:25 PM,  tomsmith7...@openmailbox.org 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.

 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.

-- 
Steven Toth - Kernel Labs
http://www.kernellabs.com
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Access to MPEG-TS?

2015-05-24 Thread tomsmith7899

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?
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html