intel / gstreamer-media-SDK

GNU Lesser General Public License v2.1
90 stars 49 forks source link

Is there any specific media stack recipes(version) in order for composition with zerocopy to work? #190

Open vt911001 opened 3 years ago

vt911001 commented 3 years ago

Hi,

I have compiled this library with the embedded mediasdk that comes with OpenVINO 2020.4 on Coffeelake based system(i7-9700). FYI, I have experienced significant overhead for composition workload as I am getting only roughly 17fps from compositing 4x 4K 30fps videos.

export GST_GL_PLATFORM=egl
VIDEO=/home/test/test.mp4

gst-launch-1.0 glvideomixer -v name=m \
    sink_0::xpos=0 sink_0::ypos=0 sink_0::width=1280 sink_0::height=720 \
    sink_1::xpos=1280 sink_1::ypos=0 sink_1::width=1280 sink_1::height=720 \
    sink_2::xpos=0 sink_2::ypos=720 sink_2::width=1280 sink_2::height=720 \
    sink_3::xpos=1280 sink_3::ypos=720 sink_3::width=1280 sink_3::height=720 ! fpsdisplaysink video-sink=glimagesink sync=false text-overlay=false \
filesrc location=$VIDEO ! qtdemux ! h264parse ! mfxdecode ! m.sink_0 \
filesrc location=$VIDEO ! qtdemux ! h264parse ! mfxdecode ! m.sink_1 \
filesrc location=$VIDEO ! qtdemux ! h264parse ! mfxdecode ! m.sink_2 \
filesrc location=$VIDEO ! qtdemux ! h264parse ! mfxdecode ! m.sink_3 \

I have also tried the plugin with the latest Q3 2020 Media Stack + Media SDK and still encounters the same issue. https://github.com/intel/media-driver/releases/tag/intel-media-20.3.0 https://github.com/Intel-Media-SDK/MediaSDK/releases/tag/intel-mediasdk-20.3.0

Thanks.