-
Notifications
You must be signed in to change notification settings - Fork 246
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
VLC support #124
Comments
Or, perhaps an easier way would be to change the way the title is shown (currently as subtitles) by running another instance of omxplayer on a different layer on top of the video? I am not familiar at all so this is just a lot of research. I just want a text (preferably on the top corner) to overlay on the top of the video to show some information that changes from time to time. When we change the information, we can just restart pi_video_looper. I currently have it working already - I can FTP in to the USB drive, rename the file, and restart pi_video_looper, but this only works with .avi files. |
this will become even more important since there is no omxplayer package for debian 11 (which is the dist for the latest raspberry pi os) |
Hey @PaintYourDragon, |
@tofuSCHNITZEL Hello! I was going to ping you at some point, or open an intentionally incomplete PR to get a discussion going, so thank you for reaching out proactively. The Bullseye check (with different install behavior) sounds like a good plan. Could perhaps parse for the VERSION_ID string in /etc/os-release To be honest, been bungling my way through this…coming at it from zero and the code’s a bit more complex than I anticipated. Just knew that this is among the top “problem feedback” guides in the Adafruit Learning System and I’d been tasked with fixing it. If you’d like, I could pass along my notes with getting cvlc running in Bullseye Lite (actually pretty minor, just needed to find the right combo)…and then if you’d be amenable to writing the .py file for it, I could work on rewriting parts of the guide. Would that work? I’d be less worried about my breaking something that way, as it seems you already know this through and through. Thanks. |
yes lets do it this way. maybe we create two inis one for "legacy" and one for "current" and remove the options that are not working for each version (I assume cvlc will work on the legacy version) Yes I can take care of the python part. I already tried to play around with getting cvlc to work - but it was never really working out so well but I see that you have already found some stuff to get it working. if you want we can continue the work directly in the pb-bulseye branch and keep the discussion in here |
@PaintYourDragon: I have pushed the updated install and ini. just reach out when you want to work on the cvlc launch part. |
@PaintYourDragon: with my latest commit - playback with cvlc works |
Oh nice! I’ll remove my fork, since this covers it. I did find that Pi 4 & 400 require a firmware update before some piece of this (the fkms overlay, I think) would work correctly. Hence my version of install.sh had an “apt upgrade” in there, which seems to takes care of this (though adds several minutes to the install process). It didn’t prompt for reboot if the firmware was updated though, which really would be the right thing to do. HOWEVER…since this ONLY affects Pi 4/400 models, running Bullseye, and ONLY if their firmware isn’t previously updated…perhaps it’s really a documentation issue and not a script issue. What’s more, if the installer is run on a Pi 3 and the card is later moved to a 4, that apt upgrade is of no use…the Pi 4 may still need the firmware upgrade, so yes, answering my own thing, this is more a documentation issue, and the “upgrade” can be left out of the script. The full and persnickety firmware update sequence for Pi 4/400 seems to be: sudo apt update |
Could we find a way to determine the firmware version and do the system update only if necessary? |
On Pi 4, sudo rpi-eeprom-update provides status (appending -a to this applies the latest update from a prior apt-get upgrade). Could probably do some grepping around in the output. Here’s a dump from an up-to-date Pi 400:
Same, for a NOT-recently-updated updated Pi 4:
And on a Pi 3 B+: Might not need any grep…
Returns 1 if an update is available. 0 if up-to-date or on a Pi 3. |
Y’know what? I think the firmware update thing is a red herring and I was confused with something else, let’s skip it for now. Seems to work just fine on a Pi 4 without it. Should I PR this as-is then, or any further changes needed? |
yes if you want you can create a draft pull requst. and then we work there on finishing the feature.
|
Afaik VLC supports videos AND pictures. If so, you could theoretically create a loop containing both. Maybe someone could add an option to choose how long pictures are shown in the loop if you use VLC. |
I wanted to reach out here because it appears this is the only place discussing something similar to what I'm trying to accomplish. I'm working on creating a video looper that plays videos based on external input. In the past, I've written one using Python and OMXPlayer, but since OMX has been deprecated and VLC is now the standard, I'm encountering significant issues. Specifically, VLC displays a black screen between videos or between videos and images. I'm wondering if anyone here has discovered a workaround for this limitation, as it renders VLC unusable due to the flashing of the underlying command prompt between videos. |
yes thats why the VLC support is kind of "halted" at the moment... there are lots of issues and it is just not a "drop in replacement" for OMX like some people say |
A bit of topic but is mpv a viable option? I haven't seen it mentioned anywhere. |
I think it all boils down to hardware decoding support, which omxplayer does fine even on modern pis with older software. Vlc I think is also very far in that regard so it would be a good choice as a replacement. I just looked a bit at mpv but it seems the hw-decoding on pi is not rock solid yet? |
Hi,
I was wondering how difficult it would be to port this to VLC instead of using OMX Player? I just discovered the file titles don't show up unless the format is AVI, and this appears to be an OMX player issue.
Thank you again.
The text was updated successfully, but these errors were encountered: