FFmpegConversion class

From Catglobe Wiki
Revision as of 06:12, 14 November 2019 by Administrator (talk | contribs) (Created page with "{{CGscriptClass_Template |Name=<nowiki>FFmpegConversion</nowiki> |Description=<nowiki>Glue class to call FFmpeg library to convert media</nowiki> |Constructors= {{CGscriptCons...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

FFmpegConversion



Glue class to call FFmpeg library to convert media

Constructors

  • (Attachment attachment "Attachment to convert") - Convert existing file
  • (string filename "Name of the file", bool isTemp "Is the file temporary") - Convert existing file

Methods

  • number Convert() - Start the conversion process, return number of seconds it took
  • Empty SetAudioConversionToMp3(int nth "Pick the nth audiostream in the source", int compression "Level of compression from 0 to 9, with 9 being worst quality. see https://trac.ffmpeg.org/wiki/Encode/MP3") - Convert the source audio stream to MP3 format. If the source is already mp3. If already mp3 and similar or lower quality in source no further loss is done
  • string ToString() - The string representation of the object.

Properties

  • string ObjectTypeName { get; } - The name of the type of object.
  • TypeInformation TypeInformation { get; } - Get information about this class.