-
Notifications
You must be signed in to change notification settings - Fork 333
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
Migrating to VLC #796
Comments
There are more VLC options here RPi-Distro/vlc#13 and here RPi-Distro/vlc#12 Using cvlc rather than vlc will remove the control panel. Even using all the options there is still one extraneous window, the x window that would contain the video when mmal is not used. The only way to remove this is to disable the display with DISPAY= clvc.... however this disables the dbus control and means that vlc cannot run in the same process as a program that requires an x window so the python vlc library cannot be used. |
Hi @KenT2, your input actually totally addressed my concern, awesome. |
Another important difference is that omxplayer runs standalone without a window manager while VLC, at least the way you described it so far, runs in X11? |
And VLC does not support HDMI clock adjustments/clock recovery for live feed decoding which is one of omxplayers most important features. |
@kytart vlc can run without x running. It runs fullscreen. |
@popcornmix but it has to use some hw accelerated API supported by RPi to put stuff on the screen, right? |
Yes, it will use accelerated video decode and render (technically mmal_decode and mmal_render in current version of vlc in RPiOS). |
Hi @popcornmix ,
Any idea on how to solve this is really appreciated! :-) Bye Guido |
What user is the php script run as? If it's not pi, then make sure it belongs to same groups as pi. |
Hi @popcornmix , thanks for your reply |
I tried a simpler test: I made a php script like this:
and saved to /var/www/html/test_h265.php. If my_file.mp4 is a h264 encoded file, I can start it from a terminal (as pi user) with:
or via browser (apache2 is running as pi user):
and I can see my video on my HDMI out, |
There is anyway to simply play video files w/subtitles headlees in Rpi4? y dont need install ALL de vlc package and their dependencies, i only use a rpi4 as server to play remote music and movies, dont need graphical interface, and vlc-plugin-base want to install wayland dependencies stuff and other desktop related sfuff. There are any plans to fork vlc to act simil to omxplayer, that simply work out the box? |
No plans here to fork vlc. |
Hi, omxplayer being deprecated, I'm wondering if there would be a guide to deal with the migration to VLC?
Indeed, omxplayer has a pretty specific behaviour out of the box, just with
omxplayer file.mp4
.So, naturally that would be a good thing to have some words on reproducing exactly the same native behaviour within VLC.
For now, I'm testing it from a PI4 Raspbian (with Desktop environment) and the obvious differences I see are :
And of course, I can't talk of what not visible differences are happening behind the scene (hardware acceleration, layering process, and so on.).
Most likely, these points have easy command line switches in VLC, but I feel it would be a good thing to have all of this documented somewhere, because the migration is not really trivial, and I haven't been able yet to reproduce the same result I had with omxplayer.
The closest behaviour I can get is using the following :
vlc file.mp4 --overlay --no-video-deco --no-embedded-video --fullscreen --no-interact --intf dummy --repeat
For what is visible at least, it looks similar, but I'm still observing problems, for example the loop feature is not seamless at all
The text was updated successfully, but these errors were encountered: