Coder Social home page Coder Social logo

flv-toolbox-rs's Introduction

flv-toolbox-rs

flv 文件切片工具集合

安装

本工具使用 Rust 语言编写。安装好最新的 Rust 编译工具后,在目录下运行以下命令:

cargo build --release

编译完成后,可运行的程序将出现在 ./target/release 目录下。

flv-info

flv 文件信息查看

示例:

flv-info file.flv -m -a

说明:

打印出 file.flv 文件的信息,包括 metadata 信息,以及所有帧信息(包括非关键帧)。

flv-split

flv 分段切割工具

示例:

flv-split bigflvfile.flv -m 6 -p small- -u "http://127.0.0.1/videos/" -c

说明:

把 bigflvfile.flv 这个 flv 文件,按照每6钟一段切版。切片后文件为 small-1.flv, small-2.flv 等。并且生成配置文件 small-config.xml。 配置文件中视频的地址是 http://127.0.0.1/videos/small-1.flv, http://127.0.0.1/videos/small-2.flv 等。

注意:

原 flv 视频应该包括完整的 matadata 信息。可以由 yamdi 来注入。

flv-config

flv 分段配置生成工具

示例:

flv-config small-1.flv small-2.flv -c -u "http://127.0.0.1/videos/"

说明:

生成一个播放器能使用的切片视频配置文件,视频文件包括 small-1.flv, small-2.flv。视频内的链接是 http://127.0.0.1/videos/small-1.flv, http://127.0.0.1/videos/small-2.flv

flv-toolbox-rs's People

Contributors

aristotle9 avatar

Stargazers

 avatar HappyKanda avatar  avatar  avatar Lei Ma avatar maxzhang avatar Snorlax avatar xqq avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.