Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Shell 无法为';找到合适的输出格式;协议';_Shell_Ffmpeg - Fatal编程技术网

Shell 无法为';找到合适的输出格式;协议';

Shell 无法为';找到合适的输出格式;协议';,shell,ffmpeg,Shell,Ffmpeg,我试图用ffmpeg分析一个视频,它给出了这个错误。我提到了其他来源,但这些解决办法似乎不起作用 [NULL @ 0x24eb600] Unable to find a suitable output format for 'protocols' protocols: Invalid argument 我有一个视频目前托管在谷歌云存储上,我想用ffprobe来研究它的定位。这是我使用的命令 ffprobe -v error -show_streams -show_format https://

我试图用ffmpeg分析一个视频,它给出了这个错误。我提到了其他来源,但这些解决办法似乎不起作用

[NULL @ 0x24eb600] Unable to find a suitable output format for 'protocols'
protocols: Invalid argument
我有一个视频目前托管在谷歌云存储上,我想用
ffprobe
来研究它的定位。这是我使用的命令

ffprobe -v error -show_streams -show_format https://storage.googleapis.com/bucket/filename.mp4 | grep rotation
我目前正在Debian Jessie上运行,并从源代码安装了
ffmpeg

这是我的安装脚本

cd ffmpeg-3.4.1
./configure --enable-shared
make
make install
ldconfig

有人能告诉我如何解决这个问题吗?

在构建
ffmpeg
时,似乎缺少一些协议。我怀疑您的协议列表中没有启用https。请使用
ffmpeg-protocols
检查支持的协议列表,并查看列表中是否有
https

您需要使用
openssl
重新编译
ffmpeg
,以启用通过
https

安装OpenSSL

apt-get install openssl
./configure --enable-shared --enable-openssl
使用OpenSSL配置FFMPEG

apt-get install openssl
./configure --enable-shared --enable-openssl

您需要为HTTPS支持启用额外的外部库。FFmpeg支持多个库:

openssl
  • 软件包:libssl-dev(Debian/Ubuntu),openssl-devel(RHEL/CentOS)
  • ffmpeg配置选项:
    --启用openssl
gnutls
  • 软件包:libgnutls28-dev(Debian/Ubuntu),gnutls-devel(RHEL/CentOS)
  • ffmpeg配置选项:
    --启用gnutls
LibreSSL(通过libtls)
  • 套餐:无
  • ffmpeg配置选项:
    --启用libtls

无需
grep
。请参阅《谢谢你》中的
ffprobe
示例!我用ssl重建了ffmpeg,它现在可以工作了!