TopSideControl 11 Posted December 30, 2023 Share Posted December 30, 2023 I hope this is OK to post here but if not please delete it. I was having an issue with my Samsung tv and files with a large number of embedded subtitles. I know this isn't an Emby issue so I put together a script that runs through my mkv files and remuxes them removing all subs (I'm happy to let Emby grab the subs for me). You need the mkvmerge executable in a folder (sample path below) and it replaces the original files with the modified ones from the temp directory. Save the following as a .bat file and run it in the directory where the media is stored. It should skip any files without subtitles. @echo off set "mkvmerge_path=C:\mkv\mkvmerge.exe" powershell -Command "& { mkdir 'temp' -Force; Get-ChildItem -Filter *.mkv | ForEach-Object { $subtitles = & '%mkvmerge_path%' -i $_.FullName | Select-String 'subtitles'; if ($subtitles) { & '%mkvmerge_path%' -o ('temp\' + $_.Name) --no-subtitles $_.FullName }} }" move /y "temp\*" . rmdir /s /q "temp" 2 1 Link to comment Share on other sites More sharing options...
Luke 37068 Posted December 30, 2023 Share Posted December 30, 2023 Thanks for sharing. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now