2015年4月23日 星期四

FFmpeg (The easiest tutorial [limited arguments])

首先要上網抓別人Build好的Binary
首先要上網抓別人編譯好的執行檔

通常來說 Google 的第一個就是,不過我把我現在(Apr. 23th, 2015)找到的 Download FFmpeg 附一下好了。

Download FFmpeg -> Get the packages: Mac -> Static builds for OS X Intel 64-bit

NOTE: 不要抓錯抓到 “Builds 32-bit and 64-bit for OS X 10.5 and above” 的。同樣指令,我用這版會 build error,用上面那個不會。

http://evermeet.cx/ffmpeg/ 裡有 FFmpeg、 FFserver、 FFprobe、 FFplay 這幾個東西。只需要抓 FFmpeg 的即可。

”ffmpeg-71728-gba625dd.7z” 是 Trunk 版(最新版)。
”ffmpeg-2.6.2.7z” 是 Release/Tag 版(穩定版)。

我自己是抓 Release 版來用。把抓下來的 7z 檔解壓縮到 Downloads。

USER-MBP:~ user$ cd Downloads
USER-MBP:Downloads user$ ./ffmpeg -i Target\ File.flv Output.mp4


就這樣。程式就會開始轉檔,轉好的檔案就會叫做 Output.mp4。「-i」是要設定輸入(要轉檔)的檔案名。因為副檔名是 mp4,所以程式會自動地用 mp4 的相關設定來轉檔,並用預設的參數來執行。

還有一些高級參數像是 -2-pass 等等的參數我也還沒開始研究(之前查文章有瞄到但沒有記下來)。

Mac 的 Batch/Shell script 我還沒開始研究。等研究好了我就不用怕轉檔啦!!!

會想要學這個來轉,一是因為很早以前就聽過這東西名字很多次,每次聽到人們都說這是神器,二來我想用 iMessage 傳影片給壞蛋姆,但是 iMessage 不接受我從網路上抓下來的 FLV,我又不想用很爛的企鵝(PEnGUIn Encoder MP4)來轉成 MP4。所以就導致我開始來研究這東西了。

6 則留言:

  1. hey nice blog along with the great info. I also have something for you. have a look for the best extension between adblock plus vs adblock

    回覆刪除
  2. May i consider your ideas you are offered to your post. They are really convincing and will certainly work. mehandi designs for kids Thanks for the post.

    回覆刪除
  3. my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. thanks for sharing such a wonderful post Dictator

    回覆刪除
  4. May i consider your ideas you are offered to your post. They are really convincing and will certainly work. Visit opur blog also MyBeeline Georgia Thanks for the post.

    回覆刪除
  5. my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. thanks for sharing such a wonderful post. Thanks for sharing such a wonderful post Instrument Of Chaos . Thanks again.

    回覆刪除