ffmpeg bit_rate分析

使用ffmpeg -i 1.flv 命令

Input #0, flv, from '1.flv':
  Duration: 00:01:05.49, start: 0.056000, bitrate: 639 kb/s
    Stream #0:0: Video: h264 (High), yuv420p, 1134x600 [SAR 1:1 DAR 189:100], 29
8967 kb/s, 25 fps, 18 tbr, 1k tbn, 50 tbc

    Stream #0:1: Audio: mp3, 11025 Hz, mono, s16p, 128 kb/s

可以看出,video的bitrate=298967kb/s,明显这个值是偏大的,不对的. 

对照1.flv文件,可以看出,其实x264 的bitrate=800kb/s



那么上面的打印显然不是从x264部分获取的,而是从1.flv文件头获取的.文件头如下:



与flv类似,3gp也是从文件头获取的,所以其实这个值并不可靠,可靠的是总字节除以总时间。


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... Getting help: -h -- print basic options -h long -- print more options -h full -- print all options (including all format and codec specific options, very long) See man ffmpeg for detailed description of the options. Print help / information / capabilities: -L show license -h topic show help -? topic show help -help topic show help --help topic show help -version show version -buildconf show build configuration -formats show available formats -devices show available devices -codecs show available codecs -decoders show available decoders -encoders show available encoders -bsfs show available bit stream filters -protocols show available protocols -filters show available filters -pix_fmts show available pixel formats -layouts show standard channel layouts -sample_fmts show available audio sample formats -colors show available color names -sources device list sources of the input device -sinks device list sinks of the output device Global options (affect whole program instead of just one file: -loglevel loglevel set logging level -v loglevel set logging level -report generate a report -max_alloc bytes set maximum size of a single allocated block -y overwrite output files -n never overwrite output files -stats print progress report during encoding -max_error_rate ratio of errors (0.0: no errors, 1.0: 100% error maximum error rate -bits_per_raw_sample number set the number of bits per raw sample -vol volume change audio volume (256=normal) Per-file main options: -f fmt force format -c codec codec name -codec codec

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值