GithubHelp home page GithubHelp logo

xxy.github.io's Introduction

xxy.github.io

小小爻的个人网站

FFMPEG 常用命令

使用cmd执行

  1. 视频剪切
ffmpeg -i input.ogv -ss 00:00:30.0 -c copy -t 00:00:10.0 output.mp4
ffmpeg -i input.wmv -ss 30 -c copy -t 10 output.wmv
ffmpeg -i input.wmv -ss 30 -c copy -to 40 output.wmv
:: -ss 指定开始时间
:: -t 持续时间
:: -to 结束时间
:: 较短的视频可以用
"C:\Program Files\Shotcut\ffmpeg.exe" -ss 00:00:01 -t 00:00:03 -i out.mp4 -vcodec copy -acodec copy output.mp4
  1. 格式转换(支持音视频
ffmpeg.exe -i input.flv -f mp4 output.mp4
  1. 码率控制
    • bitrate = file size / duration
  • 比如一个文件20.8M,时长1分钟,那么,码率就是:
  • biterate = 20.8M bit/60s = 20.810241024*8 bit/60s= 2831Kbps
:: 码率从原码率转成2Mbps码率
ffmpeg -i input.mp4 -b:v 2000k output.mp4

xxy.github.io's People

Contributors

forthesakuya avatar

Watchers

 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.