【问题标题】:How to run the set of commands in windows command line如何在 Windows 命令行中运行命令集
【发布时间】:2020-06-08 05:12:47
【问题描述】:

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

【问题讨论】:

    标签: windows command-line ffmpeg


    【解决方案1】:

    您似乎正在尝试执行自定义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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-04-07
      • 1970-01-01
      • 1970-01-01
      • 2017-12-06
      • 2014-03-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多