Re: how to compress 93gb speech mp3 files to opus files
Reply #5 – 2017-05-31 02:41:00
I can't understand what Phanton_13 suggested ie., does it mean input.file is input.mp3, and does it mean output.file is output.opus and also does it mean sox is the best decoder. Can we use 48khz with 16 kbps Some of the requests made by me in first post were not answered I want a tool or a set of tools which takes maximum time and produce a opus file with good quality and so please suggest. I have examined foobar2000 which is taking less time and lamexp which is taking much time to convert and so does it mean foobar is worst and lamexp is the best. Previously I have searched web to convert files recursively using ffmpeg and found a Windows batch script which I am providing below@echo off setlocal EnableExtensions DisableDelayedExpansion rem // Define constants here: set "_SOURCE=C:\Rupesh\to convert" set "_TARGET=E:\Rupesh\ffmpeg out" rem // Change to source directory temporarily: pushd "%_SOURCE%" || exit /B 1 rem // Enumerate source files, return paths relative to the source directory: for /F "delims=" %%F in ('xcopy /L /S /I ".\*.mp3" "%_TARGET%" ^| find ".\"') do ( echo Currently converting "%%F"... rem // Create destination directory, suppress error if it aready exists: mkdir "%_TARGET%\%%F\.." 2> nul rem // Perform actual file conversion, using paths relative to target directory: ffmpeg -i "%%F" -v quiet -codec:a libmp3lame -b:a 16k -ar 11025 -map_metadata 0 -id3v2_version 3 -write_id3v1 1 "%_TARGET%\%%F\..\%%~nF.mp3" ) echo Completed. popd endlocal exit /B In the above code it is possible to delete ffmpeg code and substitute our own code. I think that command line tools or a script which is a list of commands are better than guis. In foobar2000 it is possible to select custom encoder and decoder and so which is best foobar or a script like above.