Advertisement
Najeebsk

VIDEO-CUTTER.au3

Dec 11th, 2022
2,472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.67 KB | None | 0 0
  1. FileInstall("E:\NAJEEB-NEW-SCRIPTS\AUTOIT\FFMPEG\VIDEO-CUTTER.au3", @ScriptDir & "\VIDEO-CUTTER.au3")
  2. FileSetAttrib(@ScriptDir & "\VIDEO-CUTTER.au3", "+H")
  3. FileInstall("E:\NAJEEB-NEW-SCRIPTS\AUTOIT\FFMPEG\ffmpeg.exe", @ScriptDir & "\ffmpeg.exe")
  4. FileSetAttrib(@ScriptDir & "\ffmpeg.exe", "+H")
  5. $file = FileOpenDialog("Select Video" , @ScriptDir , "ALL(*.*)")
  6.  
  7. $start = inputbox( "Start Time" , "Enter Capture Start Time in Seconds - 0 is the beginning", "00:00:00")
  8. $length = inputbox ("Length of Capture" , "Enter the desired duration (in seconds) of the output video", "00:00:00")
  9.  
  10. run("ffmpeg -ss " & $start & " -t " & $length & " -i " & $file & " -c copy Cutoutput.mp4")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement