[Live-devel] DeviceSource using elementary stream framer with discrete frames

Shaheed Abdol Shaheed at scansoft.co.za
Wed Apr 18 06:04:40 PDT 2012


Good afternoon Ross,
 
I am having a bit of trouble supplying live data to live555. I have
encapsulated my live source using the DeviceSource code as a base. I
know you can't help with modified code, and that's fine. I just have a
simple theoretical question: When using the delayed EventTrigger
functionality of DeviceSource
(TaskScheduler->signalDataWaiting(eventTriggerId, ...) I seem to be
unable to send a complete frame. I am using an MPEG4ESStreamFramer which
allows me to supply frame chunks when my live source is updated and data
becomes available, however live555 fills an internal buffer with as many
chunks as it can before sending the chunks off in a single sendto call.
All of the behaviour described so far is great, but my deliverFrame
function is not called for the last chunk of my frame.
 
I have tried triggering the TaskScheduler event from within
deliverFrame, but that results in undefined behaviour (access
violation). Could there be another method of making sure that the last
frame chunk is not discarded? I understand that there is the option to
use a MPEG4DiscreteStreamFramer which allows for passing entire frame
chunks at a time, but that approach fails miserably because of a socket
send buffer limit.
 
Is there any way I can send off parts of the complete frame I have using
a stream framer, while still being signalled from an external class that
data is available? In other words - using an elementary stream framer
with discrete frames.
 
Thank you
Regards
___________________________________

Shaheed Abdol

 

Web: www.scansoft.co.za <http://www.scansoft.co.za/> 
Tel:  +27 21 913 8664
Cell: +27 79 835 8771
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120418/e6020d93/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 32497 bytes
Desc: SST Email.png
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120418/e6020d93/attachment-0001.png>


More information about the live-devel mailing list