c# - How to cut/crop/trim a video in respect with time or percentage and save output in different file -
is there tutorial or c# library which me accomplish following
- chose file edit
- ask user select cut/crop/trim method :- time or percentage
- cut/crop/trim video time or percentage chosen ( wish reduce 5 minute video 4 minute video, or reduce video 80%)
- save video requested in required path
now steps 1) , 4) have implemented not find c# library accomplish 3) , 4)
i looked ffmpeg
library not find c# wrapper accomplish requirements
any be appreciated
thank you
ffmpeg powerful application , have used many times, c#. don't need c# wrapper library. have execute ffmpeg commands c# using:
system.diagnostics.process.start(string filename, string arguments);
or use system.diagnostics.processstartinfo
redirect standard output if need to.
this article explains how use system.diagnostics
execute synchronous , asynchronous commands, etc.
http://www.codeproject.com/kb/cs/execute_command_in_csharp.aspx
here's simple example of how cut video file down first 4 minutes using ffmpeg c#.
using system.diagnostics process.start("ffmpeg.exe", "-sameq -t 240 -i inputvideofile.avi outputvideofile.avi");
here's example of how use system.diagnostics.processstartinfo
c# , ffmpeg preferably without shell commands?
there lots of online resources explain of ffmpeg's features , how use them, search.
Comments
Post a Comment