ConverterRecompressAudio Method
ReCompress the audio track of a video file.
Namespace: DevCase.ThirdParty.FFmpegAssembly: 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
)
Public Function RecompressAudio (
inputFilepath As String,
outputFilepath As String,
overWrite As Boolean,
audioCodec As FFmpegAudioCodec,
bitrate As FFmpegAudioBitrate,
Optional preserveMetadata As Boolean = false,
Optional threads As Integer = 1
) As Integer
Dim instance As Converter
Dim inputFilepath As String
Dim outputFilepath As String
Dim overWrite As Boolean
Dim audioCodec As FFmpegAudioCodec
Dim bitrate As FFmpegAudioBitrate
Dim preserveMetadata As Boolean
Dim threads As Integer
Dim returnValue As Integer
returnValue = instance.RecompressAudio(inputFilepath,
outputFilepath, overWrite, audioCodec,
bitrate, preserveMetadata, threads)
public:
int RecompressAudio(
String^ inputFilepath,
String^ outputFilepath,
bool overWrite,
FFmpegAudioCodec audioCodec,
FFmpegAudioBitrate bitrate,
bool preserveMetadata = false,
int threads = 1
)
member RecompressAudio :
inputFilepath : string *
outputFilepath : string *
overWrite : bool *
audioCodec : FFmpegAudioCodec *
bitrate : FFmpegAudioBitrate *
?preserveMetadata : bool *
?threads : int
(* Defaults:
let _preserveMetadata = defaultArg preserveMetadata false
let _threads = defaultArg threads 1
*)
-> int
No code example is currently available or this language may not be supported.
- 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.
Int32
The process exit code.
Note: Some functionalities of this assembly may require to install one or all of the listed applications:
FFmpeg (ffmpeg.exe)