YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
26 stars 8 forks source link

Show `ffmpeg` command + arguments when compiling #7578

Open gnysek opened 2 months ago

gnysek commented 2 months ago

Is your feature request related to a problem?

When compiling audio assets, we're getting info like:

Input #0, wav, from '/home/xxx/GameMakerProjects/yyy/sounds/snd_test/snd_test.wav':
  Metadata:
    encoded_by      : Pro Tools
    originator_reference: B1n8CdEs1EgaaaGk
    date            : 2023-03-2
    creation_time   : 10:29:11
    time_reference  : 0
  Duration: 00:00:00.38, bitrate: 1463 kb/s
  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s

However, there's no info about what params were made to make such convert. Also, in case of crash when converting, it's hard to find what's the cause - having command + arguments which was used to convert, would help to find out to find solution (for example, if audio asset is broken, or contains some weird metadata/covers, that could help to check if it's fixed outiside of GameMaker).

Describe the solution you'd like

In addition to conversion log, show command used for converting, one line before log, like: ffmpeg -i input.mp3 -c:a libvorbis -q:a 4 output.ogg or sth.

Describe alternatives you've considered

No response

Additional context

No response

rwkay commented 2 months ago

You need to enable Preferences -> Compiling -> show verbose compiler output (the asset compiler will then show you all the commands that it is using when executing external tools).

gnysek commented 2 months ago

@rwkay I have it turned on, and it doesn't show such info, that's why I made FR for it. It shows output of that command, but not input.

obraz

gnysek commented 2 months ago

It could be also a part of #7285 .