24,855
社区成员
发帖
与我相关
我的任务
分享
WinExec("cmd /c "
"ffmpeg -i fix.mp4"
"-filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:0:0[leftTop]"
"-filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:trunc(iw/4)*2:0[rightTop]"
"-filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:0:trunc(ih/4)*2[leftBottom]"
"-filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:trunc(iw/4)*2:trunc(ih/4)*2[rightBottom]"
"-map [leftTop] -map 0:a lt.mp4 -map [rightTop] -map 0:a rt.mp4"
"-map [leftBottom] -map 0:a lb.mp4 -map [rightBottom] -map 0:a rb.mp",
SW_HIDE);
[/quote]
哈哈,确实可以这么搞.....[/quote]
只要把这段放在程序就行了吗?比较菜,放进去啥都没出来WinExec("cmd /c "
"ffmpeg -i fix.mp4"
"-filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:0:0[leftTop]"
"-filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:trunc(iw/4)*2:0[rightTop]"
"-filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:0:trunc(ih/4)*2[leftBottom]"
"-filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:trunc(iw/4)*2:trunc(ih/4)*2[rightBottom]"
"-map [leftTop] -map 0:a lt.mp4 -map [rightTop] -map 0:a rt.mp4"
"-map [leftBottom] -map 0:a lb.mp4 -map [rightBottom] -map 0:a rb.mp",
SW_HIDE);
[/quote]
哈哈,确实可以这么搞.....WinExec("cmd /c "
"ffmpeg -i fix.mp4"
" -filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:0:0[leftTop]"
" -filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:trunc(iw/4)*2:0[rightTop]"
" -filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:0:trunc(ih/4)*2[leftBottom]"
" -filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:trunc(iw/4)*2:trunc(ih/4)*2[rightBottom]"
" -map [leftTop] -map 0:a lt.mp4 -map [rightTop] -map 0:a rt.mp4"
" -map [leftBottom] -map 0:a lb.mp4 -map [rightBottom] -map 0:a rb.mp",
SW_HIDE);
WinExec("cmd /c "
"ffmpeg -i fix.mp4"
"-filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:0:0[leftTop]"
"-filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:trunc(iw/4)*2:0[rightTop]"
"-filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:0:trunc(ih/4)*2[leftBottom]"
"-filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:trunc(iw/4)*2:trunc(ih/4)*2[rightBottom]"
"-map [leftTop] -map 0:a lt.mp4 -map [rightTop] -map 0:a rt.mp4"
"-map [leftBottom] -map 0:a lb.mp4 -map [rightBottom] -map 0:a rb.mp",
SW_HIDE);
ffmpeg -i fix.mp4 -filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:0:0[leftTop] -filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:trunc(iw/4)*2:0[rightTop] -filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:0:trunc(ih/4)*2[leftBottom] -filter_complex [0:v]crop=trunc(iw/4)*2:trunc(ih/4)*2:trunc(iw/4)*2:trunc(ih/4)*2[rightBottom] -map [leftTop] -map 0:a lt.mp4 -map [rightTop] -map 0:a rt.mp4 -map [leftBottom] -map 0:a lb.mp4 -map [rightBottom] -map 0:a rb.mp4