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: Video recording on EVM

Part Number: AM5728

Tool/software: Linux

Hello Gurus,

I am using AM5728 EVM kit and i am new to it. I am new to sitara processor.

I have booted the linux, now i want to record a video using a usb camera. I got some code through which i was able to capture pictures in different formats.

But i am not able to record a video even not able start live streaming. Please guide me i am very new to this u can say fresher.

Thanks in advance

Regards,

Hiren Gohel

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

    Please check this guide(Capture and Encode into a MP4 file.):
    processors.wiki.ti.com/.../Processor_Training:_Multimedia

    Hope this helps.

    BR
    Margarita

  • Hello Margrita,

    Thanks for reply.

    I have read the multimedia guide still i have many doubts regarding how to create pipeline?.

    Basically i wanted to record a video, but at initial i am trying to just open my camera device and it should show at lcd screen.

    I have connected a usb camera to evm to /dev/video1 and i have been trying few gstream commands like mention below,

    i ran this command after stopping the weston.

    gst-launch-1.0 v4l2src device=/dev/video1 waylandsink  --> for this command the lcd just blinks one time

    gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=1000 io-mode=4 ! 'video/x-raw, \
    format=(string)YUY2, width=(int)1280, height=(int)720' ! vpe num-input-buffers=8 ! queue ! kmssink   --> for this it is giving internal data flow error


    Thanks in advance.

    Regards,
    Hiren Gohel
    
    
  • Hello,

    Gstreamer is a multimedia framework which is linking component. The elements/components must be separate by pipe (!).

    Waylandsink and kmssink are elements for display.

    1. Case of waylandsink:

    Hiren Gohel said:
    gst-launch-1.0 v4l2src device=/dev/video1 waylandsink --> for this command the lcd just blinks one time

    This pipeline is wrong some elements are missing and the ! is missing also. In this case weston should be running also.

    Here is the command for running weston:

     /etc/init.d/weston start

    Here is examples. The both  pipelines demonstrate capture->display:

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

    gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=1000 io-mode=4 ! 'video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720' ! waylandsink use-drm=true

    2. Case of kmssink:

    Hiren Gohel said:
    gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=1000 io-mode=4 ! 'video/x-raw, \ format=(string)YUY2, width=(int)1280, height=(int)720' ! vpe num-input-buffers=8 ! queue ! kmssink --> for this it is giving internal data flow error

    The pipeline is correct but you should stop weston by this command:

     /etc/init.d/weston stop

     The reason for internal data flow error  could be  wrong caps filter for example(in case -4).

    The capsfilter should be change depending of what video source provides like resolution, format, etc.

    BR
    Margarita

  • Hello,

    Please if previous answer helps you to solved your issue verify the answer (This resolved my issue button).
    If no, let me know the results of the tests on your side

    Thank you!
    Best regards,
    Margarita
  • Thank You for your reply my issue is resolved.