Changes between Version 1 and Version 2 of Encode/PremierePro


Ignore:
Timestamp:
Nov 27, 2012, 5:48:51 AM (6 years ago)
Author:
llogan
Comment:

actually add content

Legend:

Unmodified
Added
Removed
Modified
  • Encode/PremierePro

    v1 v2  
    1 = How to Encode with FFmpeg from Adobe Premiere Pro =
     1= How to encode with `ffmpeg` from Adobe Premiere Pro =
    22
    3 llogan is making another stub and then not immediately finishing the article.
     3Adobe Media Encoder can lack the quality, flexibility, and control that `ffmpeg` can provide. There are two main methods to get your movie from Premier to `ffmpeg`:
     4
     5* Output to a lossless intermediate file
     6* Use a frameserver
     7
     8Creating a lossless intermediate file and using it as an input for `ffmpeg` might seem simpler, but it has two obvious downsides: you have to wait for the file to be encoded, and the output file size can be very large. A frameserver will transfer the data to `ffmpeg` without the need for a large temporary file, but it is a more complicated method. Both methods have their uses and this guide will show how to do both.
     9
     10  '''Note:''' These instructions were written using Adobe Premiere Pro CS6.
     11
     12== Outputting to a lossless intermediate file ==
     13
     141. Save your project and close Premiere Pro
     15
     162. Install [http://umezawa.dyndns.info/archive/utvideo/?C=M;O=D Ut Video]. It is a fast, lossless video encoder (and decoder).
     17
     183. Open Premiere, select your sequence, and choose "File > Export > Media" (or hit ''Ctrl+M'').
     19
     204. Under "Export Settings" choose "Format: AVI" and make sure "Export Video" and "Export Audio" are both checked. Then under "Video Codec" choose "Ut Video Codec YUV420". Lastly, check your "Basic Video Settings" to make sure Premiere did not screw around with the frame size, frame rate, etc, as it is apt to do.
     21
     225. Now you can encode with `ffmpeg` using your lossless file as an input. See the [[x264EncodingGuide|FFmpeg and x264 Encoding Guide]] for more information. You can then delete the temporary lossless file once you are satisfied with your `ffmpeg` output.
     23
     24== Using a frameserver ==
     25
     261. Install [http://www.debugmode.com/frameserver/ Debugmode FrameServer], [http://avisynth.org/ Avisynth] (32-bit), and [http://ffmpeg.zeranoe.com/builds/ ffmpeg] (32-bit static build).
     27
     282. Create an Avisynth script named `frameserver.avs` by opening a text editor and adding the following (assuming your working directory is `c:\encode`):
     29
     30{{{
     31AviSource("c:\encode\output.avi")
     32}}}
     33
     343. Open Premiere, select your sequence, and choose "File > Export > Media" (or hit ''Ctrl+M'').
     35
     364. Under "Export Settings" choose "Format: !DebugMode !FrameServer" and make sure "Export Video" and "Export Audio" are both checked. Give your file the same name and path as shown in your Avisynth script (`output.avi` in `c:\encode` for this example).
     37
     385. The !FrameServer setup window will appear. Choose "Next".
     39
     406. Now you can encode with `ffmpeg` using your Avisynth script as an input. Example:
     41
     42{{{
     43ffmpeg -i encode/frameserver.avs -c:v libx264 -preset medium -crf 23 -pix_fmt yuv420p -c:a libmp3lame -q:a 4 output.mp4
     44}}}
     45
     46See the [[x264EncodingGuide|FFmpeg and x264 Encoding Guide]] for more encoding details and examples.
     47
     48== FAQ ==
     49=== `ffmpeg` gives me an error ===
     50
     51{{{
     52[avs @ 0000000001ffde40] AVIFileOpen failed with error -2147221164
     53encode/frameserver.avs: Operation not permitted
     54}}}
     55
     56This means you are probably trying to use 64-bit `ffmpeg` with 32-bit Avisynth. For simplicity this guide demonstrated usage of 32-bit builds.
     57
     58=== The "Export Settings" window in Premiere does not show up ===
     59Probably a bug in Premiere when using Debugmode !FrameServer. Save your project and restart Premiere. It's the Windows Way™.