Skip to content

Commit 35b5d38

Browse files
committed
Skip non-audio/video streams
1 parent 560c810 commit 35b5d38

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

MKV-Ripper.cmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ exit /b
4040
rem Generate output arguments
4141
:Output
4242
set EXT=
43+
if "%1" neq "Video" if "%1" neq "Audio" (
44+
set EXT=null
45+
exit /b
46+
)
4347
if "%1" == "Video" set OUTPUT=!OUTPUT! -map 0:!i! -c:v copy -an -dn -sn
4448
if "%1" == "Audio" set OUTPUT=!OUTPUT! -map 0:!i! -c:a copy -vn -dn -sn
4549
if "%2" == "h264" set EXT=mp4

0 commit comments

Comments
 (0)