24 lines
467 B
Bash
Executable File
24 lines
467 B
Bash
Executable File
#!/bin/sh
|
|
# usage play_remote user@server.de "*.mp4"
|
|
|
|
_remote=$1
|
|
shift
|
|
IFS='
|
|
'
|
|
_files="$*"
|
|
printf "Server: $_remote\n"
|
|
printf "Files: $_files\n\n"
|
|
|
|
for _f in $_files;
|
|
do
|
|
printf "Playing: $_f\n"
|
|
ffmpeg -loglevel error \
|
|
-i "$_f" \
|
|
-c:a copy \
|
|
-c:v copy \
|
|
-preset ultrafast \
|
|
-tune zerolatency \
|
|
-f flv pipe: \
|
|
| pv -B 200M | ssh $_remote 'export DISPLAY=:0; pv -B 200M - | ffplay -loglevel error -'
|
|
done
|