ConverterRecompressAudio Method

ReCompress the audio track of a video file.

Definition

Namespace: DevCase.ThirdParty.FFmpeg
Assembly: DevCase.net48.ThirdParty.FFmpeg (in DevCase.net48.ThirdParty.FFmpeg.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public int RecompressAudio(
	string inputFilepath,
	string outputFilepath,
	bool overWrite,
	FFmpegAudioCodec audioCodec,
	FFmpegAudioBitrate bitrate,
	bool preserveMetadata = false,
	int threads = 1
)

Parameters

inputFilepath  String
The source video filepath.
outputFilepath  String
The target video filepath.
overWrite  Boolean
A value indicating whether to overwrite the target filepath if already exists.
audioCodec  FFmpegAudioCodec
The audio codec to use.
bitrate  FFmpegAudioBitrate
The audio bitrate.
preserveMetadata  Boolean  (Optional)
A value indicating whether to preserve the source video metadata in the target video.
threads  Int32  (Optional)
The amount of threads to use.

Default value is 1.

Return Value

Int32
The process exit code.

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed applications:

FFmpeg (ffmpeg.exe)

See Also