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.

Observing high CPU for H264/1080p24 contents

Hi All,

I have MP4 and aac file. I play these two files by using following gstreamer pipeline.

         gst-launch filesrc location=h264_1080p24_v.mp4 ! qtdemux \
         ! queue ! gstperf print-arm-load=1 print-fps=1 ! h264parse ! omx_h264dec ! omx_scaler ! omx_ctrl ! omx_videosink sync=true  \
        filesrc location=Test_Audio.aac \
         ! aacparse ! faad ! alsasink sync=true \

I'm seeing CPU usage is varying around 55% (in the range 50-60%) and at some point it touches to 100%.

Is increase in CPU to 60% for high resolution content normal? Are there any other gstreamer elements which will help to bring down CPU usage?

Thanks,

Rajnikant

  • Hello,

    "

    Is increase in CPU to 60% for high resolution content normal?

    "

    If you play pipeline with one video source + audio you will observe that the load of the CPU is low:

    gst-launch -v filesrc location=sample2.mp4 ! qtdemux name=demux demux.audio_00 ! queue !  faad ! alsasink demux.video_00 ! queue ! h264parse ! omx_h264dec ! omx_scaler ! omx_ctrl display-mode=OMX_DC_MODE_1080P_60 ! gstperf ! omx_videosink

    but you are playing one pipeline with file two sources one of each is 1080p video at the same time, so it is normal to observe CPU load up to 40%.

    Best Regards,

    Margarita


  • Thanks Margarita.

    I tried playing both these files individually. For h264/1080p video CPU usage fall down to 25%.

    As I observed, the CPU usage is more for audio file playback.Following are pipelines:

    AAC audio playback (Observed CPU 30-40%):

    gst-launch filesrc location=test_a1.aac ! aacparse ! gstperf print-arm-load=1 ! faad ! alsasink sync=true

    AC3 audio playback (Observer CPU 10%):

    gst-launch filesrc location=test_a2.ac3 ! 'audio/x-ac3, framed=(boolean)false'  ! ac3parse ! a52dec ! audioconvert ! gstperf print-arm-load=1 ! alsasink sync=true

    1. Is it normal Audio playback taking more CPU ?

    2. For ac3 audio playback, CPU usage stays below 10% most of the time but peaks of 100% CPU usage observed after regular time interval (every 90-110 secs).

    Thanks,

    Rajnikant