Skip to content

Instantly share code, notes, and snippets.

@cerisier
Created January 22, 2016 11:44
Show Gist options
  • Save cerisier/eaf01db560769cfe0b5d to your computer and use it in GitHub Desktop.
Save cerisier/eaf01db560769cfe0b5d to your computer and use it in GitHub Desktop.
WIP of ffmpeg metadata to cue
AUDIO="file.m4a"
INPUT=$(ffprobe -v error -select_streams a:0 -show_chapters -of csv=print_section=1 AUDIO);
paste <(echo "$INPUT" | cut -d ',' -f 5 | cut -d '.' -f 1 | while read line; do date -d @$line; done) <(echo "$INPUT" | cut -d ',' -f 8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment