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.

AM5728: H.264 encoding problem

Part Number: AM5728
Other Parts Discussed in Thread: BEAGLEBOARD-X15,

I have AM57xx evaluation board of following model(boot log entries).

Model: TI AM5728 BeagleBoard-X15
Board: AM572x EVM REV A.20

Followed below steps to verify H.264 encoding on AM57xx evaluation board using IVA-HD subsystem. As the evaluation board doesn't have display and camera module, used filesrc and filesink to verify H.264 encoding.

Step 1: Downloaded video files from downloads.ridgerun.com/.../video_examples_AM5728.tar.gz

Step 2: Executed below command to decode H.264 encoded video:

root@am57xx-evm:~# gst-launch-1.0 filesrc location=am5728-gst-tests/video-samples/TearOfSteel-Short-720x420.h264 num-buffers=600 ! queue ! h264parse ! ducatih264dec ! queue ! filesink location=am5728-gst-tests/tests-outputs/jp-h264dec-720.yuv -v

Observation: Decoded video was played using vooya player(in ubuntu PC) but output video was in gray scale mode and all rgb color was aligned on the edges of video frame.



Step 3: By using the decoded video in step 2 as filesrc, executed below command to encode yuv raw video using H.264 encoder :

root@am57xx-evm:~# gst-launch-1.0 filesrc location=am5728-gst-tests/tests-outputs/jp-h264dec-720.yuv ! videoparse width=896 height=528 format=nv12 ! ducatih264enc intra-interval=4 ! queue ! filesink location=am5728-gst-tests/tests-outputs/jp-test-yuvfile-h264enc.h264

Observation: Encoded video was played using VLC player(in ubuntu PC) but output video was seen as rgb horizonatal and inclined bars only.


Can you tell me why the video data is not proper after decoding and encoding.


gstreamer pipeline which I have used for encoding and decoding is not proper?

  • The software team have been notified. They will respond here.
  • Hello,

    The tests-outputs folder is empty.
    However here is my observations:
    1. when I tried pipeline from step 2 it seems that the output of the decoder was fine.
    2. when I used pipeline (step 3) and displayed the output on the board I observed green frames.

    I made same changes in the encoding pipeline.
    Here are the steps:
    1.Decoding
    gst-launch-1.0 filesrc location=TearOfSteel-Short-720x420.264 num-buffers=400 ! queue ! h264parse ! 'video/x-h264' ! ducatih264decvpe ! 'video/x-raw,format=(string)NV12,width=720,height=420' ! queue ! filesink location=jp-h264dec-720.yuv
    2.Encoding
    gst-launch-1.0 filesrc location=jp-h264dec-720.yuv ! videoparse width=720 height=420 format=nv12 ! vpe ! ducatih264enc ! filesink location=output.h264
    3.Decode->Display
    gst-launch-1.0 filesrc location=output.h264 ! typefind ! h264parse ! ducatih264decvpe ! kmssink -v

    Hope this helps.

    BR
    Margarita