Coder Social home page Coder Social logo

Comments (9)

tanersener avatar tanersener commented on June 12, 2024

Please use POSITION_NUMBER=2 on this line?

from ffmpeg-video-slideshow-scripts.

trungbq06 avatar trungbq06 commented on June 12, 2024

Thank you so much for your reply,

In my case, remove POSITION_FORMULA help me get happy results.

from ffmpeg-video-slideshow-scripts.

tanersener avatar tanersener commented on June 12, 2024

Great 👍

from ffmpeg-video-slideshow-scripts.

trungbq06 avatar trungbq06 commented on June 12, 2024

Hi @tanersener ,

I'm trying to make another animation with zoom in and pan filter. I don't want the raw image zoomin and pan. I just want the raw image move from left to right.

I think I will need to make some animation on [stream${c}raw] from line 77 in zoom_in_and_pan_with_fade_in_out_one.sh but cannot do that.

Would you please help me out?

from ffmpeg-video-slideshow-scripts.

tanersener avatar tanersener commented on June 12, 2024

# 4. PREPARE INPUTS & FADE IN/OUT PARTS section fits images to screen. If you don't apply zoom effect and move the image left/right then background color will be shown during the movement, similar to the beginning of Stack transitions. Is this what you want to implement?

from ffmpeg-video-slideshow-scripts.

trungbq06 avatar trungbq06 commented on June 12, 2024

No, that's not I want to implement.

I want to pan the raw image (left to right or right to left), while still blur background.

from ffmpeg-video-slideshow-scripts.

trungbq06 avatar trungbq06 commented on June 12, 2024

I changed line 67 to this:

FULL_SCRIPT+="[stream${c}blurred][stream${c}raw]overlay=x='-(overlay_w-${WIDTH})+(overlay_w-${WIDTH})*t/${IMAGE_DURATION}':y='if(gte(H,${HEIGHT}),0,overlay_h/2)',trim=duration=${IMAGE_DURATION},format=yuv420p[stream$((c+1))out];"

But the moving is too fast. How can I slow down it?

from ffmpeg-video-slideshow-scripts.

tanersener avatar tanersener commented on June 12, 2024

Line 67 controls SCREEN_MODE = 1. If you want to use blurred background you need to use SCREEN_MODE = 4 and update Line 78.

(main_w-overlay_w)/2 expression of overlay filter in Line 78 defines the horizontal position (x). It is currently fixed and defines the horizontal center. You need to update it.

FULL_SCRIPT+="[stream${c}blurred][stream${c}raw]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2:format=rgb,setpts=PTS-STARTPTS,split=2[stream$((c+1))out1][stream$((c+1))out2];"

from ffmpeg-video-slideshow-scripts.

trungbq06 avatar trungbq06 commented on June 12, 2024

Thank you so much for your help.

from ffmpeg-video-slideshow-scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.