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.<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="quote dark-border-color"><div class="quote light-border-color">
<div class="quote-author" style="font-weight: bold;">Thornton, Keith wrote</div>
<div class="quote-message">
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" rel="nofollow" link="external">[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" rel="nofollow" link="external">[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<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> at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
<a href="/user/SendEmail.jtp?type=email&email=gstreamer-devel%40.freedesktop" target="_top" rel="nofollow" link="external">[hidden email]</a>
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
</div>
</div></blockquote>
<br/><hr align="left" width="300" />
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>