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.

Linux: AM5728 SDK03.01 H264 encoded error!

Tool/software: Linux

Hi,

TI,

I use the linux-4.4.19 from the sdk-03.01,then I run the example of H264 encode like that :

gst-launch-1.0 filesrc location=/usr/share/ti/video/airshow_p352x288.yuv ! videoparse width=352 height=288 format=nv12 ! ducatih264enc ! filesink location=/home/root/airshow_p352x288.h264

gst-launch-1.0 playbin uri=file:///home/root/airshow_p352x288.h264 video-sink=waylandsink 

I found the airshow_p352x288.h264 is not right,it will show me that:

But if I use  linux-4.4.12 from the sdk-03.00,it is OK!

What the reason it is?

BR,

vefone

  • Hello,

    Could you try:

    gst-launch-1.0 filesrc location=airshow_p352x288.yuv ! videoparse width=1280 height=720 format=nv12 ! vpe ! ducatih264enc ! filesink location=airshow.h264

    gst-launch-1.0 filesrc location=airshow.264 ! typefind ! h264parse ! ducatih264decvpe ! kmssink -v

    Here are example pipelines:
    processors.wiki.ti.com/.../Processor_Training:_Multimedia

    PSDK 3.0 includes gstreamer version 1.2 since 3.1 includes gstreamer version 1.6.

    BR
    Margarita
  • Hi,
    Margarita,I run that:
    gst-launch-1.0 filesrc location=/usr/share/ti/video/airshow_p352x288.yuv ! videoparse width=352 height=288 format=nv12 ! vpe ! ducatih264enc ! filesink location=/home/root/airshow_p352x288.h264
    It is OK!
    Why I need to add the "! vpe" to the command?
    the command in the /usr/bin/runIvahdH264Enc.sh do not have the "! vpe",so it is wrong!
    BR,
    vefone
  • Hello,

    "gst-launch-1.0 filesrc location=352x288.yuv ! videoparse width=1280 height=720 format=nv12 ! vpe ! ducatih264enc ! filesink location=airshow.h264"

    In my case was for scaling and CSC.

    BR
    Margarita

  • Hi,

    Margarita,

    if I do not want to add "! vpe" to the command,any other way?Beacase I test on the PSDK3.0,I do not need to add the "! vpe".

    Now I need the vpe to deinterlace.If I use to vpe to join H264 encoded,it may be have  poor performance.

    BR,

    vefone