2016-12-06 11 views
0

私はエラーffmpegのは、地元のM3U8

[https @ 0x556ad6947520] Protocol not on whitelist 'file,crypto'! index.m3u8: Invalid argument

私は引数を追加しようとしたが

ffmpeg -y -map 0 -an -sn -f md5 - -i index.m3u8

をffmpegのが、取得しM3U8のMD5の出力を取得しようとしていますから、MD5を取得する(here文書化)

-protocol_whitelist file,http,https,tcp,tls

しかし、私はネットワークm3u8(http)を使用している場合、私はまだ同じ結果を得ています。すべてが期待どおりに動作します。

$ /usr/bin/ffmpeg -protocol_whitelist file,http,https,tcp,tls -y -map 0:0 -an -sn -f md5 - -i index.m3u8 
ffmpeg version 3.2.1 Copyright (c) 2000-2016 the FFmpeg developers 
built with gcc 5.3.0 (Alpine 5.3.0) 
configuration: --prefix=/usr/local --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --bindir=/usr/local/bin --disable-doc -- disable-static --enable-shared --disable-ffplay --extra-libs=-ldl --enable-version3 --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-gpl --enable-avresample --enable-postproc --enable-nonfree --disable-debug --enable-small --enable-openssl 
libavutil  55. 34.100/55. 34.100 
libavcodec  57. 64.101/57. 64.101 
libavformat 57. 56.100/57. 56.100 
libavdevice 57. 1.100/57. 1.100 
libavfilter  6. 65.100/6. 65.100 
libavresample 3. 1. 0/3. 1. 0 
libswscale  4. 2.100/4. 2.100 
libswresample 2. 3.100/2. 3.100 
libpostproc 54. 1.100/54. 1.100 
[https @ 0x5589b5d435a0] Protocol not on whitelist 'file,crypto'! 
index.m3u8: Invalid argument 
+0

ffmpegはopensslまたはgnutlsのどちらでコンパイルされていますか? – Mulvya

+0

@Mulvya --enable-openssl、なぜですか?それは何とかmd5に影響しますか? –

+0

これはhttps入力に必要です。コマンドとコンソールの出力全体を表示します。 – Mulvya

答えて

0

引数はOKです、彼らは正しい順序にする必要があります:-iを適用する前に

ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... 

オプション:マニュアルやヘルプに記載されているように

ffmpeg -y -protocol_whitelist file,http,https,tcp,tls -i index.m3u8 -map 0 -an -sn -f md5 - 

その入力。入力後、出力名またはパイプが出力に適用される前のオプション

関連する問題