ffmpeg

 2014-11-10 更新

 2014-11-16 更新:字幕提取相关

 2014-11-22 更新: 更多有用链接

==================


What is ffmpeg, avcodec, x264?

  • FFmpeg is a software project with lots of people involved, a Wiki, a bug tracker, some funding, etc.
  • ffmpeg is one of the tools they offer (others are ffplay and qt-faststart, for example).
  • Libav is a fork of the FFmpeg project, which supplies the avconv binary. They both develop independently, but FFmpeg usually merges commits from Libav—not the other way 'round. (Some might say Libav suffers from NIH). 

The ffmpeg tool is, like you said, a command line wrapper for a number of libraries designed for handling multimedia content. These include:

Common external encoders include:

  • libx264
  • libvpx (for VP8 and VP9 video)
  • libfaac, libfdk-aac, libvo-aacenc for AAC audio
  • libmp3lame
  • libvorbis
  • libxvid
FFmpeg and AAC Encoding Guide


What's the difference between FFmpeg's “-vcodec copy” and “-sameq”?


sameq does not mean "same quality"


=========== 2014-11-10 ============

General FFmpeg encoding guide

General FFmpeg encoding guide


  

   MPEG-4 Encoding Guide

  

FF  FFMPEG and H.264 Encoding Guide


FFmpeg command to convert to DivX

Up-to-date syntax:

ffmpeg -i input.file -c:v mpeg4 -q:v 5 -tag:v DIVX -s 640x480 -c:a libmp3lame -q:a 5 -ac 2 -ar 44100 output.avi

Old syntax:

ffmpeg -i input.file -vcodec mpeg4 -qscale 5 -vtag DIVX -s 640x480 -acodec libmp3lame -aq 5 -ac 2 -ar 44100 output.avi

Two-pass encoding

Note that Windows users need to use NUL rather than /dev/null. Use this if you want to target a specific size, otherwise just use the VBR quality-targeting -qscale option. These examples will fit a 90-minute movie onto a 700 MB CD-ROM.

Up-to-date syntax:

ffmpeg -y -i input.file -c:v mpeg4 -b:v 868k -tag:v DIVX -s 640x480 -an -pass 1 -f rawvideo /dev/null
ffmpeg -i input.file -c:v mpeg4 -b:v 868k -tag:v DIVX -s 640x480 -c:a libmp3lame -b:a 192k -ac 2 -ar 44100 -pass 2 output.avi

Old syntax:

ffmpeg -y -i input.file -vcodec mpeg4 -b 868k -vtag DIVX -s 640x480 -an -pass 1 -f rawvideo /dev/null
ffmpeg -i input.file -vcodec mpeg4 -b 868k -vtag DIVX -s 640x480 -acodec libmp3lame -ab 192k -ac 2 -ar 44100 -pass 2 output.avi

Note that you don't strictly need -ac 2, since MP3 only supports two channels, so any surround-sound audio will automatically get mixed down.

H.264 Profile、Level、Encoder三张简图

 H.264 Profile、Level、Encoder三张简图





=========== 2014-11-16 ============

wiki:How to use -map option


subtitle extraction


Extracting an embedded subtitle from a video file using FFMPEG


Is it possible to extract SubRip (SRT) subtitles from an MP4 video with ffmpeg?


AVIAddXSubs 9.15


=========== 2014-11-22 ============

FFmpeg Cheat Sheet


Guidelines for high quality lossy audio encoding

ConversionMatrix




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值