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/DRA74: Waylandsink: Videoplay back is hanging in trick mode

Part Number: DRA74

Tool/software: Linux

Hello Team, 

We use custom h/w and software based on DRA746 and PSDK 3.03

We are facing issue with trick mode for couple of files. Normal playback is fine, but trick mode is failing.

I have tried with gst-play as well and trick mode hanging with this as well.

Sharing the file through portal.

One more query related to video hand issues:

As we have multiple  video hang issues. Upon further debugging, it is found that hang is happening in gst_buffer_pool_acquire_buffer in hardware video decoder plugin for all hanging trick modes. We observed that even if normal playback is done, the video hangs after few seconds at the same function “gst_buffer_pool_acquire_buffer” inside hardware video decoder.

Please provide your inputs for this as well.

Regards,

Ikshwaku

  • Hi Ikshwaku,
    I used gst-play-1.0 to reproduce the issue.
    Trick mode for WildLife.wmv and HD_natgeo02-1080x1440p.wmv reproduced the issue, display looks freeze. After the analysis decoder is not getting
    any data to process further.
    This has been answered in the thread
    e2e.ti.com/.../736662

    You can check this with export GST_DEBUG=ducati:6 before starting trick-mode testing for these two. You will say, when there is freeze, you don't see any prints in ducati
    because no data is sent to decoder. Issue seems to be with asfdemuxer.

    The behavior was same for these two streams with software decoder.

    I will have a look into other two streams.

    Thanks
    Ram
  • Hi Ram,

    Kindly reminder!

    Is there any update about the other two streams?

    Regards,

    Lingrong

  • Hello Ram,

    Any update for this issue?

    Regards,
    Ikshwaku
  • Hi Ikshwaku,
    I could not look into this .
    I tried to reproduce this for the stream 1280x720_30FPS_5000kbps_Divx.avi with gst-play-1.0 but did not reproduce.
    Are you able to see the issue for this stream with HMI or with gst-play also.
    Please share the duration when this issue happens for this stream or an observation video.

    Thanks
    Ram
  • Hi Ikshwaku,
    The stream 144_avi_h264_aaclc_43_30.AVI is just 8 seconds in duration. Can you please try to check at what duration it hangs consistently?
    Is the hang reproduced for every time during the 8s playback?

    Thanks
    Ram
  • Hello Ram,

    I am not able to play 144_avi_h264_aaclc_43_30.AVI and 1280x720_30FPS_5000kbps_Divx.avi video files with gst-play and playbin pipe line.
    Getting following errors:

    Now playing /tmp/USB1-1.4-sda1/1280x720_30FPS_5000kbps_Divx.avi
    WARNING No decoder available for type 'video/x-msvideo'.
    WARNING debug information: /home/buildserver/work/jenkins/var/lib/jenkins/workspace/MMT2020_ADV_RELEASE_APPLINUX_R4-1/project/elina-distro/build-cpm-mmt-2020/tmp/work/cortexa15hf-vfp-neon-elina-linux-gnueabi/gstreamer1.0-plugins-base/1.6.3-r0/gst-plugins-base-1.6.3/gst/playback/gsturidecodebin.c(939): unknown_type_cb (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0
    ERROR Your GStreamer installation is missing a plug-in. for file:///tmp/USB1-1.4-sda1/1280x720_30FPS_5000kbps_Divx.avi
    ERROR debug information: /home/buildserver/work/jenkins/var/lib/jenkins/workspace/MMT2020_ADV_RELEASE_APPLINUX_R4-1/project/elina-distro/build-cpm-mmt-2020/tmp/work/cortexa15hf-vfp-neon-elina-linux-gnueabi/gstreamer1.0-plugins-base/1.6.3-r0/gst-plugins-base-1.6.3/gst/playback/gsturidecodebin.c(1006): no_more_pads_full (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0:
    no suitable plugins found:
    /home/buildserver/work/jenkins/var/lib/jenkins/workspace/MMT2020_ADV_RELEASE_APPLINUX_R4-1/project/elina-distro/build-cpm-mmt-2020/tmp/work/cortexa15hf-vfp-neon-elina-linux-gnueabi/gstreamer1.0-plugins-base/1.6.3-r0/gst-plugins-base-1.6.3/gst/playback/gstdecodebin2.c(4555): gst_decode_bin_expose (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0:
    no suitable plugins found:
    Missing decoder: Audio Video Interleave (AVI) (video/x-msvideo)

    Reached end of play list.


    Regards,
    Ikshwaku
  • Hello Ram,

    It may be some problem with build, I have tried with other build there I am able to play the videos with gst-play and playbin pipeline.

    With gst-play command:
    This video 144_avi_h264_aaclc_43_30.AVI is hanging at 7.1 sec.
    And 1280x720_30FPS_5000kbps_Divx.avi is hanging at 4.4, 6, 14 sec.


    Regards,
    Ikshwaku
  • Hi Ikshwaku,
    I could reproduce the issue with 1280x720_30FPS_5000kbps_Divx.avi with gst-play trick-play options
    I saw issue with 144_avi_h264_aaclc_43_30.AVI with gst-play but it is after decoding complete.

    I am seeing

    root@dra7xx-evm:~# gst-play-1.0 --videosink waylandsink harman-hang/144_avi_h264_aaclc_43_30.AVI
    Press 'k' to see a list of keyboard shortcuts.
    Now playing /home/root/harman-hang/144_avi_h264_aaclc_43_30.AVI
    0:00:07.1 / 0:00:08.0
    Reached end of play list.

    gst-play is not exiting.
    but this also not very consistently reproduced.

    Thanks
    Ram
  • Hello Ram,

    Could you please look update further update about this issue?

    Regards,
    Ikshwaku
  • Hi Ikshwaku,
    Since the issue is happening after decode complete, I am not able to get where the issue is. Somewhere in the gst-pipeline it is waiting for some signal it looks like. I could launch a new gst-play from other thread and it worked.

    TI has SDK based on gstreamer 1.12.2, I will try to reproduce the issue on this version and check if the issue exists or not.

    Thanks
    Ram
  • Hi Ikshwaku,

    Can you please apply this patch on gstvpe and test trcik-play for 144_avi_h264_aaclc_43_30.AVI?

    vpe_EOS_handle.zip

    EOS event was not handled properly in gst-vpe. With this patch applied, I am not able to reproduce the hang with gst-play.

    Please test and let me know the feedback.

    Thanks

    Ram

  • Hello Ram,

    After applying the patch issue is not seen for 144_avi_h264_aaclc_43_30.AVI.

    Please check for 1280x720_30FPS_5000kbps_Divx.avi . For this file issue is reproducible with both HMI and gst-play..

    Regards,
    Ikshwaku
  • Hi Ikshwaku,

    Thanks for the confirmation. I will reproduce the issue first for 1280 stream and update you.

    Ram