Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- if exist EasyPrev.txt del EasyPrev.txt
- echo ###### File - Path to source file
- echo ###### Output File - Webm with preview filename (without .webm)
- echo ###### Frame Time - From this time the picture for preview will be taken
- echo ###### Example: File: C:\video.webm, Output file: video_s_prev.webm, Frame Time: 00:05
- set /P f="File: "
- set /P o="Output File: "
- set /P t="FrameTime: "
- ffmpeg -hide_banner -ss %t% -i %f% -vframes 1 -c copy -an -y TEMP_EasyPrev_preview.webm
- copy /Y %f% TEMP_EasyPrev_source.webm
- echo file 'TEMP_EasyPrev_preview.webm'>nul>>EasyPrev.txt
- echo file 'TEMP_EasyPrev_source.webm'>>EasyPrev.txt
- ffmpeg -hide_banner -itsoffset 0.04 -i %f% -f concat -i EasyPrev.txt -map 1:v -map 0:a -c copy -y "%o%.webm"
- del TEMP_EasyPrev_preview.webm
- del TEMP_EasyPrev_source.webm
- del EasyPrev.txt
- echo ##### Script End #####
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement