[CM] [SND] Files from (save-region) can't be read by other applications

Kenneth Flak kennethflak at protonmail.com
Fri Jul 28 07:57:27 PDT 2023


Hi, 

I'm testing this little piece of code to save all regions:

(let (
       (iterator 0)
       (filename "test"))
   (map (lambda (r) 
          (save-region r (format #f "test~A.wav" iterator))
          (set! iterator (+ iterator 1)))
        (regions))
   )

It works fine, but leads to the following when trying to play them back from mpv:

❯ mpv test*.wav
Playing: test0.wav
[ffmpeg/demuxer] au: unknown or unsupported codec tag: 34 is not implemen
ted. Update your FFmpeg version to the newest one from Git. If the proble
m still occurs, it means that your file has a feature which has not been 
implemented.
[ffmpeg/demuxer] au: If you want to help, upload a sample of this file to
  https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailin
g list. (ffmpeg-devel at ffmpeg.org)
[lavf] avformat_open_input() failed
[ffmpeg/demuxer] au: unknown or unsupported codec tag: 34 is not implemen
ted. Update your FFmpeg version to the newest one from Git. If the proble
m still occurs, it means that your file has a feature which has not been 
implemented.
[ffmpeg/demuxer] au: If you want to help, upload a sample of this file to
  https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailin
g list. (ffmpeg-devel at ffmpeg.org)
[lavf] avformat_open_input() failed
Failed to recognize file format.

Similarly, when importing into Reaper I get blank items. I can, however, open them in snd with no problem

I suppose I need to set the correct output format in the export sections, but I have zero idea which one I should pick for maximum compatibility...

Any help is most welcome!

Best,
Kenneth

-- 
Roosna & Flak - Contemporary Dance & Music
Web: roosnaflak.com
Code: {github,gitlab}.com/kflak
Mastodon: @kf at sonomu.club




More information about the Cmdist mailing list