//------------------------------ public static void Decode(DecodeEncodeData config) { //-y -i .../video.mp4 -r 30 .../image%1d.jpg .../track.mp3 string[] command = { REWRITE_INSTRUCTION, INPUT_INSTRUCTION, config.inputPath, RESIZE_INSTRUCTION, config.fps.ToString(), config.outputPath, config.soundPath }; DebugCommand(command); Wrapper.Execute(command); }
//------------------------------ public static void Encode(DecodeEncodeData config) { //-y -i .../image%1d.jpg -r 30 -i .../track.mp3 -pix_fmt yuv420p .../video.mp4 string[] command = { REWRITE_INSTRUCTION, INPUT_INSTRUCTION, config.inputPath, RESIZE_INSTRUCTION, config.fps.ToString(), INPUT_INSTRUCTION, config.soundPath, PIXEL_FORMAT, YUV_420P, config.outputPath }; DebugCommand(command); Wrapper.Execute(command); }