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.

AM62L-PROCESSOR-SDK: Query on Playing Video in Weston (MP4 Format)

Part Number: AM62L-PROCESSOR-SDK

Tool/software:

Could you please provide guidance on how to play a video in Weston using the .mp4 format? Specifically, would like to know the recommended methods, supported players, and any dependencies or configurations required to ensure smooth playback within the Weston environment in RGB Display

I have tried playing a video using the framebuffer, and it works without any issues. Could you confirm whether the CPU supports video playback within Weston, and if so, what additional configurations might be required?

Looking forward to your response.

Regards,
Dheeraj

  • Hi Dheeraj,

    Have you tried to play the *.mp4 file with Gstreamer and waylandsink as the video-sink? Waylandsink is based on weston compositor. 

    Please share the pipeline that you are trying to test.

    Best Regards,

    Suren

  • Hi Suren .

    Sorry for the delay. The Command i used to play video in frame buffer is "gst-launch-1.0 filesrc location=1.mp4 ! decodebin ! videoscale ! videoconvert ! video/x-raw,width=800,height=480 ! fbdevsink device=/dev/fb0" .

    Best Regards,
    Dheeraj

  • Hi Dheeraj,

    Replacing the fbdevsink to waylandsink or kmssink driver-name=tidss work?

    Best Regards,

    Suren

  • Hi Suren,

    Sorry for the delay , and i have unknowingly "clicked this resolved my issue"
    I have tried the commands that you shared but issue still seems to exist . Below given are the kernel prints i received while giving those commands.

    gst-launch-1.0 filesrc location=/bbb.mp4 ! decodebin ! videoscale ! videoconvert ! video/x-raw,width=800,height=480 ! kmssink driver-name=tidss
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
    Redistribute latency...
    Redistribute latency...
    Redistribute latency...
    Redistribute latency...
    ERROR: from element /GstPipeline:pipeline0/GstKMSSink:kmssink0: GStreamer encountered a general resource error.
    Additional debug info:
    /usr/src/debug/gstreamer1.0-plugins-bad/1.22.12/sys/kms/gstkmssink.c(2032): gst_kms_sink_show_frame (): /GstPipeline:pipeline0/GstKMSSink:kmssink0:
    drmModeSetPlane failed: Permission denied (13)
    ERROR: pipeline doesn't want to preroll.
    Setting pipeline to NULL ...
    ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0: Internal data stream error.
    Additional debug info:
    /usr/src/debug/gstreamer1.0-plugins-good/1.22.12/gst/isomp4/qtdemux.c(6996): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0:
    streaming stopped, reason error (-5)
    ERROR: pipeline doesn't want to preroll.
    Freeing pipeline ...
    root@am62lxx-evm:~# gst-launch-1.0 filesrc location=/bbb.mp4 ! decodebin ! videoscale ! videoconvert ! video/x-raw,width=800,height=480 ! waylandsink driver-name=tidss
    WARNING: erroneous pipeline: no property "driver-name" in element "waylandsink"
    root@am62lxx-evm:~# gst-launch-1.0 filesrc location=/bbb.mp4 ! decodebin ! videoscale ! videoconvert ! video/x-raw,width=800,height=480 ! waylandsink
    Setting pipeline to PAUSED ...
    Failed to set pipeline to PAUSED.
    Setting pipeline to NULL ...
    Freeing pipeline ...


    And FYI : The previosly shared command where i was able to run the video was by disabling the weston (systemctl stop weston) .


    Regards,
    Dheeraj

  • Hi Dheeraj,

    driver-name=tidss is only for DRM based driver (kmssink).

    Also, waylandsink can be used directly as the video-sink. 

    In order to run the pipeline with kmssink, you have to stop weston. If I understand, this is working fine, correct? 

    drmModeSetPlane failed: Permission denied (13)

    This occurs when weston is already running in the background. Please stop weston and give it a try.

    Best Regards,

    Suren