Archive 2022 年 3 月 8 日

批处理FFMPEG切割视频

原按网上的搜索的方法,然在切开视频后,h5上不能播放,后查乃是各浏览器支持的h264编码有要求,特别是ios之safari要求更为严格,故记之如下: setlocal enabledelayedexpansion set x=0 for %%i in (.\bazhi\*) ^ do ( set /a x+=1 set new_dir=G:\\course\\bazhi\\!x! mkdir !new_dir! ffmpeg -i %%i -vcodec h264_nvenc -f hls !new_dir!\\index.m3u8 ) ffmpeg中的 -vcodec…

Read More