Comments (4)
Setting the fps higher than the actual rate would be more likely to reduce buffering (although if stream contains timestamps the fps setting will be ignored).
I'd suggest playing with:
--audio_fifo n Size of audio output fifo in seconds
--video_fifo n Size of video output fifo in MB
--audio_queue n Size of audio input queue in MB
--video_queue n Size of video input queue in MB
--threshold n Amount of buffered data required to finish buffering [s]
But be aware omxplayer is deprecated and will get no updates, so you may be better off with a newer distribution and a supported tool like VLC.
from omxplayer.
Thanks for the quick answer, I will give it a try.
From my understanding VLC is way much more resource consuming than omxplayer and has its problems when running without a GUI.
My doorcam pi runs just from CLI and has no keyboard attached.
Tools like omxplayer and streamers like mjpg_streamer are very valuable in these scenarios.
The usefulness of a raspberry pi as a headless workhorse in the closet, without a GUI is much bigger than to use it as a desktop because of its lack of power compared to a cheap refurbished notebook.
It is a pity that things become so GUI oriented these days.
from omxplayer.
VLC will run without a gui (e.g. from a RPiOS lite image launched from CLI).
from omxplayer.
Installation of VLC required 224MB, and it is not supposed to be run as root.
I can display the stream with VLC on my desktop PC and on my raspberry 4 GUI, but I did not succeed to get the live stream shown on my attached analog display to my CLI only buster raspi yet.
I also found that VLC needs more CPU than omxplayer.
So far, I have changed the omxplayer command according to your hints to the one below, which reduces the delay to about 4 seconds, which is acceptable for me.
omxplayer -r -b --no-keys -n -1 --video_queue 0.1 --live http://$HOSTNAME:8080/?action=stream
from omxplayer.
Related Issues (20)
- Playing audio to individual HDMI HOT 2
- Volume control while playing HOT 3
- install in other arm machine HOT 1
- Cannot play audio over bluetooth after reboot HOT 1
- Omxplayer and bluealsa
- DBus.Error.ServiceUnknown HOT 1
- Omxplayer with Argon One v2 ir remote
- Package 'libssl1.0-dev' has no installation candidate HOT 1
- when i make -j$(nproc),there have an error HOT 5
- omxplayer doesn't play live stream, playing local mp4 video works though HOT 1
- Will omxplayer stop working eventually? HOT 2
- DBUS Name Control problem HOT 1
- pi and sound HOT 1
- Any plans to adapt for Raspberry Pi 4?
- Fixes #939
- libva1 deprecated HOT 1
- OMXplayer freezes when trying to seek
- E: Package 'omxplayer' has no installation candidate HOT 1
- Compiling on Raspberry Pi 5 running Debian 12 32bits?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omxplayer.