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: GStreamer H.264 decoder

Part Number: AM5728

Hi,

I am using am5728 with ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05, here is something i meet.

first, i have read this link, and i know am5728 can use ducatih264dec to do the decode.

https://developer.ridgerun.com/wiki/index.php?title=Gstreamer_pipelines_for_AM572x

Currently I can testing on existing video files using duckih264dec and ducatih264enc, they work fine.

$(root)# gst-launch-1.0 --gst-debug=3 filesrc location=/usr/share/ti/video/TearOfSteel-Short-720x420.264 num-buffers=600 ! queue ! h264parse ! ducatih264dec ! queue ! filesink location=/home/root/h264dec-720.yuv -v

$(root)# gst-launch-1.0 filesrc location=/home/root/h264dec-720.yuv ! videoparse width=1280 height=720 format=nv12 ! video/x-raw, width=1280, height=720 ! ducatih264enc ! h264parse ! queue ! filesink location=/home/root/test.h264

but when i use the Webcam cat the video date, duckih264dec isn't work.

when i use avdec_h264 to software decode, they run fine, but software decoding brings about an increase in CPU load factor.

I saw a similar problem, but I didn’t see a specific question.

http://e2e.ti.com/support/processors/f/791/t/536235?AM572x-EVM-fails-to-decode-MP4-files#pi320966=3

if you know something about this, please let me know it.

Thanks.

  • Hi,

    By the way, here is my command for Webcam capture:

    $(root)# gst-launch-1.0 --gst-debug=3 rtspsrc location="rtsp://192.168.1.10:554/user=admin&password=&channel=1&stream=0.sdp?real_stream" num-buffers=600 ! queue ! rtph264depay ! h264parse ! ducatih264dec ! queue ! filesink location=/home/root/h264dec-720.yuv -v

  • Hi,

    Update here.

    use this command, we can cat the webcam successfully.

    $(root)# gst-launch-1.0 --gst-debug=3 rtspsrc location="rtsp://192.168.1.10:554/user=admin&password=&channel=1&stream=0.sdp?real_stream" ! rtph264depay ! 'video/x-h264, stream-format=byte-stream' ! h264parse ! ducatih264dec ! videoconvert ! kmssink scale=true

    if i use ubuntu set a rtsp-server, this command is ok.

    gst-launch-1.0 --gst-debug=3 rtspsrc location="rtsp://192.168.1.10:554/user=admin&password=&channel=1&stream=0.sdp?real_stream" ! rtph264depay ! h264parse ! ducatih264dec ! videoconvert ! kmssink scale=true

    I think my webcam is causing this difference, but I don't have more webcams to test. If someone has encountered the same problem,please let me know it.

    Thanks.

  • Hi CY,

    Unfortunately I don't know why your webcam is causing this difference. Please refer to this document for our support boundaries on gstreamer. I will close this thread for now. Our e2e community can always jump to respond and help you with your queries, even if I close this thread. 

    Regards,

    Manisha

  • Hi,

    Thanks, Manisha.