Phar support, more plugins and presets
This commit is contained in:
18
presets/executor/executor-vidstab-ffmpeg.yml
Normal file
18
presets/executor/executor-vidstab-ffmpeg.yml
Normal 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}"
|
@ -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
|
||||
|
9
presets/melt/melt-grayscale.yml
Normal file
9
presets/melt/melt-grayscale.yml
Normal file
@ -0,0 +1,9 @@
|
||||
preset:
|
||||
name: Turn the video into grayscale
|
||||
group: melt
|
||||
plugin: melt
|
||||
props:
|
||||
filters:
|
||||
- { type: greyscale, in: ~, out: ~ }
|
||||
|
||||
# melt test.mp4 -filter greyscale -consumer avformat:output.avi acodec=libmp3lame vcodec=libx264
|
6
presets/transcode/transcode-deshake.yml
Normal file
6
presets/transcode/transcode-deshake.yml
Normal file
@ -0,0 +1,6 @@
|
||||
preset:
|
||||
name: Deshake video clip (single-pass)
|
||||
group: video
|
||||
plugin: transcode
|
||||
props:
|
||||
filter: deshake
|
Reference in New Issue
Block a user