Hi, Le jeu. 17 mars 2022 à 14:18, p····· g······· <pra...@gmail.com> a écrit : > > hello! > > that's how i record it: > output.file(%wav(stereo=true, channels=2, samplesize=16, header=false), > "A:/minmon-%Y-%m-%d-%H-%M.wav", mm, fallible=true) > > then, when i have this file and try to queue for play: > > 2022/03/15 10:02:01 [decoder:3] Available decoders cannot decode > "A:/minmon-2022-03-14-21-11.wav" as {audio=pcm(stereo),video=none,midi=none} > 2022/03/15 10:02:02 [decoder:2] Error while checking file's content: > Avutil.Error(Invalid data found when processing input) > 2022/03/15 10:02:02 [decoder:2] Error while checking file's content: IFF > File error: Unknown file format. > > that makes sense as i do "header=false", but how can i know the header > before whole file is recorded? > perhaps there is a way to tell avutil what type of file my audio file is? to > feed it the same info - wav(stereo=true, channels=2, samplesize=16)?
FFmpeg is capable of decoding raw audio: https://trac.ffmpeg.org/wiki/audio%20types however, there currently isn't any way to pass the required arguments to the decoder. Have you considered recording the file with a header? Le jeu. 17 mars 2022 à 14:18, p····· g······· <pra...@gmail.com> a écrit : > hello! > > that's how i record it: > output.file(%wav(stereo=true, channels=2, samplesize=16, header=false), > "A:/minmon-%Y-%m-%d-%H-%M.wav", mm, fallible=true) > > then, when i have this file and try to queue for play: > > 2022/03/15 10:02:01 [decoder:3] Available decoders cannot decode > "A:/minmon-2022-03-14-21-11.wav" as > {audio=pcm(stereo),video=none,midi=none} > 2022/03/15 10:02:02 [decoder:2] Error while checking file's content: > Avutil.Error(Invalid data found when processing input) > 2022/03/15 10:02:02 [decoder:2] Error while checking file's content: IFF > File error: Unknown file format. > > that makes sense as i do "header=false", but how can i know the header > before whole file is recorded? > perhaps there is a way to tell avutil what type of file my audio file is? > to > feed it the same info - wav(stereo=true, channels=2, samplesize=16)? > > thanxxx, > P > > > > _______________________________________________ > Savonet-users mailing list > Savonet-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/savonet-users >
_______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users