Re: [Live-devel] MPEG4 streaming using ffmpeg as encoder

2013-10-21 Thread ssingh
Another thing I noticed is that the VLC shows lower bitrate. When I use tets programs it shows > 1000 and with my program its showing around 100-200, which can be a source of problem. Which factor determimes bitrate in live555. In one of your post you said its entirely 'fPresentationTime'. I am

Re: [Live-devel] MPEG4 streaming using ffmpeg as encoder

2013-10-21 Thread ssingh
Thank you Ross for all the help. I finally managed to get it working and now i have both audio and video being streamed. I dont know but somehow the refresh rate (as seen on vlc) is not good. My video frames comes incomplete and it takes time for vlc to paint the whole frame and audio stops aft

Re: [Live-devel] MPEG4 streaming using ffmpeg as encoder

2013-10-18 Thread Ross Finlayson
> I tried the unicast server based on onDemand sample but my function > "getAuxSDPLine()" never returns. When i debugged i found that function > "checkForAuxSDPLine1()" calls the function "fDummyRTPSink->auxSDPLine()" > which is the function implemented in MPEG4RTPSink which in turn tried to get

Re: [Live-devel] MPEG4 streaming using ffmpeg as encoder

2013-10-18 Thread ssingh
I tried the unicast server based on onDemand sample but my function "getAuxSDPLine()" never returns. When i debugged i found that function "checkForAuxSDPLine1()" calls the function "fDummyRTPSink->auxSDPLine()" which is the function implemented in MPEG4RTPSink which in turn tried to get the po

Re: [Live-devel] MPEG4 streaming using ffmpeg as encoder

2013-10-18 Thread Ross Finlayson
> Thanks for the input and i rellay appreciate your help. If i subclass > ServerMediaSubsession than I need to implement other functions too. Is there > a another class which will do most for me. I noticed that > OnDemandMediaSubsession is being used for some subsession implementation but > is

Re: [Live-devel] MPEG4 streaming using ffmpeg as encoder

2013-10-18 Thread ssingh
Thanks for the input and i rellay appreciate your help. If i subclass ServerMediaSubsession than I need to implement other functions too. Is there a another class which will do most for me. I noticed that OnDemandMediaSubsession is being used for some subsession implementation but is it only fo

Re: [Live-devel] MPEG4 streaming using ffmpeg as encoder

2013-10-18 Thread Ross Finlayson
> I tried sending this extra data as first packet and also tried sending it > with each packet but no use. I debuggedit and found that when i send this > packet my MPEG4discreteFrame found all the information it needed (debugged > function analyzeVOLHeader()) but still my tetsRTSPClient does not

Re: [Live-devel] MPEG4 streaming using ffmpeg as encoder

2013-10-18 Thread ssingh
I tried sending this extra data as first packet and also tried sending it with each packet but no use. I debuggedit and found that when i send this packet my MPEG4discreteFrame found all the information it needed (debugged function analyzeVOLHeader()) but still my tetsRTSPClient does not show a

Re: [Live-devel] MPEG4 streaming using ffmpeg as encoder

2013-10-18 Thread Ross Finlayson
> Thank you for the clarification. I will try to send this extra data as first > packet. I have another confusion. if i send this packet as first packet when > there was no client attached to it and later on client attached to it than > how will that client get this packet As long as you delive

Re: [Live-devel] MPEG4 streaming using ffmpeg as encoder

2013-10-18 Thread ssingh
Thank you for the clarification. I will try to send this extra data as first packet. I have another confusion. if i send this packet as first packet when there was no client attached to it and later on client attached to it than how will that client get this packet as it will be lost. Right now

Re: [Live-devel] MPEG4 streaming using ffmpeg as encoder

2013-10-18 Thread Ross Finlayson
Your "deliverFrame()" function looks OK - provided that it gets called whenever a new MPEG-4 frame is available. Note that each call to "MyStreamingDeviceSource::doGetNextFrame()" must be followed (eventually) by a call to "FramedSource::afterGetting(this)". Therefore, if you return from "del

[Live-devel] MPEG4 streaming using ffmpeg as encoder

2013-10-18 Thread ssingh
Hi, I spend almost last 3 days banging my head with RFCs and other documents. Here is what I want to achieve. I have raw BGRA frames and I want to stream them using live555. This is what I am doing I created a subclass of FramedSource which is responsible to encode the raw BGRA frame into MP