Giter Site home page Giter Site logo

Comments (4)

a-schild avatar a-schild commented on August 24, 2024

Can you show me in ffmpeg terms / command line arguments what you would need to do?
I can then enhance the api to allow this too if it makes sense for other users too

from jave2.

xiaoLee1993 avatar xiaoLee1993 commented on August 24, 2024

maybe like this?

intercept the first second image
ffmepg -i input.mp4 -y -f image2 -ss 00:00:01 -vframes 1 target.png

add a logo
ffmpeg -y -i input.mp4 -vf "movie='logo.png' [logo];[in][logo] overlay=10:10:1 [out]" output.mp4

and other video clipping operations?

i can use the command to implement them but I think it might be more helpful to use encapsulated apis

from jave2.

a-schild avatar a-schild commented on August 24, 2024

Capturing image(s) from the video is already possible.
Look at the jave-core/src/main/java/ws/schild/jave/ScreenExtractor.java class.

The method render(..) will extract one/multiples images in the specified file/directory

I haven't used it myself in a long time and test converage is not present, so you would need to test it yourself. If you find bugs in that part, please open new issues for them.

I will keep this issue as an RFE to add logo to the video
If you need video clipping, then please open a separate issue for this too

from jave2.

xiaoLee1993 avatar xiaoLee1993 commented on August 24, 2024

this is great. clipping is not currently required
the current requirements are images and adding watermarks
i'll probably do it based on your code
thanks

from jave2.

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.