summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalvideowebencode4
1 files changed, 3 insertions, 1 deletions
diff --git a/localvideowebencode b/localvideowebencode
index ffec56f..1142f58 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -293,7 +293,6 @@ _melt_aac="$_melt_audio acodec=aac ab=$(($channels*$bitrate_aac))k"
if [ -n "$melt_recent" ] && [ -n "$channels" ]; then
$melt -group $_melt_in $infiles -group $_melt_audio_filters_early -filter loudness -consumer xml:$stem.xml $_melt_audio video_off=1 all=1
_melt_loudness="$(perl -ne 'm!<property name="results">([^<]+)</property>! and print $1' $stem.xml)"
- rm $stem.xml
fi
## Theora/Vorbis/Ogg
@@ -312,6 +311,9 @@ fi
# TODO: use two-pass when supported by melt
$melt -group $_melt_in $infiles -group ${channels:+$_melt_audio_filters_early${_melt_loudness:+ -filter loudness results="$_melt_loudness"} $_melt_audio_filters }$filters -consumer avformat:"$stem.webm" properties=webm $_melt_webm $_melt_vorbis $_melt_out
+# cleanup audio normalize hinting
+rm -f $stem.xml
+
## JPEG preview
ffmpegthumbnailer -s0 -i "$stem.mp4" -o "$stem.jpg"