Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix parsing of ffmpeg 7 "is a device" formats #1276

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexger
Copy link

@alexger alexger commented May 23, 2024

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:

..d = Is a device

#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.

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:
```
..d = Is a device
```

fluent-ffmpeg#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.
@bakkot
Copy link

bakkot commented Oct 10, 2024

This also makes avfoundation work again (which looks like #492, but that was a different issue).

@LorDisturbia
Copy link

@schaermu any hope this gets released? Currently fluent-ffmpeg is unusable with FFMPEG 7 due to this. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants