V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Goat121
V2EX  ›  问与答

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

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