-
Notifications
You must be signed in to change notification settings - Fork 29
/
TS-ToMKV.bat
28 lines (23 loc) · 1005 Bytes
/
TS-ToMKV.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
:: http://askubuntu.com/questions/716424/how-to-convert-ts-file-into-main-stream-file-losslessly
:: http://superuser.com/questions/525928/ffmpeg-keeping-quality-during-conversion
:: http://quartz-net.co.uk/quartzwiki/index.php/TS_convert_using_ffmpeg
:: ffmpeg.exe -i input.ts -vcodec copy -sameq -acodec copy -f matroska output.mkv
:: Øðåê 1(2001=BD Remux) libx264 -crf 20
:: ffmpeg.exe -i "H:\1.ts" -crf 10 -acodec copy -threads 4 -f matroska output.mkv
@echo off
echo %CD%
echo %~dp0
cd /d %~dp0
echo %1
:: echo %* :: for multiple files
if NOT [%1]==[] (
echo "get one file"
REM ffmpeg.exe -i %1 -crf 20 -acodec copy -threads 3 -f matroska output.mkv
ffmpeg.exe -i %1 -crf 20 -vcodec libx264 -acodec copy -threads 3 output.mkv
REM ffmpeg.exe -i %1 -vcodec libx264 -acodec aac output.mkv
REM ffmpeg.exe -i %1 -vcodec copy -acodec aac output.mkv :: filesize = 70%
REM ffmpeg.exe -i %1 -vcodec copy -acodec ac3 output.mkv :: filesize = 90% -> aac < ac3
) else (
echo "get no one files"
)
pause