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.

encode on 814x EVM problem

hi all

Here is my problem.

I encoded  multichannels (5 channels )   and  resolutions are 720p , 704x480, 704x480, 512x288  , 640x480

All 5 bitstreams have errors !!

However, if one of resolutions is set to be 1080p  , 5 bitstreams are correct!!!

 

 

  • What are you using to do the encode? EZSDK with OMX? RDK?

  • Hi
    I am using "DVRRDK_02.00.00.23" 

    thank you

    best regards

  • Can you give some more details about the setup. Which usecase are you using? Link/Data flow diagram etc. What sort of error you are seeing in the bitstream.

  • Hi, Ritesh Rajore
    Here  I decode  6 channels and encode 5 channels which resoution are "720p" , "704x480","704x480","512x288","640x480" 
    I attached one incorrect bitstreams files for you ,"512x288"  (ths file is '*.264')

    my link flow is below :

  • Steven,

    I dont see your stream here. Could you attach ones again?

    Your link flow diagram does not looks optimal. Could you please tell me stream/frame resolution at each stage. I dont understand the use of SwMs link at various places.

    Are you planning to merge all the channels in one plane/frame using SwMs and then encode.

  • I agree with Ritesh, I don't completely understand your setup. I'm not clear on what the Dup-merge-Dup section is doing. Do some of those have multiple channels running through them?

    And are you using the SwMS links to change the resolution of the streams?

  • Hi,Ritesh Rajore 

    I decode 6 channels   which  streams' resolutions are  720p ,720p, 720p , 720x480, 720x480,720x480
    and encode 5 channels  which resolutions are  "720p" , "704x480","704x480","512x288","640x480" 

    I wan to merge selected  channle in one  frame in one frame!

    I attatched stream file but it is not allowed!! 

    I sent streams  to your e-mail : ritesh.rajore@gmail.com
     

    thanks a lots 

    best regards 

     
     

  • Hi,Brett Kuehner 

    Dup-merge-Dup section will be used near the future for other purpose! 
    I use the swMs to encode different resolutions !


    Actually, I also try a simple case below ,  decoding 6  channels   which resotions are 720p ,720p, 720p , 720x480, 720x480,720x480  and  encoding 2 channles which resolutions are "704x480","512x288" !  but bitstreams will be uncorrect!! 

    thanks a lots

    best regards

  • How are you checking your bitstreams for errors? Have you tried playing them back with the vdec_vdis usecase in the demo? That's one of the tools we've been using to validate streams.

  • Hi, Brett Kuehner

    I check them by "VLC player"  a kind of player

    thanks a lots

     

  • Hi, Brett Kuehner 
     

    I fwrite bitstreams after encoding  and save them in the host

    then use "VLC player" to check them for errors


  • Steven,

    What is the intention behind using SwMs link? I am still unclear about its usage there?

  • Hi, Ritesh Rajore

    Here I use swMs link for creating different bitstreams after encoding!  

    Is any other way to decide's  encoder's resolution????  

    It seems that swMs decides encoder's max resolution here ,is that right ???

    thnx a lots

    best regards

  • Steven,

    You can also use VIP scalar out of DEI link that can directly give you YUV420 output. In that case you don't need NSF. For this you can use DEI in bypass mode. You can refer to HD encoder demo use case (UI option 4) where DEI link is configured in bypass mode.

    You are right, the resolution of the link that precedes encoder link decides the  max resolution of encoder. In your case it is SwMs link.

  • Hi, Ritesh Rajore

    I encoded  multichannels (5 channels )   and  resolutions are 720p , 704x480, 704x480, 512x288  , 640x480

    All 5 bitstreams have errors !!

    However, if one of resolutions is set to be 1080p  , 5 bitstreams are correct!!!

    this problem is sitll unsolved!  is there any good suggestion about it?

    thanks a lots

    best regards

  • Steven,

    After seeing the bit streams looks like there are frame skips. Could you share the logs? Please share the create and delete logs and also intermediate system statistics logs. You can print system statistics at run time by pressing "i". 

    What is the DVR RDK version that you are working on.

  • Hi, Ritesh Rajore

    I am using "DVRRDK_02.00.00.23" 

    I sent log to your e-mail

    thanks a lots

    best regards

  • Steven,

    Below are my observations/concerns/inputs.

    1. You are using chain demos. In the DVR RDK release that you are using, chain demos are not maintained and support in the break in functionality is not covered. These demos were not tested. Please switch to mcfw demos. They are thoroughly tested.

    2. I dont see run time stat print of all the links at run time. You can add statistics prints of for the link as below.Please refer MCFW demo code for more details.

                            System_linkControl(

                                     LINKID,                                                                                                  /* Link ID used at create Time */
                                    XXX_LINK_CMD_PRINT_STATISTICS,                                           /* Print command of link used e.g. NSF_LINK_CMD_PRINT_STATISTICS*/
                                    NULL, 0, TRUE);

    3. You are working on 5-702p decode and 5-D1 encode in your use case.  This wont be real time on you platform. Probably this is the reason of frame skip in your bit stream file. Below are the possible combinations that you can try.

         a. 9-D1 decode only.

         b. 4-720P decode only.

        c. 4-D1 Encode + decode only.

    4. I see below error prints on your logs. Not sure if they are really errors. I don't know, if you have problem in decoder side only or not. Can you add display link and give decoder o/p to it and see.



                       [host] CHAINS_IPCBITS: Callback function:Chains_ipcBitsInCbFxn

                      [host] CHAINS_IPCBITS_RECV:Chains_ipcBitsRecvFxn:INFO: periodic print..

                      [host] GetAnnexbNALU : PANIC : Error in next start code search. (Maybe End of File)
     
                     [host] GetAnnexbNALU : PANIC : Error in next start code search. (Maybe End of File)

                     [host] GetAnnexbNALU : PANIC : Error in next start code search. (Maybe End of File) [m3video] CH1: 1