Make mp4 chapters optional.
This commit is contained in:
parent
0420590244
commit
16014b677d
1 changed files with 11 additions and 8 deletions
19
encode.bash
19
encode.bash
|
@ -146,15 +146,18 @@ faac -q ${aac_quality} \
|
||||||
--cover-art "${cover}" \
|
--cover-art "${cover}" \
|
||||||
${base_file}.wav
|
${base_file}.wav
|
||||||
|
|
||||||
# put together the just-so input file for mp4chaps
|
if [ -f ${aac_notes_path}/${date}.notes ]
|
||||||
echo "00:00:00.000 Start" > \
|
then
|
||||||
${base_file}.chapters.txt
|
# put together the just-so input file for mp4chaps
|
||||||
grep "{{offset|" ${aac_notes_path}/${date}.notes | \
|
echo "00:00:00.000 Start" > \
|
||||||
sed -e "s/.*offset|\(.*\)}}.*|\(.*\)}}.*/\1 \2/" >> \
|
${base_file}.chapters.txt
|
||||||
${base_file}.chapters.txt
|
grep "{{offset|" ${aac_notes_path}/${date}.notes | \
|
||||||
|
sed -e "s/.*offset|\(.*\)}}.*|\(.*\)}}.*/\1 \2/" >> \
|
||||||
|
${base_file}.chapters.txt
|
||||||
|
|
||||||
# write the chapter marks to the AAC/MP4 file
|
# write the chapter marks to the AAC/MP4 file
|
||||||
mp4chaps -o -z -i ${base_file}.m4a
|
mp4chaps -o -z -i ${base_file}.m4a
|
||||||
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Encoding ${base_file}.ogg at quality ${ogg_quality}."
|
echo "Encoding ${base_file}.ogg at quality ${ogg_quality}."
|
||||||
|
|
Loading…
Reference in a new issue