Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Dumped .h264 file is not proper in capture_encode demo of EzSDK5_05

$
0
0

Hi,

I am using EzSDK5.05 for DM8148 EVM. I am trying to run capture_encode demo given with EzSDK. I gave following parameters for 720p60 input source,

./capture_encode_a8host_debug.xv5T -o sample.h264 -m 720p -f 60 -b 1000000 -d 0 -n 1000

I can see display on my LCD connected with on chip HDMI and it's working well. But when I run dumped .h264 encoded file in VLC player, it plays video very slow. It shows 30 fps instead of 60fps.

I am using high profile with level 4.2. I have verified bellow parameters for input and output encoder port,

tPortDef.nPortIndex = OMX_VIDENC_INPUT_PORT;

tPortDef.nBufferCountActual = IL_CLIENT_ENC_INPUT_BUFFER_COUNT;

tPortDef.format.video.nFrameWidth = pAppData->nWidth;

tPortDef.format.video.nStride = pAppData->nWidth;

tPortDef.format.video.nFrameHeight = pAppData->nHeight;

tPortDef.format.video.eColorFormat = OMX_COLOR_FormatYUV420SemiPlanar;

tPortDef.nBufferSize = (pAppData->nWidth * pAppData->nHeight * 3) >> 1;

eError = OMX_SetParameter (pHandle, OMX_IndexParamPortDefinition, &tPortDef);

tPortDef.nPortIndex = OMX_VIDENC_OUTPUT_PORT;

tPortDef.nBufferCountActual = IL_CLIENT_ENC_OUTPUT_BUFFER_COUNT;

tPortDef.format.video.nFrameWidth = pAppData->nWidth;

tPortDef.format.video.nFrameHeight = pAppData->nWidth;

tPortDef.format.video.eCompressionFormat = OMX_VIDEO_CodingAVC;

tPortDef.format.video.xFramerate = (pAppData->nFrameRate << 16);

tPortDef.format.video.nBitrate = pAppData->nBitRate;

eError = OMX_SetParameter (pHandle, OMX_IndexParamPortDefinition, &tPortDef);

So what would be the issue with dumped .h264 encoded file ?

I have also tried changing frame rate to -f 10, -f 15, -f 30, -f 60, -f 120 but Dumped .h264 file shows 30fps video only every time when i play it into VLC player.

It seems OMX_SetParameter API hard coded the frame rate value. Is it so ?

Seeking quick response.

Thanks in advance,

Shabbir Limdiwala


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>