Comments (2)
This configuration refactor will probably take the form of environment variables. We're closer to an actual application than a CLI utility so configuration using a more traditional method like environment variables might be more appropriate.
Ideally, you'd still get a help screen with information if you don't provide anything so that it's not a total black box.
The README of the rewrite branch, golang-rewrite has a draft of what the environment variable strategy would look like.
I'm still very much waffling though and am open to what the community wants. I think part of the success of project is owed to the user-friendliness of the CLI argument style of configuration and using environment variables inline is not so pretty:
RASPILIVE_MODE=dash RASPILIVE_DASH_PORT=8080 raspilive
Although you should be setting this up in systemd anyways so in theory you wouldn't be interacting with it much after you know what configuration you need.
The alternative for sticking with an argument approach would look like the following:
raspilive hls --width 1920 --height 1080 --segment-type fmp4 --port 8080
raspilive dash --port 8080
raspilive rtmp --remote http://example.com
This is friendlier from a tinkering and frequent usage perspective but I don't think that's what people are using this for. I imagine it's more of a set it and forget it sort of usage pattern.
from raspilive.
Opted to go with the CLI approach for better user experience. This has been implemented in the go-rewrite branch.
from raspilive.
Related Issues (20)
- Stream (m3u8 format) cannot be played on iOS devices HOT 3
- took over my desktop HOT 7
- Shows that it is running, but no m3u8 file is generated HOT 19
- Run at boot HOT 1
- Image Rotation HOT 2
- Support ability to choose between fmp4 or mpegts with HLS HOT 3
- Old segment files are not removed when service is stopped and started again HOT 1
- question - how can I set brightness and saturation parameters? HOT 2
- ffmpeg fails to compile on newest version of raspbian HOT 3
- Instructions need a little update to force link atomic lib. HOT 2
- Returns 404 HOT 1
- support lhls option HOT 2
- GO Rewrite HOT 1
- Debian packaging HOT 1
- CORS configuration HOT 5
- How many parallel connections it can handle? HOT 2
- Installation Instructions HOT 1
- [Question] How do I see the stream on the browser HOT 3
- SSL streaming HOT 1
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 raspilive.