peg-this 4.0.0__py3-none-any.whl → 4.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- peg_this/features/audio.py +63 -16
- peg_this/features/batch.py +105 -79
- peg_this/features/convert.py +179 -95
- peg_this/features/crop.py +63 -34
- peg_this/features/inspect.py +71 -21
- peg_this/features/join.py +85 -31
- peg_this/features/subtitle.py +397 -0
- peg_this/features/trim.py +40 -10
- peg_this/peg_this.py +4 -1
- peg_this/utils/validation.py +228 -0
- peg_this-4.1.0.dist-info/METADATA +283 -0
- peg_this-4.1.0.dist-info/RECORD +21 -0
- {peg_this-4.0.0.dist-info → peg_this-4.1.0.dist-info}/WHEEL +1 -1
- peg_this-4.0.0.dist-info/METADATA +0 -164
- peg_this-4.0.0.dist-info/RECORD +0 -19
- {peg_this-4.0.0.dist-info → peg_this-4.1.0.dist-info}/entry_points.txt +0 -0
- {peg_this-4.0.0.dist-info → peg_this-4.1.0.dist-info}/licenses/LICENSE +0 -0
- {peg_this-4.0.0.dist-info → peg_this-4.1.0.dist-info}/top_level.txt +0 -0
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: peg_this
|
|
3
|
-
Version: 4.0.0
|
|
4
|
-
Summary: A powerful and intuitive command-line video editor, built on FFmpeg.
|
|
5
|
-
Author-email: Hariharen S S <thisishariharen@gmail.com>
|
|
6
|
-
Project-URL: Homepage, https://github.com/hariharen9/ffmpeg-this
|
|
7
|
-
Project-URL: Documentation, https://github.com/hariharen9/ffmpeg-this/blob/main/README.md
|
|
8
|
-
Project-URL: Funding, https://www.buymeacoffee.com/hariharen
|
|
9
|
-
Project-URL: Say Thanks!, https://saythanks.io/to/thisishariharen
|
|
10
|
-
Project-URL: Social, https://twitter.com/thisishariharen
|
|
11
|
-
Project-URL: Bug Tracker, https://github.com/hariharen9/ffmpeg-this/issues
|
|
12
|
-
Project-URL: Releases, https://github.com/hariharen9/ffmpeg-this/releases
|
|
13
|
-
Project-URL: Sponsor, https://github.com/sponsors/hariharen9
|
|
14
|
-
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
-
Classifier: Operating System :: OS Independent
|
|
17
|
-
Classifier: Topic :: Multimedia :: Video :: Conversion
|
|
18
|
-
Classifier: Topic :: Multimedia :: Video :: Non-Linear Editor
|
|
19
|
-
Requires-Python: >=3.8
|
|
20
|
-
Description-Content-Type: text/markdown
|
|
21
|
-
License-File: LICENSE
|
|
22
|
-
Requires-Dist: ffmpeg-python==0.2.0
|
|
23
|
-
Requires-Dist: questionary>=2.0.0
|
|
24
|
-
Requires-Dist: rich>=13.0.0
|
|
25
|
-
Requires-Dist: Pillow>=9.0.0
|
|
26
|
-
Dynamic: license-file
|
|
27
|
-
|
|
28
|
-
# 🎬 ffmPEG-this
|
|
29
|
-
|
|
30
|
-
<p align="center">
|
|
31
|
-
<a href="https://pypi.org/project/peg-this/">
|
|
32
|
-
<img src="https://img.shields.io/pypi/v/peg_this?color=blue&label=version" alt="PyPI Version">
|
|
33
|
-
</a>
|
|
34
|
-
<a href="https://pypi.org/project/peg-this/">
|
|
35
|
-
<img src="https://img.shields.io/pypi/pyversions/peg_this.svg" alt="PyPI Python Versions">
|
|
36
|
-
</a>
|
|
37
|
-
<a href="https://github.com/hariharen9/ffmpeg-this/blob/main/LICENSE">
|
|
38
|
-
<img src="https://img.shields.io/github/license/hariharen9/ffmpeg-this" alt="License">
|
|
39
|
-
</a>
|
|
40
|
-
<a href="https://pepy.tech/project/peg-this">
|
|
41
|
-
<img src="https://static.pepy.tech/badge/peg-this" alt="Downloads">
|
|
42
|
-
</a>
|
|
43
|
-
</p>
|
|
44
|
-
|
|
45
|
-
> Your Video editor within CLI 🚀
|
|
46
|
-
|
|
47
|
-
A powerful and user-friendly batch script for converting, manipulating, and inspecting media files using the power of FFmpeg. This script provides a simple command-line menu to perform common audio and video tasks without needing to memorize complex FFmpeg commands.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
<p align="center">
|
|
51
|
-
<img src="/assets/peg.gif" width="720">
|
|
52
|
-
</p>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
## ✨ Features
|
|
56
|
-
|
|
57
|
-
- **Inspect Media Properties**: View detailed information about video and audio streams, including codecs, resolution, frame rate, bitrates, and more.
|
|
58
|
-
- **Convert & Transcode**: Convert videos and audio to a wide range of popular formats (MP4, MKV, WebM, MP3, FLAC, WAV, GIF) with simple quality presets.
|
|
59
|
-
- **Join Videos (Concatenate)**: Combine two or more videos into a single file. The tool automatically handles differences in resolution and audio sample rates for a seamless join.
|
|
60
|
-
- **Trim (Cut) Videos**: Easily cut a video to a specific start and end time without re-encoding for fast, lossless clips.
|
|
61
|
-
- **Visually Crop Videos**: An interactive tool that shows you a frame of the video, allowing you to click and drag to select the exact area you want to crop.
|
|
62
|
-
- **Extract Audio**: Rip the audio track from any video file into MP3, FLAC, or WAV.
|
|
63
|
-
- **Remove Audio**: Create a silent version of your video by stripping out all audio streams.
|
|
64
|
-
- **Batch Conversion**: Convert all media files in the current directory to a specified format in one go.
|
|
65
|
-
- **CLI Interface**: A user-friendly command-line interface that makes it easy to perform common tasks and navigate the tool's features.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
## 🚀 Usage
|
|
69
|
-
### Prerequisite: Install FFmpeg
|
|
70
|
-
|
|
71
|
-
> [NOTE]
|
|
72
|
-
> `peg_this` uses a library called `ffmpeg-python` which acts as a controller for the main FFmpeg program. It does not include FFmpeg itself. Therefore, you must have FFmpeg installed on your system and available in your terminal's PATH.
|
|
73
|
-
|
|
74
|
-
For **macOS** users, the easiest way to install it is with [Homebrew](https://brew.sh/):
|
|
75
|
-
```bash
|
|
76
|
-
brew install ffmpeg
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
For **Windows** users, you can use a package manager like [Chocolatey](https://chocolatey.org/) or [Scoop](https://scoop.sh/):
|
|
80
|
-
```bash
|
|
81
|
-
# Using Chocolatey
|
|
82
|
-
choco install ffmpeg
|
|
83
|
-
|
|
84
|
-
# Using Scoop
|
|
85
|
-
scoop install ffmpeg
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
For other systems, please see the official download page: **[ffmpeg.org/download.html](https://ffmpeg.org/download.html)**
|
|
89
|
-
|
|
90
|
-
There are three ways to use `peg_this`:
|
|
91
|
-
|
|
92
|
-
### 1. Pip Install (Recommended)
|
|
93
|
-
This is the easiest way to get started. This will install the tool and all its dependencies.
|
|
94
|
-
|
|
95
|
-
```bash
|
|
96
|
-
pip install peg_this
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
Once installed, you can run the tool from your terminal:
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
peg_this
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
### 2. Download from Release
|
|
106
|
-
If you prefer not to install the package, you can download a pre-built executable from the [Releases](https://github.com/hariharen9/ffmpeg-this/releases/latest) page.
|
|
107
|
-
|
|
108
|
-
1. Download the executable for your operating system (Windows, macOS, or Linux).
|
|
109
|
-
2. Place it in a directory with your media files.
|
|
110
|
-
3. Run the executable directly from your terminal.
|
|
111
|
-
|
|
112
|
-
### 3. Run from Source
|
|
113
|
-
If you want to run the script directly from the source code:
|
|
114
|
-
|
|
115
|
-
1. **Clone the repository:**
|
|
116
|
-
```bash
|
|
117
|
-
git clone https://github.com/hariharen9/ffmpeg-this.git
|
|
118
|
-
cd ffmpeg-this
|
|
119
|
-
```
|
|
120
|
-
2. **Install dependencies:**
|
|
121
|
-
```bash
|
|
122
|
-
pip install -r requirements.txt
|
|
123
|
-
```
|
|
124
|
-
3. **Run the script:**
|
|
125
|
-
```bash
|
|
126
|
-
python -m src.peg_this.peg_this
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
## 📈 Star History
|
|
130
|
-
|
|
131
|
-
<p align="center">
|
|
132
|
-
<a href="https://star-history.com/#hariharen9/ffmpeg-this&Date">
|
|
133
|
-
<img src="https://api.star-history.com/svg?repos=hariharen9/ffmpeg-this&type=Date" alt="Star History Chart">
|
|
134
|
-
</a>
|
|
135
|
-
</p>
|
|
136
|
-
|
|
137
|
-
## ✨ Sponsor
|
|
138
|
-
|
|
139
|
-
<p align="center">
|
|
140
|
-
<a href="https://github.com/sponsors/hariharen9">
|
|
141
|
-
<img src="https://img.shields.io/github/sponsors/hariharen9?style=for-the-badge&logo=github&color=white" alt="GitHub Sponsors">
|
|
142
|
-
</a>
|
|
143
|
-
<a href="https://www.buymeacoffee.com/hariharen">
|
|
144
|
-
<img src="https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black" alt="Buy Me a Coffee">
|
|
145
|
-
</a>
|
|
146
|
-
</p>
|
|
147
|
-
|
|
148
|
-
## 👥 Contributors
|
|
149
|
-
|
|
150
|
-
<a href="https://github.com/hariharen9/ffmpeg-this/graphs/contributors">
|
|
151
|
-
<img src="https://contrib.rocks/image?repo=hariharen9/ffmpeg-this" />
|
|
152
|
-
</a>
|
|
153
|
-
|
|
154
|
-
## 🤝 Contributing
|
|
155
|
-
|
|
156
|
-
Contributions are welcome! Please see the [Contributing Guidelines](CONTRIBUTING.md) for more information.
|
|
157
|
-
|
|
158
|
-
## 📄 License
|
|
159
|
-
|
|
160
|
-
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
|
|
161
|
-
|
|
162
|
-
<p align="center">
|
|
163
|
-
<h2>Made with ❤️ by <a href="https://hariharen.site">Hariharen</a></h2>
|
|
164
|
-
</p>
|
peg_this-4.0.0.dist-info/RECORD
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
peg_this/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
peg_this/peg_this.py,sha256=0KaDkZ2r2gNUkXaYZOCNG8ps9zD41tYVxKfM5_YewkE,5093
|
|
3
|
-
peg_this/features/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
peg_this/features/audio.py,sha256=O0_lRjzolualxWVXiSiEke5vOpPGwkz0FbMQy5brO58,1533
|
|
5
|
-
peg_this/features/batch.py,sha256=72yXjNfvg-SCxjtaacFzFudmZ8Yd7_rLpvJzbwB8UdA,5178
|
|
6
|
-
peg_this/features/convert.py,sha256=fHlEx8iHEWBrwRfUH6w5ucXLhya7puiUO_DiE2w4kzE,8601
|
|
7
|
-
peg_this/features/crop.py,sha256=haDbDjSKbtNzC7UM5rr4ZizERmMrs4LAkmreNoirasM,7030
|
|
8
|
-
peg_this/features/inspect.py,sha256=xtlmedpsMYQ-vLsnDNzUF59TiZDFLGMyL_wtd8PgiHg,2535
|
|
9
|
-
peg_this/features/join.py,sha256=w_HUsuBv0g9nlOjVvdkeT9dDwxOEvdyvsYCwNocwl98,3414
|
|
10
|
-
peg_this/features/trim.py,sha256=2ZWSNpl4DzSCPt6q7FZloQc-Rga5cX8IW69MfzAZysE,863
|
|
11
|
-
peg_this/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
-
peg_this/utils/ffmpeg_utils.py,sha256=rmkfOXMNAKqRo3Dkv0aUnUSLxsTdjxDeKMdw3VSCtOU,5409
|
|
13
|
-
peg_this/utils/ui_utils.py,sha256=aIGmRuZEHnp9rAo-WlsfxAESrSTD0bXQMGXqWtnw9TI,1776
|
|
14
|
-
peg_this-4.0.0.dist-info/licenses/LICENSE,sha256=WL1MklYSco7KZvDjbf191tIKOxWQdekqda7dDJc6Wn8,1067
|
|
15
|
-
peg_this-4.0.0.dist-info/METADATA,sha256=bSk0w-PMQhxDJdWCGfKY7oQj3VmFYSb0PaWchrWLg2A,6513
|
|
16
|
-
peg_this-4.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
-
peg_this-4.0.0.dist-info/entry_points.txt,sha256=9GVTFuE1w_wgY-Tz3--wI5j52BAKrt4atphVD8ioHhQ,52
|
|
18
|
-
peg_this-4.0.0.dist-info/top_level.txt,sha256=kSS5jZg3KN2kJqYZwMvQnI4gvlFxsUNzIm3QJsbKFdc,9
|
|
19
|
-
peg_this-4.0.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|