From a781c344eadd68cb670aff7c3a5feda8891203ff Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 2 Oct 2016 23:41:03 +0200 Subject: fix ffmpeg invocation --- hel/recv-media.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hel/recv-media.nix b/hel/recv-media.nix index c2223dd8..d9ad5d29 100644 --- a/hel/recv-media.nix +++ b/hel/recv-media.nix @@ -34,7 +34,7 @@ writeScriptBin "recv-media" '' fi ( - summary=$(ffmpeg -i "''${target}" -f ffmetadata 2>/dev/null | tee /dev/stderr | sed -r '/^title=/!d; s/^title=//') + summary=$(ffmpeg -i "''${target}" -f ffmetadata pipe:1 2>/dev/null | sed -r '/^title=/!d; s/^title=//') if [[ -z "''${summary}" ]]; then echo "Title is empty, replacing with filename" >&2 summary=$(basename "$1") -- cgit v1.2.3