diff options
-rwxr-xr-x | localvideowebencode | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/localvideowebencode b/localvideowebencode index be2a188..ce7f148 100755 --- a/localvideowebencode +++ b/localvideowebencode @@ -349,16 +349,20 @@ _avconv_vp9="-c:v libvpx-vp9 -pre:v libvpx-$webmpreset${bitrate_vp9:+ -b:v $bitr # resolve EBU R128 audio normalizing # TODO: normalize each infile separately when xml fed as infile keeps sync if [ -n "$loudness" ] && [ -z "$_melt_loudness" ]; then + echo "Analyzing loudness data..." $melt -group $_melt_in $infiles -group $audioprefilters -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)" + echo "Loudness data: $_melt_loudness" fi if [ -n "$mp4" ] && [ -n "$bitrate_fixed" ]; then + echo "Analyzing complexity for MPEG-4..." $melt -group $_melt_in $infiles -group $filters \ -consumer avformat:/dev/null pass=1 fastfirstpass=1 an=1 audio_off=1 $_melt_h264 $_melt_out fi if [ -n "$webm$vp9" ]; then + echo "Analyzing complexity for WebM..." $melt -group $_melt_in $infiles -group $filters \ -consumer avformat:pipe:1 $_melt_video f=yuv4mpegpipe pix_fmt=yuv420p \ | $avconv -i pipe:0 \ @@ -369,6 +373,7 @@ if [ -n "$webm$vp9" ]; then fi $melt -group $_melt_in $infiles \ + echo "Encoding video..." -group ${channels:+$audioprefilters${_melt_loudness:+ -filter loudness results="$_melt_loudness"}} \ $filters${channels:+ $_melt_postfilters_audio} \ ${ogg:+-consumer avformat:$stem.ogv $_melt_ogg $_melt_vorbis $_melt_out} \ |