FAQ  •  Register  •  Login

Problem with external ssa substitutes

<<

vvvli

Serviio newbie

Posts: 5

Joined: Fri Mar 14, 2014 3:36 am

Post Fri Mar 14, 2014 3:50 am

Problem with external ssa substitutes

I want to play a mp4 movie with an external ssa substitute.
I renamed them as xxx.mp4 and xxx.ssa.
But I cannot see the substitute with bubbleupnp and mxplayer.
Then I rename them as xxx.mp4 and xxx.srt. It works!
My question is why serviio server cannot use external ssa subsitute and why it works by renaming the substitutes?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Mar 14, 2014 11:37 am

Re: Problem with external ssa substitutes

It should work, Serviio transcoding the .ssa to .srt on the fly.

Do you have a detailed log of browsing to the movie and trying to play it?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Sat Mar 15, 2014 8:42 am

Re: Problem with external ssa substitutes

Are you sure it was a ssa/ass format ?

Could you provide "ffmpeg -i <ssafile>" result ?
<<

vvvli

Serviio newbie

Posts: 5

Joined: Fri Mar 14, 2014 3:36 am

Post Wed Mar 26, 2014 1:52 pm

Re: Problem with external ssa substitutes

zip wrote:It should work, Serviio transcoding the .ssa to .srt on the fly.

Do you have a detailed log of browsing to the movie and trying to play it?


I will describe my problem detailedly.
The name of the movie and the subtitles are
HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).mp4
HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).ssa
The code of the subtitle is UTF16-LE.
The head of the ssa file is
  Code:
[Script Info]
Title:
Original Script:
Synch Point:0
ScriptType:v4.00+
Collisions:Normal
PlayResX:704
PlayResY:396
Timer:100.0000

[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,方正准圆简体,26,&H00FFFFFF,&HF0000000,&H00000000,&HF0000000,-1,0,0,0,100,100,0,0.00,1,2,0,2,30,30,10,1
Style: Logo,方正中倩简体,55,&H0000008A,&HF0000000,&H00FFFFFF,&H50DFDFDF,-1,-1,0,0,100,100,0,0.00,1,2,1,5,30,30,10,1
Style: Staff,华文中宋,22,&H32FFDADA,&HF0000000,&H506E1717,&HF0000000,-1,0,0,0,100,100,0,0.00,1,1,0,2,30,30,10,1
Style: TX,华文细黑,22,&H00FFFFFF,&HF0000000,&H00000000,&HF0000000,0,0,0,0,100,90,0,0.00,1,1,1,2,30,30,10,1
Style: OP,MS PGothic,22,&H00FFFFFF,&HF0000000,&H00FF6464,&HF0000000,-1,0,0,0,100,100,1,0.00,1,1,0,2,10,10,10,1
Style: ED,MS PGothic,22,&H00FFFFFF,&HF0000000,&H00FF6464,&HF0000000,-1,0,0,0,100,100,0,0.00,1,1,0,2,10,10,10,1
Style: ED_B,MS PGothic,22,&H00FFFFFF,&HF0000000,&H00FF6464,&HF0000000,-1,0,0,0,100,100,0,0.00,1,1,0,7,10,10,10,1

[Events]
Format: Layer, Start, End, Style, Actor, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:11.07,0:00:11.95,*Default,NTP,0000,0000,0000,,遥远的
Dialogue: 0,0:00:12.62,0:00:13.32,*Default,NTP,0000,0000,0000,,遥远的
Dialogue: 0,0:00:13.97,0:00:15.23,*Default,NTP,0000,0000,0000,,时空的彼方
Dialogue: 0,0:00:23.30,0:00:28.19,*Default,NTP,0000,0000,0000,,宇宙里有一群自称为黄金一族的人
Dialogue: 0,0:00:29.88,0:00:31.35,*Default,NTP,0000,0000,0000,,他们创造星群
Dialogue: 0,0:00:31.69,0:00:34.16,*Default,NTP,0000,0000,0000,,拥有预知能力的他们
Dialogue: 0,0:00:34.42,0:00:37.63,*Default,NTP,0000,0000,0000,,呼唤那些还没成熟的其他种族
Dialogue: 0,0:00:39.70,0:00:41.37,*Default,NTP,0000,0000,0000,,启程吧


I used bubbleupnp and mxplayer to play the movie.
But the mxplayer cannot find the substitute.
The log is
  Code:
2014-03-26 21:45:15,793 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.2:50825s
2014-03-26 21:45:18,258 DEBUG [SearchManager] Committing search index
2014-03-26 21:45:18,793 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.2:50825s
2014-03-26 21:45:19,137 DEBUG [ServiioHttpService] Incoming request from /192.168.1.101:49253: GET /resource/27279/MEDIA_ITEM/AVC_MP4_MP_HD_1080i_AAC-0 HTTP/1.1, headers = [Host: 192.168.1.2:8895,Connection: Keep-Alive,User-Agent: Apache-HttpClient/UNAVAILABLE (java 1.4)]]
2014-03-26 21:45:19,138 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:45:19,138 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:45:19,139 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:45:19,139 WARN  [ResourceDeliveryProcessor] Invalid request, sending back 400 error
org.serviio.upnp.protocol.http.transport.InvalidResourceRequestException: Invalid incoming request: /resource/27279/MEDIA_ITEM/AVC_MP4_MP_HD_1080i_AAC-0
   at org.serviio.upnp.protocol.http.transport.RequestedResourceDescriptor.<init>(RequestedResourceDescriptor.java:69)
   at org.serviio.upnp.protocol.http.transport.AbstractProtocolHandler.getRequestedResourceDescription(AbstractProtocolHandler.java:36)
   at org.serviio.delivery.ResourceDeliveryProcessor.deliverContent(ResourceDeliveryProcessor.java:65)
   at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:86)
   at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:61)
   at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
   at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:77)
   at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
   at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:193)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 3
   at org.serviio.upnp.protocol.http.transport.RequestedResourceDescriptor.<init>(RequestedResourceDescriptor.java:66)
   ... 8 more
2014-03-26 21:45:20,779 DEBUG [ServiioHttpService] Incoming request from /192.168.1.101:40254: GET /resource/27279/MEDIA_ITEM/AVC_MP4_MP_HD_1080i_AAC-0/ORIGINAL HTTP/1.1, headers = [User-Agent: ,Accept: */*,Range: bytes=0-,Connection: close,Host: 192.168.1.2:8895,Cookie: (null)]]
2014-03-26 21:45:20,779 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:45:20,780 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:45:20,780 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:45:20,780 DEBUG [ResourceDeliveryProcessor] Request for resource 27279 and type 'MEDIA_ITEM' received
2014-03-26 21:45:20,780 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27279 (local)
2014-03-26 21:45:20,780 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27279)
2014-03-26 21:45:20,781 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:45:20,781 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27279, format AVC_MP4_MP_HD_1080i_AAC and profile Generic DLNA profile
2014-03-26 21:45:20,781 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27279 (local)
2014-03-26 21:45:20,781 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27279)
2014-03-26 21:45:20,781 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:45:20,782 DEBUG [VideoDeliveryEngine] Delivering item '27279' for client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:45:20,782 DEBUG [VideoDeliveryEngine] Delivering file 'HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).mp4' in native format
2014-03-26 21:45:20,782 DEBUG [MediaItemDAOImpl] Getting file of media item 27279
2014-03-26 21:45:20,782 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 27279) as read
2014-03-26 21:45:20,783 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2014-03-26 21:45:20,783 DEBUG [GETMethodProcessor] Stream entity has length: 1030733807
2014-03-26 21:45:20,784 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/mp4,Content-Length: 1030733807,Date: Wed, 26 Mar 2014 13:45:20 GMT,Server: Windows NT (unknown), UPnP/1.0 DLNADOC/1.50, Serviio/1.4.1,Cache-control: no-cache,Content-Range: bytes 0-1030733806/1030733807,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2014-03-26 21:45:21,150 DEBUG [ServiioHttpService] Incoming request from /192.168.1.101:40255: GET /resource/27279/MEDIA_ITEM/AVC_MP4_MP_HD_1080i_AAC-0/ORIGINAL HTTP/1.1, headers = [User-Agent: ,Accept: */*,Range: bytes=1030733746-,Connection: close,Host: 192.168.1.2:8895,Cookie: (null)]]
2014-03-26 21:45:21,151 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:45:21,151 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:45:21,152 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:45:21,152 DEBUG [ResourceDeliveryProcessor] Request for resource 27279 and type 'MEDIA_ITEM' received
2014-03-26 21:45:21,152 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27279 (local)
2014-03-26 21:45:21,152 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27279)
2014-03-26 21:45:21,152 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:45:21,153 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27279, format AVC_MP4_MP_HD_1080i_AAC and profile Generic DLNA profile
2014-03-26 21:45:21,153 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27279 (local)
2014-03-26 21:45:21,153 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27279)
2014-03-26 21:45:21,153 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:45:21,153 DEBUG [VideoDeliveryEngine] Delivering item '27279' for client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:45:21,153 DEBUG [VideoDeliveryEngine] Delivering file 'HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).mp4' in native format
2014-03-26 21:45:21,153 DEBUG [MediaItemDAOImpl] Getting file of media item 27279
2014-03-26 21:45:21,154 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 27279) as read
2014-03-26 21:45:21,155 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2014-03-26 21:45:21,155 DEBUG [GETMethodProcessor] Stream entity has length: 61
2014-03-26 21:45:21,155 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/mp4,Content-Length: 61,Date: Wed, 26 Mar 2014 13:45:21 GMT,Server: Windows NT (unknown), UPnP/1.0 DLNADOC/1.50, Serviio/1.4.1,Cache-control: no-cache,Content-Range: bytes 1030733746-1030733806/1030733807,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2014-03-26 21:45:21,159 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2014-03-26 21:45:21,178 DEBUG [ServiioHttpService] Incoming request from /192.168.1.101:40257: GET /resource/27279/MEDIA_ITEM/AVC_MP4_MP_HD_1080i_AAC-0/ORIGINAL HTTP/1.1, headers = [User-Agent: ,Accept: */*,Range: bytes=1015226-,Connection: close,Host: 192.168.1.2:8895,Cookie: (null)]]
2014-03-26 21:45:21,178 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:45:21,178 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:45:21,179 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:45:21,179 DEBUG [ResourceDeliveryProcessor] Request for resource 27279 and type 'MEDIA_ITEM' received
2014-03-26 21:45:21,179 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27279 (local)
2014-03-26 21:45:21,179 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27279)
2014-03-26 21:45:21,179 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:45:21,179 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27279, format AVC_MP4_MP_HD_1080i_AAC and profile Generic DLNA profile
2014-03-26 21:45:21,179 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27279 (local)
2014-03-26 21:45:21,179 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27279)
2014-03-26 21:45:21,180 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:45:21,180 DEBUG [VideoDeliveryEngine] Delivering item '27279' for client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:45:21,180 DEBUG [VideoDeliveryEngine] Delivering file 'HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).mp4' in native format
2014-03-26 21:45:21,180 DEBUG [MediaItemDAOImpl] Getting file of media item 27279
2014-03-26 21:45:21,180 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 27279) as read
2014-03-26 21:45:21,181 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2014-03-26 21:45:21,181 DEBUG [GETMethodProcessor] Stream entity has length: 1029718581
2014-03-26 21:45:21,181 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/mp4,Content-Length: 1029718581,Date: Wed, 26 Mar 2014 13:45:21 GMT,Server: Windows NT (unknown), UPnP/1.0 DLNADOC/1.50, Serviio/1.4.1,Cache-control: no-cache,Content-Range: bytes 1015226-1030733806/1030733807,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2014-03-26 21:45:21,369 DEBUG [ServiioHttpService] Incoming request from /192.168.1.101:40258: GET /resource/27279/MEDIA_ITEM/AVC_MP4_MP_HD_1080i_AAC-0/ORIGINAL HTTP/1.1, headers = [Host: 192.168.1.2:8895,Connection: keep-alive,User-Agent: stagefright/1.2 (Linux;Android 4.2.2),Accept-Encoding: gzip,deflate]]
2014-03-26 21:45:21,369 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:45:21,369 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:45:21,370 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:45:21,370 DEBUG [ResourceDeliveryProcessor] Request for resource 27279 and type 'MEDIA_ITEM' received
2014-03-26 21:45:21,370 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27279 (local)
2014-03-26 21:45:21,370 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27279)
2014-03-26 21:45:21,370 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:45:21,371 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27279, format AVC_MP4_MP_HD_1080i_AAC and profile Generic DLNA profile
2014-03-26 21:45:21,371 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27279 (local)
2014-03-26 21:45:21,371 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27279)
2014-03-26 21:45:21,371 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:45:21,371 DEBUG [VideoDeliveryEngine] Delivering item '27279' for client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:45:21,371 DEBUG [VideoDeliveryEngine] Delivering file 'HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).mp4' in native format
2014-03-26 21:45:21,371 DEBUG [MediaItemDAOImpl] Getting file of media item 27279
2014-03-26 21:45:21,372 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 27279) as read
2014-03-26 21:45:21,373 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2014-03-26 21:45:21,373 DEBUG [GETMethodProcessor] Stream entity has length: 1030733807
2014-03-26 21:45:21,373 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mp4,Content-Length: 1030733807,Date: Wed, 26 Mar 2014 13:45:21 GMT,Server: Windows NT (unknown), UPnP/1.0 DLNADOC/1.50, Serviio/1.4.1,Cache-control: no-cache,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2014-03-26 21:45:21,798 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.2:50825s
2014-03-26 21:45:23,055 DEBUG [ServiioHttpService] Incoming request from /192.168.1.101:58665: GET /resource/27279/SUBTITLE.srt HTTP/1.1, headers = [Host: 192.168.1.2:8895,Connection: Keep-Alive,User-Agent: Apache-HttpClient/UNAVAILABLE (java 1.4)]]
2014-03-26 21:45:23,055 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:45:23,056 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:45:23,056 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:45:23,056 DEBUG [ResourceDeliveryProcessor] Request for resource 27279 and type 'SUBTITLE' received
2014-03-26 21:45:23,056 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:45:23,056 DEBUG [MediaItemDAOImpl] Getting file of media item 27279
2014-03-26 21:45:23,057 DEBUG [SubtitlesService] Found external subtitle file: H:\animation\[HEROIC AGE][英雄时代][BDRIP][1080p]\HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).ssa
2014-03-26 21:45:23,057 DEBUG [SubtitlesRetrievalStrategy] Retrieving info of Subtitles for media item with id 27279
2014-03-26 21:45:23,057 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:45:23,057 DEBUG [MediaItemDAOImpl] Getting file of media item 27279
2014-03-26 21:45:23,058 DEBUG [SubtitlesService] Found external subtitle file: H:\animation\[HEROIC AGE][英雄时代][BDRIP][1080p]\HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).ssa
2014-03-26 21:45:23,058 DEBUG [SubtitlesRetrievalStrategy] Retrieving Subtitles for media item with id 27279
2014-03-26 21:45:23,058 DEBUG [FFMPEGWrapper] Invoking FFMPEG to convert subtitle file: H:\animation\[HEROIC AGE][英雄时代][BDRIP][1080p]\HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).ssa
2014-03-26 21:45:23,059 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\lib/ffmpeg.exe -sub_charenc UTF-8 -i H:\animation\[HEROIC AGE][英雄时代][BDRIP][1080p]\HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).ssa -an -vn -c:s srt -f srt pipe:
2014-03-26 21:45:23,166 DEBUG [GETMethodProcessor] Stream entity has length: 0
2014-03-26 21:45:23,166 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: text/srt,Content-Length: 0,Date: Wed, 26 Mar 2014 13:45:23 GMT,Server: Windows NT (unknown), UPnP/1.0 DLNADOC/1.50, Serviio/1.4.1,Cache-control: no-cache,transferMode.dlna.org: Interactive,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2014-03-26 21:45:24,799 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.2:50825s
2014-03-26 21:45:27,032 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2014-03-26 21:45:27,056 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2014-03-26 21:45:27,800 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.2:50825s


Then I renamed the ssa file as
HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).srt
It works !
In mx player the name of substitute was subtitle.srt.
The log is
  Code:
2014-03-26 21:51:24,889 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.2:50825s
2014-03-26 21:51:26,350 DEBUG [ServiioHttpService] Incoming request from /192.168.1.101:39533: GET /resource/27279/MEDIA_ITEM/AVC_MP4_MP_HD_1080i_AAC-0 HTTP/1.1, headers = [Host: 192.168.1.2:8895,Connection: Keep-Alive,User-Agent: Apache-HttpClient/UNAVAILABLE (java 1.4)]]
2014-03-26 21:51:26,351 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:51:26,352 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:51:26,352 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:51:26,352 WARN  [ResourceDeliveryProcessor] Invalid request, sending back 400 error
org.serviio.upnp.protocol.http.transport.InvalidResourceRequestException: Invalid incoming request: /resource/27279/MEDIA_ITEM/AVC_MP4_MP_HD_1080i_AAC-0
   at org.serviio.upnp.protocol.http.transport.RequestedResourceDescriptor.<init>(RequestedResourceDescriptor.java:69)
   at org.serviio.upnp.protocol.http.transport.AbstractProtocolHandler.getRequestedResourceDescription(AbstractProtocolHandler.java:36)
   at org.serviio.delivery.ResourceDeliveryProcessor.deliverContent(ResourceDeliveryProcessor.java:65)
   at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:86)
   at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:61)
   at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
   at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:77)
   at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
   at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:193)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 3
   at org.serviio.upnp.protocol.http.transport.RequestedResourceDescriptor.<init>(RequestedResourceDescriptor.java:66)
   ... 8 more
2014-03-26 21:51:27,890 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.2:50825s
2014-03-26 21:51:28,060 DEBUG [ServiioHttpService] Incoming request from /192.168.1.101:40626: GET /resource/27279/MEDIA_ITEM/AVC_MP4_MP_HD_1080i_AAC-0/ORIGINAL HTTP/1.1, headers = [User-Agent: ,Accept: */*,Range: bytes=0-,Connection: close,Host: 192.168.1.2:8895,Cookie: (null)]]
2014-03-26 21:51:28,060 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:51:28,061 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:51:28,061 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:51:28,061 DEBUG [ResourceDeliveryProcessor] Request for resource 27279 and type 'MEDIA_ITEM' received
2014-03-26 21:51:28,061 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27279 (local)
2014-03-26 21:51:28,061 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27279)
2014-03-26 21:51:28,062 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:51:28,062 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27279, format AVC_MP4_MP_HD_1080i_AAC and profile Generic DLNA profile
2014-03-26 21:51:28,062 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27279 (local)
2014-03-26 21:51:28,062 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27279)
2014-03-26 21:51:28,062 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:51:28,062 DEBUG [VideoDeliveryEngine] Delivering item '27279' for client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:51:28,062 DEBUG [VideoDeliveryEngine] Delivering file 'HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).mp4' in native format
2014-03-26 21:51:28,062 DEBUG [MediaItemDAOImpl] Getting file of media item 27279
2014-03-26 21:51:28,063 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 27279) as read
2014-03-26 21:51:28,064 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2014-03-26 21:51:28,064 DEBUG [GETMethodProcessor] Stream entity has length: 1030733807
2014-03-26 21:51:28,064 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/mp4,Content-Length: 1030733807,Date: Wed, 26 Mar 2014 13:51:28 GMT,Server: Windows NT (unknown), UPnP/1.0 DLNADOC/1.50, Serviio/1.4.1,Cache-control: no-cache,Content-Range: bytes 0-1030733806/1030733807,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2014-03-26 21:51:28,397 DEBUG [ServiioHttpService] Incoming request from /192.168.1.101:40627: GET /resource/27279/MEDIA_ITEM/AVC_MP4_MP_HD_1080i_AAC-0/ORIGINAL HTTP/1.1, headers = [User-Agent: ,Accept: */*,Range: bytes=1030733746-,Connection: close,Host: 192.168.1.2:8895,Cookie: (null)]]
2014-03-26 21:51:28,397 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:51:28,398 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:51:28,398 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:51:28,398 DEBUG [ResourceDeliveryProcessor] Request for resource 27279 and type 'MEDIA_ITEM' received
2014-03-26 21:51:28,398 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27279 (local)
2014-03-26 21:51:28,398 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27279)
2014-03-26 21:51:28,398 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:51:28,398 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27279, format AVC_MP4_MP_HD_1080i_AAC and profile Generic DLNA profile
2014-03-26 21:51:28,398 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27279 (local)
2014-03-26 21:51:28,398 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27279)
2014-03-26 21:51:28,398 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:51:28,399 DEBUG [VideoDeliveryEngine] Delivering item '27279' for client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:51:28,399 DEBUG [VideoDeliveryEngine] Delivering file 'HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).mp4' in native format
2014-03-26 21:51:28,399 DEBUG [MediaItemDAOImpl] Getting file of media item 27279
2014-03-26 21:51:28,399 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 27279) as read
2014-03-26 21:51:28,400 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2014-03-26 21:51:28,400 DEBUG [GETMethodProcessor] Stream entity has length: 61
2014-03-26 21:51:28,400 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/mp4,Content-Length: 61,Date: Wed, 26 Mar 2014 13:51:28 GMT,Server: Windows NT (unknown), UPnP/1.0 DLNADOC/1.50, Serviio/1.4.1,Cache-control: no-cache,Content-Range: bytes 1030733746-1030733806/1030733807,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2014-03-26 21:51:28,402 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2014-03-26 21:51:28,417 DEBUG [ServiioHttpService] Incoming request from /192.168.1.101:40628: GET /resource/27279/MEDIA_ITEM/AVC_MP4_MP_HD_1080i_AAC-0/ORIGINAL HTTP/1.1, headers = [User-Agent: ,Accept: */*,Range: bytes=1015226-,Connection: close,Host: 192.168.1.2:8895,Cookie: (null)]]
2014-03-26 21:51:28,417 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:51:28,417 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:51:28,417 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:51:28,417 DEBUG [ResourceDeliveryProcessor] Request for resource 27279 and type 'MEDIA_ITEM' received
2014-03-26 21:51:28,417 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27279 (local)
2014-03-26 21:51:28,417 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27279)
2014-03-26 21:51:28,418 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:51:28,418 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27279, format AVC_MP4_MP_HD_1080i_AAC and profile Generic DLNA profile
2014-03-26 21:51:28,418 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27279 (local)
2014-03-26 21:51:28,418 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27279)
2014-03-26 21:51:28,418 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:51:28,418 DEBUG [VideoDeliveryEngine] Delivering item '27279' for client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:51:28,418 DEBUG [VideoDeliveryEngine] Delivering file 'HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).mp4' in native format
2014-03-26 21:51:28,418 DEBUG [MediaItemDAOImpl] Getting file of media item 27279
2014-03-26 21:51:28,418 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 27279) as read
2014-03-26 21:51:28,420 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2014-03-26 21:51:28,420 DEBUG [GETMethodProcessor] Stream entity has length: 1029718581
2014-03-26 21:51:28,420 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/mp4,Content-Length: 1029718581,Date: Wed, 26 Mar 2014 13:51:28 GMT,Server: Windows NT (unknown), UPnP/1.0 DLNADOC/1.50, Serviio/1.4.1,Cache-control: no-cache,Content-Range: bytes 1015226-1030733806/1030733807,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2014-03-26 21:51:28,629 DEBUG [ServiioHttpService] Incoming request from /192.168.1.101:40630: GET /resource/27279/MEDIA_ITEM/AVC_MP4_MP_HD_1080i_AAC-0/ORIGINAL HTTP/1.1, headers = [Host: 192.168.1.2:8895,Connection: keep-alive,User-Agent: stagefright/1.2 (Linux;Android 4.2.2),Accept-Encoding: gzip,deflate]]
2014-03-26 21:51:28,629 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:51:28,630 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:51:28,630 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:51:28,630 DEBUG [ResourceDeliveryProcessor] Request for resource 27279 and type 'MEDIA_ITEM' received
2014-03-26 21:51:28,630 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27279 (local)
2014-03-26 21:51:28,630 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27279)
2014-03-26 21:51:28,630 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:51:28,631 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27279, format AVC_MP4_MP_HD_1080i_AAC and profile Generic DLNA profile
2014-03-26 21:51:28,631 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27279 (local)
2014-03-26 21:51:28,631 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27279)
2014-03-26 21:51:28,631 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:51:28,631 DEBUG [VideoDeliveryEngine] Delivering item '27279' for client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:51:28,631 DEBUG [VideoDeliveryEngine] Delivering file 'HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).mp4' in native format
2014-03-26 21:51:28,631 DEBUG [MediaItemDAOImpl] Getting file of media item 27279
2014-03-26 21:51:28,631 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 27279) as read
2014-03-26 21:51:28,633 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2014-03-26 21:51:28,633 DEBUG [GETMethodProcessor] Stream entity has length: 1030733807
2014-03-26 21:51:28,633 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mp4,Content-Length: 1030733807,Date: Wed, 26 Mar 2014 13:51:28 GMT,Server: Windows NT (unknown), UPnP/1.0 DLNADOC/1.50, Serviio/1.4.1,Cache-control: no-cache,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2014-03-26 21:51:30,584 DEBUG [ServiioHttpService] Incoming request from /192.168.1.101:52259: GET /resource/27279/SUBTITLE.srt HTTP/1.1, headers = [Host: 192.168.1.2:8895,Connection: Keep-Alive,User-Agent: Apache-HttpClient/UNAVAILABLE (java 1.4)]]
2014-03-26 21:51:30,584 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:51:30,584 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2014-03-26 21:51:30,584 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.101, Profile=Generic DLNA profile'
2014-03-26 21:51:30,584 DEBUG [ResourceDeliveryProcessor] Request for resource 27279 and type 'SUBTITLE' received
2014-03-26 21:51:30,584 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:51:30,585 DEBUG [MediaItemDAOImpl] Getting file of media item 27279
2014-03-26 21:51:30,585 DEBUG [SubtitlesService] Found external subtitle file: H:\animation\[HEROIC AGE][英雄时代][BDRIP][1080p]\HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).srt
2014-03-26 21:51:30,585 DEBUG [SubtitlesRetrievalStrategy] Retrieving info of Subtitles for media item with id 27279
2014-03-26 21:51:30,585 DEBUG [VideoDAOImpl] Reading a Video (id = 27279)
2014-03-26 21:51:30,585 DEBUG [MediaItemDAOImpl] Getting file of media item 27279
2014-03-26 21:51:30,586 DEBUG [SubtitlesService] Found external subtitle file: H:\animation\[HEROIC AGE][英雄时代][BDRIP][1080p]\HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).srt
2014-03-26 21:51:30,586 DEBUG [SubtitlesRetrievalStrategy] Retrieving Subtitles for media item with id 27279
2014-03-26 21:51:30,586 DEBUG [GETMethodProcessor] Stream entity has length: 41788
2014-03-26 21:51:30,586 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: text/srt,Content-Length: 41788,Date: Wed, 26 Mar 2014 13:51:30 GMT,Server: Windows NT (unknown), UPnP/1.0 DLNADOC/1.50, Serviio/1.4.1,Cache-control: no-cache,transferMode.dlna.org: Interactive,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2014-03-26 21:51:30,895 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.2:50825s
2014-03-26 21:51:31,534 DEBUG [PlaylistDAOImpl] Reading all Playlists
2014-03-26 21:51:31,544 DEBUG [FeedUpdaterThread] Checking for new and expired online resources
2014-03-26 21:51:31,544 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2014-03-26 21:51:33,895 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.2:50825s
2014-03-26 21:51:36,895 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.2:50825s
2014-03-26 21:51:39,945 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2014-03-26 21:51:39,946 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2014-03-26 21:51:42,888 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.2:50825s
2014-03-26 21:51:45,888 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.2:50825s
2014-03-26 21:51:48,272 DEBUG [SearchManager] Committing search index
2014-03-26 21:51:48,889 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.2:50825s
2014-03-26 21:51:51,896 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.2:50825s
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Mar 28, 2014 12:45 am

Re: Problem with external ssa substitutes

Looks like ffmpeg is having problems with the file.

  Code:
C:\Program Files\Serviio\lib/ffmpeg.exe -sub_charenc UTF-8 -i H:\animation\[HEROIC AGE][英雄时代][BDRIP][1080p]\HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).ssa -an -vn -c:s srt -f srt c:\tmp\out.srt


This seems to produce an empty file, can you confirm?
<<

vvvli

Serviio newbie

Posts: 5

Joined: Fri Mar 14, 2014 3:36 am

Post Tue Apr 01, 2014 1:32 pm

Re: Problem with external ssa substitutes

zip wrote:Looks like ffmpeg is having problems with the file.

  Code:
C:\Program Files\Serviio\lib/ffmpeg.exe -sub_charenc UTF-8 -i H:\animation\[HEROIC AGE][英雄时代][BDRIP][1080p]\HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).ssa -an -vn -c:s srt -f srt c:\tmp\out.srt


This seems to produce an empty file, can you confirm?


Ok, I think I found what happened.
The directory c:\tmp is not existed in my PC.
The serviio service cannot create such a directory.
But why serviio cannot just deliver the ssa to a player ? I think serviio dont need to transform it into srt subtitles.
<<

vvvli

Serviio newbie

Posts: 5

Joined: Fri Mar 14, 2014 3:36 am

Post Thu Apr 03, 2014 10:38 am

Re: Problem with external ssa substitutes

zip wrote:Looks like ffmpeg is having problems with the file.

  Code:
C:\Program Files\Serviio\lib/ffmpeg.exe -sub_charenc UTF-8 -i H:\animation\[HEROIC AGE][英雄时代][BDRIP][1080p]\HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).ssa -an -vn -c:s srt -f srt c:\tmp\out.srt


This seems to produce an empty file, can you confirm?


It is may be a bug of ffmpeg.
Here is the output
  Code:
ffmpeg version 2.1.4 Copyright (c) 2000-2014 the FFmpeg developers
  built on Feb 24 2014 10:33:56 with gcc 4.8.2 (GCC) 20140206 (prerelease)
  configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
  libavutil      52. 48.101 / 52. 48.101
  libavcodec     55. 39.101 / 55. 39.101
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.100 /  3. 90.100
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
1.ssa: Invalid data found when processing input


Then i convert the ssa file from UCS-2 to utf8.
It works!

  Code:
ffmpeg version 2.1.4 Copyright (c) 2000-2014 the FFmpeg developers
  built on Feb 24 2014 10:33:56 with gcc 4.8.2 (GCC) 20140206 (prerelease)
  configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
  libavutil      52. 48.101 / 52. 48.101
  libavcodec     55. 39.101 / 55. 39.101
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.100 /  3. 90.100
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, ass, from '1.ssa':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Subtitle: ssa
Output #0, srt, to '/home/wuli/1.srt':
  Metadata:
    encoder         : Lavf55.19.104
    Stream #0:0: Subtitle: subrip
Stream mapping:
  Stream #0:0 -> #0:0 (ssa -> subrip)
Press [q] to stop, [?] for help
size=      19kB time=00:23:49.55 bitrate=   0.1kbits/s   
video:0kB audio:0kB subtitle:11 global headers:0kB muxing overhead 76.890080%
<<

vvvli

Serviio newbie

Posts: 5

Joined: Fri Mar 14, 2014 3:36 am

Post Thu Apr 03, 2014 10:46 am

Re: Problem with external ssa substitutes

zip wrote:Looks like ffmpeg is having problems with the file.

  Code:
C:\Program Files\Serviio\lib/ffmpeg.exe -sub_charenc UTF-8 -i H:\animation\[HEROIC AGE][英雄时代][BDRIP][1080p]\HEROIC AGE 第01話 「滅びの星 ( The Ruined Planet )」 (BD 1920x1080 x264 AAC[2ch_Jpn+5.1ch_Eng]).ssa -an -vn -c:s srt -f srt c:\tmp\out.srt


This seems to produce an empty file, can you confirm?


I find that ffmpeg does not support UTF-16 subtitles.

Recently, someone asked for supporting for UTF-16 subtitles.
https://trac.ffmpeg.org/ticket/3496

I advice that you can add a option that serviio deliver the subtitle directly.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 16 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.