fid-ffmpeg 0.3.7__py3-none-any.whl → 0.3.9__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.
- fid/fid.py +2 -2
- fid/welcome.py +23 -16
- {fid_ffmpeg-0.3.7.dist-info → fid_ffmpeg-0.3.9.dist-info}/METADATA +12 -3
- fid_ffmpeg-0.3.9.dist-info/RECORD +9 -0
- {fid_ffmpeg-0.3.7.dist-info → fid_ffmpeg-0.3.9.dist-info}/WHEEL +1 -1
- fid_ffmpeg-0.3.7.dist-info/RECORD +0 -9
- {fid_ffmpeg-0.3.7.dist-info → fid_ffmpeg-0.3.9.dist-info}/entry_points.txt +0 -0
- {fid_ffmpeg-0.3.7.dist-info → fid_ffmpeg-0.3.9.dist-info}/licenses/LICENSE +0 -0
- {fid_ffmpeg-0.3.7.dist-info → fid_ffmpeg-0.3.9.dist-info}/top_level.txt +0 -0
fid/fid.py
CHANGED
|
@@ -34,7 +34,7 @@ def audio(vid: Path):
|
|
|
34
34
|
ffmpeg()
|
|
35
35
|
ckvideo(vid)
|
|
36
36
|
audio=vid.with_suffix(".mp3")
|
|
37
|
-
subprocess.run(["ffmpeg", "-i", str(vid), "-vn", "-acodec", "
|
|
37
|
+
subprocess.run(["ffmpeg", "-i", str(vid), "-vn", "-acodec", "libmp3lame", "-y", str(audio)], check=True)
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
@app.command()
|
|
@@ -51,7 +51,7 @@ def gif(vid: Path):
|
|
|
51
51
|
ffmpeg()
|
|
52
52
|
ckvideo(vid)
|
|
53
53
|
gif=vid.with_suffix(".gif")
|
|
54
|
-
subprocess.run(["ffmpeg", "-i", str(vid), "-t", "
|
|
54
|
+
subprocess.run(["ffmpeg", "-i", str(vid), "-t", "5", "-vf", "scale=320:-1", "-y", str(gif)], check=True)
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
@app.command()
|
fid/welcome.py
CHANGED
|
@@ -1,16 +1,23 @@
|
|
|
1
|
-
from rich.console import Console
|
|
2
|
-
from rich.panel import Panel
|
|
3
|
-
from rich.text import Text
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
from rich.console import Console
|
|
2
|
+
from rich.panel import Panel
|
|
3
|
+
from rich.text import Text
|
|
4
|
+
import pyfiglet
|
|
5
|
+
|
|
6
|
+
console = Console()
|
|
7
|
+
|
|
8
|
+
def welcome():
|
|
9
|
+
ascii=pyfiglet.figlet_format("fid-ffmpeg",font="slant")
|
|
10
|
+
logo = Text(ascii)
|
|
11
|
+
logo.stylize("bold gradient(blue, magenta)")
|
|
12
|
+
console.print(logo, justify="center")
|
|
13
|
+
content =(
|
|
14
|
+
"[bold]fid-ffmpeg Helper[/bold]\n\n"
|
|
15
|
+
"[green]Commands:[/green]\n"
|
|
16
|
+
" • info Show video info\n"
|
|
17
|
+
" • audio Extract audio\n"
|
|
18
|
+
" • frames Extract frames\n"
|
|
19
|
+
" • gif Create gif\n"
|
|
20
|
+
" • mute Remove audio\n"
|
|
21
|
+
" • compress Compress video\n\n"
|
|
22
|
+
"[dim]Run : fid <command> <video path>[/dim]")
|
|
23
|
+
console.print(Panel(content,title="fid-ffmpeg",border_style="cyan",expand=True))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fid-ffmpeg
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.9
|
|
4
4
|
Summary: based ffmpeg CLI for video operations
|
|
5
5
|
Author-email: omar_abdalgwad <ahlawyomar95@gmail.com>
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -9,7 +9,14 @@ Requires-Dist: typer>=0.7
|
|
|
9
9
|
Dynamic: license-file
|
|
10
10
|
|
|
11
11
|
# fid-ffmpeg
|
|
12
|
-
|
|
12
|
+
ffmpeg based cli for video operations
|
|
13
|
+
```bash
|
|
14
|
+
fid
|
|
15
|
+
```
|
|
16
|
+
https://github.com/user-attachments/assets/abcc8aa0-3ada-4548-8f99-987687cfccd9
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
https://github.com/user-attachments/assets/abcc8aa0-3ada-4548-8f99-987687cfccd9
|
|
13
20
|
|
|
14
21
|
## installation
|
|
15
22
|
|
|
@@ -20,7 +27,7 @@ simple ffmpeg based cli for video operations
|
|
|
20
27
|
pip install fid-ffmpeg
|
|
21
28
|
```
|
|
22
29
|
## installation demo
|
|
23
|
-
https://github.com/user-attachments/assets/
|
|
30
|
+
https://github.com/user-attachments/assets/6063b46b-dd4a-4cb3-a318-869f37bcf60f
|
|
24
31
|
|
|
25
32
|
## Commands
|
|
26
33
|
| Command | Description |
|
|
@@ -31,3 +38,5 @@ https://github.com/user-attachments/assets/5c1bb2ac-1793-44b8-8240-bc71a1919d5a
|
|
|
31
38
|
| `fid mute "videoPath"` | `mute the video` |
|
|
32
39
|
| `fid gif "videoPath"` | `make a gif from the video` |
|
|
33
40
|
| `fid frames "videoPath"` | `extract all video frames and add them in a folder`|
|
|
41
|
+
| `fid frames "videoPath"` | `extract all video frames and add them in a folder`|
|
|
42
|
+
| `fid compress "videoPath"` | `Compress the video to reduce its file size`|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
fid/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
fid/fid.py,sha256=9ruT8fdwZLY30vRQrL4TsJxWFL8X4IrglmeACuOII1M,2101
|
|
3
|
+
fid/welcome.py,sha256=rt8TZb9oDzHHYKuUCvO1lz4k_1bvThNc6vomaChE3ww,816
|
|
4
|
+
fid_ffmpeg-0.3.9.dist-info/licenses/LICENSE,sha256=8HFb3MtS3r_RTfGUr8mm6IbZocu4o4vc2f2U00Z3Tmc,255
|
|
5
|
+
fid_ffmpeg-0.3.9.dist-info/METADATA,sha256=9jT6Mw3iNgxGrjNBAhPHBLO6GvF9az3Zc4sKPn1NFOw,1465
|
|
6
|
+
fid_ffmpeg-0.3.9.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
7
|
+
fid_ffmpeg-0.3.9.dist-info/entry_points.txt,sha256=wc8Iju3nkXAuyqF5NB1276l_AGtakuifMGR3D42dqB8,36
|
|
8
|
+
fid_ffmpeg-0.3.9.dist-info/top_level.txt,sha256=5jgogeo314G3j_oXUp3BE4wBE3t82ijRwLwF1KnYiDg,4
|
|
9
|
+
fid_ffmpeg-0.3.9.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
fid/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
fid/fid.py,sha256=o9o5y_s_2lR2bBrBP9FgH8VMr5nyQJt5_c6HrVRQw6Q,2094
|
|
3
|
-
fid/welcome.py,sha256=gexzBqRn7Qi5__iurmk2_SVw47qxdruYcESBkvZRqtY,639
|
|
4
|
-
fid_ffmpeg-0.3.7.dist-info/licenses/LICENSE,sha256=8HFb3MtS3r_RTfGUr8mm6IbZocu4o4vc2f2U00Z3Tmc,255
|
|
5
|
-
fid_ffmpeg-0.3.7.dist-info/METADATA,sha256=1rNFmoAeaKa57o6K04RqHSxNg0nJniq9wcdkrcTtjW4,1126
|
|
6
|
-
fid_ffmpeg-0.3.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
-
fid_ffmpeg-0.3.7.dist-info/entry_points.txt,sha256=wc8Iju3nkXAuyqF5NB1276l_AGtakuifMGR3D42dqB8,36
|
|
8
|
-
fid_ffmpeg-0.3.7.dist-info/top_level.txt,sha256=5jgogeo314G3j_oXUp3BE4wBE3t82ijRwLwF1KnYiDg,4
|
|
9
|
-
fid_ffmpeg-0.3.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|