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.

Compiler/AM5728: GStreamer video codec commands

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

Tool/software: TI C/C++ Compiler

Hai Sir,

I am using Beagleboard-X15 (AM5728) with Arago 2019.05 am57xx-evm SDK and i have some doubts.

1.Can i use beagleboard-x15(Arago 2019.05 am57xx-evm SDK arago loaded through BalenaEtcher ) sd card in AM5728EVM Board it will works or not.

2.while decoding AM5728 i am using Below commands(HIKVISION IP CAMERA (O/P:H264 Compressed video) to AM5728 Decoder Unit) and some frames are missing in decoder output where as camera output speed is 8Mbps through wireshark calculated around 6.5Mbps any changes to insert for in command for frames missing

HIKVISION camera:1920x1080(25fps)

a. sudo ifconfig eth1 10.10.11.85 netmask 255.255.254.0 up

b.export RTSP_PATH=rtsp://admin:password@10.10.11.84:554

c.Less delay(80ms) & less frmaes missing command: Gst-launch-1.0 -v rtsp location="$RTSP_PATH" latency=0 ! rtpjitterbuffer ! rtph264depay ! h264parse ! ducatih264dec ! vpe ! videoconvert ! kmssink

d.More delay(200ms) & More frmaes missing command: Gst-launch-1.0 -v rtsp location="$RTSP_PATH" latency=0 ! 'application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtpjitterbuffer ! rtph264depay ! h264parse ! ducatih264dec ! vpe ! 'video/x-raw, width=1920, height=1080, framerate=25/1, videoconvert ! kmssink

could you tell me any changes in command for less frame rate and i added queue also same thing showing

3.all a,b,c commands i want insert and run through c code using below things but error occurs

code:
#include <gst/gst.h>
#include <stdio.h>

int main(int argc, char *argv[])
{
GstElement *pipeline;
GstBus *bus;
GstMessage *msg;

const gchar *nano_str;
guint major, minor, micro, nano;


/* Initialize GStreamer */
gst_init (&argc, &argv);

gst_version (&major, &minor, &micro, &nano);

printf ("GStreamer Version: %d.%d.%d\n",major, minor, micro);


/* Build the pipeline */

pipeline = gst_parse_launch("rtsp location="rtsp://admin:password@10.10.11.84:554" latency=0 ! rtpjitterbuffer ! rtph264depay ! h264parse ! ducatih264dec ! vpe ! videoconvert ! kmssink", NULL);


/* Start playing */

gst_element_set_state (pipeline, GST_STATE_PLAYING);

/* Wait until error or EOS */
bus = gst_element_get_bus (pipeline);
msg = gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE, GST_MESSAGE_ERROR | GST_MESSAGE_EOS);

/* Free resources */
if (msg != NULL)
gst_message_unref (msg);
gst_object_unref (bus);
gst_element_set_state (pipeline, GST_STATE_NULL);
gst_object_unref (pipeline);
return 0;
}


This is how you could build it on the board in case your .c is named capture.c
gcc capture.c -o capture `pkg-config --libs --cflags gstreamer-1.0`

this is how to run it:
/etc/init.d/weston stop
./capture

not working error occurs beagleboard-X15:
error: gcc: error: pkg-config --libs --cflags gstreamer-1.0: no such file or Directory


4.actually how to run program on power on only without any login and password of arago sdk (poweron how to run ./capture (/etc/init.d/)

  • Part Number: AM5728

    Tool/software: TI C/C++ Compiler

    Hai sir,

    I am using AM5728 Custom board with reference of AM5728 Evaluation module,

    I don't want to use SD-Card (Without SD-Card) how to test either Encoder/Decoder (like bare Metal) code?

    Previously i used arago SDK with SD-Card it's working fine but i don't want to use SD-Card and i will use QSPI Flash with less space i will use bare metal code in either encoder/decoder(two board with me)

    only i want use these things below command through CCS easily we can do or not give me some suggestions

    command: Gst-launch-1.0 -v rtsp location="$RTSP_PATH" latency=0 ! 'application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtpjitterbuffer ! rtph264depay ! h264parse ! ducatih264dec ! vpe ! 'video/x-raw, width=1920, height=1080, framerate=25/1, videoconvert ! kmssink

     

    Please could you give me some suggestions how to run codec with QSPI flash (64MB)

    Thanking You,

    Regards,

    Ramachandra

  • Hello Ramachandra,

    First, I recommend you to please review the following multi-media page. The software stack explains all the components needed to interact with the IVA. I do not think you will be able to fit all the necessary components into the QSPI flash. I am wondering if you could please explain why you would like to boot Kernel from QSPI instead of SD/EMMC/NFS.  

    Lastly, if you are looking for examples of bare metal code, please refer to the following example projects: example1 and example2. Please keep in mind that the example projects do not utilize gstreamer framework. As mentioned in the following document, we do not own/maintain gstreamer. TI only created the GST-Ducati plugins and we only support TI plugins. For more questions on implementing the gstreamer c code, please refer to the gstreamer community.

    Regards,
    Krunal 

  • Krunal Bhargav34 said:

    Hello krunal,

    In our custom board only QSPI flash available, previously i worked in AM5728 evaluation module with SD Card.

    Using Gstreamer i have video decode done using Below commands:

    Gst-launch-1.0 -v rtsp location="$RTSP_PATH" latency=0 ! 'application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtpjitterbuffer ! rtph264depay ! h264parse ! ducatih264dec ! vpe ! 'video/x-raw, width=1920, height=1080, framerate=25/1, videoconvert ! kmssink


    But know i have only QSPI with very less space above command based on arago SDK properly worked,

    know i want to do in QSPI flash all video decoder gstreamer things any other process using less space to do

    Thanking you ,

    Ramachandra

    Hello Ramachandra,

    First, I recommend you to please review the following multi-media page. The software stack explains all the components needed to interact with the IVA. I do not think you will be able to fit all the necessary components into the QSPI flash. I am wondering if you could please explain why you would like to boot Kernel from QSPI instead of SD/EMMC/NFS.  

    Lastly, if you are looking for examples of bare metal code, please refer to the following example projects: example1 and example2. Please keep in mind that the example projects do not utilize gstreamer framework. As mentioned in the following document, we do not own/maintain gstreamer. TI only created the GST-Ducati plugins and we only support TI plugins. For more questions on implementing the gstreamer c code, please refer to the gstreamer community.

    Regards,
    Krunal