Table of Contents
Custom FFmpeg Encoder
Purpose
Customized encoding using FFMpeg.
How it works
It is very similar to using a commandline processor for calling ffmpeg but it automatically inserts everything up to “-i” and the output filename in the executed ffmpeg commandline.
Usually we engineer ffmpeg commandline processing in a windows cmd.exe box. The final result of such an experiment leads for example to this commandline:
C:\ffmpeg\ffmpeg.exe -i "C:\test\myfile.mp4" -codec copy -map 0 "C:\temp\myoutput.mp4"
In order to automate this commandline, we could now use either a commandline processor in ffastrans, we just need to change it to something like this:
"%s_ffmpeg%" -i "%s_source%" -codec copy -map 0 "%s_source%_transcoded.mp4"
Also, if the job goes on with the transcoded file, in the commandline processor we would check the “set s_source” to: “%s_source%_transcoded.mp4”
Now, in a Custom ffmpeg processor, we would insert only this portion (and check that the codec text inputs are empty):
-codec copy -map 0
Custom ffmpeg processor would automatically insert before -codec:
"%s_ffmpeg%" -i "%s_source%"
and after -map 0 it would insert some output filename that goes into the current working directory of the FFAStrans job. Also, it would automatically take care that the variable s_source is filled with the generated filename.
Original Manual
This encoder enables you to make your own custom FFMpeg based encoder. You can also save your setting for later use. This way you can write you own extensive set of encoders. Please consult the FFMpeg documentation on how to use FFMpeg's options.
Note: If you are using this encoder in conjunction with the "A/V Media" decoder you might need to add a "Channel Mapper" filter since "A/V Media" decoder allows outputting more audio channels than the specified audio codec.
Audio codec
The FFMpeg audio codec to use. E.g. pcm_s16le or aac.
Audio bitrate
This is the audio bitrate to encode. Note that when using uncompressed codec, the audio bitrate is discarded.
Video codec
The FFMpeg video codec to use: E.g. “mpeg2video” or “dvvideo”.
Audio bitrate
This is the video bitrate to encode.
FFmpeg options
This is where all other ffmpeg options are inserted like, filters, special encoding options, mapping, etc. Linefeed (enter) will be treated as space character on execution.
Extension
Sets the extension for the output file. If left blank you must specify you own output file in the"Options" with an "-y <output. ext>". Example:
Options = '-c:v mpeg4 -y "D:\Out\my_output. mov"'
Note: If "nul", "null" or no extension is specified, the encoder will output to null, and thus no file will be written. Useful for benchmarking.