Package: cloudmersive-video-api-client
cloudmersive_video_api_clientThe video APIs help you convert, encode, and transcode videos.This Python package provides a native API client forCloudmersive Video and Media ServicesAPI version: v1Package version: 3.0.4Build package: io.swagger.codegen.languages.PythonClientCodegenRequirements.Python 2.7 and 3.4+Installation & Usagepip installIf the python package is hosted on Github, you can install directly from Githubpipinstallgit+https://github.com/GIT_USER_ID/GIT_REPO_ID.git(you may need to runpipwith root permission:sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)Then import the package:importcloudmersive_video_api_clientSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importcloudmersive_video_api_clientGetting StartedPlease follow theinstallation procedureand then run the following:from__future__importprint_functionimporttimeimportcloudmersive_video_api_clientfromcloudmersive_video_api_client.restimportApiExceptionfrompprintimportpprint# Configure API key authorization: Apikeyconfiguration=cloudmersive_video_api_client.Configuration()configuration.api_key['Apikey']='YOUR_API_KEY'# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['Apikey'] = 'Bearer'# create an instance of the API classapi_instance=cloudmersive_video_api_client.AudioApi(cloudmersive_video_api_client.ApiClient(configuration))input_file='/path/to/file.txt'# file | Input file to perform the operation on. (optional)file_url='file_url_example'# str | Optional; URL of an audio file being used for conversion. Use this option for files larger than 2GB. (optional)bit_rate=56# int | Optional; Specify the desired bitrate of the converted audio file in kilobytes per second (kB/s). Value may be between 48 and 1,411. By default, the optimal bitrate will be chosen automatically. (optional)try:# Convert Audio File to AAC format.api_response=api_instance.audio_convert_to_aac(input_file=input_file,file_url=file_url,bit_rate=bit_rate)pprint(api_response)exceptApiExceptionase:print("Exception when calling AudioApi->audio_convert_to_aac:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://api.cloudmersive.comClassMethodHTTP requestDescriptionAudioApiaudio_convert_to_aacPOST/video/convert/to/aacConvert Audio File to AAC format.AudioApiaudio_convert_to_m4aPOST/video/convert/to/m4aConvert Audio File to M4A format.AudioApiaudio_convert_to_mp3POST/video/convert/to/mp3Convert Audio File to MP3 format.AudioApiaudio_convert_to_wavPOST/video/convert/to/wavConvert Audio File to WAV format.VideoApivideo_convert_to_gifPOST/video/convert/to/gifConvert Video to Animated GIF format.VideoApivideo_convert_to_movPOST/video/convert/to/movConvert Video to MOV format.VideoApivideo_convert_to_mp4POST/video/convert/to/mp4Convert Video to MP4 format.VideoApivideo_convert_to_still_framesPOST/video/convert/to/still-framesConvert Video to PNG Still Frames.VideoApivideo_convert_to_webmPOST/video/convert/to/webmConvert Video to WEBM format.VideoApivideo_cut_videoPOST/video/cutCut a Video to a Shorter LengthVideoApivideo_get_infoPOST/video/convert/get-infoGet detailed information about a video or audio fileVideoApivideo_resize_videoPOST/video/resize/preserveAspectRatioResizes a Video Preserving the Original Aspect Ratio.VideoApivideo_resize_video_simplePOST/video/resize/targetResizes a Video without Preserving Aspect Ratio.VideoApivideo_scan_for_nsfwPOST/video/scan/nsfwScan a Video for NSFW content.VideoApivideo_split_videoPOST/video/splitSplit a Video into Two Shorter VideosDocumentation For ModelsMediaInformationNsfwResultNsfwScannedFrameSplitVideoResultStillFrameStillFramesResultVideoFileDocumentation For AuthorizationApikeyType: API keyAPI key parameter name: ApikeyLocation: HTTP headerAuthor