Hello Ross,
I was hoping to get an answer on the implementation below so we can try and figure out why we cannot get the data into live555.

Thank you
Austin

Begin forwarded message:

From: "Austin Snow (pftv)" <[email protected]>
Date: March 10, 2009 2:23:21 PM EDT
To: Post-Live555 <[email protected]>
Subject: [Live-devel] Live input MPEG4 Video input
Reply-To: LIVE555 Streaming Media - development & use <[email protected] >

Hello All,
I'm having an issue getting a live MPEG4 video source into Live555, any help would be great.

This is how I defined my live input;
in DeviceSource.hh;
        removed
                //private:
                        //void deliverFrame();  //ags
        added
                public:
                        void deliverFrame(void *data, int len, int dur);

in DeviceSource.cpp;
        changed
                //void DeviceSource::deliverFrame() {
        to
void DeviceSource::deliverFrame(void *data, int len, int dur) { <--passing my data in here
        added
                // Deliver the data here:
                if(fMaxSize < len){
                        fNumTruncatedBytes = len - fMaxSize;
                        len = fMaxSize;         
                        printf("Frame size truncated\n");             
                }
                gettimeofday(&fPresentationTime, NULL);
                fDurationInMicroseconds = dur;
                fFrameSize = len;       
                memcpy(fTo, data, len);
                printf("Frame sent, len=%d\n", len);
                printf("dur=%d\n", dur);
                printf("fPresentationTime.tv_sec=%d\n", 
fPresentationTime.tv_sec);
                printf("fPresentationTime.tv_usec=%d\n", 
fPresentationTime.tv_usec);

The printfs indicate that the data is only accepted approximately every 1 to 1.5 seconds on average.

Is this the proper way to add a live input?

Thanks
Austin
_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel


Austin

_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to