fid-ffmpeg 0.3.4__py3-none-any.whl → 0.3.6__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,10 +2,16 @@ import typer
2
2
  import subprocess
3
3
  from pathlib import Path
4
4
  import shutil
5
+ from welcome import welcome
5
6
  app = typer.Typer()
6
7
 
7
8
  formats = [".mp4",".mov",".avi",".webm"]
8
9
 
10
+ @app.callback(invoke_without_command=True)
11
+ def start(ctx : typer.Context):
12
+ if ctx.invoked_subcommand is None:
13
+ welcome()
14
+
9
15
  def ffmpeg():
10
16
  if shutil.which("ffmpeg")is None:
11
17
  print("ffmpeg isn't installed\n download from: https://ffmpeg.org/download.html")
@@ -17,7 +23,6 @@ def ckvideo(vid:Path):
17
23
  raise typer.Exit()
18
24
 
19
25
 
20
-
21
26
  @app.command()
22
27
  def info(vid: Path):
23
28
  ffmpeg()
@@ -48,6 +53,7 @@ def gif(vid: Path):
48
53
  gif=vid.with_suffix(".gif")
49
54
  subprocess.run(["ffmpeg", "-i", str(vid), "-t", "3", "-vf", "scale=320:-1", "-y", str(gif)], check=True)
50
55
 
56
+
51
57
  @app.command()
52
58
  def mute(vid: Path):
53
59
  ffmpeg()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fid-ffmpeg
3
- Version: 0.3.4
3
+ Version: 0.3.6
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,8 @@
1
+ fid/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ fid/fid.py,sha256=VE9zX5ZX-v3Q9yLUtBMklqRddzAjFfZoqqOPfYeBZVo,2093
3
+ fid_ffmpeg-0.3.6.dist-info/licenses/LICENSE,sha256=8HFb3MtS3r_RTfGUr8mm6IbZocu4o4vc2f2U00Z3Tmc,255
4
+ fid_ffmpeg-0.3.6.dist-info/METADATA,sha256=fj46bqysH7XGTWIIgUWtvDQrm4pcNeod56w6HY7m5nw,1126
5
+ fid_ffmpeg-0.3.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ fid_ffmpeg-0.3.6.dist-info/entry_points.txt,sha256=wc8Iju3nkXAuyqF5NB1276l_AGtakuifMGR3D42dqB8,36
7
+ fid_ffmpeg-0.3.6.dist-info/top_level.txt,sha256=5jgogeo314G3j_oXUp3BE4wBE3t82ijRwLwF1KnYiDg,4
8
+ fid_ffmpeg-0.3.6.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- fid/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- fid/fid.py,sha256=O6PpCUMSlfaAl5_OSW-pLNhiHVuWy__t6u00jrcsaaU,1926
3
- fid_ffmpeg-0.3.4.dist-info/licenses/LICENSE,sha256=8HFb3MtS3r_RTfGUr8mm6IbZocu4o4vc2f2U00Z3Tmc,255
4
- fid_ffmpeg-0.3.4.dist-info/METADATA,sha256=hFxzXVZj5JQIJGdFlNVkFNsEyGkZlYdMAH_5MyuQlDI,1126
5
- fid_ffmpeg-0.3.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- fid_ffmpeg-0.3.4.dist-info/entry_points.txt,sha256=wc8Iju3nkXAuyqF5NB1276l_AGtakuifMGR3D42dqB8,36
7
- fid_ffmpeg-0.3.4.dist-info/top_level.txt,sha256=5jgogeo314G3j_oXUp3BE4wBE3t82ijRwLwF1KnYiDg,4
8
- fid_ffmpeg-0.3.4.dist-info/RECORD,,