vaapi, tee and pango overlay

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

vaapi, tee and pango overlay

Wolfgang Grandegger
Hello,

still trying to understand how things could be done efficiently with
GStreamer. Next I would like to receive and display a JPEG encoded
RTP-Stream and write it in H.264 format to a file at the same time. Here
is the pipeline I use:

# gst-launch-1.0 udpsrc port=50004 \
  ! application/x-rtp,encoding-name=JPEG,payload=26 \
  ! queue ! rtpjpegdepay ! vaapijpegdec ! timeoverlay \
  ! tee name=t \
  t. ! queue ! vaapipostproc ! kmssink \
  t. ! queue ! vaapih264enc ! filesink location=/tmp/test.h264

This does not work! The screen goes black and nothing is recorded to the
file. But it work without "timeoverlay" and also with "jpegdec" instead
of "vaapijpegdec". Both streams also work without tee: Is this a known
issue with VAAPI... or have I missed something!

Thanks,

Wolfgang.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: vaapi, tee and pango overlay

Nicolas Dufresne-5
Le jeudi 14 juin 2018 à 19:35 +0200, Wolfgang Grandegger a écrit :

> still trying to understand how things could be done efficiently with
> GStreamer. Next I would like to receive and display a JPEG encoded
> RTP-Stream and write it in H.264 format to a file at the same time. Here
> is the pipeline I use:
>
> # gst-launch-1.0 udpsrc port=50004 \
>   ! application/x-rtp,encoding-name=JPEG,payload=26 \
>   ! queue ! rtpjpegdepay ! vaapijpegdec ! timeoverlay \
>   ! tee name=t \
>   t. ! queue ! vaapipostproc ! kmssink \
>   t. ! queue ! vaapih264enc ! filesink location=/tmp/test.h264
>
> This does not work! The screen goes black and nothing is recorded to the
> file. But it work without "timeoverlay" and also with "jpegdec" instead
> of "vaapijpegdec". Both streams also work without tee: Is this a known
> issue with VAAPI... or have I missed something!
Have you thought of adding vaapipostproc right after the decoder ?

Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (201 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: vaapi, tee and pango overlay

Wolfgang Grandegger
Am 14.06.2018 um 20:53 schrieb Nicolas Dufresne:

> Le jeudi 14 juin 2018 à 19:35 +0200, Wolfgang Grandegger a écrit :
>> still trying to understand how things could be done efficiently with
>> GStreamer. Next I would like to receive and display a JPEG encoded
>> RTP-Stream and write it in H.264 format to a file at the same time. Here
>> is the pipeline I use:
>>
>> # gst-launch-1.0 udpsrc port=50004 \
>>   ! application/x-rtp,encoding-name=JPEG,payload=26 \
>>   ! queue ! rtpjpegdepay ! vaapijpegdec ! timeoverlay \
>>   ! tee name=t \
>>   t. ! queue ! vaapipostproc ! kmssink \
>>   t. ! queue ! vaapih264enc ! filesink location=/tmp/test.h264
>>
>> This does not work! The screen goes black and nothing is recorded to the
>> file. But it work without "timeoverlay" and also with "jpegdec" instead
>> of "vaapijpegdec". Both streams also work without tee: Is this a known
>> issue with VAAPI... or have I missed something!
>
> Have you thought of adding vaapipostproc right after the decoder ?

I already tried that! It doesn't help.

Wolfgang.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: vaapi, tee and pango overlay

Wolfgang Grandegger
Am 14.06.2018 um 20:57 schrieb Wolfgang Grandegger:

> Am 14.06.2018 um 20:53 schrieb Nicolas Dufresne:
>> Le jeudi 14 juin 2018 à 19:35 +0200, Wolfgang Grandegger a écrit :
>>> still trying to understand how things could be done efficiently with
>>> GStreamer. Next I would like to receive and display a JPEG encoded
>>> RTP-Stream and write it in H.264 format to a file at the same time. Here
>>> is the pipeline I use:
>>>
>>> # gst-launch-1.0 udpsrc port=50004 \
>>>   ! application/x-rtp,encoding-name=JPEG,payload=26 \
>>>   ! queue ! rtpjpegdepay ! vaapijpegdec ! timeoverlay \
>>>   ! tee name=t \
>>>   t. ! queue ! vaapipostproc ! kmssink \
>>>   t. ! queue ! vaapih264enc ! filesink location=/tmp/test.h264
>>>
>>> This does not work! The screen goes black and nothing is recorded to the
>>> file. But it work without "timeoverlay" and also with "jpegdec" instead
>>> of "vaapijpegdec". Both streams also work without tee: Is this a known
>>> issue with VAAPI... or have I missed something!
>>
>> Have you thought of adding vaapipostproc right after the decoder ?
>
> I already tried that! It doesn't help.

FYI, I updated GStreamer from 1.12.2 to 1.14.1 and now it works with
"vaapisink" instead of "kmssink". "vaapisink" needs X11. It never worked
for me with DRM, even if "gst-inspect-1.0" is listing the option.

Thanks,

Wolfgang.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: vaapi, tee and pango overlay

Victor Jaquez
On Fri, 15 Jun 2018 at 14:43, Wolfgang Grandegger wrote:

> FYI, I updated GStreamer from 1.12.2 to 1.14.1 and now it works with
> "vaapisink" instead of "kmssink". "vaapisink" needs X11. It never worked
> for me with DRM, even if "gst-inspect-1.0" is listing the option.

vaapisink drm is not intended to draw something in screen. it is for
headless use-cases.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel