Use -vn option for avconv (fixes #16)
This commit is contained in:
parent
e0c2189424
commit
bc8285e82d
1 changed files with 2 additions and 2 deletions
4
api.php
4
api.php
|
@ -39,7 +39,7 @@ if (isset($_GET["url"])) {
|
||||||
header("Content-Type: audio/mpeg");
|
header("Content-Type: audio/mpeg");
|
||||||
passthru(
|
passthru(
|
||||||
'/usr/bin/rtmpdump -q -r '.escapeshellarg($video->url).
|
'/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;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
|
@ -57,7 +57,7 @@ if (isset($_GET["url"])) {
|
||||||
passthru(
|
passthru(
|
||||||
'/usr/bin/wget -q --user-agent='.escapeshellarg($UA).
|
'/usr/bin/wget -q --user-agent='.escapeshellarg($UA).
|
||||||
' -O - '.escapeshellarg($video->url).
|
' -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;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue