Comments (8)
There is a TRANSITION_DURATION
variable in SCRIPT OPTIONS
to control zoompan duration. Did you try that?
# SCRIPT OPTIONS - CAN BE MODIFIED
WIDTH=1280
HEIGHT=720
FPS=30
TRANSITION_DURATION=1
PHOTO_DURATION=2
from ffmpeg-video-slideshow-scripts.
maybe I asked the wrong question
but I need to set animation zoom for all slide duration what I set
If I set duration for slide for example 50sec, animate zoom duration only just about 20sec and then freeze
Thanks!
from ffmpeg-video-slideshow-scripts.
If you set TRANSITION_DURATION=20
and PHOTO_DURATION=30
then each slide will be shown for 50 seconds; it will zoom for 20 seconds and then freeze for 30 seconds. Isn't that what you asked for?
from ffmpeg-video-slideshow-scripts.
Isn't that what you asked for?
If I set transition duration = 20 and photo duration = 20
ffmpeg returns
Buffer queue overflow, dropping.78.2kbits/s speed=0.13x
and then
Error while filtering: Cannot allocate memoryme=00:00:19.66 bitrate=8637.4kbits/s speed=0.121x Failed to inject frame into filter network: Cannot allocate memory Error while processing the decoded data for stream #0:0
What I'm doing wrong?
from ffmpeg-video-slideshow-scripts.
Let me correct myself first. zoompan
transitions use the following scene arrangement. In this flow, zoompan
filter is applied to all three phases. This means that photo is always zoomed. So basically it is not possible to freeze photo at any point by changing variables under SCRIPT OPTIONS
.
Scene Arrangement (for each photo):
- fade in photo for `TRANSITION_DURATION` seconds
- show photo for `PHOTO_DURATION` seconds
- fade out photo for for `TRANSITION_DURATION` seconds
Step #5
in the scripts must be updated to achieve that. It is possible to change the order of stages and apply zoom only during fade in but it is not easy to keep zoom ratio for the other stages. You can replace the last line with the following one and see what I mean.
FULL_SCRIPT+="[stream$((c+1))fadein]scale=${WIDTH}*5:-1,zoompan=z='min(pzoom+0.002,2)':d=1:${POSITION_FORMULA}:s=${WIDTH}x${HEIGHT}[stream$((c+1))fadeinandzoom];[stream$((c+1))fadeinandzoom][stream$((c+1))][stream$((c+1))fadeout]concat=n=3:v=1:a=0[stream$((c+1))panning];"
Error while filtering: Cannot allocate memoryme=00:00:19.66 bitrate=8637.4kbits/s speed=0.121x Failed to inject frame into filter network: Cannot allocate memory Error while processing the decoded data for stream #0:0
What I'm doing wrong?
zoompan
transitions consume too much memory, if enough memory is not found, scripts fail with this error. You can try decreasing width, height and fps values.
from ffmpeg-video-slideshow-scripts.
I created a second zoompan
transition called Zoom & Pan with Fade In/Out Transition #2 today. It is very close to your request; it applies zoompan
filter only during fade in stage. You can try it if you didn't find a solution yet.
from ffmpeg-video-slideshow-scripts.
OK then.
from ffmpeg-video-slideshow-scripts.
Thanks, I'll try it.
I didn't see your answer. Sorry
You helped so much!
from ffmpeg-video-slideshow-scripts.
Related Issues (20)
- Can't resize the window HOT 7
- No font available in the Add text modal HOT 1
- It takes too much time to generate a video from a picture HOT 2
- Merge Multiple Video with original sound Video HOT 1
- Invalid stream specifier:
- How to random transition to the slideshow? HOT 7
- loose Quality of video output HOT 1
- can we run this Script on Android FFmpeg?
- Provide more font overlay styles and animations HOT 5
- dropped frame HOT 9
- Concatenating video files are always throws an error HOT 6
- How Can I Replicate These Scripts in Python
- Is there any way I can control the image quality of each frame in the result video? HOT 2
- /script_1.sh: /bin/bash^M: bad interpreter: No such file or directory HOT 3
- Could we mix Zoom in & pan #1 for Image, and Zoom in & pan #2 for Video in one script HOT 1
- [Suggest] clock smooth
- Borders on photos
- Argument list too long for video-slideshow-script-generator
- Pagination?
- Can we get a reference or guidance on using the mobile-ffmpeg HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffmpeg-video-slideshow-scripts.