Grey Lee

has a blog.

How to convert video from PNG image sequence to VP6A (VP6 with alpha channel)

| Comments

說到這個「含有 Alpha Channel 的 Flash Video」,事實上 Flash Player 支援的影片格式中,唯一可以使用 Alpha Channel 的也只有 VP6A (VP6 with alpha channel) 一種,不過相關資訊實在是少得可憐,好像只有日本人有在玩這項技術。我研究了兩天的結論如下:

VP6 with alpha channel (Sorenson Squeeze)
  1. FFmpeg 將 PNG 包裝成 AVI,指令是 ffmpeg -i %4d.png -r 30 -vcodec png BadApple.avi。這樣做出來的 AVI 檔,雖然用 MediaInfo 檢測出來是 30 fps 無誤,但一般播放軟體都會以為它是 25 fps…… 所以我最後只好再將 avi 用 mmg 重新包成 mkv,並在 mmg 中覆寫 FPS 值,然後再用 FFmpeg 包回 avi。

  2. 將影片載入至 Sorenson Squeeze

    • 編碼選項中要勾 “Compress Alpha Data”。
    • Alpha Data Rate 的設定要視你的影片內容而定。以 Bad Apple!! 而言,Alpha Data Rate 應該要設非常高,因為這段影片只有 alpha channel 有在動,其他的 red, green, blue channels 從頭到尾都是空的。

順便解釋一下 Profile 應該選哪一個,VP6-E 是比較舊的 Profile,適合 500Kbps 以下的網路串流播放,而 VP6-S 則比較適合高解析度的影片。功告成!

Comments