I’m developing a APP that playback multiple videos at the same time. I already have a solution ready with ofVideoPlayer, but since this use a lot of CPU due to the video codecs and quality I need to move it to HW Acceleated video decoding to move all that workload from the CPU to the GPU.
This pipeline in command line works:
gst-launch-1.0 filesrc location=0_1595247592_E8E972AC0_.mp4 ! qtdemux ! h264parse ! nvdec ! glimagesink sync=false
But when I try to move the pipeline to OF with:
std::string pipe = "filesrc location=" + file_path + " ! qtdemux ! h264parse ! nvdec "; gst->setPipeline(pipe); gst->startPipeline();
I get the next error:
[ error ] ofGstUtils: setPipelineWithSink(): couldn't create pipeline: no element "nvdec"
I hope someone could give some guidelines about how to solve this. Thank you very much.