User Tools

Site Tools


processors:encoder_h264

H264 encoder

Purpose

Encodes x264 video and AAC or PCM audio (MP4, M4V, MOV, MKV or MXF).

AAC PCM 16 bit PCM 24 bit
MP4 OK / /
MOV OK OK OK
M4V OK / /
MKV OK OK OK
MXF / OK OK

Special Input Field "Custom x264 options"

Override the x264 configuration using a :-separated list of key=value parameters

Single option:

threads=2

Multiple Options:

threads=2:keyint=12

Use “GPU” support (depending on your Hardware setup, this can influence encoding speed and CPU usage):

opencl=true

Original Manual



This encoder can produce files ready for use in YouTube, iPhone, Android and most media players.

Video size

This option will scale the output video to the defined size. At default FFAStrans will take the input width and height variables of the source video and apply it to scaling. Note that interlaced aware scaling are automatically taken care of.

Display aspect

Sets the display aspect (DAR) on the output media.

Pixel aspect

Sets the pixel aspect (PAR) on the output media.

Resizing

Sets the resizing method for how the source should fit to the output size.

Stretch will stretch the source to fit regardless of aspect.

Fit will fit the entire source within the output size and keep aspect. This might cause letterboxing or curtains.

Fill will make sure the output is filled with source image while keeping aspect.

Video range

Sets the video range of the output.

Same as source implies no change and the encoder will forward the range from the input.

Set to full/limited will just set the video range metadata.

Convert to full/limited will convert the input to set value. If input range is same as output no converion is being performed.

Color space

Enables you to define what color space the output will be.

Same as source implies no change and the encoder will use same color specs as input.

Apply LUT or automatic tone mapping

Enables using a LUT in the conversion. This option also support using a custom by setting using a variable representing the full path to a .cube file. Variables representing any of the available inbuilt LUTs is also supported.

None implies no LUTs are being used in the conversion.

Auto (LUT) will try to analyze the input file and the desired out color space and apply the corresponding LUT for it.

Auto (Tone mapping) will convert using tone mapping algorithm instead of a static LUT.

Framerate

Force a different framerate than the input media. Default is to use the same as source.

Interlaced input

With this option you can choose how FFAStrans processes incoming media to the encoder. The "Analyze"option will determine from the actual video, not meta-data.

Field order

Sets the field order of the video.

Video bitrate (kb/s)

Sets the bitrate of the video.

Level

Sets the encoding level of the x264 encoder.

Profile

Selects the encoding profile of the x264 encoder. The 10 bit profiles will create 10 bit video that may not be compatible with older players.

Tune

Defines how encoding is tuned to match your particular source material

Quality/speed

Sets the speed vs. quality preset.

Force 4:2:0 8 bit for compatibility

This options increases compatibility with (older) players that don't support higher pixel formats. It will also force 8 bit encoding even if you have chosen a 10 bit profile.

Faststart

If you want the file to be streamable you must check this option.

Colorspace

Sets the desired output colorspace.

Wrapper

Sets container type for output media. Note that if MXF is selected output will be forced to intra frames only.

Force 16:9 aspect on SD sources

Sets the output aspect ratio to 16 /9 for SD material only.

Discrete tracks

Sets the number of audio tracks/streams of the output file. One track can have one ore more channels.

Source channels as tracks

This setting will distribute all source audio channels into discrete mono channels.

Same as source

This settings will make FFAStrans try and create the exact same layout as the original media.

Total channels

Sets the total amount of channels the output file holds. The channels are evenly distributed among the available discrete tracks defined. Regardless of the original layout, all audio channels are mapped to separate audio sources. Based on this, FFAStrans will map these sources to match selected audio configuration.. If the audio source has fewer channels than the output then the rest will be filled with silent audio.

If "Same as source" is selected, FFAStrans will try and use the same audio layout as the source, if it complies with the MP4 muxer.

If you select "Custom channel mapping" in the "Total channels" drop-down, FFAStrans will enable setting custom mapping per audio track:

Set custom mapping

This will open a separate window displaying all discrete track selected in the "Discrete tracks" drop-down.

For usage and how to configure press the "?" button in the "Custom audio mapping" window.

Format

Sets the audio format/codec. Note that PCM audio is only available when wrapper is MOV, MKV or MXF.

Audio bitrate (kb/s)

Sets the bitrate of the audio stream(s). This option is only available when format is set to PCM.

Sample rate

Sets the sample rate of all audio streams.

Conform volume

Use this to conform volume level to specified level. For this to work you MUST have a variable table from a previous analyze in the "Loudness"-node. You can also use this option to normalize audio by using the peak levels from "Loudness"-node. Maximum level is 0 dB.

Custom x264 options

Lets you specify you own x264 options not available in the GUI. Custom options will override all other GUI options if there's a conflict. The notation is the exact same as the -x264opts/-x264-params ffmpeg options. Please refer to the ffmpeg documentations for usage.

2019/12/09 16:19
processors/encoder_h264.txt · Last modified: 2021/10/31 17:47 by benjamin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki