fix image path + add config podcast 20190122
This commit is contained in:
parent
4502f25e3a
commit
cd74ad1364
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"short_date" : "20190122",
|
||||
"long_date" : "22 janvier 2019",
|
||||
"ffmpeg_bin" : "./FFmpeg/ffmpeg",
|
||||
"chapters" : [
|
||||
{
|
||||
"start_timestamp" : "00:02:13",
|
||||
"end_timestamp" : "00:14:25",
|
||||
"short_chapter_name" : "IVA-libre-comm"
|
||||
},
|
||||
{
|
||||
"start_timestamp" : "00:16:29",
|
||||
"end_timestamp" : "01:15:20",
|
||||
"short_chapter_name" : "distributions-GNU+Linux"
|
||||
},
|
||||
{
|
||||
"start_timestamp" : "01:19:39",
|
||||
"end_timestamp" : "01:28:40",
|
||||
"short_chapter_name" : "en-vente-libre"
|
||||
},
|
||||
{
|
||||
"start_timestamp" : "01:28:40",
|
||||
"end_timestamp" : "01:30:08",
|
||||
"short_chapter_name" : "annonces"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -37,7 +37,7 @@ if [ ! -f "$FFmpegBin" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
image="lav-outils/images/image-pour-etiqueter-podcast.jpg"
|
||||
image="lav-outils/podcasts/images/image-pour-etiqueter-podcast.jpg"
|
||||
fichiertemp="$(command mktemp -t "tmp.XXXXXXXXXX.ogg")"
|
||||
|
||||
(echo -en ";FFMETADATA1\nMETADATA_BLOCK_PICTURE=";(i=${image};t=3;m="image/jpeg";eval "w=`identify-im6 "$i"|awk '{g=$3;sub("x"," h=",g);print g;d=$5;gsub(/-.*/,"",d);print " d=" d}'`"; echo -en "\x00\x00\x00\x$(printf '%02x' $t)\x00\x00\x00\x$(printf '%02x' `echo -n "$m"|wc -c`)$m\x00\x00\x00\x00$(printf '%08x' $w|sed 's/../\\x&/g')$(printf '%08x' $h|sed 's/../\\x&/g')$(printf '%08x' $d|sed 's/../\\x&/g')\x00\x00\x00\xff$(printf '%08x' `stat -c '%s' "$i"`|sed 's/../\\x&/g')";cat "$i")|base64 --wrap=0) > i.meta
|
||||
|
|
Loading…
Reference in New Issue