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 add OSD for primary stream

Hi everybady:

        I'm using DVRRDK4.0.0.3 with DM8168.Now I want to add OSD for primary stream.while it only add OSD for secondary stream at Demo_vcap_venc_vdec_vdis.I changed

         for(chId=16;chId < 32;chId++)

         {

                 g_osdChParam[chId].numWindows = 3;

         } 

to

     

      for(chId=0;chId < 16;chId++)

         {

                 g_osdChParam[chId].numWindows = 3;

         }

at demo_vcap_venc_vdec_vdisp.c, but it doesn't has any change for primary stream.

How can I add OSD for primary stream?

  • Which usecase are you using ?

  • Hi Narayanan:

         Thanks for you replay!

         I used VCAP+VENC+VDEC+VDIS-Progressive SD Encode+Decode!

  • OSD is already applied on the primary encode channels. By primary encode channels I hope you are referring to encode channel 0 -15.If you mean you want OSD on livepreview (not encoded channels) it is not possible as it requires change in data flow. You can use fbdev to display OSD for live preview channels if required,

  • Hi Narayanan:

         I modify the Demo_vcap_venc_vdec_vdis.c like below to display primary stream on DVO2:

                     vsysParams.enableOsd     = TRUE; // FALSE

                    ····················

                    Demo_swMsGenerateLayout(VDIS_DEV_DVO2, 0 /*16*/, gDemo_info.maxVdisChannels,

                                                            DEMO_LAYOUT_MODE_16CH,
                                                            &vdisParams.mosaicParams[i], forceLowCostScale,
                                                             gDemo_info.Type,
                                                             Vdis_getSwMsLayoutResolution(VDIS_DEV_DVO2));

                 ··············

                 for (chId = 0 /*16*/; chId < 32; chId++)

                 {

                          g_osdChParam[chId].numWindows = 3;

                 }

            The DVO2 device can display video but witout OSD!

             Is there any problem ?

  • You are displaying preview channels on DVO2. As I mentioned live preview will not have OSD.

  • Hi Badri:

         Thanks for you reply!

          whether the OSD data storage with video data or not?

  • I don't understand your question.If your question is if OSD is part of the encoded stream then yes encoded stream will contain the OSD.