Mailing List archive

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

[linux-dvb] Re: receiving from memory instead of satellite.



On Fri, 2003-05-09 at 12:08, Antonio Mosquera Quindimil wrote:
> Now, I have a complete transport stream(ts-packets) in
> memory(in a file), and I would like to send them to
> the card instead of receiving from the satellite. I
> think I have to use the DVR but I'm not sure about how
> to use it. Does anyone have an example of reproducing
> the ts-packets and receiving them with the card?.

http://cvs.berlios.de/cgi-bin/viewcvs.cgi/tuxbox/apps/dvb/tools/dvb_test/test_clip.c?rev=1.2

All TS packets will go through dvbdmx_swfilter_packet(). You can set
filters as in this example file to route pids to the audio or video
decoder. Section filters and other PES filters (depending on the
hardware and drivers) are possible, too. You just need to write()
continously to the dvr device. Buffer size should probably be a multiple
of 188 (I have not updated this tool yet - the buffer size in this
example equals the queue size - 1 of the used hw demux), and you should
start writing at the beginning of a TS packet. ;)

Regards,
Andreas



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



Home | Main Index | Thread Index