crusher11 854 Posted September 5, 2022 Share Posted September 5, 2022 13 hours ago, FrostByte said: True, but that's also true for internal forced subs if you don't flag them correctly. Just another flag you have to set if you want any software to identify them correctly. Your older stuff you would need to go back and revisit. I'm sure a script could even be written to search for the word SDH if you were using that in the titles. Otherwise, it will take some work. Yeah, all my internal SDH subs are "SDH (PGSSUB)" as the track title. Externally I've been using moviename.English SDH.srt. A simple bulk rename would take care of that, not sure how to handle the internal subs though. Link to comment Share on other sites More sharing options...
Luke 37099 Posted September 29, 2023 Share Posted September 29, 2023 HI, the hearing impaired status for subtitles, both internal and external will be supported in Emby Server 4.8: Thanks. 1 Link to comment Share on other sites More sharing options...
crusher11 854 Posted September 29, 2023 Share Posted September 29, 2023 (edited) A simple bulk rename will sort this for my external subs, but is there a way to correctly flag all my internal subs? Also, is it possible to get support for PSDH? Edited September 29, 2023 by crusher11 Link to comment Share on other sites More sharing options...
rbjtech 4284 Posted September 29, 2023 Share Posted September 29, 2023 (edited) 59 minutes ago, crusher11 said: A simple bulk rename will sort this for my external subs, but is there a way to correctly flag all my internal subs? If they are not already tagged as such - then depending on the container, you'll need to use ffmpeg/mkvtoolnix/mkvpropedit/mp4box to add the internal 'flag'. Depending on the Track 'name' (with the term SDH in it ..) you may be able to automate this using mkvpropedit (if using mkv). If MP4, then I'm not sure this is possible as you can't just edit headers without remuxing the entire file .. mkvtoolnix manual example (remux, or use the header option to add the flag=Yes) - If in a script - then you can use mkvpropedit - s1 = first subtitle track, but you could use a script to identify if the subtitle track name contains SDH - mkvpropedit "input.mkv" --edit track:s1 --set flag-hearing-impaired=1 ffmpeg/ffprobe (what emby uses) will pick it up as a DISPOSITION on that stream - meaning you can write it too, but again, you'll need to remux the file to add it, so if you use mkv, then mkvpropedit is by far the quickest and easiest way. DISPOSITION:hearing_impaired=1 Edited September 29, 2023 by rbjtech 1 Link to comment Share on other sites More sharing options...
crusher11 854 Posted September 29, 2023 Share Posted September 29, 2023 Yeah, they're all MKVs and SDH tracks are all named "SDH (PGSSUB)" or "PSDH (PGSSUB)". Just after a way to automate it given I have thousands of files to flag. Link to comment Share on other sites More sharing options...
rbjtech 4284 Posted September 30, 2023 Share Posted September 30, 2023 (edited) 9 hours ago, crusher11 said: Yeah, they're all MKVs and SDH tracks are all named "SDH (PGSSUB)" or "PSDH (PGSSUB)". Just after a way to automate it given I have thousands of files to flag. In your favorite script/batch, it's just a case of recursively run though all the files, extract the title of each subtitle track, search for SDH and if found then run the mkvpropedit command line I gave above on that track... Edited September 30, 2023 by rbjtech Link to comment Share on other sites More sharing options...
FrostByte 5052 Posted September 30, 2023 Author Share Posted September 30, 2023 3 hours ago, rbjtech said: In your favorite script/batch, it's just a case of recursively run though all the files, extract the title of each subtitle track, search for SDH and if found then run the mkvpropedit command line I gave above on that track... I wonder if this is something Cheesey could add to one of his plugins. Link to comment Share on other sites More sharing options...
rbjtech 4284 Posted September 30, 2023 Share Posted September 30, 2023 (edited) 34 minutes ago, FrostByte said: I wonder if this is something Cheesey could add to one of his plugins. I just wrote it for external subs .. and i could easily add into the MediaInfo plugin as the track title is held in both emby and mediainfo .. But I'm just playing with .49 beta - which includes the sdh function - but can't get it to recognise filename.en.sdh.srt ... which I thought was the point ... edit - this is what I've tried .. I was expecting it to list English (SDH SRT) if following the logic that the forced sub shows (correctly) .. ? Edited September 30, 2023 by rbjtech Link to comment Share on other sites More sharing options...
FrostByte 5052 Posted September 30, 2023 Author Share Posted September 30, 2023 7 minutes ago, rbjtech said: I just wrote it for external subs .. and i could easily add into the MediaInfo plugin as the track title is held in both emby and mediainfo .. But I'm just playing with .49 beta - which includes the sdh function - but can't get it to recognise filename.en.sdh.srt ... which I thought was the point ... Still waiting for .49 for Syno here. Then refresh my library which will probably take 3 days mkvpropedit is great though. Runs quick even over wireless network from PC to my NAS. Link to comment Share on other sites More sharing options...
rbjtech 4284 Posted September 30, 2023 Share Posted September 30, 2023 (edited) 3 minutes ago, FrostByte said: Still waiting for .49 for Syno here. Then refresh my library which will probably take 3 days mkvpropedit is great though. Runs quick even over wireless network from PC to my NAS. Just restart emby and it will sync - or just install the 7zip directly from github - that's what i did. But see above - sdh is not working for me at the moment .. Edited September 30, 2023 by rbjtech Link to comment Share on other sites More sharing options...
FrostByte 5052 Posted September 30, 2023 Author Share Posted September 30, 2023 Just now, rbjtech said: Just restart emby and it will sync - or just install the 7zip directly from github - that's what i did. But see above - sdh has some 'issues' ... but just working though the detail on what to report back ... Great, I'll test it once available. Unix releases are usually one of the last compiled. Link to comment Share on other sites More sharing options...
rbjtech 4284 Posted September 30, 2023 Share Posted September 30, 2023 1 minute ago, FrostByte said: Great, I'll test it once available. Unix releases are usually one of the last compiled. Yep - Synology is not there yet .. Releases · MediaBrowser/Emby.Releases (github.com) Link to comment Share on other sites More sharing options...
FrostByte 5052 Posted September 30, 2023 Author Share Posted September 30, 2023 22 minutes ago, rbjtech said: I just wrote it for external subs .. and i could easily add into the MediaInfo plugin as the track title is held in both emby and mediainfo .. But I'm just playing with .49 beta - which includes the sdh function - but can't get it to recognise filename.en.sdh.srt ... which I thought was the point ... edit - this is what I've tried .. I was expecting it to list English (SDH SRT) if following the logic that the forced sub shows (correctly) .. ? So @Lukeneeds to add "SDH SRT" description for external subs like he does "Forced SRT"? His picture just showed internal which probably got it from the track name. Link to comment Share on other sites More sharing options...
rbjtech 4284 Posted September 30, 2023 Share Posted September 30, 2023 1 minute ago, FrostByte said: So @Lukeneeds to add "SDH SRT" description for external subs like he does "Forced SRT"? His picture just showed internal which probably got it from the track name. 4.8.0.49-beta Pre-release Import hearing impaired attribute for both internal and external subtitles ? I'll raise it as an issue on the forum ... Link to comment Share on other sites More sharing options...
FrostByte 5052 Posted September 30, 2023 Author Share Posted September 30, 2023 1 minute ago, rbjtech said: 4.8.0.49-beta Pre-release Import hearing impaired attribute for both internal and external subtitles ? I'll raise it as an issue on the forum ... Does it use the right subtitle though if you choose hearing impaired as your preferred subtitle type? It may just not be displaying the correct name. I'll jump over to your other thread. Thanks 1 Link to comment Share on other sites More sharing options...
crusher11 854 Posted October 1, 2023 Share Posted October 1, 2023 On 9/30/2023 at 2:45 PM, rbjtech said: In your favorite script/batch, it's just a case of recursively run though all the files, extract the title of each subtitle track, search for SDH and if found then run the mkvpropedit command line I gave above on that track... That sounds like it would be really simple for someone who knew how to do that. I, however, have no idea. Link to comment Share on other sites More sharing options...
rbjtech 4284 Posted October 3, 2023 Share Posted October 3, 2023 This is now working and being displayed. Link to comment Share on other sites More sharing options...
crusher11 854 Posted October 3, 2023 Share Posted October 3, 2023 How does this interact with track titles for embedded subs? Link to comment Share on other sites More sharing options...
rbjtech 4284 Posted October 3, 2023 Share Posted October 3, 2023 (edited) 29 minutes ago, crusher11 said: How does this interact with track titles for embedded subs? same as external - but will need the HI Flag set. edit I've added to the MediaInfo Plugin yesterday - it searches for the string 'sdh' (any case) in the subtitle track title (in the mkv) and if found - then it will flag the mkv track as HI and you also have the option to remove the track name (as you now have the flag). I note however, that Luke has chosen to use the term 'Hearing Impaired' rather than the term SDH - so having both displayed may no longer be an issue (ie shows the track name and emby derrived name) - the track name removal is optional anyway. Just testing it atm, but when it's all good - I'll release on the mediainfo plugin thread. Edited October 3, 2023 by rbjtech 1 Link to comment Share on other sites More sharing options...
crusher11 854 Posted October 3, 2023 Share Posted October 3, 2023 Mine are all named either "SDH (PGSSUB)" or "SDH (VOBSUB)" as appropriate, so the format is in there matching the way Emby presents tracks with no title present. So right now, if I flag them all it'll display "SDH (PGSSUB) (Hearing Impaired PGSSUB)"? Link to comment Share on other sites More sharing options...
FrostByte 5052 Posted October 3, 2023 Author Share Posted October 3, 2023 I believe .50/51 added naming for SDH subtitles. Still not there for Synology though. Also, hoping Luke added the ability to set the subtitle mode to HI. Link to comment Share on other sites More sharing options...
FrostByte 5052 Posted October 3, 2023 Author Share Posted October 3, 2023 12 minutes ago, crusher11 said: Mine are all named either "SDH (PGSSUB)" or "SDH (VOBSUB)" as appropriate, so the format is in there matching the way Emby presents tracks with no title present. So right now, if I flag them all it'll display "SDH (PGSSUB) (Hearing Impaired PGSSUB)"? Are you using embedded names, or Emby's friendly naming? Link to comment Share on other sites More sharing options...
crusher11 854 Posted October 3, 2023 Share Posted October 3, 2023 19 minutes ago, FrostByte said: Are you using embedded names, or Emby's friendly naming? Embedded. Link to comment Share on other sites More sharing options...
crusher11 854 Posted October 3, 2023 Share Posted October 3, 2023 Link to comment Share on other sites More sharing options...
FrostByte 5052 Posted October 3, 2023 Author Share Posted October 3, 2023 You shouldn't see any difference if using embedded names then. The changes should only affect Emby friendly naming which uses two lines for subtile naming. I'm still waiting for .51 though to verify. Link to comment Share on other sites More sharing options...
Recommended Posts