<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Times New Roman","serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple style='word-wrap: break-word;-webkit-nbsp-mode: space;-webkit-line-break: after-white-space'><div class=WordSection1><p class=MsoNormal>thanks for the replies and this hint. didn't know there was an ffprobe<o:p></o:p></p><div><p class=MsoNormal>looks promising, i now can grep the first pts of video and audio packets...<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>ffprobe –show_packets –sexagesimal udp://@224.0.0.2:1236 | less<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>now i need to find a way to calculate the delay. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>When looking at these first packets there doesn’t seem to be a delay even though I have a visual delay of 4 secs<o:p></o:p></p><p class=MsoNormal>[video]<o:p></o:p></p><p class=MsoNormal>Pts=5467980<o:p></o:p></p><p class=MsoNormal>Pts.time=0:01:00.755333<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>[audio]<o:p></o:p></p><p class=MsoNormal>Pts=5463360<o:p></o:p></p><p class=MsoNormal>Pts.time=0:01:00.704000<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This isn’t really vlc-dev related anymore so I’m not sure if anyone of you can point me in the right direction.<o:p></o:p></p><p class=MsoNormal>I’ll figure sth out. One issue also releveant could be the buffer used to receive packets.<o:p></o:p></p><p class=MsoNormal>Or maybe those numbers are already useless cause they seem to look in sync.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Anyways<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thx<o:p></o:p></p><p class=MsoNormal>-Michael<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Jul 5, 2011, at 5:57 PM, Roger Pack wrote:<o:p></o:p></p></div><p class=MsoNormal><br><br><o:p></o:p></p><div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>Is there a way to read out the first presentation time stamps (pts) for<o:p></o:p></p></blockquote><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>video and audio in order to resync them? I’ve been trying to analyze the<o:p></o:p></p></blockquote><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>verbose (-vvv) output for VLC but couldn’t pin point the exact start of the<o:p></o:p></p></blockquote><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>video. My idea would be to try to calculate the out of syncness based on the<o:p></o:p></p></blockquote><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>pts or the actual start of each stream.<o:p></o:p></p></blockquote><p class=MsoNormal><br>ffprobe -show-packets | head ?<br><br>-roger-<br>_______________________________________________<br>vlc-devel mailing list<br>To unsubscribe or modify your subscription options:<br>http://mailman.videolan.org/listinfo/vlc-devel<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p></div></body></html>