[SOLVED] HandBrakeCLI (via ARM) incorrectly marking first subtitle track as "Forced"
from Cyberpro123@lemmy.world to selfhosted@lemmy.world on 12 Dec 15:02
https://lemmy.world/post/40095383

EDIT: Oh my god, sorry, I’m an idiot who forgot that the Jellyfin subtitles setting menu had a save button you needed to press. ALSO, Simultaneously, I posted this earlier than I intended; I thought to myself “OK I’ll try this one last thing and if that doesn’t work then I’ll give up and ask for help”, and then went and wrote this post while I waited for the DVD to rip - and then I went and posted it as soon as I was done writing, without waiting for the one last attempt to finish. It turns out that removing the –subtitle scan flag fixes the problem. So I double shouldn’t have posted this. Sorry for taking up your time, I saw an option to hide this post so I think I’ll be doing that now.

First, this doesn’t seem like quite the right community to post this in, but I couldn’t find a better fitting one on Lemmy, and I’d prefer not to dust off my Reddit account if I don’t have to. If you know of somewhere better for me to post this please let me know

I’m trying to use Automatic Ripping Machine (ARM) to copy my DVD collection onto my home server for playback with Jellyfin. I want the subtitles on the Jellyfin versions of my shows to work the same as playing the DVDs on my blu-ray player: Off by default, available when desired. After some googling I found that in order to have the subtitles on the disc to be retained in the files output by ARM (and thus be displayable in Jellyfin) I needed to put the –all-subtitles flag in the HB_ARGS_DVD section of the config file, so that it’d be passed to HandBrakeCLI in the transcoding stage. That worked, the subtitle selector appeared in Jellyfin and had all the options as the DVD does in my blu-ray player, but it introduced a new problem: The first subtitle track gets incorrectly marked as “Forced”, and is selected by default in Jellyfin even when I set my Jellyfin user’s subtitle settings to “None”.

I have tried and tried and tried but no search term I’ve come up with has found me somebody who had this same problem. I found that the -F option that was included in HB_ARGS_DVD by default is short for –subtitle-forced, which marks the first subtitle track as forced when given without an argument, but removing the -F from the config file and recreating the ARM docker container did nothing to fix the issue. Replacing the -F with –subtitle-forced=‘none’ or –subtitle-forced=none also didn’t work, and neither did adding –subtitle-default=none or –subtitle-default=‘none’

My current setting for HB_ARGS_DVD is –subtitle scan --all-subtitles --subtitle-burned=none --subtitle-default=none, which still has the issue. The only lead I have left is to use an external program called “MKVToolNix” to manually set the subtitle track as not forced for every single video file, but

  1. I’d rather fix the tool I’m already using than add an extra step to the DVD ripping process if possible
  2. I tried using MKVToolNix earlier and couldn’t get it to do what I wanted

A way to make Jellyfin disregard the “Forced” flag and treat the subtitle track normally would also work in my case but that seems less likely to exist than a way to fix HandBrake.

#selfhosted

threaded - newest

vhstape@lemmy.sdf.org on 12 Dec 15:18 next collapse

What file format are you outputting from HandBrake? Some like MP4 have limited support for subtitle tracks.

Cyberpro123@lemmy.world on 12 Dec 15:22 collapse

They’re all .mkv files. The issue isn’t that there are no subtitles, or that the subtitles are burnt-in to the video, the issue is that the first subtitle track is getting marked as ‘forced’ when it shouldn’t be.

non_burglar@lemmy.world on 12 Dec 17:30 next collapse

mkvmake pulls the Forced flag from its source, so it’s likely that your DVDs have a set flag for certain subs. You can use mediainfo to check this on your mkv files.

Mkv is simply a container format, which means you can probably unset the forced flag with mkvmake directly without having to unpack all the streams and remux them.

Handbrake is amazing, but it does have a LOT of controls, so there’s only so much hand-holding it can do when you start looking behind the curtain of how av files work.

frongt@lemmy.zip on 12 Dec 19:20 collapse

FYI, hiding a post is only cosmetic and only for you. But don’t delete it, leave it up for others to find if they run into the same problem.