ffmpeg - -b 标志未在 FFMpeg 中解释
问题描述
我正在尝试通过 ffmpeg 将文件循环到两个 rtp 端口。当我运行此命令时,我收到以下错误:
Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (rtp://127.0.0.1:49152) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
ffmpeg -y -re -stream_loop -1 -i ./demovideo.m4v -r 24 -s 1280x720 -c:v libvpx -minrate 3M -maxrate 3M -b:v 3M -c:a libopus -map 0:a:0 -f rtp -c 复制 rtp://127.0.0.1:49152 -map 0:v:0 -f rtp -c 复制 rtp://127.0.0.1:49154?pkt_size=1012
我已指定 b 标志表示带有“-b:v”的视频。我错过了什么?
解决方案
-c copy
after-f rtp
覆盖-c:v
and-c:a
选项。将它-c:v libvpx
放在您当前的命令之前。
请参阅此处了解期权放置如何生效。
推荐阅读
- flutter - Flutter 获取位置和经纬度
- python - 如何仅使用计数图绘制图表以显示数据集中所有列的空值数量?
- elasticsearch - ElasticSearch 聚合太慢
- sql - 数据库迁移:识别 NoSQL 数据库中关系的工具?
- orocommerce - 如何向 API 公开我的扩展字段?
- amazon-web-services - Can i reserve EC2 instance hourly based to save cost?
- ruby - Call super method from C function
- snowflake-cloud-data-platform - 即使功能存在于雪花中,show grants on function 也会向帐户管理员提供“不存在或未授权”
- arrays - 使用数组 foreach() 创建元素
- reactjs - 使用 redux-form 库在 React 中输入字符后失去对输入字段的关注