USAGE EXAMPLE:
mp4chunk_minsec 10 0 10 30 myvid.mp4
@rem mp4chunk_minsec.bat (4/2012) @rem extracts mp4 chunk by min.sec @rem mp4box -split-chunk S:E @rem extracts a new file from Start to End (in seconds) @rem fontend wrapper: @rem mp4chunk_minsec <start_min> <start_sec> <end_min> <end_sec> <file.mp4> @echo off set STARTM=%1 set STARTS=%2 set ENDM=%3 set ENDS=%4 if "%5"=="" goto USAGE SET /a STARTS=%STARTM%*60+%STARTS% SET /a ENDS=%ENDM%*60+%ENDS% echo STARTS=%STARTS% echo ENDS=%ENDS% mp4box -split-chunk %STARTS%:%ENDS% %5 goto END :USAGE echo usage: mp4chunk_minsec ^<start_min^> ^<start_sec^> ^<end_min^> ^<end_sec^> ^<file.mp4^> echo. :END
No comments:
Post a Comment