alexballas / go2tv

Cast media files to UPnP/DLNA Media Renderers and Smart TVs.
MIT License
514 stars 52 forks source link

Add subtitle file failed #61

Open 20NE opened 1 year ago

20NE commented 1 year ago

There is option "-s" to add subtitles file in CLI mode, but doesn't work. I tried:

All failed. It seems DLNA doesn't support subtitle.

alexballas commented 1 year ago

Hello, I tested it and it works fine on my TV. What device are you using? (model name etc) Maybe this is a limitation with your TV / Device since not all devices support DLNA subtitles.

20NE commented 1 year ago

Xiaomi TV, I haven't tried on any other device yet

alexballas commented 1 year ago

Unfortunately this looks like a Xiaomi specific issue. Go2TV uses UPNP/DLNA to communicate and cast media to the devices. Subtitles support is not part of UPNP specification. There are some vendors however that introduced some proprietary extensions to the protocol to support subtitles like Samsung and Panasonic but this is not the case for every TV out there.

It would be good if you could test it with a different device. I personally tested it on Samsung and LG TVs and the subtitles work fine.

nakhla commented 3 weeks ago

sorry for commenting to a closed issue, but i think it is related. I tried go2tv on bubbleupnp and it works for video and subtitle but for samsung j5200 subtitle not shown i have tried gerbera and it works on same tv for video and subtitle, i am available if i can do any other tests. thanks

alexballas commented 3 weeks ago

Hello @nakhla, Unfortunately there is very little here to work with as I personally don't own a J5200. Do you have any other device you could test it with? I'm also not aware how gerbera does it. You could potentially sniff the XML requests that gerbera sends to your device and see how the subtitle were implemented in the gerbera code.

nakhla commented 2 weeks ago

yes i tested with a tu7000 and go2tv is working for video and subtitle flawlessly, i make further test with gerbera on tu7000 and found that subtitle is not working. so when gerbera work go2tv is not and when go2tv work gerbera is not working. and i noticed go2tv is working in newly manufactured tvs and gerbera working in quiet old tvs