Hello Everybody !!!
I've succeed in recording analogical video (Component ) in 720p60, 1080p30 and 1080i60. I use DM368 processor on evaluation board from Spectrum Digital.
The video files created ( only H264ES frame ) are displayed with Linux Player without any error: the picture is full displayed. This test demonstrate the video is good recorded.
When I play back these files, the output video displays a vertical black lines: 24 blanking pixels at each beginning of line and so not the full picture is displayed. Lost of 24 pixels at end of each line ( shift ). In the program I've just noticed that the black pixel are issued from H264 decoder ( vdec2_process() function ) .
I use sample programs encode and deocde program supplied with TI DVSDK package :
ti-dvsdk_dm368-evm_4_02_00_06
I succeed to delete vertical black line by modifying the buffer returned by vdec2_process() :
UInt8 *ptrVidOut;
int VideoLine=0;
BufferGfx_resetDimensions(hBufVideoForDisplay);
Vdec2_process(g_hVd2, hBufVideoH264_1080, hBufVideoForDisplay);
ptrVidOut = Buffer_getUserPtr( hBufVideoForDisplay );
for(VideoLine=0; VideoLine<1080*2; VideoLine++)
memcpy( &ptrVidOut[VideoLine*1984], &ptrVidOut[VideoLine*1984+24], 1920 );
Display_put(g_HandleDisplay, hBufVideoForDisplay);
But this memcpy take a lot of time !!!!
Has somebody better solution to display directly the good region of the buffer retrun by Vdec2_process ?