Created
November 16, 2015 18:53
-
-
Save John07/3d3beb3dcd2e87e290ae to your computer and use it in GitHub Desktop.
Read a podcast mp3 file and print a list of its chapter marks. Useful if your podcast client of choice doesn't yet support chapter marks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# read a podcast mp3 file and print a list of its chapter marks | |
ffprobe -v quiet -show_chapters -pretty -print_format csv *.mp3 | |
# more readable, timestamps with seconds | |
ffprobe -v quiet -show_chapters -pretty -print_format csv *.mp3 | awk -F "," '{print $5 " " $7 " " $8}' | sed 's/\.[0-9]*\ /\ /g' | |
# more readable, timestamps without seconds | |
ffprobe -v quiet -show_chapters -pretty -print_format csv *.mp3 | awk -F "," '{print $5 " " $7 " " $8}' | sed 's/\:[0-9][0-9]\.[0-9]*\ /\ /g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment