You use this script passing:
- as first argument the input file
- second argument is the content code
You can get your activation_bytes or content code from this site:
You use this script passing:
You can get your activation_bytes or content code from this site:
| #!/bin/sh -efu | |
| input="$1" | |
| ffprobe \ | |
| -print_format csv \ | |
| -show_chapters \ | |
| "$input" | | |
| cut -d ',' -f '5,7,8' | | |
| while IFS=, read start end chapter | |
| do | |
| ffmpeg \ | |
| -nostdin \ | |
| -loglevel error \ | |
| -y -activation_bytes "$2" \ | |
| -ss "$start" -to "$end" \ | |
| -i "$input" \ | |
| -metadata "track=$chapter" \ | |
| -map 0:a:0 \ | |
| -codec:a libmp3lame \ | |
| -map_chapters -1 \ | |
| "${input%.*}-$chapter.mp3" | |
| done |