[vlc-devel] dynamically syncing live video and audio

Feurstein, Michael Michael.Feurstein at wu.ac.at
Tue Jul 12 10:36:27 CEST 2011


thanks for the replies and this hint. didn't know there was an ffprobe
looks promising, i now can grep the first pts of video and audio packets...

ffprobe -show_packets -sexagesimal udp://@224.0.0.2:1236 | less

now i need to find a way to calculate the delay.

When looking at these first packets there doesn't seem to be a delay even though I have a visual delay of 4 secs
[video]
Pts=5467980
Pts.time=0:01:00.755333

[audio]
Pts=5463360
Pts.time=0:01:00.704000

This isn't really vlc-dev related anymore so I'm not sure if anyone of you can point me in the right direction.
I'll figure sth out. One issue also releveant could be the buffer used to receive packets.
Or maybe those numbers are already useless cause they seem to look in sync.

Anyways

Thx
-Michael

On Jul 5, 2011, at 5:57 PM, Roger Pack wrote:


Is there a way to read out the first presentation time stamps (pts) for
video and audio in order to resync them? I've been trying to analyze the
verbose (-vvv) output for VLC but couldn't pin point the exact start of the
video. My idea would be to try to calculate the out of syncness based on the
pts or the actual start of each stream.

ffprobe -show-packets | head ?

-roger-
_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
http://mailman.videolan.org/listinfo/vlc-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110712/4338a801/attachment.html>


More information about the vlc-devel mailing list