Public Function Convert_Media( FileName, _ffmpegpath, InputPath, OutputPath, Width, Height, Video_Bitrate, FrameRate, Audio_Bitrate, Audio_SamplingRate, Duration, deinterlace)
Description:
Convert_Media() function is used to convert video from any format to flv format.
Parameter Detail:
-
String FileName : Name of source video that need to be encode e.g 'sample.mov'
- String _ffmpegpath: Path of ffmpeg.exe, need to be properly configure, view sample code section to learn more about how to be setup _ffmpegpath variable.
- String InputPath: Path of source video directory.
- String OutputPath: Path of destination video directory, where generated video will be store.
- Integer Width: Width of video.
- Integer Height: Height of video.
- Integer Video_Bitrate: Set video bitrate, read more...
- Float FrameRate: Set Framerate of output video, read more...
- Integer Audio_Bitrate: Set Audio Bitrate, read more...
- Integer Audio_SamplingRate: Set Audio Sampling Rate, read more...
- String Duration: Set the duration of output video, set "0" if you want to encode complete video, otherwise if you want to restrict video to certain limit e.g 2 minutes then provide appropriate value, value must be in this format : hh:mm:ss
- Boolean deinterlace: whether generated video should be deinterlace or not.
Returns:
- String: Generated Video Name plus with other output video information including duration of video, audio bitrate, audio sampling rate and more. Each value is separated with comma (,).
- or
- Error Codes - See Detail