Audio not showing up

Hi I have the latest development version (1.5.2 Nov 21) and I noticed a bug where when I import audio, there’s no waveform and playing the animation has no audio.

Below I’ve attached a screenshot, the project, and the audio:


testanim2.sifz (117.1 KB)

@ice0 Mlt is not built anymore in AppVeyor…
https://ci.appveyor.com/project/Synfig/synfig/builds/48616048

It seems to be a change in libavcodec API:

[111/210] Building C object src/modules/avformat/CMakeFiles/mltavformat.dir/producer_avformat.c.obj
FAILED: src/modules/avformat/CMakeFiles/mltavformat.dir/producer_avformat.c.obj 
C:\msys64\mingw64\bin\cc.exe -DAVDATADIR=\"share/ffmpeg/\" -DAVDEVICE -DAVFILTER -DCODECS -DFILTERS -DSWRESAMPLE -DUSE_MMX -Dmltavformat_EXPORTS -IC:/msys64/tmp/mlt-7.2.0/src/framework/.. -std=gnu11 -mmmx -msse -msse2 -MD -MT src/modules/avformat/CMakeFiles/mltavformat.dir/producer_avformat.c.obj -MF src\modules\avformat\CMakeFiles\mltavformat.dir\producer_avformat.c.obj.d -o src/modules/avformat/CMakeFiles/mltavformat.dir/producer_avformat.c.obj -c C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'list_components':
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:254:35: error: 'AVCodec' has no member named 'decode'
  254 |                         if ( codec->decode && codec->type == AVMEDIA_TYPE_AUDIO )
      |                                   ^~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:266:35: error: 'AVCodec' has no member named 'decode'
  266 |                         if ( codec->decode && codec->type == AVMEDIA_TYPE_VIDEO )
      |                                   ^~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'find_default_streams':
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:453:33: warning: 'channels' is deprecated [-Wdeprecated-declarations]
  453 |                                 if ( !codec_params->channels )
      |                                 ^~
In file included from C:/msys64/mingw64/include/libavformat/avformat.h:314,
                 from C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:42:
C:/msys64/mingw64/include/libavcodec/codec_par.h:173:14: note: declared here
  173 |     int      channels;
      |              ^~~~~~~~


[and so on]

Maybe we should move off mlt? maybe libsndio, sdl_audio + sdl_sound, …?

I’m gonna try other audio filetypes

Update: mp3 doesnt work either

It’s already mentioned on github

Link