Use -vn option for avconv (fixes #16)

This commit is contained in:
Pierre Rudloff 2015-05-01 18:48:06 +02:00
parent e0c2189424
commit bc8285e82d

View file

@ -39,7 +39,7 @@ if (isset($_GET["url"])) {
header("Content-Type: audio/mpeg");
passthru(
'/usr/bin/rtmpdump -q -r '.escapeshellarg($video->url).
' | /usr/bin/avconv -v quiet -i - -f mp3 pipe:1'
' | /usr/bin/avconv -v quiet -i - -f mp3 -vn pipe:1'
);
exit;
} else {
@ -57,7 +57,7 @@ if (isset($_GET["url"])) {
passthru(
'/usr/bin/wget -q --user-agent='.escapeshellarg($UA).
' -O - '.escapeshellarg($video->url).
' | /usr/bin/avconv -v quiet -i - -f mp3 pipe:1'
' | /usr/bin/avconv -v quiet -i - -f mp3 -vn pipe:1'
);
exit;
}