爱意满满的作品展示区。
magicdawn

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

  •  
  •   magicdawn ·
    magicdawn · Apr 15, 2023 · 2098 views
    This topic created in 1136 days ago, the information mentioned may be changed or developed.

    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, 如其名.

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3451 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 11:24 · PVG 19:24 · LAX 04:24 · JFK 07:24
    ♥ Do have faith in what you're doing.