ffmpeg-mathematica
ffmpeg-mathematica copied to clipboard
Audio
Hello Karolis,
Please find attached my workaround for importing "Sound"
and "SampledSoundList"
from video.
In principle, we can do this with a stream/pipe as for the videos, but for some test files, I seem to be getting wrong data in Mathematica. I think the reasons may be:
- ? the pipe format (pcm_s16le)
- ?fltp planar sound encoding?
- ?the handling of multiple channels/stereo sound?
Anyway, I think this is kind of beyond my capabilities for now (I tried around a lot), so I think I will file a temporary workaround which outputs a *.wav
file to the $TemporaryDirectory
and Import[]
s it.
Sincerely, Kenta