Skip to content

Commit 2f6ef95

Browse files
committed
chore: update version to 8.0.0 and document changes
1 parent c2e4c96 commit 2f6ef95

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

CHANGELOG

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
== 8.0.0 2025-06-27
2+
3+
Improvements:
4+
* Added support for retries in the `FFMPEG::Transcoder` class. This allows for more robust command
5+
argument composing and thus more stable outputs.
6+
7+
Breaking Changes:
8+
* The `FFMPEG::Status::ExitError` class has been renamed to `FFMPEG::ExitError`.
9+
* The `FFMPEG::ExitError` class now holds a reference to the `StringIO` output of the FFmpeg command
10+
(before it contained the `String` representation).
11+
112
== 7.1.4 2025-06-23
213

314
Fixes:

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,12 @@ transcoder = FFMPEG::Transcoder.new(
106106
# to optimize the transcoding process.
107107
presets: [preset],
108108
# The reporters are used to generate reports during the transcoding process.
109-
reporters: [FFMPEG::Reporters::Progress, FFMPEG::Reporters::Silence]
109+
reporters: [FFMPEG::Reporters::Progress, FFMPEG::Reporters::Silence],
110+
# The checks are used to validate the output files after the transcoding process.
111+
# They can be symbols, in which case they refer to methods on the `FFMPEG::Transcoder::Status` class,
112+
# or objects that respond to `call` (such as lambdas or procs), in which case they will be called with
113+
# the `FFMPEG::Transcoder::Status` object as an argument.
114+
checks: %i[exist?]
110115
) do
111116
# This block sets up the input arguments of the ffmpeg command.
112117
# It uses the same DSL to define the arguments as the preset does for the output arguments.
@@ -131,7 +136,7 @@ status = transcoder.process(media, '/path/to/output') do |report|
131136
end
132137
end
133138

134-
status.success? # true (would be false if ffmpeg fails to transcode the media)
139+
status.success? # true (returns true if the exit status is zero and all checks passed)
135140
status.exitstatus # 0 (the exit status of the ffmpeg command)
136141
status.paths # ['/path/to/output.mp4'] (the paths of the output files)
137142
status.media # [FFMPEG::Media] (the media objects of the output files)

lib/ffmpeg/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module FFMPEG
4-
VERSION = '7.1.4'
4+
VERSION = '8.0.0'
55
end

0 commit comments

Comments
 (0)