• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » DaVinci™ Video Processors » DM816x, C6A816x and AM389x Processors Forum » DV8168 dvrlib based on mcfw: custom chain problem - no video detected
Share
DaVinci™ Video Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS

DV8168 dvrlib based on mcfw: custom chain problem - no video detected

DV8168 dvrlib based on mcfw: custom chain problem - no video detected

This question is not answered
Marat Shchuchinsky
Posted by Marat Shchuchinsky
on May 01 2012 09:31 AM
Intellectual470 points

Dear friends!

I works with udworks DVR, based on DM8168, and try to create custom chain that perform very simple operations: capture -> H264 encode -> stream via RTSP.

I want to capture only 8 channels (D1 resolution), only primary stream, no secondary stream, encode captured channels for H264 and send to streammer. 

Application into function DVR_StartSystem(..) applyed to my "custom usecase". This usecase used followed links connected as is below:

 SYSTEM_LINK_ID_CAPTURE =>

    SYSTEM_LINK_ID_DEI_0 =>

       SYSTEM_LINK_ID_NSF_0 =>

          SYSTEM_VPSS_LINK_ID_IPC_FRAMES_OUT_0 =>

              SYSTEM_VIDEO_LINK_ID_IPC_BITS_IN_0 =>

                   SYSTEM_LINK_ID_VENC_0 =>

                         SYSTEM_VIDEO_LINK_ID_IPC_BITS_OUT_0 =>

                                SYSTEM_HOST_LINK_ID_IPC_BITS_IN_0 =>

                                    SYSTEM_HOST_LINK_ID_IPC_BITS_OUT_0

 

capture parameters are as following:

 

 for (vipInstId = 0u; vipInstId < (Uint32)capturePrm.numVipInst; vipInstId++) {   pCaptureInstPrm                     = &capturePrm.vipInst[vipInstId];   pCaptureInstPrm->vipInstId          = (SYSTEM_CAPTURE_INST_VIP0_PORTA+              vipInstId)%SYSTEM_CAPTURE_INST_MAX;   pCaptureInstPrm->videoDecoderId     = SYSTEM_DEVICE_VID_DEC_TVP5158_DRV;   pCaptureInstPrm->inDataFormat       = SYSTEM_DF_YUV422P;   pCaptureInstPrm->standard           = SYSTEM_STD_MUX_4CH_D1;   pCaptureInstPrm->numOutput          = 1;

  pCaptureOutPrm                      = &pCaptureInstPrm->outParams[0];   pCaptureOutPrm->dataFormat          = SYSTEM_DF_YUV422I_YUYV;   pCaptureOutPrm->scEnable            = FALSE;   pCaptureOutPrm->scOutWidth          = 0;   pCaptureOutPrm->scOutHeight         = 0;      pCaptureOutPrm->outQueId            = 0;  }

 

H264 encoder parameters are as following:

  EncLink_CreateParams_Init(&encPrm);

  /* Primary Stream Params - D1 */   for (i = 0; i < encChannels; i++)   {    pLinkChPrm  = &encPrm.chCreateParams[i];    pLinkDynPrm = &pLinkChPrm->defaultDynamicParams;

   pChPrm      = &gVencModuleContext.vencConfig.encChannelParams[i];    pDynPrm     = &pChPrm->dynamicParam;

   pLinkChPrm->format                  = IVIDEO_H264HP;    pLinkChPrm->profile                 = gVencModuleContext.vencConfig.h264Profile[i];    pLinkChPrm->dataLayout              = IVIDEO_FIELD_SEPARATED;    pLinkChPrm->fieldMergeEncodeEnable  = FALSE;    pLinkChPrm->enableAnalyticinfo      = pChPrm->enableAnalyticinfo;    pLinkChPrm->maxBitRate              = pChPrm->maxBitRate;    pLinkChPrm->encodingPreset          = pChPrm->encodingPreset;    pLinkChPrm->rateControlPreset       = pChPrm->rcType;

   pLinkDynPrm->intraFrameInterval     = pDynPrm->intraFrameInterval;    pLinkDynPrm->targetBitRate          = pDynPrm->targetBitRate;    pLinkDynPrm->interFrameInterval     = 1;    pLinkDynPrm->mvAccuracy             = IVIDENC2_MOTIONVECTOR_QUARTERPEL;    pLinkDynPrm->inputFrameRate         = pDynPrm->inputFrameRate;    pLinkDynPrm->rcAlg                  = pDynPrm->rcAlg;    pLinkDynPrm->qpMin                  = pDynPrm->qpMin;    pLinkDynPrm->qpMax                  = pDynPrm->qpMax;    pLinkDynPrm->qpInit                 = pDynPrm->qpInit;    pLinkDynPrm->vbrDuration            = pDynPrm->vbrDuration;    pLinkDynPrm->vbrSensitivity         = pDynPrm->vbrSensitivity;   }

  encPrm.inQueParams.prevLinkId    = ipcInVideoId;   encPrm.inQueParams.prevLinkQueId = 0;   encPrm.outQueParams.nextLink     = ipcBitsOutVideoId;

  for (i = 0; i < ENC_LINK_MAX_BUF_ALLOC_POOLS; i++) {    encPrm.numBufPerCh[i] = 3;//VN_NUM_ENCODE_D1_BUFFERS;   }

 }

 

After compilation my application (encoder and streammer) started successfully, I saw printed stream' URL's, but have message - "no video detected" from all captured' channels.

I would be very glad if you can help to fx the problem. The majority of code for my custom chain taken from original chain supplied with DvrRDK demo with removal unnecesary for me displays, duplications, decoder and merge links.

 

Thank you very much and best regards.

 

dm8168 syslink mcfw DVRRDK udworks
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Marat Shchuchinsky
    Posted by Marat Shchuchinsky
    on May 08 2012 10:19 AM
    Intellectual470 points

    Please anybody?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use