Re: unable to record desktop using latest gstreamer in ubuntu 22.04

"tapas .. via gstreamer-devel" <[email protected]>
Newsgroups gmane.comp.video.gstreamer.devel
Message-ID <CAFqqw9uwqK8V6t0FUm8GV1ASCnSizzur7r5bLcpQVg6gk3yyTQ@mail.gmail.com>
here is the default gstreamer version on ubuntu 22.04

gst-inspect-1.0 --version
> gst-inspect-1.0 version 1.20.3
> GStreamer 1.20.3
> https://launchpad.net/distros/ubuntu/+source/gstreamer1.0
>



On Thu, 8 Jun 2023 at 09:12, tapas .. <[email protected]> wrote:

> I guess va-api is replacing vaapi.
>> videoconvert ==> vapostproc
>> vaapih264enc ==>vah264enc
>>
>> try it out and good luck.
>>
>
> That doesn't help anything. current gstreamer which comes with ubuntu
> 22.04 doesn't have  vapostproc/vah264enc
>
> But I tried below and it didn't help. I see same issue of getting stuck
>
> gst-launch-1.0 ximagesrc use-damage=0 show-pointer=false !
>> video/x-raw,framerate=30/1 ! queue ! *vaapipostproc* width=1920
>> height=1080 ! 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.
>>
>
> On Thu, 8 Jun 2023 at 08:27, cfd new <[email protected]> wrote:
>
>>
>> I guess va-api is replacing vaapi.
>> videoconvert ==> vapostproc
>> vaapih264enc ==>vah264enc
>>
>> try it out and good luck.
>>
>>    Joe
>> On Thursday, June 8, 2023, 10:46:57 a.m. EDT, tapas .. via
>> gstreamer-devel <[email protected]> wrote:
>>
>>
>> I can broadcast my desktop to a rtmp server successfully using
>>
>> ```
>> 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.
>> ```
>>
>>
>>
>> But If I try to do same using hw acceleration vaapi then it does not work
>> !!
>>
>> ```
>> 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.
>> ```
>>
>>
>> It is just stuck at below if i use hw acceleration:
>>
>> > letting pipeline to PAUSED ... Pipeline is live and does not need
>> > PREROLL ... Got context from element 'vaapiencodeh264-0':
>> > gst.vaapi.Display=context,
>> > gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayGLX\)\
>> > vaapidisplayglx0"; Pipeline is PREROLLED ... Setting pipeline to
>> > PLAYING ... Redistribute latency... New clock: GstPulseSrcClock
>>
>>
>>
>>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.