make playlist more simple
This commit is contained in:
parent
f92a43cb33
commit
b6ed000228
@ -42,7 +42,7 @@ while read -r line; do
|
||||
clipPath=$(echo "$line" | sed 's/&/&/g')
|
||||
clipDuration=$( ffprobe -v error -show_format "$line" | awk -F= '/duration/{ print $2 }' )
|
||||
|
||||
printf '\t<video src="%s" begin="%s" dur="%s" in="%s" out="%s"/>\n' "$clipPath" "$listStart" "$clipDuration" "0.0" "$clipDuration" >> "$trunk/$playlist"
|
||||
printf '\t\t<video src="%s" begin="%s" dur="%s" in="%s" out="%s"/>\n' "$clipPath" "$listStart" "$clipDuration" "0.0" "$clipDuration" >> "$trunk/$playlist"
|
||||
|
||||
# add start time
|
||||
listStart="$( awk -v lS="$listStart" -v cD="$clipDuration" 'BEGIN{ print lS + cD }' )"
|
||||
|
Loading…
x
Reference in New Issue
Block a user