private void GetMusic(string videoPath) { string cmd = string.Format("{0}bin/ffmpeg -i \"{1}\" -f mp3 -vn {0}data.mp3", basePath, videoPath); CMDHelper.ExcuteCmd(cmd); }
private void ConvertToImage(string videoPath, int width, int height) { string cmd = string.Format("{0}bin/ffmpeg -i \"{1}\" -s {2}*{3} -r 20 {0}imgs/%d.jpg", basePath, videoPath, width, height); CMDHelper.ExcuteCmd(cmd); }