audio icon indicating copy to clipboard operation
audio copied to clipboard

ffmpeg libraries now must be installed, breaking on users machines

Open jonahclarsen opened this issue 2 months ago • 3 comments

🚀 The feature

I would love to see the continued support of the soundfile backend.

Motivation, pitch

Since 2.9.0 and the removal of the soundfile backend, this library doesn't work without torchcodec, which depends on ffmpeg dynamic libraries being discoverable on the users' machine. So if we update torchaudio from 2.8.0 to 2.9.0 in our program and release it to users, if they don't have ffmpeg libraries discoverable via PATH, it will break.

Alternatives

It's theoretically possible to install dynamic ffmpeg libraries on users' systems so that torch can find them, but a lot can go wrong. soundfile was a much simpler solution with less room for problems when distributing an app that depends on torchaudio.

Additional context

No response

jonahclarsen avatar Oct 28 '25 00:10 jonahclarsen

soundfile backend was removed in https://github.com/pytorch/audio/pull/4041 per https://github.com/pytorch/audio/issues/3902, so this issue is not actionable.

The suggested alternative sounds like a reasonable approach.

pearu avatar Oct 31 '25 12:10 pearu

lol torchaudio is so broken, its libs depend on exact versions of ffmpeg libs who the fuck does that downgrading to 2.8 or whenever the madness stops

whoreson avatar Nov 26 '25 09:11 whoreson

can confirm, torchaudio 2.8 solved the issue

/opt/python-3.10.7/lib/python3.10/site-packages/torchcodec/libtorchcodec_core8.so
       libavutil.so.60 => not found
 /usr/lib/i386-linux-gnu/libavutil.so.57.28.100

No idea who thought linking to a specific version number instead of simply ".so" is good idea

whoreson avatar Nov 26 '25 10:11 whoreson