windows - 如何在 Windows 命令行中运行命令集

标签 windows command-line ffmpeg

x264-preset用于第二个命令( Cmd 2 )。是替代还是?

命令 1:

x264-preset:
vcodec=libx264
thread_type=slice
slices=1
profile=baseline
level=32
preset=superfast
tune=zerolatency
intra-refresh=1
crf=15
x264-params=vbv-maxrate=5000:vbv-bufsize=1:slice-max-size=1500:keyint=60

命令 2
$ ffmpeg -r 30 -f dshow -i video="devicename" -pix_fmt yuv420p -an -vpre
x264-preset -f mpegts udp://127.0.0.1:8888

当我运行 Cmd 1它不起作用。即使是这样的 SET:
x264-preset:
SET vcodec=libx264
SET thread_type=slice
SET slices=1
SET profile=baseline
SET level=32
SET preset=superfast
SET tune=zerolatency
SET intra-refresh=1
SET crf=15
SET x264-params=vbv-maxrate=5000:vbv-bufsize=1:slice-max-size=1500:keyint=60

资源:
https://lists.ffmpeg.org/pipermail/ffmpeg-user/2016-January/030127.html

最佳答案

您似乎正在尝试执行自定义 preset file 的内容.要将其作为普通命令运行:

ffmpeg -framerate 30 -f dshow -i video="devicename" -pix_fmt yuv420p -an -vcodec libx264 -thread_type slice -slices 1 -profile:v baseline -level 32 -preset superfast -tune zerolatency -intra-refresh 1 -crf 15 -x264-params vbv-maxrate=5000:vbv-bufsize=1:slice-max-size=1500:keyint=60 -f mpegts udp://127.0.0.1:8888

关于windows - 如何在 Windows 命令行中运行命令集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60378188/

相关文章:

windows - 自动更新到 Electron

windows - 如何在 git bash 上生成 key

ios - 通过命令行构建并运行iOS7应用

ffmpeg IP 摄像机无法录制

command-line - 如何通过命令行使用 MLT Framework?

尝试写入文件夹时 C# Windows 服务访问被拒绝

asp.net - 使用 Active Directory/LDAP 的表单例份验证

linux - 删除 `~` 中的 `~/my_repo/~`

javascript - 在 Node.js 中发出类似 cmd 的命令

php - 无法使用 exec 命令来使用 ffmpeg