<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=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-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.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Thank you kindly for the response Nicolas, I appreciate you looking at this.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">It’s interesting that the videotestsrc works fine with the vaapiencoder /vaapidecoder, yet all other videos we see issues. Following your suggestion, if we remove the vaapi components for
<b>h264parse, avdec_h264, and xvimagesink</b>, things works fine, suggesting the issue is related to one of these components.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:"Arial","sans-serif";
color:#222222;background:white">gst-launch-1.0 -v filesrc location=/home/dev/big_buck_bunny_1080p_h264.mov ! qtdemux ! h264parse ! rtph264pay ! udpsink host=127.0.0.1 port=5000</span><span style="font-size:
9.5pt;font-family:"Arial","sans-serif";color:#222222"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:9.5pt;
font-family:"Arial","sans-serif";color:#222222"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:9.5pt;
font-family:"Arial","sans-serif";color:#222222">gst-launch-1.0 udpsrc caps = "application/x-rtp, media=video, clock-rate=90000, encoding-name=H264, sprop-parameter-sets=\"J01AKakYDwBE/LgDUBAQG2wrXvfAQA\\\=\\\=\\\,KN4JyA\\\=\\\=\",
payload=96, ssrc=1798546747, timestamp-offset=3287499078, seqnum-offset=25830" port=5000 ! rtpjitterbuffer! rtph264depay ! h264parse ! avdec_h264 ! xvimagesink<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">To answer your question, I was using all gstreamer components straight from the git repository (1.5.0.1), with gstreamer-vaapi 0.5.11.pre1.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">We see the same issue occur using gstreamer 1.4.5 and gstreamer-vaapi 0.5.9.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I’ll file a bug for the gstreamer-vaapi<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Randy<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:10.0pt;
font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;
font-family:"Tahoma","sans-serif""> gstreamer-devel [mailto:gstreamer-devel-bounces@lists.freedesktop.org]
<b>On Behalf Of </b>Nicolas Dufresne<br>
<b>Sent:</b> Tuesday, May 19, 2015 8:07 PM<br>
<b>To:</b> Discussion of the development of and with GStreamer<br>
<b>Subject:</b> Re: gstreamer missing a lot of frames?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;
font-family:"Times New Roman","serif"">Le Tuesday 19 May 2015 à 21:29 +0000, Spruyt, Randy a écrit :<o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-left:.5in;background:white"><b><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222">Video from:
<a href="http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_h264.mov">
http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_h264.mov</a><o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-left:.5in;background:white"><b><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222"><o:p> </o:p></span></b></p>
<p class="MsoNormal" style="margin-left:.5in;background:white"><b><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222">Using gstreamer/plugins from the latest git clone, this seems to work fine:<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-left:.5in;background:white"><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;background:white"><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222">gst-launch-1.0 -v videotestsrc ! vaapiencode_h264 ! vaapiparse_h264 ! rtph264pay ! udpsink host=127.0.0.1 port=6000</span><o:p></o:p></p>
</blockquote>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;
font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;
font-family:"Times New Roman","serif"">Have you tried with a livesrc (videotestsrc is-live=1) ? Have you check the latency is distributed properly with VAAPI element (e.g. by comparing
with SW encoder like x264enc tune=zerolatency) ?<o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-left:.5in;background:white"><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;background:white"><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222">gst-launch-1.0 udpsrc caps = "application/x-rtp, media=video, clock-rate=90000, encoding-name=H264, packetization-mode=1,
profile-level-id=42c00d, sprop-parameter-sets=\"Z0LADatAoPn/gACAAIgAAAMACAAAAwHkIA\\\=\\\=\\\,aM48gA\\\=\\\=\", payload=96, ssrc=2360089092, timestamp-offset=2801204503, seqnum-offset=3735" port=6000 ! rtpjitterbuffer! rtph264depay ! vaapiparse_h264 ! vaapidecode
! vaapisink<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;background:white"><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;background:white"><b><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222">But any video I try to stream has very high amounts of frame/dropping stuttering, with or without sync on the receiver.
Incoming/Outgoing data rates from nload are equal. </span></b><o:p></o:p></p>
</blockquote>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;
font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;
font-family:"Times New Roman","serif"">Have you compared against avdec_h264 ? Could it be a bug in the VAAPI decoder ?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;
font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-left:.5in;background:white"><b><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222"><o:p> </o:p></span></b></p>
<p class="MsoNormal" style="margin-left:.5in;background:white"><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;background:white"><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222">gst-launch-1.0 filesrc location=/home/dev/big_buck_bunny_1080p_h264.mov ! qtdemux ! vaapiparse_h264 ! rtph264pay ! udpsink
host=127.0.0.1 port=5000<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;background:white"><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:9.5pt;
font-family:"Arial","sans-serif";color:#222222;background:white">gst-launch-1.0 udpsrc caps = "application/x-rtp, media\=video, clock-rate=90000, encoding-name=H264, packetization-mode=1,
profile-level-id=4d4029, sprop-parameter-sets=\"J01AKakYDwBE/LgDUBAQG2wrXvfAQA\\\=\\\=\\\,KN4JyA\\\=\\\=\", payload=96, ssrc=765248706, timestamp-offset=4096462552, seqnum-offset=1276" port=5000 ! rtpjitterbuffer! rtph264depay ! vaapiparse_h264 ! vaapidecode
! vaapisink<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:9.5pt;
font-family:"Arial","sans-serif";color:#222222;background:white"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:9.5pt;
font-family:"Arial","sans-serif";color:#222222">Local playback looks fine, but streaming looks poor regardless of trying several different videos attempted. Does this play smooth
for others?</span></b><o:p></o:p></p>
</blockquote>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;
font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;
font-family:"Times New Roman","serif"">Works fine here without VAAPI element, hence me suspecting a bug in live support for these elements. What GStreamer version are you running
?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;
font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;
font-family:"Times New Roman","serif"">Nicolas<o:p></o:p></span></p>
</div>
</div>
</body>
</html>