Ticket #2431: subtitle_test_2.bat

File subtitle_test_2.bat, 1.1 KB (added by Nick, 3 years ago)
Line 
1@echo on
2@echo This batch file requires following files: ffmpeg.exe, input.mp4, subtitle_test_2.srt
3@echo ffmpeg must be built with "--enable-iconv"
4@echo Windows build with "--enable-iconv" download:
5@echo http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-20130406-git-7775992-win32-static.7z
6
7@echo ============================================================================
8ffmpeg -i input.mp4 -sub_charenc ISO8859-1 -i subtitle_test_2.srt -map 0:v -map 0:a -c copy -map 1 -c:s:0 mov_text -metadata:s:s:0 language=ger ffmpeg_mov-text_2.mp4
9
10@echo ============================================================================
11ffmpeg -i input.mp4 -sub_charenc CP1252 -i subtitle_test_2.srt -map 0:v -map 0:a -c copy -map 1 -c:s:0 srt -metadata:s:s:0 language=ger ffmpeg_srt-subtitle_2.mkv
12
13@echo ============================================================================
14ffmpeg -i input.mp4 -sub_charenc WINDOWS-1252 -i subtitle_test_2.srt -map 0:v -map 0:a -c copy -map 1 -c:s:0 ass -metadata:s:s:0 language=ger ffmpeg_ass-subtitle_2.mkv
15
16@echo ============================================================================
17@pause