Hello,
intended to capture and to encode composite video signal (VBS:1.0 Vpp, sync negative) from a video camera (Sony FCB-IX11 AP) in PAL format (460 TV lines, WIDE end, horizontal resolution) on a EVM6467T Rev.C board, I have made the following modifications to the encode demo (capture.c file):
- cAttrs.videoInput is assigned to Capture_Input_COMPOSITE value.
- VideoStd_720P_60 is replaced with VideoStd_D1_PAL (this is the standard detected by the demo).
I have modified and rebuilt the kernel to use TVP5147 instead of TVP7002 and also rebuilt dsplink and cmem modules.
After these changes, the “encode demo” seems to work when it is invoked, for instance, in these ways:
- encode -v file.264 -r 720x576
- encode -v file.264 -r 640x480
But it runs in a “sub-framing” way. This is the output text:
Encode demo ARM Load: 0% DSP Load: 19% Display Type: VGA Video Codec: H.264 BP Video fps: 12 fps Video bit rate: 171 kbps [...]
It always runs at 12 fps (I can seldom see 13 fps).When I play it with ffplay the output text is shown below:
Stream #0.0: Video: h264, yuv420p, 720x576, 25 fps, 25 tbr, 1200k tbn, 50 tbc
And obviously the images moves faster.
In order to try to solve this problem (“sub-framing”) I have search in support forums and I have tried the following modifications without any luck, the encode demo still runs in a “sub-framing” way:
· To run encode demo from nand flash instead of from nfs.
· To call Venc1_process twice. In this case I am not sure of my code modifications were right, I followed the changes in: http://e2e.ti.com/support/embedded/f/354/p/84434/298049.aspx#298049 but I hesitate to the way to create secondary buffers( hCapBuf2ndField, hDstBuf2ndField).
· To assign IVIDEO_INTERLACED to “params->inputContentType”in video.c file.
I have searched in the documentation and it seems that no interlaced video is supported in any codec (H.264, MPEG4). Is that true?, may it be the cause of “sub-framing”?.
Why is the header of the h.264 file set to 25 fps?, is it due to VideoStd_D1_PAL detected?
DVDSDK 3.10.00.19 is installed (with cgt6x_6.1.12).
I am stuck with that problem (“sub-framing”). Any advice will be appreciated.
Thank you very much in advance.
Nacho