This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to write a new link for dm8168 rdk to separate our own mux video signal?

Other Parts Discussed in Thread: TVP5158

Hi,all

we develop on dm8168 dvrrdk 2.80.

we design our own board. 

we mux 2 XGA 60 video using FPGA in our own format, and after that we have to separate  two streams,

so a new link is needed, how to do it then?

i read the dup link, but i am not familiar with link framework,

can someone tell me how links works deelpy

best regards

xavier

  • Hi,

     

    Well DVR_RDK does support multi channel capture. Capture link can support capture from multiple camera sources and store it frame, which can sent to other links. what do you want to do after capture?

     

    thanks,

    Brijesh Jadav

  • yes, after capture link ,input one stream ,output two stream

  • Hi,

     

    You can get two output streams from the single VIP input by setting dual output in VIP, you could store these two output streams to two differnet capture link queues and connect these queues to next links. This is possible in current capture link itself, there is no need to create different link.

     

    Thanks,

    Brijesh Jadav

  • Hi,Brijesh Jadav

    Actually i want to capture two XGA60 from a VIP input, and two stream is mux in stream 1 frame, stream 2 frame,stream 1 frame ...

    and i only recevied the two streams as only one streams ,

    as you say that

    I can get two output streams from the single VIP input by setting dual output in VIP, you could store these two output streams to two differnet capture link queues and connect these queues to next links. This is possible in current capture link itself, there is no need to create different link.

    This is possible in current capture link itself for my stream then?

    Or i have to rewrite the capture Link for deMux video stream to different Que?

    best regards

    xavier

  • Hi,

     

    Let me understand, your input is two multiplexed streams of VGA resolution, you want to demux them and process it independently. The first part is done by the Video Port, it captures multiplexed streams and demuxes it. In the capture link, you could keep both of these streams to different queues and process it differently. This requires minor changes in the capture link, let me know if this is what you want.

     

    Thanks,

    Brijesh Jadav

  • Hi,Brijesh Jadav

    Actually u have kown what we want ,

    Just a little question still,

    we capture 5 xga +4 PAL, we using 5158 capture pal using Vport 1 b, and we mux two xgas as a stream to  Vport0 a,

    we mux two other xgas as a stream to  Vport0 b, and a single XGA  is to Vport1 a,

    as we mux two XGAs ,actually we don't kown how to demux by the Video Port as the stream is just one frame from first

    XGA ,and another is from second XGA, differ by u,v,context,

    As we do not kown how to demux using Vport , we want to write a new link after capture link or change capture  Link,

    actually we have different type streams ,it is not suitable to change capture Link, then we want to write a new Link.

    And now you say that demux can be done by the Video Port.

    Can our stream be demuxed by Vport?

    If can how to do then?

    best regards!

    xavier


  • Hi,

     

    ok, below shows what you are trying to do

    Vip0 PortA  ===> Two mux XGA streams

    Vip0 PortB  ===> Two mux XGA streams

    Vip1 PortA  ===> Single XGA stream

    Vip1 PortB  ===> four multiplexed PAL from TVP5158.

     

    Here all demuxing is done by the Video port, you will get the each of these streams in a separate buffer. If you see capture link handles 16 channel capture on DM816x from 4 TVP5158. But all of these channels go to the same next link. But In your case, if you wan to process XGA streams different from PAL, you will have to identify XGA from PAL streams using channel id and put them in different queue. These queues you connect to next link, as shown in below figure

    XGA streams ==> queue0 ===> Scalar

    PAL streams ==> queue1 ===> Noise Filter.

     

    Thanks,

    Brijesh Jadav

     

     

    Thanks,

    Brijesh Jadav

  • Hi Brijesh Jadav,

    the questions is i do not kown how to use Video port to deMux my XGA siganls now?

    Could you tell me how to do that ?

    best regards

    xavier

  • Hi,

     

    As i said, we just need configure Video port and then it will take care of demuxing it. Capture link takes care of configuring video port correctly, you just need to tell capture link that the input is multiplexed input.

     

    Regards,

    Brijesh Jadav

  • Hi ,Brijesh Jadav

    Thank you for your reply. The problem is that i worry that only configure Capture link, can it demux the stream format define by ourself,

    Not Like tvp5158,  we simply put two XGA video captured by ADV7181(output yuv422 from adv7181) frame by frame to vport,

    How the vport demux , what rules it followed?

    best regards

    xavier

     

  • ok, if the ADV can mux two channels line by line or pixel by pixel, then only it can be demuxed by video port. Video port cannot demux frame by frame muxed channels. You will get single muxed capture streams from video port in the capture link, you will need to idently which frame is for which channels and accordingly process it. You require to make changes in the capture link for this..

     

    Regards,

    Brijesh

  • ok, now i want to write a new link based dup link ,one que in dispatch into two que ,

    i rewrite the DUP_dataprocess func,

    but i can not get data from FVID2_Frame add[0][0] array,

    i just print the value of  add[0][0] , add[0][1], and some else ,

    they are all 0x00, 

    does not data frame address in  FVID2_Frame add[0][0] array?

    regards

    xavier

  • Hi,

     

    What is the input to the dump link? Is the capture link input to the dup link? Are you getting capture callback correctly? can you print the statistics and confirm that the capture size/fps is all correct?

     

    Regards,

    Brijesh