Skip to content

Instantly share code, notes, and snippets.

@hui-shao
Created February 14, 2021 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hui-shao/0250d610f919c54c4c4b5b4104406f1e to your computer and use it in GitHub Desktop.
Save hui-shao/0250d610f919c54c4c4b5b4104406f1e to your computer and use it in GitHub Desktop.
Convert ass subtitles to mov video format
@echo off
REM 功能:封装 ass字幕为mov格式(透明背景),支持导入Pr
REM 作者:Hui-Shao
REM 注意: 修改相应参数
title 封装 ass字幕 为 mov By Hui-Shao
echo.
echo 请确认ass字幕文件位于脚本所在目录下, 并命名为 subtitle.ass
echo 请确认你已经 右键-编辑并修改好该脚本文件的ffmpeg命令参数
echo.
pause
cls
cd /d "%~dp0"
ffmpeg -y -f lavfi -i "color=color=black@0.0:size=1920x1080,format=rgba,subtitles=subtitle.ass:alpha=1" -c:v png -t "00:00:59.900" -r 60 -b:v 10M subtitle.mov -stats
echo.
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment