Advertisement
Guest User

Easypreview.bat

a guest
Jul 11th, 2015
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.41 KB | None | 0 0
  1. set /P f="File: "
  2. set /P o="Output File (no .webm): "
  3. echo "Preview time - FrameTime == 01:05 - Preview from 1m 5sec"
  4. set /P t="FrameTime: "
  5. ffmpeg -ss %t% -i %f% -vframes 1 -c copy -an -y TEMP_%o%_preview.webm
  6. @echo file 'TEMP_%o%_preview.webm'>nul>>%o%.txt
  7. @echo file '%f%'>>%o%.txt
  8. ffmpeg -itsoffset 0.04 -i %f% -f concat -i %o%.txt -map 1:v -map 0:a -c copy -y %o%.webm
  9. del TEMP_%o%_preview.webm
  10. del %o%.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement