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.

AM5718: about 5718 gstreamer for h264

Part Number: AM5718


hi 

I have some questions  need help,about gstreamer,I  have a test on my device :AM5718 ,convert nv12 to h264 by cmd:

gst-launch-1.0 filesrc location=/opt/dgp/web/video/jpeg3.nv12 ! videoparse width=1280 height=640 format=nv12 framerate=12/1 ! video/x-raw, width=1280, height=640 ! ducatih264enc  inter-interval = 1 level=51 profile=100 bitrate=16000 ! filesink location=/opt/dgp/web/video/test.h264

it works. from here I try to write some C code to replace the cmd:

 

but some error printf:

line 81 is TRUE,  I am sure some error in code, :have a little knowledge of gstreamer. need help

Thank.