使用 PNG 壓縮的 .MOV 影片沒有 Alpha 通道

使用 PNG 壓縮的 .MOV 影片沒有 Alpha 通道

我有一個 QuickTime 檔案 .mov,其中包含使用 PNG 編解碼器壓縮的 alpha 通道。我需要的是使用 ffmpeg 建立該檔案的較小版本。一切正常,除了新的 mov 沒有 alpha(Adobe After Effects 和 Premiere 只能看到 RGB,ffprobe 說新檔案有 RBG 和 A 通道。:| 請幫忙。

這是我的命令列的最簡單版本:

ffmpeg -i inPNG.mov -vcodec copy -y outPNG.mov

我嘗試了以下開關但沒有成功:

  • -vcodec png
  • -pix_fmt rgb32 or bgra

Adobe Premiere 對新建立的檔案說了一些有趣的事情: QuickTime 詳細資訊:這是一部引用電影。目前還沒有進一步的細節。

這是 FFMPEG 的答案:

[ec2-user@domU-12-31-39-14-69-CF ec]$ ffmpeg -i "content/13400/13400 HD 1080.mov" -vcodec copy -y "content/13400/13400 HD 720.mov"
FFmpeg version SVN-r26400, Copyright (c) 2000-2011 the FFmpeg developers
  built on May 21 2012 22:25:19 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
  configuration: --enable-avfilter --enable-libmp3lame --disable-mmx --arch=x86_64 --enable-libfaac --enable-nonfree --enable-filter=movie --enable-libx264 --enable-gpl
  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 1 /  0.16. 1
  libavcodec    52.108. 0 / 52.108. 0
  libavformat   52.93. 0 / 52.93. 0
  libavdevice   52. 2. 3 / 52. 2. 3
  libavfilter    1.74. 0 /  1.74. 0
  libswscale     0.12. 0 /  0.12. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'content/13400/13400 HD 1080.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2012-11-01 11:51:39
  Duration: 00:00:02.00, start: 0.000000, bitrate: 51822 kb/s
    Stream #0.0(eng): Video: png, bgra, 1920x1080, 51793 kb/s, PAR 1920:1920 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Metadata:
      creation_time   : 2012-11-01 11:51:39
    Stream #0.1(eng): Data: tmcd / 0x64636D74, 0 kb/s
    Metadata:
      creation_time   : 2012-11-01 11:51:58
Output #0, mov, to 'content/13400/13400 HD 720.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2012-11-01 11:51:39
    encoder         : Lavf52.93.0
    Stream #0.0(eng): Video: png, bgra, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 51793 kb/s, 25 tbn, 25 tbc
    Metadata:
      creation_time   : 2012-11-01 11:51:39
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=   50 fps=  0 q=-1.0 Lsize=   12646kB time=2.00 bitrate=51797.6kbits/s
video:12645kB audio:0kB global headers:0kB muxing overhead 0.008295%

相關內容