fid-ffmpeg 0.3.5__py3-none-any.whl → 0.3.7__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 CHANGED
@@ -2,15 +2,15 @@ import typer
2
2
  import subprocess
3
3
  from pathlib import Path
4
4
  import shutil
5
- from welcome import welcome
5
+ from .welcome import welcome
6
6
  app = typer.Typer()
7
7
 
8
8
  formats = [".mp4",".mov",".avi",".webm"]
9
+
9
10
  @app.callback(invoke_without_command=True)
10
- def main(ctx: typer.context):
11
- welcome()
12
- if ctx_involved_subcommand id none:
13
- print(oops!)
11
+ def start(ctx : typer.Context):
12
+ if ctx.invoked_subcommand is None:
13
+ welcome()
14
14
 
15
15
  def ffmpeg():
16
16
  if shutil.which("ffmpeg")is None:
@@ -53,6 +53,7 @@ def gif(vid: Path):
53
53
  gif=vid.with_suffix(".gif")
54
54
  subprocess.run(["ffmpeg", "-i", str(vid), "-t", "3", "-vf", "scale=320:-1", "-y", str(gif)], check=True)
55
55
 
56
+
56
57
  @app.command()
57
58
  def mute(vid: Path):
58
59
  ffmpeg()
fid/welcome.py ADDED
@@ -0,0 +1,16 @@
1
+ from rich.console import Console
2
+ from rich.panel import Panel
3
+ from rich.text import Text
4
+ console = Console()
5
+ def welcome():
6
+ logo = Text("fid-ffmpeg", style="bold gradient(blue , magenta)")
7
+ console.print(logo ,justify="center")
8
+ console.print( Panel.fit("[bold] fid-ffmpeg Helper [/bold]\n\n"
9
+ "[green]Commands:[/green]\n"
10
+ " • info Show video info\n"
11
+ " • audio Extract audio\n"
12
+ " • frames Extract frames\n"
13
+ " • gif Create gif\n"
14
+ " • mute Remove audio\n"
15
+ " • compress Compress video\n\n"
16
+ "[dim]Run : fid <command> <video path>[/dim]", border_style="cyan",))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fid-ffmpeg
3
- Version: 0.3.5
3
+ Version: 0.3.7
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
@@ -0,0 +1,9 @@
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,,
@@ -1,8 +0,0 @@
1
- fid/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- fid/fid.py,sha256=9Y5HWADNxrYK79RWnDkJN7XkWRs5F-h5jzGBYIQLVdY,2106
3
- fid_ffmpeg-0.3.5.dist-info/licenses/LICENSE,sha256=8HFb3MtS3r_RTfGUr8mm6IbZocu4o4vc2f2U00Z3Tmc,255
4
- fid_ffmpeg-0.3.5.dist-info/METADATA,sha256=LLji_Um5FZExJFeTJIBprPIr-myXKCuQhkDrLTcFXWs,1126
5
- fid_ffmpeg-0.3.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- fid_ffmpeg-0.3.5.dist-info/entry_points.txt,sha256=wc8Iju3nkXAuyqF5NB1276l_AGtakuifMGR3D42dqB8,36
7
- fid_ffmpeg-0.3.5.dist-info/top_level.txt,sha256=5jgogeo314G3j_oXUp3BE4wBE3t82ijRwLwF1KnYiDg,4
8
- fid_ffmpeg-0.3.5.dist-info/RECORD,,