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.

RTOS/TMS320C6678: How to encode interlaced video with H.264 encoder(H264 High Profile Encoder Version 01.00.01.04)

Part Number: TMS320C6678

Tool/software: TI-RTOS

Hello all:

I remove the tftp module from the demo in  the mcsdk_video_2_2_0_46\examples\transcode , add the SRIO drive module and rtp module into the project. The interlaced video (PAL 720*576 25fps) comes from a camera, and then is sent into DDR3 through SRIO.  After the interlaced video is encoded by DSP, the generated stream is packeted with RTP protocol and sent out to PC. I choose mplayer to play the video. When I choose the following params

inputContentType = IVIDEO_INTERLACED 

interlaceCodingType = 4

inputBufDesc->topFieldFirstFlag = 0

captureWidth =720

inputwidth =720

inputheight =288,

the pictures showed in the mplayer are 720*288, not the expected 720*576.

when I choose inputContentType = IVIDEO_PROGRESSIVE, no difference can be seen on the mplayer.

The question is what I need to do to make the interlaced video be encoded by the h.264 encoder.

Any suggestion will be appreiated!

Thanks!

  • I've forwarded your query to the software experts. Their feedback should be posted here.

    BR
    Tsvetolin Shulev
  • Hi JunYi, could you attach a small H.264 clip that we can analyze?. Or do you have any video analyzer, such as Elecard?. Main idea is to see if the output video is actually marked as Interlaced or as progressive. Did you try another player aside of mplayer?

    thank you,

    Paula

  • Hi Paula,
    Thanks for your reply. Follow your idea, I choose Elecard to analyse the output video. The output video is marked as interlaced when setting inputContentType equals to IVIDEO_INTERLACED, while is marked as progressive when setting inputContentType equals to IVIDEO_PROGRESSIVE. Does inputContentType specified scan line type for the output video? Before followed your advice, I just thought inputContentType was a parameter for input video.
    Besides, I want to know what I need to do to play the entire interlaced video (PAL, 720*576), not just one field of the frame(720*288). I choose SDP protocol file to open Mplayer and play the output video.Does Mplayer can play entire interlaced frame with SDP protocol file?
  • Hi JunYi, thanks for sharing your update. My suggestion would be to try with different players. Mplayer should be capable of playing Interlaced, and progressive, but I haven't tried it in a while. So I don't remember if you need to do a special setup.. Maybe you can try VLC? or decode the clip with our C66x decoder, or a PC decoder such as ffmpeg and inspect the YUV?

    Thank you,

    Paula

      

  • Hi Paula, thanks for your reply. I will follow your suggestion.

    Best Regards
    JunYi