cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
so-lli1
Adventurer
Adventurer
1,119 Views
Registered: ‎11-26-2016

VCU, gstreamer using GRAY8 pixel format

Jump to solution

Hello,

I am currently working on an video streaming application using the XCZU7EV device on an ZCU104 Eval. Board.

In order to test the encoder with my future video properties, I used the following minimalistic gstreamer pipeline. It works fine.

gst-launch-1.0 videotestsrc ! video/x-raw,width=640,height=512,framerate=60/1 ! omxh264enc ! video/x-h264, alignment=au ! fakesink

 

However, when I want to use GRAY8 as video format, the command fails.

gst-launch-1.0 videotestsrc ! video/x-raw,format=GRAY8,width=640,height=512,framerate=60/1 ! omxh264enc ! video/x-h264, alignment=au ! fakesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data stream error.
Additional debug info:
../../../../git/libs/gst/base/gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

According to PG252, Table 78, GRAY8 should be supported.

Capture.PNG

 

 

 

 

 

gst-inspect-1.0 omxh264enc also lists the pixel format as supported.

Capture2.PNG

 

 

 

 

 

 

 

 

 

I hope somebody can point me in the right direction.
Thanks.

0 Kudos
1 Solution

Accepted Solutions
aoifem
Moderator
Moderator
688 Views
Registered: ‎11-21-2018

Hi @so-lli1 

I'm attaching the link to your other post which contains the workaround for this. Can you mark this as an 'accepted solution' so the community can find the answer faster? 

https://forums.xilinx.com/t5/Video-and-Audio/VCU-encoding-framerate-very-low/m-p/1133100

 

Aoife
Product Application Engineer - Xilinx Technical Support EMEA


**~ Got a minute? Answer our Vitis HLS survey here! ~**

**~ Don't forget to reply, give kudos, and accept as solution.~**

View solution in original post

0 Kudos
7 Replies
florentw
Moderator
Moderator
1,033 Views
Registered: ‎11-09-2015

Hi @so-lli1 

Can you check if the videotestsrc has the support for GRAY8? What is your source?


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
so-lli1
Adventurer
Adventurer
1,027 Views
Registered: ‎11-26-2016

Hi @florentw,

as far as I can tell, it should be supported. The following shows the output of gst-inspect-1.0 videotestsrc running on the embedded device.

image.png

 

 

 

 

 

 

 

 

 

Furthermore, the following pipeline works. That's why I suspect it is linked to omxh264enc.

gst-launch-1.0 videotestsrc ! video/x-raw,format=GRAY8,width=640,height=512,framerate=60/1 ! fakesink

Thank you.

0 Kudos
florentw
Moderator
Moderator
1,007 Views
Registered: ‎11-09-2015

HI @so-lli1 

What if you try to specify different other format (on your initial command, you are not specifying the format)?


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
so-lli1
Adventurer
Adventurer
1,000 Views
Registered: ‎11-26-2016

Hi @florentw 

I need GRAY8 for the final product, also GRAY8 seems to work fine when the omxh64enc is not in the pipeline (see above post).

0 Kudos
so-lli1
Adventurer
Adventurer
896 Views
Registered: ‎11-26-2016

I would still be interested in an answer. Any news?

0 Kudos
watari
Professor
Professor
855 Views
Registered: ‎06-16-2013

Hi @so-lli1 

 

Did you make sure debug log file ?

You might be able to find the route cause in this log file.

 

Best regards,

0 Kudos
aoifem
Moderator
Moderator
689 Views
Registered: ‎11-21-2018

Hi @so-lli1 

I'm attaching the link to your other post which contains the workaround for this. Can you mark this as an 'accepted solution' so the community can find the answer faster? 

https://forums.xilinx.com/t5/Video-and-Audio/VCU-encoding-framerate-very-low/m-p/1133100

 

Aoife
Product Application Engineer - Xilinx Technical Support EMEA


**~ Got a minute? Answer our Vitis HLS survey here! ~**

**~ Don't forget to reply, give kudos, and accept as solution.~**

View solution in original post

0 Kudos