Open alexger opened 1 month ago
when running with ffmpeg 7, some formats are not properly parsed by getAvailableFormats and thus can not be used.
getAvailableFormats
ffmpeg 7 adds a new column to the output of -formats command:
-formats
..d = Is a device
https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/pull/1274 partially addressed that issue, but only for formats where the new column is a space.
Formats that have d do not match the existing regex and are silently ignored.
d
One example is lavfi format which right now can not be used due to this issue.
lavfi
The fix is to ammend the parsing regex to expect an optional space or 'd'. This way both new and old versions of ffmpeg are supported.
I've added a test for lavfi which fails without this fix when run with ffmpeg 7.
when running with ffmpeg 7, some formats are not properly parsed by
getAvailableFormats
and thus can not be used.ffmpeg 7 adds a new column to the output of
-formats
command:https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/pull/1274 partially addressed that issue, but only for formats where the new column is a space.
Formats that have
d
do not match the existing regex and are silently ignored.One example is
lavfi
format which right now can not be used due to this issue.The fix is to ammend the parsing regex to expect an optional space or 'd'. This way both new and old versions of ffmpeg are supported.
I've added a test for
lavfi
which fails without this fix when run with ffmpeg 7.