<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body><div class="ydpcb3756b3yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">
        <div dir="ltr" data-setdir="false"><span><code class="ydpa97dd584notranslate">Sorry I messed up with decoder. vah264enc</code> is in 1.21.1. Therefore, you may not be able to use <span><span><code class="ydpa97dd584notranslate">vah264enc</code></span></span> unless you upgrade your gstreamer. <br></span></div><div dir="ltr" data-setdir="false">If you are not making product, you can upgrade Ubuntu to 23.04. Then the gstreamer version is 1.22.1.<br></div><div dir="ltr" data-setdir="false"><a href="https://www.ubuntuupdates.org/package/core/lunar/universe/base/gstreamer1.0-plugins-bad" rel="nofollow" target="_blank" class="enhancr_card_7122294858">UbuntuUpdates - Package "gstreamer1.0-plugins-bad" (lunar 23.04)</a></div><div><br></div><div id="ydpefc5f92benhancr_card_7122294858" class="ydpefc5f92byahoo-link-enhancr-card ydpefc5f92bymail-preserve-class ydpefc5f92bymail-preserve-style" style="max-width:400px;font-family:YahooSans, Helvetica Neue, Segoe UI, Helvetica, Arial, sans-serif" data-url="https://www.ubuntuupdates.org/package/core/lunar/universe/base/gstreamer1.0-plugins-bad" data-type="YENHANCER" data-size="MEDIUM" contenteditable="false"><a href="https://www.ubuntuupdates.org/package/core/lunar/universe/base/gstreamer1.0-plugins-bad" style="text-decoration-line: none !important; text-decoration-style: solid !important; text-decoration-color: currentcolor !important; color: rgb(0, 0, 0) !important;" class="ydpefc5f92byahoo-enhancr-cardlink" rel="nofollow" target="_blank"><table class="ydpefc5f92bcard-wrapper ydpefc5f92byahoo-ignore-table" style="max-width:400px" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td width="400"><table class="ydpefc5f92bcard ydpefc5f92byahoo-ignore-table" style="max-width:400px;border-width:1px;border-style:solid;border-color:rgb(224, 228, 233);border-radius:2px" width="100%" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td class="ydpefc5f92bcard-primary-image-cell" style="background-color: rgb(0, 0, 0); background-repeat: no-repeat; background-size: cover; position: relative; border-radius: 2px 2px 0px 0px; min-height: 175px;" valign="top" height="175" bgcolor="#000000" background="https://s.yimg.com/lo/api/res/1.2/uMHetmo4komVZZyK2C1YDQ--~A/Zmk9ZmlsbDt3PTQwMDtoPTIwMDthcHBpZD1pZXh0cmFjdA--/https://pbs.twimg.com/media/FuCAlOHaUAAXVZW.png.cf.jpg"><!--[if gte mso 9]><v:rect fill="true" stroke="false" style="width:396px;height:175px;position:absolute;top:0;left:0;"><v:fill type="frame" color="#000000" src="https://s.yimg.com/lo/api/res/1.2/uMHetmo4komVZZyK2C1YDQ--~A/Zmk9ZmlsbDt3PTQwMDtoPTIwMDthcHBpZD1pZXh0cmFjdA--/https://pbs.twimg.com/media/FuCAlOHaUAAXVZW.png.cf.jpg"/></v:rect><![endif]--><table class="ydpefc5f92bcard-overlay-container-table ydpefc5f92byahoo-ignore-table" style="width:100%" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td class="ydpefc5f92bcard-overlay-cell" style="background-color: transparent; border-radius: 2px 2px 0px 0px; min-height: 175px;" valign="top" bgcolor="transparent" background="https://s.yimg.com/cv/ae/nq/storm/assets/enhancrV21/1/enhancr_gradient-400x175.png"><!--[if gte mso 9]><v:rect fill="true" stroke="false" style="width:396px;height:175px;position:absolute;top:-18px;left:0;"><v:fill type="pattern" color="#000000" src="https://s.yimg.com/cv/ae/nq/storm/assets/enhancrV21/1/enhancr_gradient-400x175.png"/><v:textbox inset="0,0,20px,0"><![endif]--><table class="ydpefc5f92byahoo-ignore-table" style="width: 100%; min-height: 175px;" height="175" border="0"><tbody><tr><td class="ydpefc5f92bcard-richInfo2" style="text-align:left;padding:15px 0 0 15px;vertical-align:top"></td><td class="ydpefc5f92bcard-actions" style="text-align:right;padding:15px 15px 0 0;vertical-align:top"><div class="ydpefc5f92bcard-share-container"></div></td></tr></tbody></table><!--[if gte mso 9]></v:textbox></v:rect><![endif]--></td></tr></tbody></table></td></tr><tr><td><table class="ydpefc5f92bcard-info ydpefc5f92byahoo-ignore-table" style="background-color: rgb(255, 255, 255); background-repeat: repeat; background-attachment: scroll; background-image: none; background-size: auto; position: relative; z-index: 2; width: 100%; max-width: 400px; border-radius: 0px 0px 2px 2px; border-top: 1px solid rgb(224, 228, 233);" cellspacing="0" cellpadding="0" border="0" align="center"><tbody><tr><td style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;border-radius:0 0 0 2px"></td><td style="vertical-align:middle;padding:12px 24px 16px 12px;width:99%;font-family:YahooSans, Helvetica Neue, Segoe UI, Helvetica, Arial, sans-serif;border-radius:0 0 2px 0"><h2 class="ydpefc5f92bcard-title" style="font-size: 14px; line-height: 19px; margin: 0px 0px 6px; font-family: YahooSans, Helvetica Neue, Segoe UI, Helvetica, Arial, sans-serif; color: rgb(29, 34, 40); max-width: 314px;">UbuntuUpdates - Package "gstreamer1.0-plugins-bad" (lunar 23.04)</h2><p class="ydpefc5f92bcard-description" style="font-size: 12px; line-height: 16px; margin: 0px; color: rgb(151, 158, 168);"></p></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></a></div></div><div class="ydpcb3756b3yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><br></div><div dir="ltr" data-setdir="false">It is very very messy to build the latest gstreamer on Ubuntu 22.04. I did it. But better to upgrade Ubuntu.<br></div><div><br></div><div dir="ltr" data-setdir="false">Do not mix <span><span>vapostproc with vaapih264enc.</span></span></div><div dir="ltr" data-setdir="false"><span><span><span>vapostproc is for VA-API(new version to replace VAAPI)</span></span></span></div><div dir="ltr" data-setdir="false"><span><span><span><br></span></span></span></div><div dir="ltr" data-setdir="false"><span><span><span>Try <br></span></span></span></div><div dir="ltr" data-setdir="false"><span><span><span>to use <span>vaapipostproc and </span><span><span><span>vaapih264enc</span></span></span><br></span></span></span></div><div dir="ltr" data-setdir="false"><span><span><span>in your case.<br></span></span></span></div><div dir="ltr" data-setdir="false"><span><span><span><br></span></span></span></div><div dir="ltr" data-setdir="false"><span><span><span>   Joe<br></span></span></span></div><div dir="ltr" data-setdir="false"><br></div>
        
        </div><div id="yahoo_quoted_7034483844" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Thursday, June 8, 2023, 03:00:47 p.m. EDT, tapas .. via gstreamer-devel <gstreamer-devel@lists.freedesktop.org> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="yiv7574868445"><div><div dir="ltr"><div>Hi</div><div><br clear="none"></div><div>here is the output :</div><div><br clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;" class="yiv7574868445gmail_quote"><div>iskconsandiego@iskconsandiego-zoom:~$ gst-inspect-1.0 va <br clear="none">Plugin Details:<br clear="none">  Name                     va<br clear="none">  Description              VA-API codecs plugin<br clear="none">  Filename                 /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstva.so<br clear="none">  Version                  1.20.1<br clear="none">  License                  LGPL<br clear="none">  Source module            gst-plugins-bad<br clear="none">  Source release date      2022-03-14<br clear="none">  Binary package           GStreamer Bad Plugins (Ubuntu)<br clear="none">  Origin URL               <a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://launchpad.net/distros/ubuntu/+source/gst-plugins-bad1.0">https://launchpad.net/distros/ubuntu/+source/gst-plugins-bad1.0</a><br clear="none"><br clear="none">  vadeinterlace: VA-API Deinterlacer<br clear="none">  vah264dec: VA-API H.264 Decoder<br clear="none">  vampeg2dec: VA-API Mpeg2 Decoder<br clear="none">  vapostproc: VA-API Video Postprocessor<br clear="none">  vavp8dec: VA-API VP8 Decoder<br clear="none"><br clear="none">  5 features:<br clear="none">  +-- 5 elements<br clear="none"><br clear="none">iskconsandiego@iskconsandiego-zoom:~$ gst-inspect-1.0 vaapi<br clear="none">Plugin Details:<br clear="none">  Name                     vaapi<br clear="none">  Description              VA-API based elements<br clear="none">  Filename                 /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvaapi.so<br clear="none">  Version                  1.20.1<br clear="none">  License                  LGPL<br clear="none">  Source module            gstreamer-vaapi<br clear="none">  Source release date      2022-03-14<br clear="none">  Binary package           gstreamer-vaapi<br clear="none">  Origin URL               <a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues">https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues</a><br clear="none"><br clear="none">  vaapidecodebin: VA-API Decode Bin<br clear="none">  vaapih264dec: VA-API H264 decoder<br clear="none">  vaapih264enc: VA-API H264 encoder<br clear="none">  vaapijpegdec: VA-API JPEG decoder<br clear="none">  vaapimpeg2dec: VA-API MPEG2 decoder<br clear="none">  vaapimpeg2enc: VA-API MPEG-2 encoder<br clear="none">  vaapioverlay: VA-API overlay<br clear="none">  vaapipostproc: VA-API video postprocessing<br clear="none">  vaapisink: VA-API sink<br clear="none">  vaapivc1dec: VA-API VC1 decoder<br clear="none">  vaapivp8dec: VA-API VP8 decoder<br clear="none"><br clear="none">  11 features:<br clear="none">  +-- 11 elements<br clear="none"><br clear="none">iskconsandiego@iskconsandiego-zoom:~$ lsb_release -a<br clear="none">No LSB modules are available.<br clear="none">Distributor ID: Ubuntu<br clear="none">Description:     Ubuntu 22.04.1 LTS<br clear="none">Release:     22.04<br clear="none">Codename: jammy<br clear="none">iskconsandiego@iskconsandiego-zoom:~$ <br clear="none"></div></blockquote><div><br clear="none"></div><div>I see vapostproc but not vah264enc <br clear="none"></div><div><br clear="none"></div><div>But I see both vaapipostproc and vaapih264enc <br clear="none"></div><div><br clear="none"></div><div>I also tried below which uses vapostproc and vaapih264enc . But it didn't solve my gstreamer pipeline stuck issues. <br clear="none"></div><div><br clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;" class="yiv7574868445gmail_quote"><div>gst-launch-1.0 ximagesrc use-damage=0 show-pointer=false ! video/x-raw,framerate=30/1 ! vapostproc ! queue ! vaapih264enc dct8x8=true cabac=true rate-control=cbr bitrate=1000 keyframe-period=30 max-bframes=1 ! queue ! flvmux name=mux ! queue ! progressreport ! queue ! rtmpsink sync=false async=true location="rtmp://xxxxx" pulsesrc do-timestamp=true device="alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" ! queue ! audioconvert ! queue ! voaacenc bitrate=128000 ! queue ! mux. <br clear="none"></div></blockquote><div><br clear="none"></div><div> </div></div><br clear="none"><div id="yiv7574868445yqt81153" class="yiv7574868445yqt9290273361"><div class="yiv7574868445gmail_quote"><div dir="ltr" class="yiv7574868445gmail_attr">On Thu, 8 Jun 2023 at 10:41, cfd new <<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:newcfd@yahoo.com" target="_blank" href="mailto:newcfd@yahoo.com">newcfd@yahoo.com</a>> wrote:<br clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;" class="yiv7574868445gmail_quote"><div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
        <div dir="ltr">I am working as well <span>on Ubuntu 22.04 and know they are available. Can you send me the output of</span></div><div dir="ltr"><span>gst-inspect-1.0 va </span><br clear="none"></div><div><br clear="none"></div>
        
        </div><div id="yiv7574868445m_-259846393671600120yahoo_quoted_6377063448">
            <div style="font-family:Helvetica, Arial, sans-serif;font-size:13px;color:rgb(38,40,42);">
                
                <div>
                    On Thursday, June 8, 2023, 01:30:46 p.m. EDT, tapas .. via gstreamer-devel <<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> wrote:
                </div>
                <div><br clear="none"></div>
                <div><br clear="none"></div>
                <div><div id="yiv7574868445m_-259846393671600120yiv7409727097"><div><div dir="ltr"><div>here is the default gstreamer version on ubuntu 22.04 <br clear="none"></div><div><br clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;"><div>gst-inspect-1.0 --version<br clear="none">gst-inspect-1.0 version 1.20.3<br clear="none">GStreamer 1.20.3<br clear="none"><a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://launchpad.net/distros/ubuntu/+source/gstreamer1.0">https://launchpad.net/distros/ubuntu/+source/gstreamer1.0</a><br clear="none"></div></blockquote><div><br clear="none"></div><div> </div></div><br clear="none"><div id="yiv7574868445m_-259846393671600120yiv7409727097yqt72896"><div><div dir="ltr">On Thu, 8 Jun 2023 at 09:12, tapas .. <<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:tapascst@gmail.com" target="_blank" href="mailto:tapascst@gmail.com">tapascst@gmail.com</a>> wrote:<br clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;"><div dir="ltr"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;"><div dir="ltr">I guess va-api is replacing vaapi. <br clear="none"></div><div dir="ltr"><span>videoconvert ==> vapostproc</span></div><div dir="ltr"><span>vaapih264enc ==><span><span>vah264enc</span></span></span></div><div dir="ltr"><br clear="none"></div><div dir="ltr">try it out and good luck.</div></blockquote><div><br clear="none"></div><div>That doesn't help anything. current gstreamer which comes with ubuntu 22.04 doesn't have  <span>vapostproc/vah264enc</span></div><div><span><br clear="none"></span></div><div><span>But I tried below and it didn't help. I see same issue of getting stuck</span></div><div><span><br clear="none"></span></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;"><div><span>gst-launch-1.0 ximagesrc use-damage=0 show-pointer=false ! video/x-raw,framerate=30/1 ! queue ! <span style="background-color:rgb(0,255,255);"><b>vaapipostproc</b></span> width=1920 height=1080 ! queue ! <b><span style="background-color:rgb(0,255,255);">vaapih264enc</span></b> dct8x8=true cabac=true rate-control=cbr bitrate=1000 keyframe-period=30 max-bframes=1 ! queue ! flvmux name=mux ! queue ! progressreport ! queue ! rtmpsink sync=false async=true location="rtmp://xxxxx" pulsesrc do-timestamp=true device="alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" ! queue ! audioconvert ! queue ! voaacenc bitrate=128000 ! queue ! mux.</span></div></blockquote></div><br clear="none"><div><div dir="ltr">On Thu, 8 Jun 2023 at 08:27, cfd new <<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:newcfd@yahoo.com" target="_blank" href="mailto:newcfd@yahoo.com">newcfd@yahoo.com</a>> wrote:<br clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;"><div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
        <div><br clear="none"></div><div dir="ltr">I guess va-api is replacing vaapi. <br clear="none"></div><div dir="ltr"><span>videoconvert ==> vapostproc</span></div><div dir="ltr"><span>vaapih264enc ==><span><span>vah264enc</span></span></span></div><div dir="ltr"><br clear="none"></div><div dir="ltr">try it out and good luck.</div><div dir="ltr"><br clear="none"></div><div dir="ltr">   Joe<br clear="none"></div>
        
        </div><div id="yiv7574868445m_-259846393671600120yiv7409727097m_-7223839897761460450m_7009283004430692668yahoo_quoted_6475127072">
            <div style="font-family:Helvetica, Arial, sans-serif;font-size:13px;color:rgb(38,40,42);">
                
                <div>
                    On Thursday, June 8, 2023, 10:46:57 a.m. EDT, tapas .. via gstreamer-devel <<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> wrote:
                </div>
                <div><br clear="none"></div>
                <div><br clear="none"></div>
                <div><div id="yiv7574868445m_-259846393671600120yiv7409727097m_-7223839897761460450m_7009283004430692668yiv4369495342"><div dir="ltr">I can broadcast my desktop to a rtmp server successfully using <br clear="none"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;">```<br clear="none">gst-launch-1.0 ximagesrc use-damage=0 show-pointer=false ! video/x-raw,framerate=30/1 ! videoconvert ! queue ! x264enc ! queue ! flvmux name=mux ! queue ! progressreport ! queue ! rtmpsink sync=false async=true location="rtmp://xxxxxx" pulsesrc do-timestamp=true device="alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" ! queue ! audioconvert ! queue ! voaacenc bitrate=128000 ! queue ! mux. <br clear="none">```<br clear="none"></blockquote><br clear="none"><br clear="none">But If I try to do same using hw acceleration vaapi then it does not work !! <br clear="none"><br clear="none"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;">```<br clear="none">gst-launch-1.0 ximagesrc use-damage=0 show-pointer=false ! video/x-raw,framerate=30/1 ! videoconvert ! queue ! vaapih264enc dct8x8=true cabac=true rate-control=cbr bitrate=1000 keyframe-period=30 max-bframes=1 ! queue ! flvmux name=mux ! queue ! progressreport ! queue ! rtmpsink sync=false async=true location="rtmp://xxxx" pulsesrc do-timestamp=true device="alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" ! queue ! audioconvert ! queue ! voaacenc bitrate=128000 ! queue ! mux.<br clear="none">```<br clear="none"></blockquote><br clear="none">It is just stuck at below if i use hw acceleration: <br clear="none"><br clear="none"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;">> letting pipeline to PAUSED ... Pipeline is live and does not need<br clear="none">> PREROLL ... Got context from element 'vaapiencodeh264-0':<br clear="none">> gst.vaapi.Display=context,<br clear="none">> gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayGLX\)\<br clear="none">> vaapidisplayglx0"; Pipeline is PREROLLED ... Setting pipeline to<br clear="none">> PLAYING ... Redistribute latency... New clock: GstPulseSrcClock<br clear="none"></blockquote><br clear="none"><br clear="none"></div>
</div></div>
            </div>
        </div></div></blockquote></div>
</blockquote></div></div>
</div></div></div>
            </div>
        </div></div></blockquote></div></div>
</div></div></div>
            </div>
        </div></body></html>