ubuntu:sound:bitrate:change_bitrate
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:sound:bitrate:change_bitrate [2022/09/19 11:06] – created peter | ubuntu:sound:bitrate:change_bitrate [2022/09/19 11:11] (current) – [Using only built in Bash functions] peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ubuntu - Sound - Bitrate - Change Bitrate ====== | ====== Ubuntu - Sound - Bitrate - Change Bitrate ====== | ||
+ | |||
+ | ===== Convert MP3 files in all sub-directories to a different bitrate ===== | ||
+ | |||
+ | <code bash> | ||
+ | find . -type f -name " | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE:** The bitrate is set to 192 kbps. | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Convert MP3 files in all sub-directories to a different bitrate, but only if they have bitrates above a specific value ===== | ||
+ | |||
+ | ==== Using only built in Bash functions ==== | ||
+ | |||
+ | <code bash> | ||
+ | find . -type f -name " | ||
+ | </ | ||
+ | |||
+ | <WRAP warning> | ||
+ | **WARNING: | ||
+ | |||
+ | * Unfortunately, | ||
+ | * For these files, the **$(file " | ||
+ | |||
+ | * The bitrate is set to 192 kbps for any file that has a bitrate above 192 kbps. | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Using mp3info ==== | ||
+ | |||
+ | <code bash> | ||
+ | find . -type f -name " | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE:** This uses the **mp3info** command to determine the bitrate. | ||
+ | |||
+ | * This **mp3info** command needs to be installed with **sudo apt install mp3info**. | ||
+ | |||
+ | </ | ||
ubuntu/sound/bitrate/change_bitrate.1663585613.txt.gz · Last modified: 2022/09/19 11:06 by peter