File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
314Fixes:
Original file line number Diff line number Diff 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
132137end
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 )
135140status.exitstatus # 0 (the exit status of the ffmpeg command)
136141status.paths # ['/path/to/output.mp4'] (the paths of the output files)
137142status.media # [FFMPEG::Media] (the media objects of the output files)
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33module FFMPEG
4- VERSION = '7.1.4 '
4+ VERSION = '8.0.0 '
55end
You can’t perform that action at this time.
0 commit comments