cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
1,013 Views
Registered: ‎10-21-2018

VCU encode 4:2:2 10bit

I have a YUV file which format is 4:2:2 10bit. Then I use VCU to encode it, as

gst-launch-1.0 filesrc location="input.yuv"  !  videoparse  format=nv16-10le32 width=3840 height=2160 framerate=25/1  !  omxh264enc  ! filesink location ="output.h264"

The file output.h264  cannot be decoded rightly! 

I used zcu106 with TRD-2018.3

Tags (2)
0 Kudos
6 Replies
Highlighted
Moderator
Moderator
972 Views
Registered: ‎11-09-2015

Re: VCU encode 4:2:2 10bit

Hi @gefei-liuqi,

Unfortunately, the VCU TRD 2018.3 does not support 10 bit data (i.e. NV16 is not supported). It should be supported in a future release.

Regards,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Highlighted
Contributor
Contributor
937 Views
Registered: ‎10-21-2018

Re: VCU encode 4:2:2 10bit

ok! Thanks for your response!

But when I use the command like this

  gst-launch-1.0 filesrc location=/mnt/input.h264 ! h264parse ! omxh264dec ! queue max-size-bytes=0 ! omxh264enc num-slices=8 control-rate=2 b-frames=0 gop-length=1 target-bitrate=400000 ! filesink location=/mnt/output.h264

the Encoded file output.h264 can be played well with the VLC player!

  the input.h264 is 4:2:2 10bit, while the output.h264 is 4:2:2 10bit too!

I do not know why

0 Kudos
Highlighted
Moderator
Moderator
917 Views
Registered: ‎11-09-2015

Re: VCU encode 4:2:2 10bit

HI @gefei-liuqi,

Can you try with the ZCU106 BSP (link) instead of the VCU TRD?

Regards,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Highlighted
Contributor
Contributor
897 Views
Registered: ‎10-21-2018

Re: VCU encode 4:2:2 10bit

I have tested  2018.3-zcu106-release.

It can not work too.

so, I wonder to know whether the VCU support NV16-10le32 encoder or  NV16 encoder?

0 Kudos
Moderator
Moderator
887 Views
Registered: ‎11-09-2015

Re: VCU encode 4:2:2 10bit

HI @gefei-liuqi,

According to PG252, the VCU can do both:

VCY.JPG

 Are you sure your YUV file is correct?

 

 


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Highlighted
Contributor
Contributor
866 Views
Registered: ‎10-21-2018

Re: VCU encode 4:2:2 10bit

The raw yuv file is stored by this command:

ctrlsw_decode  -i  4k_input.h264  -out output.yuv  -avc  --prealloc-args 3840x2160:progr:422:10:11:52

while the 4k_input.h264 is 4:2:2 10bit format,  and the YUV file can be showed rightly with pYUV tool.

0 Kudos