@if "%2"=="" (
@echo usage:%0 srcVideoPath targetM3U8FilePath
@rem ffmpeg.exe -i srcVideoPath -c:v libx264 -c:a aac -strict -2 -f hls -hls_list_size 0 targetM3U8FilePath
goto end
)
ffmpeg.exe -i %1 -c:v libx264 -c:a aac -strict -2 -f hls -hls_list_size 0 %2
@echo usage:%0 srcVideoPath targetM3U8FilePath
@rem ffmpeg.exe -i srcVideoPath -c:v libx264 -c:a aac -strict -2 -f hls -hls_list_size 0 targetM3U8FilePath
goto end
)
ffmpeg.exe -i %1 -c:v libx264 -c:a aac -strict -2 -f hls -hls_list_size 0 %2
:end