bramp / ffmpeg-cli-wrapper

Java wrapper around the FFmpeg command line tool
BSD 2-Clause "Simplified" License
1.72k stars 413 forks source link

FFmpeg.codecs() returns empty list #260

Closed Euklios closed 2 years ago

Euklios commented 2 years ago

Describe the bug FFmpeg.codecs() fails to load the present codecs and returns an empty list rather than the known ones.

To Reproduce

new FFmpeg().codecs()

Expected behavior A clear and concise description of what you expected to happen.

Version (if applicable):

Additional context The response seems to have changed at some point. While the current output of ffmpeg -codecs returns:

 D..... = Decoding supported
 .E.... = Encoding supported
 ..V... = Video codec
 ..A... = Audio codec
 ..S... = Subtitle codec
 ...I.. = Intra frame-only codec
 ....L. = Lossy compression
 .....S = Lossless compression
  -------
 D.VI.S 012v                 Uncompressed 4:2:2 10-bit
 D.V.L. 4xm                  4X Movie

We currently parse:

Codecs:
 D..... = Decoding supported
 .E.... = Encoding supported
 ..V... = Video codec
 ..A... = Audio codec
 ..S... = Subtitle codec
 ...S.. = Supports draw_horiz_band
 ....D. = Supports direct rendering method 1
 .....T = Supports weird frame truncation
 ------
 D V D  4xm             4X Movie

This difference results in the CODECS_REGEX never matching at all