better-ffmpeg-progress 2.5.3__tar.gz → 2.5.4__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: better-ffmpeg-progress
3
- Version: 2.5.3
3
+ Version: 2.5.4
4
4
  Summary: Run FFmpeg & see percentage progress + ETA.
5
5
  Home-page: https://github.com/CrypticSignal/better-ffmpeg-progress
6
6
  Author: GitHub.com/CrypticSignal
@@ -171,3 +171,4 @@ The `run` method takes the following **optional** arguments:
171
171
  [12/11/2024]
172
172
  - [v2.5.2] Drain any remaining FFmpeg stderr after the process ends.
173
173
  - [v2.5.3] Write FFmpeg stderr to the log file in real time.
174
+ - [v2.5.4] Include progress info in stderr if the duration of the input file cannot be detected.
@@ -152,4 +152,5 @@ The `run` method takes the following **optional** arguments:
152
152
 
153
153
  [12/11/2024]
154
154
  - [v2.5.2] Drain any remaining FFmpeg stderr after the process ends.
155
- - [v2.5.3] Write FFmpeg stderr to the log file in real time.
155
+ - [v2.5.3] Write FFmpeg stderr to the log file in real time.
156
+ - [v2.5.4] Include progress info in stderr if the duration of the input file cannot be detected.
@@ -58,8 +58,6 @@ class FfmpegProcess:
58
58
 
59
59
  # -progress pipe:1 sends progress metrics to stdout
60
60
  # -stats_period sets the period at which encoding progress/statistics are updated
61
- # -nostats ensures that progress information is not sent to stderr as this info is not needed in the log file, e.g.
62
- # frame= 1381 fps=254 q=18.0 size= 46592KiB time=00:00:46.07 bitrate=8283.1kbits/s speed=8.47x
63
61
  command.extend(
64
62
  [
65
63
  "-loglevel",
@@ -68,7 +66,6 @@ class FfmpegProcess:
68
66
  "pipe:1",
69
67
  "-stats_period",
70
68
  "0.1",
71
- "-nostats",
72
69
  ]
73
70
  )
74
71
 
@@ -97,6 +94,9 @@ class FfmpegProcess:
97
94
  print(
98
95
  f"The duration of {self._input_filepath.name} has been detected as {self._duration_secs} seconds"
99
96
  )
97
+ # -nostats ensures that progress information is not sent to stderr as this info is not needed in the log file, e.g.
98
+ # frame= 1381 fps=254 q=18.0 size= 46592KiB time=00:00:46.07 bitrate=8283.1kbits/s speed=8.47x
99
+ self._ffmpeg_command.extend(["-nostats"])
100
100
  except Exception:
101
101
  print(
102
102
  f"Could not detect the duration of '{self._input_filepath.name}'. Percentage progress, ETA and estimated filesize will be unavailable.\n",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: better-ffmpeg-progress
3
- Version: 2.5.3
3
+ Version: 2.5.4
4
4
  Summary: Run FFmpeg & see percentage progress + ETA.
5
5
  Home-page: https://github.com/CrypticSignal/better-ffmpeg-progress
6
6
  Author: GitHub.com/CrypticSignal
@@ -171,3 +171,4 @@ The `run` method takes the following **optional** arguments:
171
171
  [12/11/2024]
172
172
  - [v2.5.2] Drain any remaining FFmpeg stderr after the process ends.
173
173
  - [v2.5.3] Write FFmpeg stderr to the log file in real time.
174
+ - [v2.5.4] Include progress info in stderr if the duration of the input file cannot be detected.
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as f:
5
5
 
6
6
  setuptools.setup(
7
7
  name="better-ffmpeg-progress",
8
- version="2.5.3",
8
+ version="2.5.4",
9
9
  author="GitHub.com/CrypticSignal",
10
10
  author_email="theaudiophile@outlook.com",
11
11
  description="Run FFmpeg & see percentage progress + ETA.",