D:\RF My Videos\ffmpeg Convert>rem this batch processes all files in folder 'input' and puts the result in folder 'output' D:\RF My Videos\ffmpeg Convert>FOR /F "tokens=*" %G IN ('dir /b /s *.dts') DO ffmpeg -i "%G" -af aformat=f=s32p:r=192000:cl=stereo "D:\RF My Videos\ffmpeg Convert\output\%~nG.flac" D:\RF My Videos\ffmpeg Convert>ffmpeg -i "D:\RF My Videos\ffmpeg Convert\input\4.dts" -af aformat=f=s32p:r=192000:cl=stereo "D:\RF My Videos\ffmpeg Convert\output\4.flac" ffmpeg version 2022-08-22-git-f23e3ce858-essentials_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers built with gcc 12.1.0 (Rev2, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband libavutil 57. 33.101 / 57. 33.101 libavcodec 59. 42.102 / 59. 42.102 libavformat 59. 30.100 / 59. 30.100 libavdevice 59. 8.101 / 59. 8.101 libavfilter 8. 46.103 / 8. 46.103 libswscale 6. 8.103 / 6. 8.103 libswresample 4. 8.100 / 4. 8.100 libpostproc 56. 7.100 / 56. 7.100 [dca @ 000002b38e7f3180] Residual encoded channels are present without core Input #0, dts, from 'D:\RF My Videos\ffmpeg Convert\input\4.dts': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Audio: dts (DTS-HD MA), 192000 Hz, stereo, s32p (24 bit) Stream mapping: Stream #0:0 -> #0:0 (dts (dca) -> flac (native)) Press [q] to stop, [?] for help [dca @ 000002b38e7ddb40] Residual encoded channels are present without core Error while decoding stream #0:0: Invalid argument [flac @ 000002b38e8790c0] encoding as 24 bits-per-sample Output #0, flac, to 'D:\RF My Videos\ffmpeg Convert\output\4.flac': Metadata: encoder : Lavf59.30.100 Stream #0:0: Audio: flac, 192000 Hz, stereo, s32 (24 bit), 128 kb/s Metadata: encoder : Lavc59.42.102 flac [dca @ 000002b38e7ddb40] DSYNC check failed43.3kbits/s speed=51.9x Error while decoding stream #0:0: Invalid data found when processing input size= 47363kB time=00:01:17.07 bitrate=5033.8kbits/s speed=54.1x video:0kB audio:47354kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.017092% D:\RF My Videos\ffmpeg Convert>ffmpeg -i "D:\RF My Videos\ffmpeg Convert\input\5.dts" -af aformat=f=s32p:r=192000:cl=stereo "D:\RF My Videos\ffmpeg Convert\output\5.flac" ffmpeg version 2022-08-22-git-f23e3ce858-essentials_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers built with gcc 12.1.0 (Rev2, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband libavutil 57. 33.101 / 57. 33.101 libavcodec 59. 42.102 / 59. 42.102 libavformat 59. 30.100 / 59. 30.100 libavdevice 59. 8.101 / 59. 8.101 libavfilter 8. 46.103 / 8. 46.103 libswscale 6. 8.103 / 6. 8.103 libswresample 4. 8.100 / 4. 8.100 libpostproc 56. 7.100 / 56. 7.100 [dca @ 000001c006c031c0] No valid DCA sub-stream found [dts @ 000001c006beaec0] Estimating duration from bitrate, this may be inaccurate Input #0, dts, from 'D:\RF My Videos\ffmpeg Convert\input\5.dts': Duration: 00:20:53.49, start: 0.000000, bitrate: 1536 kb/s Stream #0:0: Audio: dts (DTS), 48000 Hz, stereo, s32p (24 bit), 1536 kb/s Stream mapping: Stream #0:0 -> #0:0 (dts (dca) -> flac (native)) Press [q] to stop, [?] for help [dca @ 000001c006c17d00] No valid DCA sub-stream found Error while decoding stream #0:0: Invalid data found when processing input [flac @ 000001c006c552c0] encoding as 24 bits-per-sample Output #0, flac, to 'D:\RF My Videos\ffmpeg Convert\output\5.flac': Metadata: encoder : Lavf59.30.100 Stream #0:0: Audio: flac, 192000 Hz, stereo, s32 (24 bit), 128 kb/s Metadata: encoder : Lavc59.42.102 flac Error while decoding stream #0:0: Invalid data found when processing input size= 204968kB time=00:05:23.15 bitrate=5195.9kbits/s speed=58.2x video:0kB audio:204960kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.003949% D:\RF My Videos\ffmpeg Convert>pause Press any key to continue . . .