Phar support, more plugins and presets

This commit is contained in:
2017-01-13 02:18:46 +01:00
parent 1938337bb0
commit 0ca1da06e7
13 changed files with 328 additions and 43 deletions

View File

@ -0,0 +1,18 @@
preset:
name: Stabilize video clip (two-pass, ffmpeg)
group: video
plugin: executor
props:
set:
inputtrf: { value:"{%uinput}.trf", escape:true }
script:
analyze:
info: Getting stabilization vectors
exec: "ffmpeg -i {%input} -vf vidstabdetect=stepsize=6:shakiness=8:accuracy=9:result={%inputtrf} -f null -"
parse: { from: 'stderr', regex: '/^frame=[\s]*([0-9]+)\s/', frame:1 }
stabilize:
info: Stabilizing video
exec: "ffmpeg -i {%input} -vf vidstabtransform=input={%inputtrf}:zoom=1:smoothing=30,unsharp=5:5:0.8:3:3:0.4 -vcodec libx264 -preset slow -tune film -crf 18 -acodec copy {%output}"
parse: { from: 'stderr', regex: '/^frame=[\s]*([0-9]+)\s/', frame:1 }
cleanup:
exec: "rm {%inputtrf}"

View File

@ -2,6 +2,10 @@ preset:
name: Stabilize video clip (two-pass)
group: video
plugin: executor
info: >
This preset uses 'transcode' to stabilize the video clip. As transcode has limited
support for other output containers than AVI, the resulting file will be an .AVI
file.
props:
set:
inputtrf: { value:"{%uinput}.trf", escape:true }
@ -17,18 +21,3 @@ preset:
parse: { from: 'stderr', regex: '/encoding frames \[0-([0-9]+?)\],\s+([0-9\.]+?) fps/', frame:1, eta:2 }
cleanup:
exec: "ls {%inputtrf}"
#!/bin/bash
#INPUT="$1"
#OUTPUT="$1.stab.avi"
#CODEC="-y xvid"
#if [ -e "$INPUT.trf" ]; then
# echo "Cache found, not re-calling stabilize..."
#else
# Start the deshake process
# transcode -J stabilize -i $INPUT || transcode -J stabilize --mplayer_probe -i $INPUT
#fi
# Now, stabilize the video
#transcode -J transform -i $INPUT $CODEC -o $OUTPUT