VideoHelp Forum


Try NordVPN to access Netflix or other streaming services from any country and also surf safe!
+ Reply to Thread
Results 1 to 21 of 21
Thread
  1. Member
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    I'm looking for a quick way to strip subtitles from a bunch of video files without re-encoding or anything. I just want to remove the subtitles and toss them in a separate folder in case I ever need them. I'm using VLC on Xbox to watch my network share now and there's no option to turn the goddamn things off by default. Also, I need to do this on linux.
    Quote Quote  
  2. Member netmask56's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Search Comp PM
    You don't indicate what type of files they are - makes a big difference in the approach taken. By far MKV are the easiest to deal with
    SONY 75" Full array 200Hz LED TV, Yamaha A1070 amp, Zidoo UHD3000, BeyonWiz PVR V2 (Enigma2 clone), Chromecast, Windows 7 Ultimate, QNAP NAS TS851
    Quote Quote  
  3. Member
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    Yeah, MKV. Don't know why I forgot about this topic. Found another batch of files I need to rip subtitles from though.
    Quote Quote  
  4. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Open the source in MKVToolnix GUI, deselect the subtitles, and write out your new file sans the subtitles
    Quote Quote  
  5. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    Also use mkvcleaver to extract the sub you want to save.
    I think,therefore i am a hamster.
    Quote Quote  
  6. To quickly strip off the subtitles you could use MKVBatch or use mkvmerge in a batch job like

    Code:
    for %%h in (*.mkv) do (
     mkvmerge -o "Merged\%%~nh_MERGED.mkv" --audio-tracks 1 --no-subtitles --language 0:eng "%%h" --track-order 0:0,0:1)
    Similar use mkvextract in a batch job to extract the subtitles.
    Quote Quote  
  7. Member netmask56's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Search Comp PM
    First extract the subtitles you want to keep in a new folder with MKVCleaver - it has a batch function. Then after you have checked the subs to be the ones you want, then next open the source in MKVToolnix GUI, deselec the subtitles, and remux to a new file minus the subtitles.
    SONY 75" Full array 200Hz LED TV, Yamaha A1070 amp, Zidoo UHD3000, BeyonWiz PVR V2 (Enigma2 clone), Chromecast, Windows 7 Ultimate, QNAP NAS TS851
    Quote Quote  
  8. Member
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    Originally Posted by netmask56 View Post
    First extract the subtitles you want to keep in a new folder with MKVCleaver - it has a batch function. Then after you have checked the subs to be the ones you want, then next open the source in MKVToolnix GUI, deselec the subtitles, and remux to a new file minus the subtitles.
    No linux version of MKVCleaver
    Quote Quote  
  9. Member
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    Originally Posted by videobruger View Post
    To quickly strip off the subtitles you could use MKVBatch or use mkvmerge in a batch job like

    Code:
    for %%h in (*.mkv) do (
     mkvmerge -o "Merged\%%~nh_MERGED.mkv" --audio-tracks 1 --no-subtitles --language 0:eng "%%h" --track-order 0:0,0:1)
    Similar use mkvextract in a batch job to extract the subtitles.
    ugh. Trying to set that up in Bash with mkvextract and mkvmerge isn't working so well. Can't stand this scripting shit anymore.
    Quote Quote  
  10. Member netmask56's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Search Comp PM
    It's your call of course but why do you want to remove the subs? It won't reduce the file size significantly unless there are dozens of subs? The workaround is to search for srt subs from the many subtitle sites and once satisfied they are correct then remove the subs from within the MKV file as earlier discussed.
    SONY 75" Full array 200Hz LED TV, Yamaha A1070 amp, Zidoo UHD3000, BeyonWiz PVR V2 (Enigma2 clone), Chromecast, Windows 7 Ultimate, QNAP NAS TS851
    Quote Quote  
  11. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    Op want to remove the subs cause on the xbox one he cant turn them off by default.
    I think,therefore i am a hamster.
    Quote Quote  
  12. ffmpeg is available for linux. It could do both the demuxing and removal of the subs. Maybe you can figure out the Linux syntax from a Windows batch file:

    Code:
    md Subs
    md NoSubs
    
    for %%F in (*.mkv *.mp4) do (
        ffmpeg -y -i "%%~dpnxF" -vn -an "Subs\%%~NF.srt"
        ffmpeg -y -i "%%~dpnxF" -c copy -map 0 -map -0:s "NoSubs\%%~nxF"
    )
    
    pause
    That creates sub folders called Subs and NoSubs, then subs from mkv and mp4 files are saved in the Subs folder as SRT (VTT subs are converted to SRT, other sub types are ignored), and videos without subs are created in the NoSubs folder. If a video has multiple srt/vtt subs only one is saved (first?).

    In case you're not aware the %%~dpnx format encodes the parts of the filename:

    %%~dpnx = "C:\path\to\my video file.ext":

    d = drive letter and colon, C:
    p = path (not including the filename or extension, \path\to\
    n = filename without path or extension, my video file
    x = period and extension, .mp4
    Last edited by jagabo; 18th Jun 2021 at 17:01.
    Quote Quote  
  13. Member netmask56's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Search Comp PM
    According to the Xbox manual

    Press the Xbox button on your controller to return to the dashboard.
    Press the Menu button and select Settings.
    Select Closed Captioning in the Console settings column.
    Select closed captions off
    Maybe that's for an older model...
    SONY 75" Full array 200Hz LED TV, Yamaha A1070 amp, Zidoo UHD3000, BeyonWiz PVR V2 (Enigma2 clone), Chromecast, Windows 7 Ultimate, QNAP NAS TS851
    Quote Quote  
  14. Member
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    Originally Posted by netmask56 View Post
    According to the Xbox manual

    Press the Xbox button on your controller to return to the dashboard.
    Press the Menu button and select Settings.
    Select Closed Captioning in the Console settings column.
    Select closed captions off
    Maybe that's for an older model...
    Doesn't apply to VLC.
    Quote Quote  
  15. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Perhaps try Avidemux to write out the new file.
    I have it working in my linux system via an appimage
    Quote Quote  
  16. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    You can turn off the subtitles in xbox one vlc but only for one video at a time,if you select another video to play the subtitles will show again.
    I think,therefore i am a hamster.
    Quote Quote  
  17. Member
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    Originally Posted by johns0 View Post
    You can turn off the subtitles in xbox one vlc but only for one video at a time,if you select another video to play the subtitles will show again.
    That's where the problem is. When you select the next video, you can't turn them off the same way. It's a bug in the shitty player. So it's either strip all the subs or close the ******* player and reopen after every video.
    Quote Quote  
  18. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    I did some testing on the vlc subtitle options,you can turn off the subs in other videos without restarting vlc,when you start another video the subs will show,what you have to do is go back into the subtitle option and click on it and it will say no subtitles,just go back to the video and the sub will be turned off.
    I think,therefore i am a hamster.
    Quote Quote  
  19. Member
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    Originally Posted by johns0 View Post
    I did some testing on the vlc subtitle options,you can turn off the subs in other videos without restarting vlc,when you start another video the subs will show,what you have to do is go back into the subtitle option and click on it and it will say no subtitles,just go back to the video and the sub will be turned off.
    They never turned off properly for me.
    Quote Quote  
  20. Member netmask56's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Search Comp PM
    I abandoned VLC sometime ago for MPC-HC https://www.videohelp.com/software/Media-Player-Classic-Home-Cinema as it handles large 4K files better. You can turn off subs permanently if you wish.
    SONY 75" Full array 200Hz LED TV, Yamaha A1070 amp, Zidoo UHD3000, BeyonWiz PVR V2 (Enigma2 clone), Chromecast, Windows 7 Ultimate, QNAP NAS TS851
    Quote Quote  
  21. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    The op is talking about vlc on the xbox one where you can't turn off subs permanently.
    I think,therefore i am a hamster.
    Quote Quote  



Similar Threads