[Live-devel] Fwd: Live input MPEG4 Video input

Austin Snow (pftv) asnow at pathfindertv.net
Thu Mar 12 06:52:56 PDT 2009


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)" <asnow at pathfindertv.net>
> Date: March 10, 2009 2:23:21 PM EDT
> To: Post-Live555 <live-devel at ns.live555.com>
> Subject: [Live-devel] Live input MPEG4 Video input
> Reply-To: LIVE555 Streaming Media - development & use <live-devel at ns.live555.com 
> >
>
> 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
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
>
> Austin
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090312/aef80e8c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090312/aef80e8c/attachment.bin>


More information about the live-devel mailing list