Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
From https://synocommunity.com add http://packages.synocommunity.com to your NAS package sources. | |
For that, go to NAS->Package Cnter->Click Settings->Package Sources tab. | |
Then from the community, you can see Mosquitto. Install it. | |
After installing, please stop the Mosquitto service before updating configuration. You can start service after changes. | |
Enable Admin login for Synology | |
Enable SSH in NAS | |
Download putty and connect to NAS Server | |
Login using admin | |
Change to root user [sudo -i, {use admin password}] | |
Find mosquitto.conf file [find / -name mosquitto.conf] |
#!/bin/bash | |
# This script subscribes to a MQTT topic using mosquitto_sub. | |
# On each message received, you can execute whatever you want. | |
while true # Keep an infinite loop to reconnect when connection lost/broker unavailable | |
do | |
mosquitto_sub -h "127.0.0.1" -t "test" | while read -r payload | |
do | |
# Here is the callback to execute whenever you receive a message: |
# Based on the example from https://www.activestate.com/blog/dash-vs-bokeh/ | |
import dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
import pandas as pd | |
import plotly.graph_objs as obj | |
import uvicorn as uvicorn | |
from dash.dependencies import Input, Output | |
from fastapi import FastAPI | |
from starlette.middleware.wsgi import WSGIMiddleware |
version: "3.3" | |
services: | |
traefik: | |
image: "traefik:v2.2" | |
container_name: "traefik" | |
command: | |
- "--api=true" | |
- "--api.dashboard=true" |