Name | MediaSwiftPy JSON |
Version |
2.1.1
JSON |
| download |
home_page | https://github.com/ROHIT-SINGH-1 |
Summary | A PYTHON PACKAGE FOR VIDEO CONVERSION AND PROBING USING MediaSwiftPy FFPLAY AND FFPROBE. |
upload_time | 2024-02-11 13:14:49 |
maintainer | |
docs_url | None |
author | ROHIT SINGH |
requires_python | >=3.9 |
license | GPL-3.0 |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
## [MediaSwiftPy] - EMPOWERING PYTHON WITH ADVANCED MULTIMEDIA OPERATIONS.
#### A POWERFUL PYTHON LIBRARY FOR SEAMLESS MULTIMEDIA OPERATIONS. MediaSwiftPy SIMPLIFIES COMPLEX TASKS, MAKING IT EASY TO INTEGRATE AND ENHANCE YOUR MULTIMEDIA APPLICATIONS. DIVE INTO THE FUTURE OF MEDIA HANDLING WITH MediaSwiftPy - YOUR GO-TO LIBRARY FOR 2024.
**KEY FEATURES:**
- **EFFORTLESS FILE CONVERSION .**
- **SEAMLESS MULTIMEDIA PLAYBACK .**
- **PROVIDING INFORMATION:**
**MediaSwiftPy ALSO OFFERS DETAILED MULTIMEDIA INFORMATION RETRIEVAL .**
### EXPLORE THE CAPABILITIES OF MediaSwiftPy AND ELEVATE YOUR PYTHON MULTIMEDIA PROJECTS WITH SIMPLICITY AND EFFICIENCY.
[![License](https://img.shields.io/badge/LICENSE-GPLv3-blue.svg)](https://github.com/yourusername/MediaSwiftPy/blob/main/LICENSE)
**[MediaSwiftPy]**: **IS A PYTHON LIBRARY THAT PROVIDES A SIMPLIFIED INTERFACE FOR USING MediaSwiftPy AND FFPROBE, ALLOWING USERS TO PERFORM VIDEO CONVERSION AND PROBING WITH EASE.**
## SUPPORTED CODECS, FORMATS, AND FORMATS:
### VIDEO CODECS: `H264`, `LIBX264`, `MPEG4`, `VP9`, `AV1`, `HEVC`, `MJPEG`, '--MORE--'.
### AUDIO CODECS: `AAC`, `MP3`, `OPUS`, `VORBIS`, `PCM`, `ALAC`, `FLAC`,'--MORE--'.
### SUPPORTED FILE EXTENSIONS: VIDEO FORMATS - `.MP4`, `.AVI`, `.MKV`, `.WEBM`, `.MOV`, `.WMV`; AUDIO FORMATS - `.MP3`, `.AAC`, `.OGG`, `.WAV`, `.FLAC`, '--MORE--'.
### ADDITIONAL FFMPEG FORMATS: `MJPEG`, `FLV`, `MOV`, `WMV`, `HEVC`, `PCM`, `ALAC`, `FLAC`, `PRORES`, `DV`, '--MORE--'.
**[MediaSwiftPy]: A VERSATILE LIBRARY WITH MANY SUPPORT FOR AUDIO AND VIDEO CODECS, AS WELL AS MULTIPLE FILE FORMATS.**
## LIST THE AVAILABLE CODECS AND FORMATES:
`ffmpe = ffpe()`
- `ffmpe.formats()`
- `ffmpe.codecs()`
#### USE `.formate()` AND `.codecs()` METHOD.
## - PLAY MEDIA USING FFPL
#### THE `ffpl` CLASS PROVIDES METHODS FOR PLAY MEDIA FILES. HERE ARE SOME EXAMPLES OF HOW TO USE THESE METHODS:
```python
from MediaSwiftPy import ffpl
play = ffpl()
media_file = r"PATH_TO_INPUT_FILE"
play.play(media_file)
```
#### USE THE `.play()` METHOD TO PLAY MEDIA.
## - Using the `ffpr` class
#### THE `ffpr` CLASS PROVIDES METHODS FOR PROBING MEDIA FILES. HERE ARE SOME EXAMPLES OF HOW TO USE THESE METHODS:
```python
from MediaSwiftPy import ffpr
ffprobe = ffpr()
info = ffprobe.probe(r"PATH_TO_INPUT_FILE")
ffprobe.pretty(info)
```
#### IN THIS EXAMPLE, REPLACE `"PATH_TO_MEDIA_FILE"` WITH THE ACTUAL PATH TO YOUR MEDIA FILE. THE `.probe` METHOD RETURNS A DICTIONARY CONTAINING INFORMATION ABOUT THE MEDIA FILE. THE `.pretty`
## - USING THE `FFPE` CLASS
#### THE `FFPE` CLASS PROVIDES METHODS FOR VIDEO CONVERSION, LISTING CODECS, AND LISTING FORMATS. HERE ARE SOME EXAMPLES OF HOW TO USE THESE METHODS:
#### - EXAMPLE - CONVERT SINGLE VIDEO USING THIS:
```python
from MediaSwiftPy import ffpe
ffmpe = ffpe()
ffmpe.convert(
input_files=[r"PATH_TO_INPUT_FILE"],
output_dir=r"PATH_TO_OUTPUT_FILE",
cv='h264', # VIDEO CODEC
ca='aac', # AUDIO CODEC
s='1920x1080', # VIDEO RESOLUTION
hwaccel='cuda', # HARDWARE ACCELERATION
ar=44100, # AUDIO SAMPLE RATE
ac=2, # AUDIO CHANNELS
ba=192000, # AUDIO BITRATE
r=30, # VIDEO FRAME RATE
f='mp4', # OUTPUT FORMAT
preset='fast', # PRESET FOR ENCODING
bv=2000 # VIDEO BITRATE
)
```
#### - EXAMPEL - CONVERT MULTIPLE VIDEO USING THIS:
- NOTE - ALWAYS SET INPUT FILE PATH IN SQUARE BRACKETS:
```python
from MediaSwiftPy import ffpe
ffpe_instance = ffpe()
input_files = [
r"PATH_TO_INPUT_FILE",
r"PATH_TO_INPUT_FILE",
# ADD MORE FILE PATHS AS NEEDED
]
output_directory = r"PATH_TO_OUTPUT_FILE"
ffpe_instance.convert_with_threading(
file_list=input_files,
output_dir=output_directory,
cv="libx264", # VIDEO CODEC
ca="aac", # AUDIO CODEC
s="1280x720", # VIDEO RESOLUTION
ar=44100, # AUDIO SAMPLE RATE
ac=2, # AUDIO CHANNELS
ba=128000, # AUDIO BITRATE
r=30, # VIDEO FRAME RATE
f="avi", # OUTPUT FORMAT
preset="medium", # PRESET FOR ENCODING
bv=1000000, # VIDEO BITRATE
)
```
#### - USE THE `.convert()` METHOD TO CONVERT MEDIA.
- NOTE - ALWAYS SET INPUT FILE PATH IN SQUARE BRACKETS:
## - IMPORT CLASS:
- `from MediaSwiftPy import ffpe, ffpl, ffpr`
- `from MediaSwiftPy import *`
## - INSTALLATION:
```bash
pip install MediaSwiftPy
```
## CONTACT
```
THIS PROJECT IS MAINTAINED BY [ROHIT SINGH]. FOR ANY QUERIES OR CONTRIBUTIONS TO CHECK MY GITHUB, PLEASE REACH OUT TO US. THANK YOU FOR USING 'MediaSwiftPy' PYTHON LIBRARY, NEW LIBRARY 2024.
```
Raw data
{
"_id": null,
"home_page": "https://github.com/ROHIT-SINGH-1",
"name": "MediaSwiftPy",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "",
"keywords": "",
"author": "ROHIT SINGH",
"author_email": "rs3232263@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/dd/23/132149016c1abb29c1f5e795618b3ca98b63d932b18366506c572040f1fa/MediaSwiftPy-2.1.1.tar.gz",
"platform": null,
"description": "## [MediaSwiftPy] - EMPOWERING PYTHON WITH ADVANCED MULTIMEDIA OPERATIONS.\r\n\r\n#### A POWERFUL PYTHON LIBRARY FOR SEAMLESS MULTIMEDIA OPERATIONS. MediaSwiftPy SIMPLIFIES COMPLEX TASKS, MAKING IT EASY TO INTEGRATE AND ENHANCE YOUR MULTIMEDIA APPLICATIONS. DIVE INTO THE FUTURE OF MEDIA HANDLING WITH MediaSwiftPy - YOUR GO-TO LIBRARY FOR 2024.\r\n\r\n**KEY FEATURES:**\r\n- **EFFORTLESS FILE CONVERSION .**\r\n- **SEAMLESS MULTIMEDIA PLAYBACK .**\r\n- **PROVIDING INFORMATION:**\r\n **MediaSwiftPy ALSO OFFERS DETAILED MULTIMEDIA INFORMATION RETRIEVAL .**\r\n\r\n\r\n### EXPLORE THE CAPABILITIES OF MediaSwiftPy AND ELEVATE YOUR PYTHON MULTIMEDIA PROJECTS WITH SIMPLICITY AND EFFICIENCY.\r\n\r\n\r\n[![License](https://img.shields.io/badge/LICENSE-GPLv3-blue.svg)](https://github.com/yourusername/MediaSwiftPy/blob/main/LICENSE)\r\n\r\n**[MediaSwiftPy]**: **IS A PYTHON LIBRARY THAT PROVIDES A SIMPLIFIED INTERFACE FOR USING MediaSwiftPy AND FFPROBE, ALLOWING USERS TO PERFORM VIDEO CONVERSION AND PROBING WITH EASE.**\r\n\r\n## SUPPORTED CODECS, FORMATS, AND FORMATS:\r\n\r\n### VIDEO CODECS: `H264`, `LIBX264`, `MPEG4`, `VP9`, `AV1`, `HEVC`, `MJPEG`, '--MORE--'.\r\n### AUDIO CODECS: `AAC`, `MP3`, `OPUS`, `VORBIS`, `PCM`, `ALAC`, `FLAC`,'--MORE--'.\r\n### SUPPORTED FILE EXTENSIONS: VIDEO FORMATS - `.MP4`, `.AVI`, `.MKV`, `.WEBM`, `.MOV`, `.WMV`; AUDIO FORMATS - `.MP3`, `.AAC`, `.OGG`, `.WAV`, `.FLAC`, '--MORE--'.\r\n### ADDITIONAL FFMPEG FORMATS: `MJPEG`, `FLV`, `MOV`, `WMV`, `HEVC`, `PCM`, `ALAC`, `FLAC`, `PRORES`, `DV`, '--MORE--'.\r\n\r\n**[MediaSwiftPy]: A VERSATILE LIBRARY WITH MANY SUPPORT FOR AUDIO AND VIDEO CODECS, AS WELL AS MULTIPLE FILE FORMATS.**\r\n\r\n\r\n## LIST THE AVAILABLE CODECS AND FORMATES:\r\n\r\n`ffmpe = ffpe()`\r\n\r\n- `ffmpe.formats()`\r\n- `ffmpe.codecs()`\r\n\r\n#### USE `.formate()` AND `.codecs()` METHOD.\r\n\r\n## - PLAY MEDIA USING FFPL\r\n#### THE `ffpl` CLASS PROVIDES METHODS FOR PLAY MEDIA FILES. HERE ARE SOME EXAMPLES OF HOW TO USE THESE METHODS:\r\n\r\n```python\r\nfrom MediaSwiftPy import ffpl\r\n\r\nplay = ffpl()\r\nmedia_file = r\"PATH_TO_INPUT_FILE\"\r\nplay.play(media_file)\r\n```\r\n\r\n#### USE THE `.play()` METHOD TO PLAY MEDIA.\r\n\r\n## - Using the `ffpr` class\r\n\r\n#### THE `ffpr` CLASS PROVIDES METHODS FOR PROBING MEDIA FILES. HERE ARE SOME EXAMPLES OF HOW TO USE THESE METHODS:\r\n\r\n```python\r\nfrom MediaSwiftPy import ffpr\r\n\r\nffprobe = ffpr()\r\n\r\ninfo = ffprobe.probe(r\"PATH_TO_INPUT_FILE\")\r\nffprobe.pretty(info)\r\n```\r\n\r\n#### IN THIS EXAMPLE, REPLACE `\"PATH_TO_MEDIA_FILE\"` WITH THE ACTUAL PATH TO YOUR MEDIA FILE. THE `.probe` METHOD RETURNS A DICTIONARY CONTAINING INFORMATION ABOUT THE MEDIA FILE. THE `.pretty`\r\n\r\n## - USING THE `FFPE` CLASS\r\n\r\n#### THE `FFPE` CLASS PROVIDES METHODS FOR VIDEO CONVERSION, LISTING CODECS, AND LISTING FORMATS. HERE ARE SOME EXAMPLES OF HOW TO USE THESE METHODS:\r\n\r\n#### - EXAMPLE - CONVERT SINGLE VIDEO USING THIS: \r\n```python\r\nfrom MediaSwiftPy import ffpe\r\n\r\nffmpe = ffpe()\r\n\r\nffmpe.convert(\r\n input_files=[r\"PATH_TO_INPUT_FILE\"],\r\n output_dir=r\"PATH_TO_OUTPUT_FILE\",\r\n cv='h264', # VIDEO CODEC\r\n ca='aac', # AUDIO CODEC\r\n s='1920x1080', # VIDEO RESOLUTION\r\n hwaccel='cuda', # HARDWARE ACCELERATION\r\n ar=44100, # AUDIO SAMPLE RATE\r\n ac=2, # AUDIO CHANNELS\r\n ba=192000, # AUDIO BITRATE\r\n r=30, # VIDEO FRAME RATE\r\n f='mp4', # OUTPUT FORMAT\r\n preset='fast', # PRESET FOR ENCODING\r\n bv=2000 # VIDEO BITRATE\r\n)\r\n```\r\n#### - EXAMPEL - CONVERT MULTIPLE VIDEO USING THIS: \r\n- NOTE - ALWAYS SET INPUT FILE PATH IN SQUARE BRACKETS: \r\n```python\r\nfrom MediaSwiftPy import ffpe\r\n\r\nffpe_instance = ffpe()\r\n\r\ninput_files = [\r\n r\"PATH_TO_INPUT_FILE\",\r\n r\"PATH_TO_INPUT_FILE\",\r\n # ADD MORE FILE PATHS AS NEEDED\r\n]\r\noutput_directory = r\"PATH_TO_OUTPUT_FILE\"\r\n\r\nffpe_instance.convert_with_threading(\r\n file_list=input_files,\r\n output_dir=output_directory,\r\n cv=\"libx264\", # VIDEO CODEC\r\n ca=\"aac\", # AUDIO CODEC\r\n s=\"1280x720\", # VIDEO RESOLUTION\r\n ar=44100, # AUDIO SAMPLE RATE\r\n ac=2, # AUDIO CHANNELS \r\n ba=128000, # AUDIO BITRATE \r\n r=30, # VIDEO FRAME RATE \r\n f=\"avi\", # OUTPUT FORMAT \r\n preset=\"medium\", # PRESET FOR ENCODING \r\n bv=1000000, # VIDEO BITRATE \r\n)\r\n```\r\n#### - USE THE `.convert()` METHOD TO CONVERT MEDIA.\r\n- NOTE - ALWAYS SET INPUT FILE PATH IN SQUARE BRACKETS: \r\n\r\n\r\n## - IMPORT CLASS:\r\n\r\n- `from MediaSwiftPy import ffpe, ffpl, ffpr`\r\n- `from MediaSwiftPy import *`\r\n\r\n## - INSTALLATION:\r\n\r\n```bash\r\npip install MediaSwiftPy\r\n```\r\n## CONTACT\r\n```\r\nTHIS PROJECT IS MAINTAINED BY [ROHIT SINGH]. FOR ANY QUERIES OR CONTRIBUTIONS TO CHECK MY GITHUB, PLEASE REACH OUT TO US. THANK YOU FOR USING 'MediaSwiftPy' PYTHON LIBRARY, NEW LIBRARY 2024.\r\n```\r\n",
"bugtrack_url": null,
"license": "GPL-3.0",
"summary": "A PYTHON PACKAGE FOR VIDEO CONVERSION AND PROBING USING MediaSwiftPy FFPLAY AND FFPROBE.",
"version": "2.1.1",
"project_urls": {
"Homepage": "https://github.com/ROHIT-SINGH-1"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6f4361246061c37a609552f9a13c6b5d6c8d779841f32d38ffa85a5015e44848",
"md5": "fe156c42edccb159a2c0c038bd5c826f",
"sha256": "2a81385ef3c2b827ef197a5c8c697a163ff91fe1005288ce234dd33fa545d599"
},
"downloads": -1,
"filename": "MediaSwiftPy-2.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "fe156c42edccb159a2c0c038bd5c826f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 64972943,
"upload_time": "2024-02-11T13:14:25",
"upload_time_iso_8601": "2024-02-11T13:14:25.606219Z",
"url": "https://files.pythonhosted.org/packages/6f/43/61246061c37a609552f9a13c6b5d6c8d779841f32d38ffa85a5015e44848/MediaSwiftPy-2.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dd23132149016c1abb29c1f5e795618b3ca98b63d932b18366506c572040f1fa",
"md5": "9e6870b4be64fbb81d96a2b1e8ea6a04",
"sha256": "f8f7ae823d1413eae66b36c24d6c519f3f9f97772abdd42ee1ca4e413a04eacf"
},
"downloads": -1,
"filename": "MediaSwiftPy-2.1.1.tar.gz",
"has_sig": false,
"md5_digest": "9e6870b4be64fbb81d96a2b1e8ea6a04",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 64972363,
"upload_time": "2024-02-11T13:14:49",
"upload_time_iso_8601": "2024-02-11T13:14:49.565791Z",
"url": "https://files.pythonhosted.org/packages/dd/23/132149016c1abb29c1f5e795618b3ca98b63d932b18366506c572040f1fa/MediaSwiftPy-2.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-11 13:14:49",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "mediaswiftpy"
}