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: Gstreamer pipeline stops

Part Number: AM5728

Tool/software: Linux

Hi

Is there any limitation on gstreamer encode plugin in Linux SDK 2.0 ?

I am running the following pipeline with different num-buffer but the pipeline stops after 24 seconds.

gst-launch-1.0 -e v4l2src device=/dev/video1 num-buffers=-1 io-mode=4 ! 'video/x-raw, \
format=(string)YUY2, width=(int)800, height=(int)600, framerate=(fraction)25/1' ! vpe num-input-buffers=8 ! tee name=t  ! \
 queue ! ducatih264enc bitrate=1200 ! queue ! h264parse ! qtmux ! filesink location=1.2M-800x600.h264 t. ! queue ! kmssink

How to force the pipeline to run forever? (regardless of disk size limitations)

Thanks

  • Hello,

    Could you try without setting num-buffers. The -1 value means unlimited, so there is no point to set it since it is the default value.
    Could you try to run only encoding or only display? Do you observe the same issue?

    Please check this guide for examples:
    processors.wiki.ti.com/.../Processor_Training:_Multimedia

    BR
    Margarita

  • Thanks Margarita

    I ran the only display pipeline and it was OK.

    I am running encode pipeline without display and it is running OK too.

    I just wanted to know if there is some evaluation limit on these encoders. 

    Maybe the problem is with my file system or something I could not figure out yet.

  • Hello,

    Could you post the both pipelines that you tried?

    Could you set kmssink's properties sync=false scale=false (kmssink scale=false sync=false) .

    BR
    Margarita
  • Hi

    Display only pipeline:

    I ran this pipeline for around 15 minutes without problem (I terminated it):

    gst-launch-1.0 v4l2src device=/dev/video1 io-mode=4 ! 'video/x-raw, format=(string)YUY2, width=(int)800, height=(int)600' ! vpe num-input-buffers=8 ! queue ! kmssink
    

    Encode Only pipeline:

    I let this one run for 15 minutes too:

    gst-launch-1.0 -e v4l2src device=/dev/video1 io-mode=4 ! 'video/x-raw, \
    format=(string)YUY2, width=(int)800, height=(int)600, framerate=(fraction)25/1' ! vpe num-input-buffers=8 ! tee name=t  ! \
     queue ! ducatih264enc bitrate=1200 ! queue ! h264parse ! qtmux ! filesink location=/media/USB/1.2M-800x600-2.h264

    I used a USB flash for saving the file. There was no problem.

    Encode and Display together:
    The following pipeline also runs OK without problem (I terminated it after 20 minutes) :

    gst-launch-1.0 -e v4l2src device=/dev/video1 io-mode=4 ! 'video/x-raw, \
    format=(string)YUY2, width=(int)800, height=(int)600, framerate=(fraction)25/1' ! vpe num-input-buffers=8 ! tee name=t  ! \
     queue ! ducatih264enc bitrate=1200 ! queue ! h264parse ! qtmux ! filesink location=/media/USB/1.2M-800x600-4.h264 t. ! queue ! kmssink scale=false sync=false

    Thanks a lot for the help.

  • Hello,

    I am glad that this issue is solved.

    BR
    Margarita