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 Frame in MPEG-2 format

Hi All,

I want to encode .yuv frame in MPEG-2 format.let me know any application available in DVSDK _dm368_evm_4_02_00_06.

And what is basic setup required for compilation (if any tool and IDE )

Thanks..

Regards,

Anil Verma

  • DM368 DVSK 4.02 demo shows H.264 encode and decode application. But the DVSDK also has support for Mpeg2 encoder (part of the package). You may just have to chnage the demo app to call the corresponding DMAI APIs. There is no seperate tool or IDE req apart from what you have to run the default DVSDK demo application,

    regards

    Yashwant

  • Hi Yashwant,

    Thanks for quike  reply..

    As per your instruction ,I have just set  cross compile environment "source ${DVSDK}/linux-devkit/environment-setup" and

     try to compile .c file using make available in encoder  "/home/dvsdk-demos_4_02_00_01/dm365/encode" directory. But getting error as below.

     ======== Building encode ========
    Configuring application using encode.cfg

    making package.mak (because of package.bld) ...
    generating interfaces for package encode_config (because package/package.xdc.inc is older than package.xdc) ...
    configuring encode.xv5T from package/cfg/encode_xv5T.cfg ...
    js: "/home/dvsdk-demos_4_02_00_01/dm365/encode/encode.cfg", line 45: XDCException: xdc.PACKAGE_NOT_FOUND: /home/dmai_2_20_00_15/packages/ti/sdo/dmai/package.xdc found along the package path, but no schema file was found.  Ensure that the package 'ti.sdo.dmai' is completely built.
        "./package/cfg/encode_xv5T.cfg", line 474
        "./package/cfg/encode_xv5T.cfg", line 429
    gmake: *** [package/cfg/encode_xv5T.c] Error 1
    Warning: directory "/home/dvsdk-demos_4_02_00_01/packages" on package path does not exist
    Warning: directory "/packages" on package path does not exist
    js: "/home/xdctools_3_16_03_36/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

    Please let me know if any thing wrong.

    I have one more question. I need to write a video streaming application using DM368 where input as a composite and s-video and this analog signal decode by video decoder

    then convert in Mpeg-2 format using codecs and store it.after that stream converted Mpeg-2 format video data to pc through usb.

    Let me know the DM368 DVSK 4.02 demo  application are useful in my project or alternate  way of my application.

    Thanks & Regards,

    Anil