diff options
Diffstat (limited to 'bin/decode+edit+encodeDV')
-rwxr-xr-x | bin/decode+edit+encodeDV | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/decode+edit+encodeDV b/bin/decode+edit+encodeDV index c33635a..ef1474d 100755 --- a/bin/decode+edit+encodeDV +++ b/bin/decode+edit+encodeDV @@ -23,12 +23,13 @@ mkdir -p $(dirname "$OUTPUT") # based on http://www.webmproject.org/docs/encoder-parameters/#real-time-cbr-encoding-and-streaming # + scale+watermark trick based on http://stackoverflow.com/a/10937357 +# + scale to square pixels as needed # + Add 1s latency (deadline) ffmpeg -hide_banner -threads auto -y \ -i "$INPUT" \ -i "$LOGO" \ -filter_complex \ - "[0:v]scale=-2:$HEIGHT[bg]; + "[0:v]scale=iw*sar*$HEIGHT/ih:$HEIGHT,setsar=1[bg]; [bg][1:v]overlay=main_w-overlay_w-20:main_h-overlay_h-20[v]" \ -map '[v]' \ -target pal-dv "$OUTPUT" |