Advertisement
Guest User

Untitled

a guest
Feb 16th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.           var com = new FFMPegCommands
  2.             {
  3.               //  Duration = 2,
  4.                 InFile = pathToFile,
  5.                 OutFile = pathToOut,
  6.               //  StartTime = 5,
  7.                 PercentageShiftLeft = 10.0f,
  8.                Crop = 0.75f,
  9.                 Aspect = "1024:768",
  10.                 Transform = false,
  11.                 Yaw = 0.0
  12.                
  13.             };
  14.             totalFrames = com.Duration * 30;
  15.            var inputFile = new MediaFile { Filename = pathToFile };
  16.             using (engine = new Engine(pathToFFMpeg))
  17.             {
  18.                 engine.ConvertProgressEvent += E_ConvertProgressEvent;
  19.                 engine.ConversionCompleteEvent += E_ConversionCompleteEvent;
  20.                 engine.CustomCommand(com.ConvertTransform);
  21.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement