Git Product home page Git Product logo

Comments (3)

AydinAdn avatar AydinAdn commented on May 24, 2024

Always great to know it's helping people.

The implementation should already be there... I've been kicking the can down the road since forever but will definitely update the readme at some point...

The method you're looking for is Engine.CustomCommand(string ffmpegCommand)

So instead of Convert, you would use the method above (and yes it needs renaming, because its ambiguous as to whether you still need to call convert afterwards, another can far down the road, and the answer is no, you shouldn't)

from mediatoolkit.

alejandroLoz avatar alejandroLoz commented on May 24, 2024

Aydin, thank you so much for your reply!
I keep bangin my head against the wall, cause I tried

using (var engine = new Engine())
{
engine.CustomCommand(
"ffmpeg -i "C:\Users\ale\Documents\in.mp4" -filter:v "setpts = 3 * PTS" C:\Users\ale\Documents\out.mp4");
}

But nothing happened (I don't get any exception either!)
No, when I try the same string in the command line:

ffmpeg -i "C:\Users\ale\Documents\in.mp4" -filter:v "setpts=3*PTS" "C:\Users\ale\Documents\out.mp4"

It works perfectly. What am I doing wrong?

from mediatoolkit.

jcd03 avatar jcd03 commented on May 24, 2024

I know this is an old question but I ran across this myself. My problem was including the "ffmpeg" in the custom command.

The source code already calls 'ffmpeg.exe' when you include it in your project. So the final code should just be....

using (var engine = new Engine())
{
engine.CustomCommand(
"-i "C:\Users\ale\Documents\in.mp4" -filter:v "setpts = 3 * PTS" C:\Users\ale\Documents\out.mp4");
}

of course escape your quotes in the string.

from mediatoolkit.

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.