Skip to content

Instantly share code, notes, and snippets.

@John07
Created November 16, 2015 18:53
Show Gist options
  • Save John07/3d3beb3dcd2e87e290ae to your computer and use it in GitHub Desktop.
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
# 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