-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clvc cannot set video window size and position #80
Comments
As it stands drm output is just fullscreen so no way round it currently. I have added position controls to the next version ( |
Can we compile OMXPlayer on the PiOS 64-bit? |
Why should drm claim all output? The Direct Rendering Manager was created to allow multiple programs to use video hardware resources cooperatively. |
@cooperbang Sadly you are mistaken. That might possibly have been the intent but that's not how it works these days. Feel free to try to prove me wrong. |
If the X Sever already has master control over DRM you need to to use the KMS API to create a new DRM plane and display the content there. |
If you would care to point me any example code that does what you suggest I'll happily do just that. I may have missed the correct API. |
Nope - that is kernel internals. I mean a userland example where it gets an appropriate drm device fd from X, picks/allocates a plane and assigns a BO (frame buffer) to it - if you can find one of them then making it play video is easy. Most of the trick is getting the drm fd with the correct permissions set on it. After that everything that I've already written just works. Believe it or not - once I've got a good drm device fd I know how to use it. |
No DRI3 doesn't appear to give sufficient privs; you can get what amounts to a read only drm handle out of it which allows BO allocation but that on its own is not not good enough - I sort of hoped it would do what I & you want but it didn't seem to. (Yes, I have done a bunch of searching the web in the past.) |
Hi jc-kynesim and all, |
I think not - its not so much VLC as the firmware/kernel no longer supporting that. There's no point VLC having the plugins if they can't be used. I too am frustrated by what used to be easy becoming somewhere between hard and impossible in the name of progress. The new world is a lot more standard and secure than the old world but it comes with a price... |
Thank you jc-kynesim. I hope that this will be possible in the future.. Is there any chance? Thanks |
Is there any update, or alternatives to achieve the same result.? For https://github.com/SvenVD/rpisurv I need the ability to set coordinates for multiple windows. |
Hi
I installed the raspberry pi OS 64bit headless and installed vlc using the command
$ sudo apt install vlc -y
After that, I used the vlc to play the Bunny test video
$ cvlc -R --width=500 --height=500 --video-x=100 --video-y=100 --no-fullscreen Big_Buck_Bunny_360_10s_30MB.mp4
The vlc just play the Bunny test mp4 in fullscreen.
Please advice how to set the video window dimension and position?
The text was updated successfully, but these errors were encountered: