Created
July 12, 2017 18:03
-
-
Save marcsello/71ae56ea7343dd96da1759d21b0fd036 to your computer and use it in GitHub Desktop.
burnsub subtitle burner script for ffmpeg on windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| REM THIS SCRIPT WORKS ONLY WITH FFMPEG VERSION 20150628-git-d62657e-win64-static FOR SOME FUCKING WEIRD REASON | |
| REM Put this script next to your ffmpeg executable | |
| REM Put fonts.conf into fonts/ folder relative to ffmpeg | |
| if [%1]==[] goto :eof | |
| if [%2]==[] goto :eof | |
| if [%3]==[] goto :eof | |
| set FC_CONFIG_DIR=.\fonts | |
| set FONTCONFIG_FILE=fonts.conf | |
| set FONTCONFIG_PATH=.\fonts | |
| @echo on | |
| ffmpeg -i "%1" -vf subtitles=%2:force_style='FontName="Tahoma Bold",FontSize=20' -map 0:v:0 -map 0:a:1 -sn %3 | |
| @pause | |
| :eof |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
| <!-- /etc/fonts/fonts.conf file to configure system font access --> | |
| <fontconfig> | |
| <!-- | |
| DO NOT EDIT THIS FILE. | |
| IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED. | |
| LOCAL CHANGES BELONG IN 'local.conf'. | |
| The intent of this standard configuration file is to be adequate for | |
| most environments. If you have a reasonably normal environment and | |
| have found problems with this configuration, they are probably | |
| things that others will also want fixed. Please submit any | |
| problems to the fontconfig bugzilla system located at fontconfig.org | |
| Note that the normal 'make install' procedure for fontconfig is to | |
| replace any existing fonts.conf file with the new version. Place | |
| any local customizations in local.conf which this file references. | |
| Keith Packard | |
| --> | |
| <!-- Font directory list --> | |
| <dir>WINDOWSFONTDIR</dir> | |
| <dir>~/fonts</dir> | |
| <dir>.</dir> | |
| <dir>~/.fonts</dir> | |
| <cachedir>WINDOWSTEMPDIR_FONTCONFIG_CACHE</cachedir> | |
| </fontconfig> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment