Giter VIP home page Giter VIP logo

Comments (5)

tomaszzmuda avatar tomaszzmuda commented on June 4, 2024

Hello @Estebangonzalezt
Can you try to run that directly using ffmpeg?
FFmpeg can be run multiple times at once so it shouldn't be a problem.
Do you need to have "-loop 1" there? Before input?

from xabe.ffmpeg.

Estebangonzalezt avatar Estebangonzalezt commented on June 4, 2024

I run the command directly on Ffmpeg on Linux and it works perfectly so I need -loop 1 before input because I need to create a video with 3 seconds long using a single image if I move the -loop 1 after the input it creates me a zero second video long. or there is a way using the library to create a video with n length but using a single image.

Thanks!!

from xabe.ffmpeg.

tomaszzmuda avatar tomaszzmuda commented on June 4, 2024

Can you show me the code when you configure conversion?
Are you sure that the same input is passed to ffmpeg?
Also that can be related to that issue #435 - I'm already working on that.

from xabe.ffmpeg.

Estebangonzalezt avatar Estebangonzalezt commented on June 4, 2024

Sure, I run the command -loop 1 -i myImage.jpg -s 1280x720 -c:v libx264 -t 3 -pix_fmt yuv420p -r 10.1 finalVideo.mp4 and pass as parameter to:

var strParam = "-loop 1 -i myImage.jpg -s 1280x720 -c:v libx264 -t 3 -pix_fmt yuv420p -r 10.1 finalVideo.mp4"
await new Conversion()
          .AddParameter(strParam)
          .UseMultiThread(true)
          .Start();

from xabe.ffmpeg.

tomaszzmuda avatar tomaszzmuda commented on June 4, 2024

Can you use that overload of Start?
image

AddParameter method was designed to pass additional parameters that library does not cover. Probably it gets lost without any streams defined.

from xabe.ffmpeg.

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.