UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor
Contributor
327 Views
Registered: ‎10-04-2018

4K@30fps Multistream Decoding and Encoding

Hello,

I am using Zynq Ultrascale+ MPSoC ZCU104 to multistream transcoding of two videos at 4K@30fps.

I connected to my board via Tera Term. And for decoding them I use the command:

gst-launch-1.0 filesrc location=bbb_sunflower_part1.mp4 ! qtdemux name=demux1 demux1.video_0 ! h264parse ! queue ! omxh264dec ! queue max-size-bytes=0 ! filesink location="output_0.yuv" filesrc location=bbb_sunflower_part2.mp4 ! qtdemux name=demux2 demux2.video_0 ! h264parse ! queue ! omxh264dec ! queue max-size-bytes=0 ! filesink location="output_1.yuv" 

The same format has been worked for 2 videos at 1080p30fps. But this time I get the following errors:

 

fffffff.JPG

Can somebody please help me? I am stuck :(

Tags (3)
0 Kudos
8 Replies
Moderator
Moderator
272 Views
Registered: ‎11-09-2015

Re: 4K@30fps Multistream Decoding and Encoding

Hi @yildizbilgin 

Did you try all the option from the debugging section of the PG252? In particular did you try to change the CMA size?

Also on which stortage device are you saving the stream? You probably do not have enough space on your memory card. Maybe try to use an external drive

Regards,

 


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

Re: 4K@30fps Multistream Decoding and Encoding

Hello,

I am using a 16 GB SD card. I dont think I dont have enough space on my SD Card because I can encode and decode these videos one by one.

I dont understand how I can change CMA size.  I try this:

cma=250M

And nothing happened.

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

Re: 4K@30fps Multistream Decoding and Encoding

Hi @yildizbilgin 

The command cma=250M needs to be entered in u-boot each time the device boots.

You can also do it in the kernel configuration when builing your petalinux project:

In the kernel config (in petalinux, run petalinux-config -c kernel) change the size of the CMA under

-> Device Drivers

-> Generic Driver Option

-> DMA Contiguous Memory Allocation

-> Size in MegaBytes


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

Re: 4K@30fps Multistream Decoding and Encoding

-> Device Drivers

-> Generic Driver Option

-> DMA Contiguous Memory Allocation

-> Size in MegaBytes

It was 1000 and I made it 2000.  After that I build the pre-built images again. Nothing changed.

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

Re: 4K@30fps Multistream Decoding and Encoding

HI @yildizbilgin 

What version are you using? 2018.3 or 2019.1?


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

Re: 4K@30fps Multistream Decoding and Encoding

Hi,
I am using 2019.1
0 Kudos
Moderator
Moderator
67 Views
Registered: ‎11-09-2015

Re: 4K@30fps Multistream Decoding and Encoding

Hi @yildizbilgin 

I missed this previously but you need to make sure the VCU IP in your vivado design is configured for 2*4K@30 streams because it will require more encoder buffer memory than for a single 4k@60. This is maybe why you cannot do the mutlistream.

From pg252:

 

VCU.JPG

 


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

Re: 4K@30fps Multistream Decoding and Encoding

Hi @yildizbilgin 

If your question is answered or your issue is solved, please kindly mark the response which helped as a solution (click on "Accept as solution" button below the reply).

 

If this is not solved/answered, please reply in the topic giving more information on your current status.

 

Thanks and Regards,

 

Aoife
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos