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.

160 x 120 resolutions not supported in dm37xx dsp

Other Parts Discussed in Thread: DM3730


hi,

In DM 37xx,  while doing video encode using dsp via h264 encoder for QQVGA resolution 160x120. we get following error:

root@omap3evm:~/dsp/ti-dmai-apps# ./video_encode_io1_dm3730.x470MV
 -c h264enc -i /home/root/snap_1280x720_1_AF_ENA.uyvy -o testoutput.264 -r 160x1
20 -n 8
Starting application...
Failed to create video encoder: h264enc
End of application.

if instead of 160x120,we use resolution 160x128, i.e. multiple of 16, get pass without error.

root@omap3evm:~/dsp/ti-dmai-apps# ./video_encode_io1_dm3730.x470MV
 -c h264enc -i /home/root/snap_1280x720_1_AF_ENA.uyvy -o testoutput.264 -r 160x1
28 -n 8
Starting application...

 Frame 0: Read UYVY frame size 40960 (160x128) from file

 Frame 1: Read UYVY frame size 40960 (160x128) from file

 Frame 2: Read UYVY frame size 40960 (160x128) from file

 Frame 3: Read UYVY frame size 40960 (160x128) from file

 Frame 4: Read UYVY frame size 40960 (160x128) from file

 Frame 5: Read UYVY frame size 40960 (160x128) from file

 Frame 6: Read UYVY frame size 40960 (160x128) from file

 Frame 7: Read UYVY frame size 40960 (160x128) from file
... exiting
End of application.

Does it is necessary to put resoluotion in multiple of 16, to use h264 encoder?

Thanks

jitendra kumar

 

  • Hi,

    Can you please confirm the version of the H.264 Encoder that you are using? Either you can check the release package or else call the XDM_GETVERSION control call in your application. We had fixed this issue (of non-multiple of 16 during create) in the Single CPU release, with version 01.00.03.00

     

     

     Regards,

    Vivek 

     

  • Thanks for replying, Vivek.

    I am using the pre built binaries provided with ti's DVSDK_4020006 for DM3730, i think that, this DVSDK, do not contain the fix to support the resolutions that are not  multiple of 16. 

    Please, help me out in getting QQVGA Resoluition to work with this DVSDK release, also provide the the link to download H264 encoder server that support the resolutions that are not multiple of 16.

    Thanks

    Jitendra

  • Hi Vivek,

    We are using h264 encoder version 01.00.02.00 and it has been mentioned in release notes that this release of H264 Encoder, supports non-multiple of 16 resolutions with below constraints:

                                       Height and Width shall be mutiple of 2
                                       Capture Width shall be multiple of 16 (pixel units)

    Follow the below link for supporting resolutions that are non-multiple of 16:

    http://processors.wiki.ti.com/index.php/DM36x_H.264_encoder_FAQ#Does_encoder_support_non_multiple_of_16_resolution.3F

    thanks

    jitendra