Comments (3)
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.
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.
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)
- FrameRate Does not change
- Fix for MetaVideo regex HOT 1
- Drawing Text?
- Hold Output Image In Memory Instead of Saving to File Path Automatically
- Not found file
- Update Nuget package HOT 3
- How to use events when using CustomCommand ? HOT 1
- How to get the result of custom commands ?
- Output file not saved in the specified directory path in the asp.net core with docker
- Where to set FFMpeg path? HOT 1
- .NET 5 Update HOT 1
- Permission denied to create C:\MediaToolkit folder HOT 1
- some media can't convert , but no return value
- Error: "The system cannot find the file specified" with Unity HOT 1
- Use in Unity project HOT 1
- Is ther a know issue with Windows 11 ?
- Incorrect licensing info in readme?
- ExtensionAttribute hatası.
- RobiniaDocs API Explorer
- No Errors but Trimming video just makes it be 1kb.
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 mediatoolkit.