<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 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
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;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.E-MailFormatvorlage19
{mso-style-type:personal-reply;
font-family:"Arial",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@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="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-US">if you want to flush all the buffers out of the Encoder so that the file has all the buffers you have sent, you have to send EOS otherwise
the encoder will keep some Reference frames. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-US">If you want to close the file, you can set the pipeline state to ready, assign a new file and then set the pipeline to playing again.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b>Von:</b> gstreamer-devel <gstreamer-devel-bounces@lists.freedesktop.org>
<b>Im Auftrag von </b>surprised<br>
<b>Gesendet:</b> Mittwoch, 23. Oktober 2019 03:29<br>
<b>An:</b> gstreamer-devel@lists.freedesktop.org<br>
<b>Betreff:</b> Re: AW: One problem about gstreamer encoding.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi,Thornton, Keith. You say that I should send EOS down the pipeline. But I'm encoding video with live camera source,not file. If I send EOS,whether it seems the pipeline is stopped or not. After sending the EOS, can I still use the pipe
a few seconds later without shutting down this pipe? I'm a new hand to Gstreamer.If you can provide some simple pseudo codes showing how the send the EOS without shutting down the pipe,I will be very pleased. Thank you all the same.<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.5pt;padding:0cm 0cm 0cm 12.0pt;margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal"><b>Thornton, Keith wrote<o:p></o:p></b></p>
</div>
<div>
<p class="MsoNormal">Hi, in order to get all frames, you have to send an EOS down the pipeline after the last frame and then wait until EOS is posted on the message bus. Gruesse Von: gstreamer-devel <<a href="/user/SendEmail.jtp?type=email&email=gstreamer-devel-bounces%40.freedesktop" target="_top">[hidden
email]</a>> Im Auftrag von surprised Gesendet: Dienstag, 22. Oktober 2019 03:31 An:
<a href="/user/SendEmail.jtp?type=email&email=gstreamer-devel%40.freedesktop" target="_top">
[hidden email]</a> Betreff: One problem about gstreamer encoding. Hi,everyone. I'm trying to encode video to H265 bitstream with a YUV file in Gstreamer,then I send the H265 bitstream through Local Area Network to another host in this LAN and store them as
a h265 file.In order to check that how much frames are there in this file,I decoded this file to YUV file,which can be calculated with the parameters of resolution ratio.I found a phenomenon:The decoded YUV file contains less frames than the YUV file before
encoding(approximately dropped out 3 frames in each test). Why? I konw that in FFMpeg, there is a function called "flush_encoder()" will be invoked after encoding,which is used to output the remaining AVPacket in the encoder. I want to konw if Gstreamer has
some similar operations I didn't use,which caused less frames than I expected. If hasn't, what's the reason actually? ________________________________ Sent from the GStreamer-devel mailing list archive<<a href="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgstreamer-devel.966125.n4.nabble.com%2F&data=02%7C01%7C%7Cb64d2c54054447e2aac208d756cb9cbc%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637073304818382844&sdata=ZPQz%2BT03U1Qxus55ye1%2BIPPWBjnSnxiTR%2BXbgUyhlYg%3D&reserved=0">https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgstreamer-devel.966125.n4.nabble.com%2F&data=02%7C01%7C%7Cb64d2c54054447e2aac208d756cb9cbc%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637073304818382844&sdata=ZPQz%2BT03U1Qxus55ye1%2BIPPWBjnSnxiTR%2BXbgUyhlYg%3D&reserved=0</a>>
at Nabble.com. _______________________________________________ gstreamer-devel mailing list
<a href="/user/SendEmail.jtp?type=email&email=gstreamer-devel%40.freedesktop" target="_top">
[hidden email]</a> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a> <o:p></o:p></p>
</div>
</div>
</blockquote>
<p class="MsoNormal"><o:p> </o:p></p>
<div class="MsoNormal">
<hr size="3" width="300" style="width:180.0pt" align="left">
</div>
<p class="MsoNormal">Sent from the <a href="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgstreamer-devel.966125.n4.nabble.com%2F&data=02%7C01%7C%7Cd598cf7d4d7040aa995108d75794ce18%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637074168930232612&sdata=p7LFA4l0iJPJlZSMBzaDNQKuWboi2CaInIcWoS96kC0%3D&reserved=0">
GStreamer-devel mailing list archive</a> at Nabble.com.<o:p></o:p></p>
</div>
</body>
</html>