Forums - qtivtransform issues

2 posts / 0 new
Last post
qtivtransform issues
ralf.seidler
Join Date: 31 May 22
Posts: 1
Posted: Mon, 2023-03-27 07:37

Hi all,

I am having some issues getting the qtivtransform gstreamer plugin running in my application.

When using a pipeline like

  gst-launch-1.0    qtiqmmfsrc !    video/x-raw,format=NV12,framerate=\(fraction\)30/1,width=1280,height=720 ! qtivtransform ! video/x-raw,format=RGB !    qtivtransform  !     video/x-raw,format=NV12 ! omxh264enc ! rtphpay ! udpsink

I get the desired output via udp.

However, when using the videotestsrc instead as follows:

gst-launch-1.0    videotestsrc !    video/x-raw,format=RGB,framerate=\(fraction\)30/1,width=1280,height=720 !    qtivtransform  !     video/x-raw,format=NV12 ! omxh264enc ! rtph264pay ! udpsink

the resulting image is green and when using GST_DEBUG=3, the following error is shown:

0:00:00.776743157 18822   0x55ca8d0ad0 ERROR              videometa gstvideometa.c:235:default_map: cannot map memory range 0-1
0:00:00.776774563 18822   0x55ca8d0ad0 ERROR                default video-frame.c:161:gst_video_frame_map_id: failed to map video frame plane 0
0:00:00.776790292 18822   0x55ca8d0ad0 ERROR          qtivtransform videotransform.c:1447:gst_video_transform_transform:<videotransform0> Failed to map input buffer!
 
Any idea how I can fix that?
Background: We want to use an appsrc as raw image input and use qtivtransform instead of videoconvert to save CPU.
 
Best regards
Ralf Seidler
 
  • Up0
  • Down0
mbauroth
Join Date: 23 Mar 23
Posts: 4
Posted: Fri, 2023-04-21 04:08

Hi,

simply replace RGB by NV12 in your second example and pipeline works (tested).

wrong:
gst-launch-1.0    videotestsrc !    video/x-raw,format=RGB,framerate=\(fraction\)30/1,width=1280,height=720 !    qtivtransform  !     video/x-raw,format=NV12 ! omxh264enc ! rtph264pay ! udpsink

correct:
gst-launch-1.0    videotestsrc !    video/x-raw,format=NV12,framerate=\(fraction\)30/1,width=1280,height=720 !    qtivtransform  !     video/x-raw,format=NV12 ! omxh264enc ! rtph264pay ! udpsink

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.