Ichigo69

Cut scenes from encode

May 31st, 2014
352
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. # 1. Install software
  2. # -install MKVToolnix and MKVCleaver (http://www.videohelp.com/tools/MKVcleaver)
  3. # -install Avisynth (use 32-bit version for compatibility with plugins/encoders)
  4. # -install Haali Media Splitter (e.g. via http://www.codecguide.com/download_kl.htm) and copy avss.dll into Avisynth's "plugins" directory
  5. # -if you want to hardsub the subtitles, copy vsfilter.dll into Avisynth's "plugins" directory; if not, install Aegisub
  6. # -install encoder, e.g. command-line tool (x264.exe, ffmpeg.exe) or GUI (VirtualDub + x264vfw, Handbrake, etc.)
  7. # -optional: get AvsPmod for writing (and previewing) Avisynth scripts
  8. # -optional: get Lame MP3 ACM codec (http://www.videohelp.com/tools/Lame-MP3) for encoding the audio in VirtualDub
  9.  
  10. # 2. Unpack MKV
  11. # -use MKVCleaver to extract subtitles (*.ass, *.srt, etc.) and fonts
  12. # -install fonts into Windows
  13.  
  14. # 3. Create script
  15. f = "video file.mkv"
  16. s = "subtitles.ass"
  17. v = DSS2(f)
  18. a = DirectShowSource(f, video=false)
  19. AudioDub(v, a)
  20. TextSub(s) # only when hardsubbing
  21. # Trim(..., ...) + Trim(..., ...) + Trim(..., ...) + ... # preview with AvsPmod/VirtualDub, enter frame indices of relevant /u/ sections, remove first # when done
  22.  
  23. # 4. Softsubs
  24. # If you don't want to hardsub the subtitles:
  25. # -open subtitles file in Aegisub
  26. # -open source video (or create dummy video with matching frame rate) and switch subtitle timing to 'frame'
  27. # -copy the relevant lines
  28. # -paste them into a new subtitles file, adjust start and stop frame numbers according to the Trim() commands in Step 3
  29.  
  30. # 5. Encode new video file
  31. # -open script in encoder
  32. # -set encoding options and encode
  33. # -create new MKV file (if audio was encoded separately, add it here) (if subtitles weren't hardsubbed, add new subtitles file here)
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment