Page 1 of 1

Serviio 1.2.1 + srt subtitle files not working

PostPosted: Sun May 05, 2013 2:10 pm
by Polar
Hi,

My setup is basic. I have a Pioneer BDP-140 which is DLNA compatible. I run Serviio on my Windows XP PC. I can stream AVI, MKV, MP4 etc from my PC to my TV by using the build-in DLNA from my BDP. The BDP is recognized by Serviio as a Generic Profile.

I just upgraded to Serviio 1.2.1. I have a MP4 file that has both video/sound/subtitle included. It works when I check all three option boxes is Servio Console on the subtitle tab. But the CPU is not powerfull enough (old PC) and the movie stutters when playing with subtitles.

So I wanted to use an external srt file. I have now only one check box ("enable subtiltles"). And only one language code "en". (I read there is a bug when using multiple language codes?).
The movie file format is MyMovie - 2011.mp4. The subtitle is MyMovie - 2011.en.srt

I changed to "DEBUG" logging, but can not see anything about a srt file. From what I guess is important info from the log file, this is it:

2013-05-05 14:44:01,971 DEBUG [AccessGroupDAOImpl] Reading a AccessGroup (id = 1)
2013-05-05 14:44:01,971 DEBUG [LocalContentCacheDecorator] Found entry in the cache (local_resetafterplay), returning it
2013-05-05 14:44:01,971 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2013-05-05 14:44:03,721 DEBUG [ServiioHttpService] Incoming request from /192.168.11.209:46163: POST /serviceControl HTTP/1.1, headers = [HOST: 192.168.11.21:8895,CONTENT-LENGTH: 742,CONTENT-TYPE: text/xml; charset="utf-8",SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse",USER-AGENT: IPI/1.0 UPnP/1.0 DLNADOC/1.50]]
2013-05-05 14:44:03,721 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.11.209
2013-05-05 14:44:03,721 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"' from 192.168.11.209
2013-05-05 14:44:03,721 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.11.209
2013-05-05 14:44:03,736 DEBUG [ContentDirectory] Browse() called for renderer Unrecognized device (profile 1) with parameters: objectID = V_LV^V_7664, browseFlag = BrowseMetadata, filter = res,res@resolution,res@protocolInfo,res@size,res@duration,res@bitrate,res@sampleFrequency,res@bitsPerSample,res@nrAudioChannels,res@protection,dc:creator,dc:date,upnp:genre,upnp:album,upnp:originalTrackNumber,upnp:channelNr,upnp:scheduledStartTime,upnp:scheduledEndTime,upnp:icon,upnp:albumArtURI,upnp:artist,container@childCount, startIndex = 0, count = 1, sortCriteria =
2013-05-05 14:44:03,736 DEBUG [AccessGroupDAOImpl] Reading a AccessGroup (id = 1)
2013-05-05 14:44:03,736 DEBUG [VideoDAOImpl] Reading a Video (id = 7664)
2013-05-05 14:44:03,736 DEBUG [MediaItemDAOImpl] Getting file of media item 7664
2013-05-05 14:44:03,736 DEBUG [GenreDAOImpl] Reading a Genre (id = 76)
2013-05-05 14:44:03,736 DEBUG [VideoDAOImpl] Reading a Video (id = 7664)
2013-05-05 14:44:03,736 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 7664 and profile Generic DLNA profile
2013-05-05 14:44:03,736 DEBUG [MediaItemDAOImpl] Getting file of media item 7664
2013-05-05 14:44:03,736 DEBUG [LocalContentCacheDecorator] Stored entry in the cache (local_resetafterplay), returning it
2013-05-05 14:44:03,752 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2013-05-05 14:44:03,767 DEBUG [ServiioHttpService] Incoming request from /192.168.11.209:46164: GET /resource/7664/MEDIA_ITEM/AVC_MP4_MP_HD_720p_AAC-0/ORIGINAL HTTP/1.1, headers = [HOST: 192.168.11.21:8895,DATE: Fri, 01 Jan 2010 00:15:10 GMT,CONNECTION: Keep-Alive,USER-AGENT: IPI/1.0 UPnP/1.0 DLNADOC/1.50,friendlyName.dlna.org: BD-Player,transferMode.dlna.org: Streaming,RANGE: bytes=0-1076756259]]
2013-05-05 14:44:03,767 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.11.209
2013-05-05 14:44:03,767 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.11.209
2013-05-05 14:44:03,783 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.11.209, Profile=Generic DLNA profile'
2013-05-05 14:44:03,783 DEBUG [ResourceDeliveryProcessor] Request for resource 7664 and type 'MEDIA_ITEM' received
2013-05-05 14:44:03,783 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 7664 (local)
2013-05-05 14:44:03,783 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 7664)
2013-05-05 14:44:03,799 DEBUG [VideoDAOImpl] Reading a Video (id = 7664)
2013-05-05 14:44:03,814 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 7664, format AVC_MP4_MP_HD_720p_AAC and profile Generic DLNA profile
2013-05-05 14:44:03,814 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 7664 (local)
2013-05-05 14:44:03,814 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 7664)
2013-05-05 14:44:03,814 DEBUG [VideoDAOImpl] Reading a Video (id = 7664)
2013-05-05 14:44:03,814 DEBUG [VideoDeliveryEngine] Delivering item '7664' for client 'Identifier=192.168.11.209, Profile=Generic DLNA profile'
2013-05-05 14:44:03,814 DEBUG [VideoDeliveryEngine] Delivering file 'Life of Pi - 2012.mp4' in native format
2013-05-05 14:44:03,814 DEBUG [MediaItemDAOImpl] Getting file of media item 7664
2013-05-05 14:44:03,814 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 7664) as read
2013-05-05 14:44:03,846 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2013-05-05 14:44:03,846 DEBUG [GETMethodProcessor] Stream entity has length: 1076756260
2013-05-05 14:44:03,846 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/mp4,Content-Length: 1076756260,Date: Sun, 05 May 2013 12:44:03 GMT,Server: Windows XP, UPnP/1.0 DLNADOC/1.50, Serviio/1.2.1,Cache-control: no-cache,Content-Range: bytes 0-1076756259/1076756260,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2013-05-05 14:44:04,377 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2013-05-05 14:44:04,377 DEBUG [ServiioHttpService] Incoming request from /192.168.11.209:46165: POST /serviceControl HTTP/1.1, headers = [HOST: 192.168.11.21:8895,CONTENT-LENGTH: 742,CONTENT-TYPE: text/xml; charset="utf-8",SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse",USER-AGENT: IPI/1.0 UPnP/1.0 DLNADOC/1.50]]
2013-05-05 14:44:04,377 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.11.209
2013-05-05 14:44:04,377 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"' from 192.168.11.209
2013-05-05 14:44:04,377 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.11.209
2013-05-05 14:44:04,392 DEBUG [ContentDirectory] Browse() called for renderer Unrecognized device (profile 1) with parameters: objectID = V_LV^V_7664, browseFlag = BrowseMetadata, filter = res,res@resolution,res@protocolInfo,res@size,res@duration,res@bitrate,res@sampleFrequency,res@bitsPerSample,res@nrAudioChannels,res@protection,dc:creator,dc:date,upnp:genre,upnp:album,upnp:originalTrackNumber,upnp:channelNr,upnp:scheduledStartTime,upnp:scheduledEndTime,upnp:icon,upnp:albumArtURI,upnp:artist,container@childCount, startIndex = 0, count = 1, sortCriteria =
2013-05-05 14:44:04,392 DEBUG [AccessGroupDAOImpl] Reading a AccessGroup (id = 1)
2013-05-05 14:44:04,392 DEBUG [VideoDAOImpl] Reading a Video (id = 7664)
2013-05-05 14:44:04,392 DEBUG [MediaItemDAOImpl] Getting file of media item 7664
2013-05-05 14:44:04,408 DEBUG [GenreDAOImpl] Reading a Genre (id = 76)
2013-05-05 14:44:04,408 DEBUG [VideoDAOImpl] Reading a Video (id = 7664)
2013-05-05 14:44:04,408 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 7664 and profile Generic DLNA profile
2013-05-05 14:44:04,408 DEBUG [MediaItemDAOImpl] Getting file of media item 7664
2013-05-05 14:44:04,424 DEBUG [LocalContentCacheDecorator] Stored entry in the cache (local_resetafterplay), returning it
2013-05-05 14:44:04,455 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2013-05-05 14:44:04,486 DEBUG [ServiioHttpService] Incoming request from /192.168.11.209:46166: GET /resource/7664/MEDIA_ITEM/AVC_MP4_MP_HD_720p_AAC-0/ORIGINAL HTTP/1.1, headers = [HOST: 192.168.11.21:8895,DATE: Fri, 01 Jan 2010 00:15:11 GMT,CONNECTION: Keep-Alive,USER-AGENT: IPI/1.0 UPnP/1.0 DLNADOC/1.50,friendlyName.dlna.org: BD-Player,transferMode.dlna.org: Streaming,RANGE: bytes=0-1076756259]]
2013-05-05 14:44:04,486 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.11.209
2013-05-05 14:44:04,486 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.11.209
2013-05-05 14:44:04,486 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.11.209, Profile=Generic DLNA profile'
2013-05-05 14:44:04,486 DEBUG [ResourceDeliveryProcessor] Request for resource 7664 and type 'MEDIA_ITEM' received
2013-05-05 14:44:04,486 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 7664 (local)
2013-05-05 14:44:04,486 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 7664)
2013-05-05 14:44:04,486 DEBUG [VideoDAOImpl] Reading a Video (id = 7664)
2013-05-05 14:44:04,486 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 7664, format AVC_MP4_MP_HD_720p_AAC and profile Generic DLNA profile
2013-05-05 14:44:04,486 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 7664 (local)
2013-05-05 14:44:04,486 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 7664)
2013-05-05 14:44:04,486 DEBUG [VideoDAOImpl] Reading a Video (id = 7664)
2013-05-05 14:44:04,486 DEBUG [VideoDeliveryEngine] Delivering item '7664' for client 'Identifier=192.168.11.209, Profile=Generic DLNA profile'
2013-05-05 14:44:04,486 DEBUG [VideoDeliveryEngine] Delivering file 'Life of Pi - 2012.mp4' in native format
2013-05-05 14:44:04,486 DEBUG [MediaItemDAOImpl] Getting file of media item 7664
2013-05-05 14:44:04,502 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 7664) as read
2013-05-05 14:44:04,502 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)

All information I have found on this forum so far is about certain device profiles, but I could not find anything refering to Generic profiles and problems with external subtitles.

Please your advice? Many thanks in advance.

(edit) PS: I looked at the file name convention, and followed the setup as referred to here :
http://www.serviio.org/index.php?option ... icle&id=33

Here is is mentioned that:

When using an external subtitles file, it has to named with the same name as the video file, except the extension, e.g.:

my_movie.avi
my_movie.srt
You can also specify the language, e.g.:

my_movie.avi
my_movie_en.srt
my_movie-de.sub
my_movie(fra).srt
my_movie.cz.srt

In my case, I renamed the files to Life_of_Pi_2012.mp4 + Life_of_Pi_2012-en.srt. Still no subs. I tested in VLC: both embedded and external file work fine.

Re: Serviio 1.2.1 + srt subtitle files not working

PostPosted: Tue May 07, 2013 9:01 am
by zip
External subs wiyhout burning them in are only supported by a very small number of devices. So it's a safe bet that your device doesn't support this feature.

Re: Serviio 1.2.1 + srt subtitle files not working

PostPosted: Thu May 09, 2013 10:44 am
by Polar
Thank you for the reply. That sounds fair enough. But I have 2 comments on that:

1. When using the burned in sub I see that CPU spikes through the roof. Ffmpeg is using it all, even after the movie is stopped. I read in this topic Servio 1.2 constantly runs ffmpeg.exe, uses up cpu time that you mention the cause is the updating of the library after an upgrade. But is does it all the time, so I'm not convinced.

2. I have tested subtitling on my "generic" device with another Media player, and it works. There is one thing I need to confess though. The setup was a little bit modified. I streamed from the Plex Media server to my iPad web browser. I connected the iPad to my receiver (iPad to USB) and activated "TV Out". Since Plex downloads the subtitles according to the subtitle language preferences (if available), it streams them to the device (TV box, iPad, you name it), and thus projects it to your "generic" TV.

The beauty of this setup is that I can use a nice web interface while making my "pick-of-the-evening" in my potato couch, then just plug in the iPad on my receiver and enjoy.

This said, I prefer Serviio because it is easier on the CPU the Plex when using it directly played from my BD DLNA device (without the use of a web interface). Very little CPU activity while streaming this way. SUPER GREAT !!! Nice work on the coding!

Hey, this makes me wonder... Is it possible to perform the same test as described above with Serviio? I I have a srt file on my computer next to the movie. If I could stream it to my iPads browser. Then I could see if subs work that way, and then they should show on my TV as well. Since it is the BD-140 that seems to have a problem with the subs...

Re: Serviio 1.2.1 + srt subtitle files not working

PostPosted: Thu May 09, 2013 1:31 pm
by zip
Polar wrote:1. When using the burned in sub I see that CPU spikes through the roof. Ffmpeg is using it all, even after the movie is stopped.

This is expected.

Re: web broswer - Plex has it's own protocol, as well as DLNA, so I assume that's how they get the subs on the iPad. Serviio has MediaBrowser as well, but it currently doesn't work with iPads.

Re: Serviio 1.2.1 + srt subtitle files not working

PostPosted: Mon Sep 23, 2013 2:10 pm
by pupileprosa
hey guys, I'm having the same (or a similar problem)...

I run serviio on a mac, it connects perfectly to my sony tv, I can play all kinds of video (mp4, avi, etc) without any problem....BUT....the subs don't work.
they have the exact same file name as the video file and I already removed any weird characters like ( ) for example.
(tried the subs using VLC on my computer and everything worked just fine)

I really don't know what to do about that...can anyone help me out on that? thanks!