[Live-devel] Audio timestamping issue

ssingh at neurosoft.in ssingh at neurosoft.in
Mon Nov 4 18:37:22 PST 2013


Hi,

I implemented a device source with Ross's help and made it to work. Now 
I am getting nice video but my audio is choppy and is not good. So my 
question is what is the right way of timestamping audio and video. I 
read that if your source is live than no need to set 
fFrameDurationInMicroSeconds and you can just give getTimeOfDay() as 
fPresentationTime.

In my case I am using FFMpeg to encode a live stream into MPEG4 and AC3 
and then streaming it using live555. Should I be sending the frame with 
gettimeofday() as presentation time. My understanding is that we need to 
calculate delta between frames and set the timestamping as it is 
possible that encoder can give 2 consecutive frames in short duration 
and may be take longer for 3rd packet.

With just gettimeofday() set my audio is choppy on VLC and I can see VLC 
dropping packets because of wrong presentation time.

-C


More information about the live-devel mailing list