繁体   English   中英

ffmpeg无法识别的选项“调谐”

[英]ffmpeg Unrecognized option 'tune'

我在node.js上使用ffmpeg。 和选项“调整零延迟”以降低延迟

但是,当我插入“ -tune zerolatency”时,出现错误:无法识别的选项“ tune”。

有人可以帮忙吗? 我不知道该怎么做。

这是脚本。

let token = '@!#!@#%@$@#%#^^!@$@#$@#$@#$^@#$'
let option = [
    '-i', 'pipe:0', //mpeg4
    '-acodec', 'copy',
    '-vcodec', 'copy',
    '-s', '284x164',
    '-preset', 'ultrafast',
    '-tune', 'zerolatency',
    '-f', 'flv',
    'rtmp://localhost:1935/s/' + token,
];
ffmpeg = spawn("ffmpeg", option);

ffmpeg.stdin.write(streaming_data);

这是ffmpeg版本

ffmpeg version N-82166-g894e7ef Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-9)
  configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/bin
  libavutil      55. 35.100 / 55. 35.100
  libavcodec     57. 65.100 / 57. 65.100
  libavformat    57. 57.100 / 57. 57.100
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 66.100 /  6. 66.100
  libswscale      4.  3.100 /  4.  3.100
  libswresample   2.  4.100 /  2.  4.100

tune是某些编码器的专用选项,不是通用选项。 由于要复制视频流,因此不会调用编码器,因此无法识别该选项。 大小和预设选项也是如此,尽管它们是常用选项,它们只是惰性的,而不是此命令中未知的选项。

如果将'-vcodec', 'copy'更改为'-vcodec', 'libx264' ,则这三个选项都将生效。 但这将对视频进行转码,因此时间和CPU使用量将增加

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM