typed-ffmpeg-compatible 2.6.0__py3-none-any.whl → 2.6.2__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
typed_ffmpeg/info.py CHANGED
@@ -56,7 +56,9 @@ def get_codecs() -> tuple[Codec, ...]:
56
56
 
57
57
  retcode = p.poll()
58
58
  if p.returncode != 0:
59
- raise FFMpegExecuteError(retcode=retcode, cmd=command_line(args), stdout=out, stderr=err)
59
+ raise FFMpegExecuteError(
60
+ retcode=retcode, cmd=command_line(args), stdout=out, stderr=err
61
+ )
60
62
 
61
63
  codecs = out.decode("utf-8")
62
64
  codecs_lines = codecs.strip().split("\n")
@@ -141,7 +143,9 @@ def get_decoders() -> tuple[Coder, ...]:
141
143
 
142
144
  retcode = p.poll()
143
145
  if p.returncode != 0:
144
- raise FFMpegExecuteError(retcode=retcode, cmd=command_line(args), stdout=out, stderr=err)
146
+ raise FFMpegExecuteError(
147
+ retcode=retcode, cmd=command_line(args), stdout=out, stderr=err
148
+ )
145
149
 
146
150
  decoders = out.decode("utf-8")
147
151
  return get_coders(decoders)
@@ -155,7 +159,9 @@ def get_encoders() -> tuple[Coder, ...]:
155
159
 
156
160
  retcode = p.poll()
157
161
  if p.returncode != 0:
158
- raise FFMpegExecuteError(retcode=retcode, cmd=command_line(args), stdout=out, stderr=err)
162
+ raise FFMpegExecuteError(
163
+ retcode=retcode, cmd=command_line(args), stdout=out, stderr=err
164
+ )
159
165
 
160
166
  encoders = out.decode("utf-8")
161
167
  return get_coders(encoders)
typed_ffmpeg/probe.py CHANGED
@@ -11,7 +11,12 @@ from .utils.run import command_line
11
11
  logger = logging.getLogger(__name__)
12
12
 
13
13
 
14
- def probe(filename: str | Path, cmd: str = "ffprobe", timeout: int | None = None, **kwargs: Any) -> dict[str, Any]:
14
+ def probe(
15
+ filename: str | Path,
16
+ cmd: str = "ffprobe",
17
+ timeout: int | None = None,
18
+ **kwargs: Any,
19
+ ) -> dict[str, Any]:
15
20
  """
16
21
  Run ffprobe on the given file and return a JSON representation of the output
17
22
 
@@ -38,6 +43,8 @@ def probe(filename: str | Path, cmd: str = "ffprobe", timeout: int | None = None
38
43
 
39
44
  retcode = p.poll()
40
45
  if p.returncode != 0:
41
- raise FFMpegExecuteError(retcode=retcode, cmd=command_line(args), stdout=out, stderr=err)
46
+ raise FFMpegExecuteError(
47
+ retcode=retcode, cmd=command_line(args), stdout=out, stderr=err
48
+ )
42
49
 
43
50
  return json.loads(out.decode("utf-8"))
typed_ffmpeg/schema.py CHANGED
@@ -2,7 +2,6 @@
2
2
  Defines the basic schema for the ffmpeg command line options.
3
3
  """
4
4
 
5
-
6
5
  from .common.schema import StreamType
7
6
 
8
7