CentOS yum方式安裝ffmpeg

來源:互聯網
上載者:User

標籤:

系統為CentOS 6.4,自己編譯ffmpeg和眾多解碼器太痛苦了,yum方式安裝ffmpeg的解碼器很全,先用用看。

1、安裝所需軟體?

yum install -y automake autoconf libtool gcc gcc-c++

2、安裝第三方更新源?

rpm -ivh http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.i686.rpm

3、安裝ffmpeg?

yum install ffmpeg ffmpeg-devel

會自動安裝眾多解碼器,ffmpeg版本為0.6.5-1.el6.rf。看了下yum安裝的解碼器版本還不是很舊,但是ffmpeg版本較老。

4、測試一下?
將一個.avi視屏轉為.flv格式?

ffmpeg -i Destination.avi -y -ab 56 -ar 22050 -r 15 -sameq test2.flv

轉換前後兩個檔案的格式比較:?
轉換前?

Destination.avi

General

Complete name : E:\PV\Destination.avi

Format : AVI

Format/Info : Audio Video Interleave

Format/Family : RIFF

File size : 79.5 MiB

PlayTime : 4mn 1s

Bit rate : 2754 Kbps

StreamSize : 469 KiB

Subject : doobie (2007)

Writing application : VirtualDubMod 1.5.10.2 (build 2540/release)

Writing library : VirtualDubMod build 2540/release

Video #0

Codec : XviD

Codec/Family : MPEG-4

Codec/Info : XviD project

Codec profile : Streaming Video Profile/Level 1

Codec settings/PacketBitStream : Yes

Codec settings/BVOP : Yes

Codec settings/QPel : No

Codec settings/GMC : 0

Codec settings/Matrix : Default

PlayTime : 4mn 1s

Bit rate : 2556 Kbps

Width : 640 pixels

Height : 480 pixels

Display Aspect ratio : 4/3

Frame rate : 29.976 fps

Resolution : 8 bits

Chroma : 4:2:0

Interlacement : Progressive

Bits/(Pixel*Frame) : 0.277

StreamSize : 73.5 MiB

Audio #1

Codec : MPEG-1 Audio layer 3

Codec profile : Joint stereo

PlayTime : 4mn 1s

Bit rate : 190 Kbps

Bit rate mode : CBR

Channel(s) : 2 channels

Sampling rate : 48 KHz

Resolution : 16 bits

StreamSize : 5.47 MiB

Writing library : Gogo (after 3.0)

轉換後?

test2.flv

General

Complete name : E:\PV\test2.flv

Format : Flash Video

File size : 45.0 MiB

PlayTime : 4mn 1s

Bit rate : 1564 Kbps

Video

Codec : Sorenson H263

PlayTime : 4mn 1s

Bit rate : 195 Kbps

Width : 640 pixels

Height : 480 pixels

Display Aspect ratio : 4/3

Frame rate : 15.000 fps

Bits/(Pixel*Frame) : 0.042

Audio

Codec : MPEG-1 Audio Layer 3

Bit rate : 55 bps

Channel(s) : 2 channels

Sampling rate : 22 KHz

Resolution : 16 bits

?

CentOS yum方式安裝ffmpeg

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.