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: 
Adventurer
Adventurer
4,326 Views
Registered: ‎07-18-2016

video in axi stream

Jump to solution

Hi,

   I have a decoder which converts PAL std. to 8 bit YCbCr 4:2:2 and I am giving this YCbCr 4:2:2 8 bit (sending CbYCrYCbYCrY in series)to video in axi stream. If I use mono/sensor will it accept only Y component or is it accepting YCb, YCr or combination or merging takes place. can anyone help me.

 

 

Thanks,

Rashmi

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
7,020 Views
Registered: ‎11-09-2015

Re: video in axi stream

Jump to solution

Hi @rashmi_ha,

 

Create a counter to see how many pixel you have at the output of your fifo for each line (count pixel between each end of line) and how many lines you have in each row (count how many EOL you have between each End Of Frame). Check that this correspond to the PAL format

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
28 Replies
Scholar u4223374
Scholar
4,305 Views
Registered: ‎04-26-2015

Re: video in axi stream

Jump to solution

If you set a block to accept mono input, and actually feed it YCbCr 4:2:2, the result will be a mess. The block isn't capable of detecting and discarding everything except the Y elements; it'll just accept all of them and get confused.

0 Kudos
Adventurer
Adventurer
4,298 Views
Registered: ‎07-18-2016

Re: video in axi stream

Jump to solution

Hi,

    from the decoder I am getting 8 bit YCbCr 4:2:2 (in series as CbYCrYCbYCrY) and i am feeding this 8 bit data to custom ipcore which combines 2 8 bit data in series and send it together as 16 bits to Video in to axi stream (here i have selected YUV 4:2:2 which is 16 bit). So i want to know whether i am able to get the color output and what will be the format. ?

 

Thanks,

Rashmi

0 Kudos
Xilinx Employee
Xilinx Employee
4,284 Views
Registered: ‎08-02-2011

Re: video in axi stream

Jump to solution
Sounds reasonable. Since you're converting to YCbCr422 and selecting the same thing in the Vid In to AXIS, then yes, you have color data. The format is YCbCr 422
www.xilinx.com
Adventurer
Adventurer
4,269 Views
Registered: ‎07-18-2016

Re: video in axi stream

Jump to solution

Hi,

Thank you  

I have Encoder which accepts 8 bits YCbCr 4:2:2, but if I use YUV 4:2:2 towards axi stream Video out it is 16 bits data and my encoder accepts only 8 bit data so what can I do then to get color image from video out.? Any solution for this

 

0 Kudos
Moderator
Moderator
4,263 Views
Registered: ‎11-09-2015

Re: video in axi stream

Jump to solution

Hi @rashmi_ha,

 

It depends on how your decoder is supposed to work? Can you give more detail.

 

What are the 8-bit inputs? How are they supposed to receive YCbCr data?

 

Is it 8-bits YCbCr with 1 pixel sent using two clock edge? Or 4-bits YCbCr ?

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Adventurer
Adventurer
4,258 Views
Registered: ‎07-18-2016

Re: video in axi stream

Jump to solution

Hi,

   The decoder receives PAL std. (720x576i) video from PAL camera and is fed to Decoder which converts PAL std to YCbCr 4:2:2 format(CbYCrYCbYCrY).

   It is 8 bit YCbCr with 2 pixel reference.

 

 

Thanks,

Rashmi

4.jpg
0 Kudos
Moderator
Moderator
4,255 Views
Registered: ‎11-09-2015

Re: video in axi stream

Jump to solution

Hi @rashmi_ha,

 

Sorry I mixed up. I was asking about the encoder. But I guess this is the same.

 

So what you have to do is to split you 16 bits output to 2 * 8bits send with two different clock edge (one containing the Y info, the other the Cb/Cr info).

 

The Y is in the bits [7:0] and the Cb/Cr  is in the bits [15:8]

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Adventurer
Adventurer
4,251 Views
Registered: ‎07-18-2016

Re: video in axi stream

Jump to solution

Hi,

Thank you  

I am getting video for 16 bits YUV4:2:2 format at axi stream video out, but getting yellow and green for first time.

Again when we build and run we are getting pink and green and if we repeat the same step for third time we are getting monochrome output. I don't know what is the issue.

 

 

Thanks,

RashmI

0 Kudos
Moderator
Moderator
4,247 Views
Registered: ‎11-09-2015

Re: video in axi stream

Jump to solution

Hi @rashmi_ha,

 

I think you must put an ILA to check that you are sending what you think you are.

 

Try to use a small test bench with a picture as input (or some pixels values) and see if each block output is what you are expecting.

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Adventurer
Adventurer
3,833 Views
Registered: ‎07-18-2016

Re: video in axi stream

Jump to solution

Hi,

Thank you

I will check and let you know.

 

Thanks,

Rashmi

0 Kudos
Adventurer
Adventurer
3,812 Views
Registered: ‎07-18-2016

Re: video in axi stream

Jump to solution

Hi ,

              I checked by adding ILA probes at each point but I am getting output but I am not getting proper color video. I am not getting what is the problem.

 Is it because the output from the decoder is YCrCb 4:2:2 and what I have selected in Video in stream out and stream in video out is YUV 4:2:2.? Can you please suggest me. I don't know where exactly the problem is.

 

Thanks,

Rashmi

0 Kudos
Moderator
Moderator
3,808 Views
Registered: ‎11-09-2015

Re: video in axi stream

Jump to solution

Hi @rashmi_ha,

 

You should not only look for if you have an output put you should look at if the value of the output is what you are expecting. If the data is ordered the way you think.

 

You need deeper analysis on the signals.

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Adventurer
Adventurer
3,802 Views
Registered: ‎07-18-2016

Re: video in axi stream

Jump to solution

Hi  ,

Thank you,

Actually I am giving the live video streaming (which is coming from PAL camera) so I don't know what are the values I should get, since it is the live video.

 

Thanks,

Rashmi

 

 

0 Kudos
Adventurer
Adventurer
3,795 Views
Registered: ‎07-18-2016

Re: video in axi stream

Jump to solution

Hi ,

I am getting the waveform as below.

If you look into the highlighted one I am getting only 8 bits data and remaining 8 bits are 00 instead of whole 16 bits. may be is it the problem for jumbling of datas? 

I want to know if we give YCrCb 4:2:2 as input to video in axi stream and if I select YUV 4:2:2 will I get the proper color video or will there be jumble of color components?  

 

Thanks,

Rashmi

7.jpg
0 Kudos
Moderator
Moderator
3,791 Views
Registered: ‎11-09-2015

Re: video in axi stream

Jump to solution

Hi @rashmi_ha,

 

So yes it seems that you issue is coming for the upper bits.

 

Yes if you select YUV should be (nearly) the same as YCbCr so it is not your issue.

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Adventurer
Adventurer
3,782 Views
Registered: ‎07-18-2016

Re: video in axi stream

Jump to solution

Hi  ,

Thank you

Yes may be what you are saying is right but I have a doubt .If I am getting only lower bits then I should get color image right because lower 8 bits are CbCr components and upper 8 bits are Y components. Since it is luminance I should not have any problem with color image. but still I am getting Pink and Green.

So at one point what you are telling is right. Thank you.

So do you have any solution for this? how do I get proper color combinational output video. suggest me some possible ways so that I can solve this issue.

 

Thanks,

Rashmi

0 Kudos
Moderator
Moderator
3,777 Views
Registered: ‎11-09-2015

Re: video in axi stream

Jump to solution

Hi @rashmi_ha,

 

"Since it is luminance I should not have any problem with color image."

 

How can you say that????

 

ycbcr.JPG


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Adventurer
Adventurer
3,740 Views
Registered: ‎07-18-2016

Re: video in axi stream

Jump to solution

Hi ,

yeah you are right, we need Luminance for color video but I am not getting both luminance(8) and chrominance(8 bit) form axi stream to video out. So can you suggest me where the problem may be for not getting 16 bits from video out.?

 

Thanks,

Rashmi

 

0 Kudos
Moderator
Moderator
3,728 Views
Registered: ‎11-09-2015

Re: video in axi stream

Jump to solution

Hi @rashmi_ha,

 

This is because from you encoder you send 8 bits -> Y then 8 bits Cb/Cr at the next clock edge while you need the send everything at the same time (16bits Y + Cb/Cr).

 

So you need to create a block (or use a FIFO should work) to combine your 2x8 bit inputs to 1x16bits input with Y + Cb/Cr


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Adventurer
Adventurer
3,784 Views
Registered: ‎07-18-2016

Re: video in axi stream

Jump to solution

Hi

Thank you  for your suggestion.

 

10.jpg
IMG_20170306_175713268.jpg
0 Kudos
Moderator
Moderator
3,779 Views
Registered: ‎11-09-2015

Re: video in axi stream

Jump to solution

Hi @rashmi_ha,

 

Well you have information from my previous post...Please read it carefully...

 


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Adventurer
Adventurer
3,764 Views
Registered: ‎07-18-2016

Re: video in axi stream

Jump to solution

Hi ,

 

Thank you  for your suggestion.

I am getting color video, but as similar video is divided into 4 different blocks. So what may be the issue for getting video like this.

?I have attached the image below.

 

Thanks,

Rashmi 

IMG_20170307_124035448.jpg
0 Kudos
Moderator
Moderator
3,758 Views
Registered: ‎11-09-2015

Re: video in axi stream

Jump to solution

Hi @rashmi_ha,

 

I guess you have a wrong configuration in the VTC or on the monitor.


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Adventurer
Adventurer
3,744 Views
Registered: ‎07-18-2016

Re: video in axi stream

Jump to solution

Hi ,

 

I tried by changing few settings in vtc. And in monitor it is default set to PAL standard. So can you please suggest me what all possible changes can be done to get video into monitor. I read VTC but I am not finding any solution.

 

Thanks,

Rashmi

0 Kudos
Moderator
Moderator
7,021 Views
Registered: ‎11-09-2015

Re: video in axi stream

Jump to solution

Hi @rashmi_ha,

 

Create a counter to see how many pixel you have at the output of your fifo for each line (count pixel between each end of line) and how many lines you have in each row (count how many EOL you have between each End Of Frame). Check that this correspond to the PAL format

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Adventurer
Adventurer
3,638 Views
Registered: ‎07-18-2016

Re: video in axi stream

Jump to solution

Hi 

 

 

Mar17_8.jpg
IMG_20170317_182720347.jpg
0 Kudos
Adventurer
Adventurer
3,612 Views
Registered: ‎07-18-2016

Re: video in axi stream

Jump to solution

Hi

 

Thank you for your help and suggestions. I am done with the issue. I am getting proper Image.

 

Thanks,

rashmi

 

 

0 Kudos
Highlighted
Visitor nhphucky13
Visitor
2,698 Views
Registered: ‎07-19-2017

Re: video in axi stream

Jump to solution
Dear Rashmi,
I have a problem when fit 8 bit YCbCr to axi in video streams. input data of Ipcore is 16 bit but output of my ADV is 8 bit without active video signal. Could you please instruct me how to overcome this problem
0 Kudos