Skip to content

Instantly share code, notes, and snippets.

View BenjaminPoncet's full-sized avatar

Benjamin Poncet BenjaminPoncet

View GitHub Profile
@BenjaminPoncet
BenjaminPoncet / ffmpeg-wrapper
Last active September 14, 2024 06:05
Synology VideoStation ffmpeg wrapper with DTS, EAC3 and TrueHD support. This project is no longer maintained: Please see the following projects: https://github.com/darknebular/Wrapper_VideoStation/ - https://github.com/AlexPresso/VideoStation-FFMPEG-Patcher
#!/bin/bash
rev="12"
_log(){
echo "$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - $1" >> /tmp/ffmpeg.log
}
_log_para(){
echo "$1" | fold -w 120 | sed "s/^.*$/$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - = &/" >> /tmp/ffmpeg.log