Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A flexible stream routing and filtering system with support for scheduled tasks and event reactions
This repository contains the Python package for DialogStream, a powerful and flexible conversational AI platform.
To install the DialogStream Python package, you can use pip:
pip install dialogstream
python -m venv .venv && source .venv/bin/activate && pip install dialogstream
JSON
python router.py -s "config/stream.json" -p "config/process.json"
ffplay rtsp://192.168.1.2:554/Preview_01_sub
ffmpeg -i rtsp://192.168.1.2:554/Preview_01_sub -c copy -f segment -segment_time 6 -segment_format mp4 -strftime 1 -reset_timestamps 1 "./recordings/%Y%m%d_%H.mp4" -v debug
Here's a basic example of how to use the DialogStream package:
The config/flows.json
file defines video stream flows:
{
"flows": [
{
"name": "RTSP z detekcją ruchu i zapisaniem obrazów",
"steps": [
"rtsp://test1234:test1234@192.168.188.225:554/Preview_01_sub",
"file:///motion"
]
},
{
"name": "Timelapse z obrazów",
"steps": [
"file:///motion",
"file:///timelapses"
]
},
{
"name": "Timelapse z obrazów co 1 godzine",
"steps": [
"file:///motion",
"schedule://0 */1 * * *",
"file:///timelapses"
]
},
{
"name": "Timelapse z obrazów co 1 godzine",
"steps": [
"file:///motion",
"schedule://0 */1 * * *",
"file:///timelapses"
]
},
{
"name": "Email z powiadamieniem, gdy pojawi się nowy obiekt",
"steps": [
"subscribe://object_detected",
"email:///info@softreck.dev"
]
},
{
"name": "Wysyłanie powiadomienia, gdy pojawi się nowy obiekt",
"steps": [
"file:///motion",
"process://detect_object_on_picture",
"publish://object_detected"
]
}
]
}
Each flow contains:
name
: A descriptive name for the flowsteps
: A list of processing steps, where each step is a URL in the format:
rtsp://
- RTSP sourceprocess://
- Processing step with parametersfile://
- Save to file (supports strftime format)The config/process.json
file defines processing rules:
[
{
"filter": [
"rtsp",
"process://motion",
"file"
],
"run": [
"shell://ffmpeg -i $1 -c copy -f segment -segment_time 6 -segment_format mp4 -strftime 1 -reset_timestamps 1 $3"
]
},
{
"filter": [
"rtsp",
"file"
],
"run": [
"shell://ffmpeg -i $1 -c copy -f segment -segment_time 6 -segment_format mp4 -strftime 1 -reset_timestamps 1 $2"
]
}
]
Each rule contains:
filter
: A list of URL patterns to matchrun
: A list of shell commands to execute, where:
$1, $2, $3...
- refer to the corresponding URLs from the filter sectionFor more detailed information, please refer to the official documentation.
Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A flexible stream routing and filtering system with support for scheduled tasks and event reactions
We found that dialogstream demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.