![]() ![]() To see a list of codecs/formats supported by ffmpeg/avconv type: # The set of codecs/formats to use are listed below. # Display the header for the summary output ![]() # select which one to use by comment/uncommenting the following lines. # Some Linux systems (including Ubuntu) install avconv by default, others ffmpeg. # Extract the extension from the input file name # guess the codec based on the output extension. # In many cases the "-codec:a CODEC" option is not needed as ffmpeg will # ffmpeg -i infile.wav -codec:a libmp3lame -b 64k outfile.mp3 ![]() # ffmpeg/avconv is used to perform the conversion. encoding bit rates - see the 2nd for loop list of codecs/formats - see the 1st for loop # There are two sets of parameters that you may want to change in this script: # The output will be multiple audio files and a summary of the conversion. # where infile.wav is the original audio file # Convert an audio recording to multiple different formats To use, copy and paste into a file such as convaudio, save that file and then execute: I recommend you read through and customise for your system, especially the list of codecs and rates to use. It is poorly written, inefficient and may not work on other systems. The script works on my computers using Ubuntu 13.04 (and 12.04). I created it to demonstrate the conversion process and to be able to compare audio encoded with different codecs. The following is a Bash shell script that uses ffmpeg (or avconv) to convert an audio file such as a PCM/WAV file to different formats using different codecs (e.g. Converting Audio to Multiple Formats using ffmpeg or avconv
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |