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.

AM5728: H.264 video playback issue

Part Number: AM5728

Hai sir,

I am using Beagleboard x15 and am572x sdk.

i am referring the below website:


I made same changes in the encoding pipeline.
Here are the steps:
1.Decoding
gst-launch-1.0 filesrc location=TearOfSteel-Short-720x420.264 num-buffers=400 ! queue ! h264parse ! 'video/x-h264' ! ducatih264decvpe ! 'video/x-raw,format=(string)NV12,width=720,height=420' ! queue ! filesink location=jp-h264dec-720.yuv
2.Encoding
gst-launch-1.0 filesrc location=jp-h264dec-720.yuv ! videoparse width=720 height=420 format=nv12 ! vpe ! ducatih264enc ! filesink location=output.h264
3.Decode->Display
gst-launch-1.0 filesrc location=output.h264 ! typefind ! h264parse ! ducatih264decvpe ! kmssink -v

1st and 2nd options properly converting.

in 3 option Decode->Display, below showed error occurring

ssive, framerate=(fraction)0/1
ERROR: from element /GstPipeline:pipeline0/GstKMSSink:kmssink0: GStreamer encountered a general resource error.
Additional debug info:
../../../gst-plugins-bad-1.14.4/sys/kms/gstkmssink.c(1625): 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 ...
Freeing pipeline ...
root@am57xx-evm:~/video-samples# uname -a
Linux am57xx-evm 4.19.38-g4dae378bbe #1 SMP PREEMPT Sun Jul 7 03:51:33 UTC 2019 armv7l GNU/Linux
thanking you sir,

Regards,

Ramachandra,

  • Hi Ramachandra,

    Thank you for your patience.

    You must first stop Weston.  The "permission denied" error is coming from trying to takeover the display from Weston.

    Run: /etc/init.d/weston stop

    Then try executing your playback pipeline again.  I verified all three steps work on my end.

    Alternatively, you can keep Weston running if the video is piped to waylandsink.  This works fine with the demo videos we provide on the SDK filesystem, but the video created with your sequence above results in a video that plays too fast.  I'm not a gstreamer expert, so cannot provide much insight into adding or preserving timing information in your encoded h264 file.

    Regards,
    Mike