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/DRA746: Some 1080 videos are playing in slow motion

Part Number: DRA746

Tool/software: Linux

Hi TI team,

Video 1080p and 60fps is not smooth issue still can be seen. Analyzed from our system team cpu is not high at that time, so it is not CPU loading issue. Can you please help analysis from TI end with gstreamer trace attached. Base on the limitation for attachment side, uploaded video to transfer.harman.com/.../NPeZzE9M3a0rcQSXHDPnFi

4137.log.txt
Please see the detail from our developer:
Played “Lamberghini 1080 x 1920.mp4” which is 1080p and 60fps on MMT board via pipeline below and playback is not smooth.
gst-launch-1.0 filesrc location=/tmp/USB1-1.2-sdb1/Lamberghini\ \ \ 1080\ x\ 1920.mp4 ! decodebin ! videoconvert ! waylandsink

We found a lot of buffer from decoder dropped in videoconvert plugin, here is log which is from attachment shows buffer dropped.
0:00:00.776962844 [333m 1016[00m 0xb54027b0 [37mDEBUG [00m [00m basetransform gstbasetransform.c:2038:default_submit_input_buffer:<videoconvert0>[00m handling buffer 0x1f4678 of size 3110400, PTS 0:00:00.250000000 and offset NONE
0:00:00.777206675 [333m 1016[00m 0xb54027b0 [37mDEBUG [00m [00m basetransform gstbasetransform.c:2380:gst_base_transform_chain:<videoconvert0>[00m dropped a buffer, marking DISCONT

We tried to disable QoS in videoconvert, the playback is smooth by playing video via pipeline below:
gst-launch-1.0 filesrc location=/tmp/USB1-1.2-sdb1/Lamberghini\ \ \ 1080\ x\ 1920.mp4 ! decodebin ! videoconvert qos=false ! waylandsink

It seems decoded buffer from decoder is late and resulting qos event to drop buffers in videoconvert, and CPU usage is only around 30% while playing that video.
One more comment, there are lots of services are running on our board, if stops some of them, the performance of playing that video would be got improved. However, no matter stop services or not, the CPU usage is not high.

  • Hi Vicky,

    I have received this stream from Harman Bangalore team and we have been discussing on this issue. 

    Harman Bangalore team has mentioned they have seen this working with some old binaries(Vision-SDK3.03), so we have asked them to check on what conditions the playback is smooth.  They have mentioned on 7inch display system case,if they disable a service DSPIPC then it shows smooth playback.

    >>One more comment, there are lots of services are running on our board, if stops some of them, the performance of playing that video would be got improved. >>However, no matter stop services or not, the CPU usage is not high.

    Can you identify which service is causing the issue? and what hardware IPs are used for that service?

    Thanks

    Ram

  • Hi Ram,

    I see the loop mail, DSP said there is no issue from thier side, so system team ask Media to check again whether it is decoder issue. Post part of the mail:
    • Underflow seen at the input to the decoder which might have resulted in not sending the decoded data to the output at the right time. Can media team confirm on this point if there is any decoder underflow seen?
    • Other reason could be the issue related to video PTS is ahead/lagging to reference clock(audio PTS) resulting in frame drops. Again media team needs to confirm this.


    From Media side:
    Developer stopper tuner, the playback performance is got much improved.
    But as mentioned in last section, we hope to know why the playback is smooth if we set qos to false without stopping any services? Thanks.

  • Hi Ram,

    Any comments? Thanks.

  • Hi Vicky,
    We have been discussing this issue with Harman Bangalore team.
    Latest conclusion from our discussion is DSP service's presence is causing the video playback to slow down.
    So we have recommended few experiments to Bangalore team to tune DSP.

    Thanks
    RamPrasad