V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
magicdawn

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

  •  
  •   magicdawn ·
    magicdawn · Apr 15, 2023 · 2016 views
    This topic created in 1111 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   ·   5393 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 62ms · UTC 07:18 · PVG 15:18 · LAX 00:18 · JFK 03:18
    ♥ Do have faith in what you're doing.