prepare for version 0.14.0
- use chrono 0.4.20 - remove exit from kill_all function - add exit statement to rpc error catcher - typo in readme - add infos about image and audio source
This commit is contained in:
parent
70d58e74c2
commit
eb47c31135
8
Cargo.lock
generated
8
Cargo.lock
generated
@ -629,13 +629,15 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "chrono"
|
name = "chrono"
|
||||||
version = "0.4.20-rc.1"
|
version = "0.4.20"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "856628f00a013eb30ae7b136b20fba37f7a39f8026d6f735dfac07c6fce1b8cf"
|
checksum = "6127248204b9aba09a362f6c930ef6a78f2c1b2215f8a7b398c06e1083f17af0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"js-sys",
|
||||||
"num-integer",
|
"num-integer",
|
||||||
"num-traits",
|
"num-traits",
|
||||||
"time 0.1.44",
|
"time 0.1.44",
|
||||||
|
"wasm-bindgen",
|
||||||
"winapi 0.3.9",
|
"winapi 0.3.9",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -1032,7 +1034,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ffplayout-api"
|
name = "ffplayout-api"
|
||||||
version = "0.5.1"
|
version = "0.5.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"actix-files",
|
"actix-files",
|
||||||
"actix-multipart",
|
"actix-multipart",
|
||||||
|
16
README.md
16
README.md
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
## **ffplayout-engine (ffplayout)**
|
## **ffplayout-engine (ffplayout)**
|
||||||
|
|
||||||
[ffplayout](/ffplayout-engine/README.md) is 24/7 broadcasting solution. It can playout a folder with containing video clips, or play for every day a *JSON* playlist, while keeping the current playlist editable.
|
[ffplayout](/ffplayout-engine/README.md) is a 24/7 broadcasting solution. It can playout a folder with containing video clips, or play for every day a *JSON* playlist, while keeping the current playlist editable.
|
||||||
|
|
||||||
The ffplayout apps are mostly made to run on Linux as system services. But in general they should run on all platforms which are supported by Rust.
|
The ffplayout apps are mostly made to run on Linux as system services. But in general they should run on all platforms which are supported by Rust.
|
||||||
|
|
||||||
@ -45,6 +45,8 @@ Check the [releases](https://github.com/ffplayout/ffplayout/releases/latest) for
|
|||||||
- **null** (for debugging)
|
- **null** (for debugging)
|
||||||
- JSON RPC server, for getting infos about current playing and controlling
|
- JSON RPC server, for getting infos about current playing and controlling
|
||||||
- [live ingest](/docs/live_ingest.md)
|
- [live ingest](/docs/live_ingest.md)
|
||||||
|
- image source (will loop until out duration is reached)
|
||||||
|
- extra audio source (experimental) (has priority over audio from video source)
|
||||||
|
|
||||||
For preview stream, read: [/docs/preview_stream.md](/docs/preview_stream.md)
|
For preview stream, read: [/docs/preview_stream.md](/docs/preview_stream.md)
|
||||||
|
|
||||||
@ -79,13 +81,19 @@ Check [install](docs/install.md) for details about how to install ffplayout.
|
|||||||
"in": 0,
|
"in": 0,
|
||||||
"out": 149,
|
"out": 149,
|
||||||
"duration": 149,
|
"duration": 149,
|
||||||
"source": "/Media/clip2.mp4"
|
"source": "/Media/clip2.mp4",
|
||||||
|
"category": "advertisement"
|
||||||
}, {
|
}, {
|
||||||
"in": 0,
|
"in": 0,
|
||||||
"out": 114.72,
|
"out": 114.72,
|
||||||
"duration": 114.72,
|
"duration": 114.72,
|
||||||
"source": "/Media/clip3.mp4",
|
"source": "/Media/image1.jpg",
|
||||||
"category": "advertisement"
|
}, {
|
||||||
|
"in": 0,
|
||||||
|
"out": 230.30,
|
||||||
|
"duration": 230.30,
|
||||||
|
"source": "/Media/image2.jpg",
|
||||||
|
"audio": "/Media/audio1.mp3"
|
||||||
}, {
|
}, {
|
||||||
"in": 0,
|
"in": 0,
|
||||||
"out": 2531.36,
|
"out": 2531.36,
|
||||||
|
@ -30,4 +30,5 @@ Setup and use a preview stream.
|
|||||||
Use of remote sources, like https://example.org/video.mp4
|
Use of remote sources, like https://example.org/video.mp4
|
||||||
|
|
||||||
### **[ffplayout API](/docs/api.md)**
|
### **[ffplayout API](/docs/api.md)**
|
||||||
|
|
||||||
Control the engine, playlist and config with a ~REST API
|
Control the engine, playlist and config with a ~REST API
|
||||||
|
@ -31,5 +31,3 @@ If you want to configure ffplayout over terminal, you can edit **/etc/ffplayout/
|
|||||||
- give ownership from `/etc/ffplayout` and `/var/log/ffplayout` to **ffpu**
|
- give ownership from `/etc/ffplayout` and `/var/log/ffplayout` to **ffpu**
|
||||||
- copy **assets/ffplayout.service** to `/etc/systemd/system`
|
- copy **assets/ffplayout.service** to `/etc/systemd/system`
|
||||||
- activate service and run it: `systemctl enable --now ffplayout`
|
- activate service and run it: `systemctl enable --now ffplayout`
|
||||||
|
|
||||||
You can also install the [released](https://github.com/ffplayout/ffplayout/releases/latest) ***.deb** or ***.rpm** package.
|
|
||||||
|
@ -4,7 +4,7 @@ description = "Rest API for ffplayout"
|
|||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
authors = ["Jonathan Baecker jonbae77@gmail.com"]
|
authors = ["Jonathan Baecker jonbae77@gmail.com"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
version = "0.5.1"
|
version = "0.5.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
@ -15,7 +15,7 @@ actix-web = "4"
|
|||||||
actix-web-grants = "3"
|
actix-web-grants = "3"
|
||||||
actix-web-httpauth = "0.6"
|
actix-web-httpauth = "0.6"
|
||||||
argon2 = "0.4"
|
argon2 = "0.4"
|
||||||
chrono = "0.4.20-rc.1"
|
chrono = "0.4.20"
|
||||||
clap = { version = "3.2", features = ["derive"] }
|
clap = { version = "3.2", features = ["derive"] }
|
||||||
derive_more = "0.99"
|
derive_more = "0.99"
|
||||||
faccess = "0.2"
|
faccess = "0.2"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use futures::executor;
|
use futures::executor;
|
||||||
use std::sync::atomic::Ordering;
|
use std::{process::exit, sync::atomic::Ordering};
|
||||||
|
|
||||||
mod zmq_cmd;
|
mod zmq_cmd;
|
||||||
|
|
||||||
@ -277,6 +277,8 @@ pub fn json_rpc_server(
|
|||||||
Err(e) => {
|
Err(e) => {
|
||||||
error!("Unable to start RPC server: {e}");
|
error!("Unable to start RPC server: {e}");
|
||||||
proc_control.kill_all();
|
proc_control.kill_all();
|
||||||
|
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ version = "0.14.0"
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono = "0.4.20-rc.1"
|
chrono = "0.4.20"
|
||||||
crossbeam-channel = "0.5"
|
crossbeam-channel = "0.5"
|
||||||
ffprobe = "0.3"
|
ffprobe = "0.3"
|
||||||
file-rotate = "0.7.0-rc.0"
|
file-rotate = "0.7.0-rc.0"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use std::{
|
use std::{
|
||||||
fmt,
|
fmt,
|
||||||
process::{exit, Child},
|
process::Child,
|
||||||
sync::{
|
sync::{
|
||||||
atomic::{AtomicBool, AtomicUsize, Ordering},
|
atomic::{AtomicBool, AtomicUsize, Ordering},
|
||||||
Arc, Mutex,
|
Arc, Mutex,
|
||||||
@ -148,8 +148,6 @@ impl ProcessControl {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
exit(1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user