Goat121
V2EX  ›  问与答

go 服务端命令行调用 FFmpeg 处理视频靠谱吗

  •  
  •   Goat121 · Jan 28, 2021 · 2581 views
    This topic created in 2104 days ago, the information mentioned may be changed or developed.

    找了几个 cgo binding 库感觉有点复杂,而且几年没更新了不知道行不行 那如果直接 os.exec 包命令行,这种方式靠谱吗

    8 replies  •  2021-01-29 12:54:15 +08:00
    billlee
    billlee
    Jan 28, 2021
    1
    感觉没什么问题,处理视频这么重的任务也不在乎创建进程那点开销
    matrix67
    matrix67
    Jan 28, 2021
    2
    靠谱啊,就是这么玩的,面向文件。
    Goat121
    Goat121
    OP
    Jan 28, 2021
    3
    @billlee
    @matrix67
    谢谢两位,就这么做好了,省了好多功夫😂
    ArJun
    ArJun
    Jan 28, 2021
    4
    go 的命令行操作非常方便
    linvon
    linvon
    Jan 28, 2021
    5
    就是这么干的。。
    mcfog
    mcfog
    Jan 28, 2021 via Android
    6
    两种都做了,最后放弃了用 binding🙈
    tiedan
    tiedan
    Jan 28, 2021
    7
    靠谱的很。
    togou
    togou
    Jan 29, 2021
    8
    用 cgo ? 比 exec 快的.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1715 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 23:49 · PVG 07:49 · LAX 15:49 · JFK 18:49
    ♥ Do have faith in what you're doing.