jc-kynesim / rpi-ffmpeg

FFmpeg work for RPI
Other
111 stars 25 forks source link

Is it possible to play multiple hevc videos simultaneously? #74

Open fabiendel opened 1 year ago

fabiendel commented 1 year ago

Hi, I have compiled the 'release/5.1/main' branch, and I can successfully play a video. However, for a project, I would like to play multiple videos simultaneously. When using 'hello_drmprime', I encounter the following error: "drmModeSetPlane failed: Permission denied". I'm not very familiar with DRM, and I would like to know if it's possible with the Raspberry Pi. If so, could you provide some guidance on how to modify the code? Thank you.

jc-kynesim commented 1 year ago

DRM is not very friendly to work with. You can only really have one DRM master active at any one time and if you want to render stuff from multiple sources then they all end up needing to go though a shared process or equivalent mechanism. So if you want to play a number of streams then the easiest way of doing that is to have one program with one thread per stream. If you want to do that then I suggest you look at my drmu project where I try to encapsulate a lot of drms weirdness to make it easier to use (and it has a hello_drmu that looks a lot like hello_drm as an example). Having said that I'm afraid you are probably in for a bit of pain. DRM is very badly documented and my utilities to work with it are hardly better.