Git Product home page Git Product logo

Comments (4)

popcornmix avatar popcornmix commented on July 18, 2024

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.

gitterman avatar gitterman commented on July 18, 2024

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.

popcornmix avatar popcornmix commented on July 18, 2024

VLC will run without a gui (e.g. from a RPiOS lite image launched from CLI).

from omxplayer.

gitterman avatar gitterman commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.