![]() input ( s3, bucket_name = "bucket-name", key = "video.mp4" ) from ffmpeg_streaming import S3 s3 = S3 ( aws_access_key_id = 'YOUR_KEY_ID', aws_secret_access_key = 'YOUR_KEY_SECRET', region_name = 'YOUR_REGION' ) video = ffmpeg_streaming. You can open a file from a cloud by passing an instance of the Cloud object to the input method. input ( '"PATH TO A VIDEO FILE" or "PATH TO A LIVE HTTP STREAM"' ) 2. See FFmpeg Protocols Documentation for more information about supported resources such as HTTP, FTP, and etc.įor example: video = ffmpeg_streaming. You can pass a local path of video(or a supported resource) to the input method: video = ffmpeg_streaming. There are several ways to open a resource. Install the package via pip: pip install python-ffmpeg-video-streamingĪlternatively, add the dependency directly to your requirements.txt file: python-ffmpeg-video-streaming>=0.1įirst of all, you need to import the package in your code: import ffmpeg_streaming Opening a Resource You will need both FFmpeg and FFProbe binaries to use it. To use this package, you need to install the FFmpeg. ![]() This version of the package is only compatible with Python 3.8 or higher. If you find any bugs in the library, please file an issue. In this version(>=v0.1.0) all codes are rewritten from scratch.Full Documentation is available describing all features and components.There are several options to open a file from a cloud and save files to clouds as well. This package uses the FFmpeg to package media content for online streaming such as DASH and HLS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |