fid-ffmpeg 0.4.8__py3-none-any.whl → 0.4.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 CHANGED
@@ -24,12 +24,14 @@ def start(ctx : typer.Context):
24
24
  video_path= questionary.path("enter the path to your video:").ask()
25
25
  if video_path is None:
26
26
  raise typer.Exit()
27
- if Path(video_path).is_file():
28
- fid_main(video_path)
27
+
28
+ cPath= Path(video_path.strip('"').strip("'"))
29
+ if cPath.is_file():
30
+ fid_main(str(cPath))
29
31
  break
30
32
  else:
31
- console.print(f"[red]Error: '{video_path}' is not a valid file path. Please try again.[/red]")
32
-
33
+ print(f"[red]Error: '{video_path}' is not a valid file path. Please try again.[/red]")
34
+
33
35
  audio_main(app)
34
36
  compress_main(app)
35
37
  frames_main(app)
fid/fid_interactive.py CHANGED
@@ -6,7 +6,7 @@ from .tasks.extract.extract_interactive import extract_main
6
6
  from .tasks.stream.stream_interactive import stream_main
7
7
  from .tasks.video.video_interactive import video_main
8
8
 
9
- def fid_main(video_path):
9
+ def fid_main(cPath):
10
10
 
11
11
  while True:
12
12
  choice= questionary.select(
@@ -8,6 +8,7 @@ def ffmpeg():
8
8
  raise typer.Exit()
9
9
 
10
10
  def ckvideo(video_path:Path):
11
- if not vid.exists():
11
+ path_str = Path(video_path)
12
+ if not path_str.exists():
12
13
  print("file doesn't exist :)")
13
14
  raise typer.Exit()
@@ -1,3 +1,4 @@
1
+
1
2
  import questionary
2
3
  import typer
3
4
  #from .h264 import h264
@@ -19,15 +20,7 @@ def encode_main(video_path):
19
20
  if choice is None:
20
21
  raise typer.Exit()
21
22
 
22
- if choice=="encode to h264":
23
- h264(video_path)
24
-
25
- elif choice=="encode to h265":
26
- h265(video_path)
27
-
28
- elif choice=="encode to av1":
29
- av1(video_path)
30
-
23
+
31
24
  elif choice=="Back to main menu":
32
25
  return
33
26
 
@@ -40,34 +40,7 @@ def extract_main(video_path):
40
40
 
41
41
  elif choice=="extract frames":
42
42
  frames(video_path)
43
- """""""""
44
- elif choice=="extract subtitles":
45
- subtitles(video_path)
46
43
 
47
- elif choice=="extract chapters":
48
- chapters(video_path)
49
-
50
- elif choice=="extract thumbnails":
51
- thumbnails(video_path)
52
-
53
- elif choice=="extract keyframes":
54
- keyframes(video_path)
55
-
56
- elif choice=="extract audio_track":
57
- audio_track(video_path)
58
-
59
- elif choice=="extract audio_channels":
60
- audio_channels(video_path)
61
-
62
- elif choice=="extract subtitles_track":
63
- subtitles_track(video_path)
64
-
65
- elif choice=="subtitles convert":
66
- subtitles_convert(video_path)
67
-
68
- elif choice=="extract attachments":
69
- attachments(video_path)
70
- """""""""
71
44
  elif choice=="Back to main menu":
72
45
  return
73
46
 
fid/tasks/info.py CHANGED
@@ -1,12 +1,12 @@
1
1
  import typer
2
2
  import subprocess
3
3
  from pathlib import Path
4
- from .initial_files.error_handling import ffmpeg , ckvideo
4
+ from ..initial_files.error_handling import ffmpeg , ckvideo
5
5
 
6
6
 
7
7
  def info(video_path: Path):
8
8
  ffmpeg()
9
- ckvideo(video_path)
9
+ ckvideo(cPath)
10
10
  subprocess.run(["ffprobe", "-v", "error", "-show_format", "-show_streams", str(video_path)], check=True)
11
11
  def info_main(app: typer.Typer):
12
12
  app.command()(info)
@@ -27,28 +27,7 @@ def stream_main(video_path):
27
27
 
28
28
  if choice is None:
29
29
  raise typer.Exit()
30
- """""""""
31
- if choice=="stream with hls":
32
- hls(video_path)
33
-
34
- elif choice=="stream with rtmp":
35
- rtmp(video_path)
36
-
37
- elif choice=="stream with dash":
38
- dash(video_path)
39
-
40
- elif choice=="stream with srt":
41
- srt(video_path)
42
-
43
- elif choice=="stream with udp":
44
- udp(video_path)
45
-
46
- elif choice=="stream with rtsp":
47
- rtsp(video_path)
48
30
 
49
- elif choice=="stream with http":
50
- http(video_path)
51
- """""""""
52
31
  elif choice=="Back to main menu":
53
32
  return
54
33
 
@@ -37,28 +37,9 @@ def video_main(video_path):
37
37
 
38
38
  elif choice=="make gif":
39
39
  gif(video_path)
40
- """""""""
41
- elif choice=="speed up/down":
42
- speed(video_path)
43
-
44
- elif choice=="change fps":
45
- fps(video_path)
46
-
47
- elif choice=="concat videos":
48
- concat(video_path)
49
-
50
- elif choice=="crop video":
51
- crop(video_path)
52
-
53
- elif choice=="resize video":
54
- resize(video_path)
55
-
56
- elif choice=="rotate video":
57
- rotate(video_path)
58
-
59
- elif choice=="trim video":
60
- trim(video_path)
61
- """""""""
40
+
41
+
42
+
62
43
  elif choice=="Back to main menu":
63
44
  return
64
45
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fid-ffmpeg
3
- Version: 0.4.8
3
+ Version: 0.4.9
4
4
  Summary: FFmpeg-based CLI tool for video and audio operations like editing, extracting, streaming, and encoding
5
5
  Author-email: Omar Abdalgwad <ahlawyomar95@gmail.com>
6
6
  License: MIT License
@@ -1,11 +1,11 @@
1
1
  fid/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- fid/fid.py,sha256=HYobyALoaydu7Z8T-_BCKHEcF--MT7Xac9EcshIhoEU,1109
3
- fid/fid_interactive.py,sha256=kaEL_voTWf_lxjERTCaCrPBskOxsM_p7ElOShcZFsAk,1279
2
+ fid/fid.py,sha256=kHBNRSpyDedI0e-UUb4zUcpIVnEopdVNIrE2RHqw2ow,1135
3
+ fid/fid_interactive.py,sha256=oy_xGbZjPiwMb_3ByRoufRuJvEx47TsY1HIF3C56PCo,1274
4
4
  fid/welcome.py,sha256=2zjllb-_E1MhE6cBRX_w06Rk_5WZXZZ55Ec9MyD8W3M,838
5
5
  fid/initial_files/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- fid/initial_files/error_handling.py,sha256=Z1gSb90rS2Vy4VZHS9Zk7OHPL2o6NOw4ipzBQTmjLbo,351
6
+ fid/initial_files/error_handling.py,sha256=AlwtSDsoZpC-I8o-Un0Z9zVNH5oVDm7Qx1diI1IvN4Y,389
7
7
  fid/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- fid/tasks/info.py,sha256=lNj8mSI0FdjcQ8LOZndySkbA4UGGBBjFoS8EDmMHeMM,358
8
+ fid/tasks/info.py,sha256=_RVwlrMUTQt5wLtUhL4wui2kzmbg_hQDQWd-Nl72Gck,354
9
9
  fid/tasks/audio/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  fid/tasks/audio/audio_interactive.py,sha256=6iwNX8pa_SNG_cFRIR3U-9AGWGkBK2IH556NXn0KdZM,2533
11
11
  fid/tasks/audio/bitrate.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -25,7 +25,7 @@ fid/tasks/audio/trim.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  fid/tasks/audio/volume.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
26
  fid/tasks/encode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  fid/tasks/encode/av1.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
- fid/tasks/encode/encode_interactive.py,sha256=5PVz1zk4bBk52kRQweg8OBJwHffr11LTin_3pAcLqbc,864
28
+ fid/tasks/encode/encode_interactive.py,sha256=CK60vkpZ1qtrQ5ewEMZ1M3aoc0eT0oU21xbq2ZZBEOw,665
29
29
  fid/tasks/encode/h264.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
30
  fid/tasks/encode/h265.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
31
  fid/tasks/extract/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -34,7 +34,7 @@ fid/tasks/extract/audio.py,sha256=eWB3Y7xjmT2JQhhfF_v0EY5krCkkepE9IeqqqXEVJ9M,42
34
34
  fid/tasks/extract/audio_channels.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
35
  fid/tasks/extract/audio_track.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  fid/tasks/extract/chapters.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
- fid/tasks/extract/extract_interactive.py,sha256=ClZIN55V89Oii-hH7HA9n7txP2wA7ihoL8_sSh4rTzI,2241
37
+ fid/tasks/extract/extract_interactive.py,sha256=fZxslGvpiM61p7NdefsiBiQpFE1cOEbfxj8T77YQA0Y,1449
38
38
  fid/tasks/extract/frames.py,sha256=hJ4-yElJSh8Vjr7wAaP-STr8D83-EkILheTmhS98c9w,487
39
39
  fid/tasks/extract/keyframes.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
40
  fid/tasks/extract/subtitles.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -48,7 +48,7 @@ fid/tasks/stream/http.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
48
48
  fid/tasks/stream/rtmp.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
49
  fid/tasks/stream/rtsp.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
50
50
  fid/tasks/stream/srt.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
51
- fid/tasks/stream/stream_interactive.py,sha256=BHCNFhPEfQnDgGpnHEHPacsFolPpVEvWiQslGdCVicE,1480
51
+ fid/tasks/stream/stream_interactive.py,sha256=pN4RmAoTUWhxCJFkrd6N74xQhHybWNAAD6R9unpU_9E,913
52
52
  fid/tasks/stream/udp.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  fid/tasks/video/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
54
54
  fid/tasks/video/compressor.py,sha256=c5S6gDnE9u2RaMsoas_6tZSZOT74PhIfrrIYgZ0ihmE,569
@@ -60,10 +60,10 @@ fid/tasks/video/resize.py,sha256=KnIDdKk4HA77skQpClvLw82MdEamBtrCZfPnuZniTws,668
60
60
  fid/tasks/video/rotate.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
61
61
  fid/tasks/video/speed.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
62
62
  fid/tasks/video/trim.py,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
63
- fid/tasks/video/video_interactive.py,sha256=-Yir849udL7VZah8Z86_TbtXpg8kY9vUXn_q9h9EYpI,1688
64
- fid_ffmpeg-0.4.8.dist-info/licenses/LICENSE,sha256=F-pOyGrwdERPucmVHPPrD37KZZ7sphCDJeAzG5gxFOw,1091
65
- fid_ffmpeg-0.4.8.dist-info/METADATA,sha256=KdWC3eqMuoe8fj4ZlgpIeQAVhvcmDKjw_xM_FnGsNFA,4498
66
- fid_ffmpeg-0.4.8.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
67
- fid_ffmpeg-0.4.8.dist-info/entry_points.txt,sha256=wc8Iju3nkXAuyqF5NB1276l_AGtakuifMGR3D42dqB8,36
68
- fid_ffmpeg-0.4.8.dist-info/top_level.txt,sha256=5jgogeo314G3j_oXUp3BE4wBE3t82ijRwLwF1KnYiDg,4
69
- fid_ffmpeg-0.4.8.dist-info/RECORD,,
63
+ fid/tasks/video/video_interactive.py,sha256=lmvCXq6PbloGDKR3WXMpF1QlvFNc-QXMTpIVgwYmaU8,1190
64
+ fid_ffmpeg-0.4.9.dist-info/licenses/LICENSE,sha256=F-pOyGrwdERPucmVHPPrD37KZZ7sphCDJeAzG5gxFOw,1091
65
+ fid_ffmpeg-0.4.9.dist-info/METADATA,sha256=k_p7rDQ_sTC5rZHJKhw7gGcgI5MXdvkczhSuzZ_j92Y,4498
66
+ fid_ffmpeg-0.4.9.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
67
+ fid_ffmpeg-0.4.9.dist-info/entry_points.txt,sha256=wc8Iju3nkXAuyqF5NB1276l_AGtakuifMGR3D42dqB8,36
68
+ fid_ffmpeg-0.4.9.dist-info/top_level.txt,sha256=5jgogeo314G3j_oXUp3BE4wBE3t82ijRwLwF1KnYiDg,4
69
+ fid_ffmpeg-0.4.9.dist-info/RECORD,,