diff options
Diffstat (limited to 'bin/decode+edit+encode+stream')
-rwxr-xr-x | bin/decode+edit+encode+stream | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/decode+edit+encode+stream b/bin/decode+edit+encode+stream index b21eae9..aad9509 100755 --- a/bin/decode+edit+encode+stream +++ b/bin/decode+edit+encode+stream @@ -11,8 +11,6 @@ fi FIRSTPORT=${2:-5002} # even number - next 3 ports used too -ITERATIONS=${3-0} # endless by default - HEIGHT=360 VBITRATE=500000 @@ -20,11 +18,10 @@ MOVIE=../src/omni/show0/earth.mp4 LOGO=../../content/icon_small.png # based on http://www.webmproject.org/docs/encoder-parameters/#real-time-cbr-encoding-and-streaming -# + loop-in-filter trick based on http://video.stackexchange.com/a/16933 # + scale+watermark trick based on http://stackoverflow.com/a/10937357 # + Drop frames, aggressively treat as static, and use fastest cpu ffmpeg -threads auto -re \ - -f lavfi -i "movie=filename=$MOVIE:loop=$ITERATIONS, setpts=N/(FRAME_RATE*TB)" \ + -i "$MOVIE" \ -i "$LOGO" \ -filter_complex \ "[0:v]scale=-1:$HEIGHT[bg]; |