Created
February 23, 2019 13:12
-
-
Save drouarb/9e84ebd0937ca9a026c1a587ca79dc42 to your computer and use it in GitHub Desktop.
Plex codec testes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -lt 1 ] | |
then | |
echo "Usage: $0 <path_to_allcodec.c>" | |
exit | |
fi | |
cat "$1" | grep 'extern AVCodec ff_' | sed 's/extern AVCodec ff_\(.*\);/\1/' | while read c | |
do | |
response=$(curl -I --write-out %{http_code} --silent --output /dev/null "https://downloads.plex.tv/codecs/531e313-1328/linux-ubuntu-x86_64/lib$c.so") | |
echo "$response $c" | |
if [ $response -eq 200 ] | |
then | |
echo $c >> codec_output | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment