|
|||||
![]() |
|
|
|
Prerequisites: Xcode and Macports, if you do not have these refer to this thread and follow the first two steps.
Programs Needed: FFMPEG, x264, mkvtoolnix Installation: To install ffmpeg type sudo port install ffmpeg into terminal and press enter. To install x264 type sudo port install x264 into terminal and press enter. To install mkvtoolnix download it from here. Encoding: Step 1: Render the video and audio out of your editing program uncompressed. Render them separately. If you are not familiar with uncompressed audio it's PCM wav so just use that. Render uncompressed avi for the video. Step 2: Use ffmpeg to convert the uncompressed audio to aac. 256k is plenty for aac in my opinion, but you can use whatever (more or less) you want. The command is Code:
ffmpeg -i INPUT.wav -acodec libfaac -ab 256k -vn OUTPUT.aac In order to convert to y4m, you need to use avi as source. Mov doesn't work for creating proper y4m files. Step 3: Use ffmpeg to convert the uncompressed video to yuv4mpeg. The command is below. Code:
ffmpeg -threads 0 -i INPUT.avi -f yuv4mpegpipe -an -pix_fmt yuv420p OUTPUT.y4m Step 4: Use x264 to encode the yuv4mpeg file you just created with the following command. Code:
x264 --level 4.1 --bluray-compat --crf 20.0 --keyint 24 --open-gop --ref 4 --weightp 0 --slices 4 --vbv-bufsize 30000 --vbv-maxrate 40000 --pic-struct --colorprim bt709 --transfer bt709 --colormatrix bt709 --keyint 24 --threads auto --output OUTPUT.mkv INPUT.y4m Script that I wrote that does all these steps for you: http://www.mediafire.com/?m5ptad6sltr157g Just make sure not to have any spaces in the input file name. After rendering cloud's montage I realized that ffmpeg is NOT the ideal way to render x264 on a mac. I stayed up all night, played around with x264 in terminal, and amazingly, it worked. This is basically the equivalent of using fragtality's preset for megui on windows, which was my goal with ffmpeg for cloud's montage, but failed to accomplish. This works though and is definitely my recommendation. This has been tested and is reliable. Enjoy. Last edited by bjorn_248; 08-08-2011 at 04:17 AM. |
|
Oh, sorry for the delayed response. The output path is specified in OUTPUT.y4m so your desktop would be /Users/(your username here)/Desktop/yuvfile.y4m
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|