V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
magicdawn
V2EX  ›  分享创造

ff-helper: ffmpeg napi-rs binding 实现的 Node.js API helper

  •  
  •   magicdawn ·
    magicdawn · 2023-04-15 03:38:11 +08:00 · 1025 次点击
    这是一个创建于 378 天前的主题,其中的信息可能已经有所发展或是发生改变。

    ff-helper

    https://github.com/magicdawn/ff-helper

    主要功能

    视频信息

    • getVideoDuration 获取视频时长
    • getVideoRotation 获取视频 display_matrix rotation
    • getVideoInfo => width / height / duration / rotation

    获取视频信息虽然通过 ffprobe 也可以做到, 但是 ffprobe, ffmpeg-probe, ffprobe-normalized 等 wrapper 都不太好用. 索性自己造一个

    screengen

    发现 https://github.com/mutschler/mt 在用 https://gitlab.com/opennota/screengen

    于是 port 到 napi-rs + Node.js 中了, 用于生成给定时间戳的截图

    more

    see github homepage

    Note

    这不是一个完整的 ffmpeg binding, 而是 binding 实现的 helper, 如其名.

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1021 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 18:49 · PVG 02:49 · LAX 11:49 · JFK 14:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.