commit 28a910bd20cad299ad28288b184d07d790a2c64c
parent 472785086447d1c22101be76d0aab44897be9293
Author: lostd <lostd@2f30.org>
Date: Sat, 11 Jan 2014 13:55:00 +0200
Specify encoder/bitrate instead of using defaults
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ytfetch b/ytfetch
@@ -36,7 +36,8 @@ for URL in "$@"; do
echo "hav $F"
else
echo "get $L"
- ffmpeg -i "$DIRECT" \
+ # encode to mp3 audio with tags and no video
+ ffmpeg -i "$DIRECT" -vn -acodec libmp3lame -ab 128k \
-metadata artist="$ARTIST" -metadata title="$TITLE" \
"$F" 2> /dev/null
fi