FAQ  •  Register  •  Login

No subs for transcoding files

<<

Bachusan

Serviio newbie

Posts: 8

Joined: Wed Dec 03, 2014 9:40 pm

Post Wed Dec 03, 2014 9:54 pm

No subs for transcoding files

Hi Everyone, my first post here.

Great soft You got there, transcoding works perfect.
I have to transcode only audio from matroska files as my Samsung Led TV doesn't support dts.

The problem is that when I play the transcoded file I cannot see any subtitles.
The subtitles file has same name as the video file and is in .srt format.

How to proceed ?

EDIT: Subtitles show but after some time and not in proper time.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Thu Dec 04, 2014 8:13 am

Re: No subs for transcoding files

Even if you want to transcode only the audio, mkv format is not a proper format for transcoding (and serviio does not support this output format for transcoding process), then video/audio streams are transcoded into a mpegts container (depending of profile used).
If you have a external srt file, it will be delivered beside the mpegts stream.

If you have sync problem between your srt and movie stream.
I suggest to check your srt file with this little (windows only) tool : viewtopic.php?f=17&t=2971
<<

Bachusan

Serviio newbie

Posts: 8

Joined: Wed Dec 03, 2014 9:40 pm

Post Thu Dec 04, 2014 8:31 am

Re: No subs for transcoding files

Sorry to say but that didn`t help.
The file was ok, and the effect is still the same.
It look like the subs starts after some time but not right with the movie. Maybe something wrong with the clock. The seem to last longer than they should, and the distances in time between next lines are very big.

On my PC VLC everything is ok.

Any other suggestions ?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Thu Dec 04, 2014 2:14 pm

Re: No subs for transcoding files

Could enable detailed logging and provide the ffmpeg command line used during transcoding process ?

Btw - You could not compare VLC with devices (TV,BDP player,etc), VLC is 100% software and is very "permissive" with many updates, device use hardware chip with standard format. Serviio/ffmpeg tries to address these gaps with +/- success.
<<

Bachusan

Serviio newbie

Posts: 8

Joined: Wed Dec 03, 2014 9:40 pm

Post Fri Dec 05, 2014 3:51 pm

Re: No subs for transcoding files

OK so I guess it should be it:

014-12-05 16:37:09,227 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.11
2014-12-05 16:37:09,229 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.11
2014-12-05 16:37:09,230 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.11, Profile=Samsung TV (B-series)'
2014-12-05 16:37:09,231 DEBUG [ResourceDeliveryProcessor] Request for resource 2 and type 'MEDIA_ITEM' received
2014-12-05 16:37:09,231 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 2 (local)
2014-12-05 16:37:09,231 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 2)
2014-12-05 16:37:09,276 DEBUG [VideoDAOImpl] Reading a Video (id = 2)
2014-12-05 16:37:09,279 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 2, format AVC_TS_MP_HD_AAC_MULT5_T and profile Samsung TV (B-series)
2014-12-05 16:37:09,280 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file Guardians.of.the.Galaxy.2014.1080p.BluRay.x264-SPARKS.mkv
2014-12-05 16:37:09,281 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Guardians.of.the.Galaxy.2014.1080p.BluRay.x264-SPARKS.mkv: AVC_TS_MP_HD_AAC_MULT5_T
2014-12-05 16:37:09,283 DEBUG [VideoDAOImpl] Reading a Video (id = 2)
2014-12-05 16:37:09,286 DEBUG [MediaItemDAOImpl] Getting file of media item 2
2014-12-05 16:37:09,292 DEBUG [SubtitlesService] Found external subtitles file: Guardians.of.the.Galaxy.2014.1080p.BluRay.x264-SPARKS.srt
2014-12-05 16:37:09,293 DEBUG [ResourceValuesBuilder] Softsubs for media item 2 found, will be served as a resource
2014-12-05 16:37:09,294 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/vnd.dlna.mpeg-tts,Content-Length: 50000000000,Date: Fri, 05 Dec 2014 15:37:09 GMT,Server: Windows Vista, UPnP/1.0 DLNADOC/1.50, Serviio/1.4.1.2,Cache-control: no-cache,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*,CaptionInfo.sec: http://192.168.1.14:8895/resource/2/SUB ... s.dlna.org: DLNA.ORG_PN=AVC_TS_MP_HD_AAC_MULT5_T;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000]]
2014-12-05 16:37:09,301 DEBUG [ServiioHttpService] Incoming request from /192.168.1.11:3397: GET /resource/2/SUBTITLE.srt HTTP/1.0, headers = [HOST: 192.168.1.14:8895,ACCEPT-LANGUAGE: en-us,getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Background]]
2014-12-05 16:37:09,302 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.11
2014-12-05 16:37:09,304 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.11
2014-12-05 16:37:09,306 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.11, Profile=Samsung TV (B-series)'
2014-12-05 16:37:09,306 DEBUG [ResourceDeliveryProcessor] Request for resource 2 and type 'SUBTITLE' received
2014-12-05 16:37:09,308 DEBUG [VideoDAOImpl] Reading a Video (id = 2)
2014-12-05 16:37:09,311 DEBUG [MediaItemDAOImpl] Getting file of media item 2
2014-12-05 16:37:09,315 DEBUG [SubtitlesService] Found external subtitle file: D:\Filmy\2014\Guardians.of.the.Galaxy.2014.1080p.BluRay.x264-SPARKS.srt
2014-12-05 16:37:09,317 DEBUG [SubtitlesRetrievalStrategy] Retrieving info of Subtitles for media item with id 2
2014-12-05 16:37:09,318 DEBUG [VideoDAOImpl] Reading a Video (id = 2)
2014-12-05 16:37:09,321 DEBUG [MediaItemDAOImpl] Getting file of media item 2
2014-12-05 16:37:09,325 DEBUG [SubtitlesService] Found external subtitle file: D:\Filmy\2014\Guardians.of.the.Galaxy.2014.1080p.BluRay.x264-SPARKS.srt
2014-12-05 16:37:09,326 DEBUG [SubtitlesRetrievalStrategy] Retrieving Subtitles for media item with id 2
2014-12-05 16:37:09,327 DEBUG [GETMethodProcessor] Stream entity has length: 82573
2014-12-05 16:37:09,327 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: smi/caption,Content-Length: 82573,Date: Fri, 05 Dec 2014 15:37:09 GMT,Server: Windows Vista, UPnP/1.0 DLNADOC/1.50, Serviio/1.4.1.2,Cache-control: no-cache,transferMode.dlna.org: Background,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2014-12-05 16:37:09,627 DEBUG [ServiioHttpService] Incoming request from /192.168.1.11:3656: HEAD /resource/2/MEDIA_ITEM/AVC_TS_MP_HD_AAC_MULT5_T-0/ORIGINAL HTTP/1.0, headers = [getcontentFeatures.dlna.org: 1,getMediaInfo.sec: 1,Host: 192.168.1.14:8895]]
2014-12-05 16:37:09,628 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.11
2014-12-05 16:37:09,629 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.11
2014-12-05 16:37:09,631 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.11, Profile=Samsung TV (B-series)'
2014-12-05 16:37:09,632 DEBUG [ResourceDeliveryProcessor] Request for resource 2 and type 'MEDIA_ITEM' received
2014-12-05 16:37:09,632 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 2 (local)
2014-12-05 16:37:09,632 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 2)
2014-12-05 16:37:09,634 DEBUG [VideoDAOImpl] Reading a Video (id = 2)
2014-12-05 16:37:09,637 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 2, format AVC_TS_MP_HD_AAC_MULT5_T and profile Samsung TV (B-series)
2014-12-05 16:37:09,637 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file Guardians.of.the.Galaxy.2014.1080p.BluRay.x264-SPARKS.mkv
2014-12-05 16:37:09,638 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Guardians.of.the.Galaxy.2014.1080p.BluRay.x264-SPARKS.mkv: AVC_TS_MP_HD_AAC_MULT5_T
2014-12-05 16:37:09,639 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/vnd.dlna.mpeg-tts,Content-Length: 50000000000,Date: Fri, 05 Dec 2014 15:37:09 GMT,Server: Windows Vista, UPnP/1.0 DLNADOC/1.50, Serviio/1.4.1.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=AVC_TS_MP_HD_AAC_MULT5_T;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*,MediaInfo.sec: SEC_Duration=7251000;]]
2014-12-05 16:37:09,654 DEBUG [ServiioHttpService] Incoming request from /192.168.1.11:2812: GET /resource/2/MEDIA_ITEM/AVC_TS_MP_HD_AAC_MULT5_T-0/ORIGINAL HTTP/1.0, headers = [getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Streaming,Host: 192.168.1.14:8895]]
2014-12-05 16:37:09,655 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.11
2014-12-05 16:37:09,657 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.11
<<

Bachusan

Serviio newbie

Posts: 8

Joined: Wed Dec 03, 2014 9:40 pm

Post Sat Dec 06, 2014 12:12 pm

Re: No subs for transcoding files

One more thing.

When I disable the transcoding, the movie loads with adnotation about no audio codec but the subs work perfectly.

So...either movie with audio or without audio and with subs...? ;/

Best regards
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Dec 09, 2014 8:31 pm

Re: No subs for transcoding files

I think this should have solved it: https://bitbucket.org/xnejp03/serviio/i ... ranscoding

Are you using a custom profile?
<<

Bachusan

Serviio newbie

Posts: 8

Joined: Wed Dec 03, 2014 9:40 pm

Post Wed Dec 10, 2014 8:55 pm

Re: No subs for transcoding files

Hey zip

I`m using a little bit modiefied Samsung B series profile:
Here is my lines for transcoding:

<Video targetContainer="m2ts" targetACodec="aac" aBitrate="384">
<Matches container="*" aCodec="dca" />
</Video>

Where exactly I should put those "added -mpegts_m2ts_mode 1 " ?
Sorry not much keen on those things ;-)

Best regards
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Dec 11, 2014 12:29 am

Re: No subs for transcoding files

it should be invoked by the m2ts targetContainer. So it should work. You can double check by running detailed log and looking at the ffmpeg command being used for the transcode.

Basically the issue is that the file timestamp is lost and the subtitle timestamps cannot be matched.

You could also try to update ffmpeg.
<<

Bachusan

Serviio newbie

Posts: 8

Joined: Wed Dec 03, 2014 9:40 pm

Post Fri Dec 12, 2014 6:04 pm

Re: No subs for transcoding files

Hi zip

If You could take a look few posts up You would see I`ve already done that.

2014-12-12 18:57:39,633 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -fflags +genpts -threads auto -i D:\Filmy\2014\Guardians.of.the.Galaxy.2014.1080p.BluRay.x264-SPARKS.mkv -y -threads auto -c:v copy -bsf:v h264_mp4toannexb -mpegts_m2ts_mode 1 -c:a aac -strict experimental -b:a 384k -ac 6 -map 0:0 -map 0:1 -sn -f mpegts C:\Windows\TEMP\Serviio\transcoding-temp-2-2-ORIGINAL.stf
2014-12-12 18:57:40,132 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2014-12-12 18:57:40,136 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Guardians.of.the.Galaxy.2014.1080p.BluRay.x264-SPARKS.mkv: AVC_TS_MP_HD_AAC_MULT5_T
2014-12-12 18:57:40,136 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 2) as read
2014-12-12 18:57:40,152 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2014-12-12 18:57:40,152 DEBUG [GETMethodProcessor] Stream entity has length: 50000000000
2014-12-12 18:57:40,153 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/vnd.dlna.mpeg-tts,Content-Length: 50000000000,Date: Fri, 12 Dec 2014 17:57:40 GMT,Server: Windows Vista, UPnP/1.0 DLNADOC/1.50, Serviio/1.4.1.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=AVC_TS_MP_HD_AAC_MULT5_T;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2014-12-12 18:57:42,445 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2014-12-12 18:57:42,928 DEBUG [ServiioHttpService] Incoming request from /192.168.1.11:4829: HEAD /resource/2/MEDIA_ITEM/AVC_TS_MP_HD_AAC_MULT5_T-0/ORIGINAL HTTP/1.0, headers = [getcontentFeatures.dlna.org: 1,Host: 192.168.1.14:8895]]
2014-12-12 18:57:42,928 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.11
2014-12-12 18:57:42,929 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.11
2014-12-12 18:57:42,929 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.11, Profile=Samsung TV (B-series)'
2014-12-12 18:57:42,930 DEBUG [ResourceDeliveryProcessor] Request for resource 2 and type 'MEDIA_ITEM' received
2014-12-12 18:57:42,930 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 2 (local)
2014-12-12 18:57:42,930 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 2)
2014-12-12 18:57:42,930 DEBUG [VideoDAOImpl] Reading a Video (id = 2)
2014-12-12 18:57:42,931 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 2, format AVC_TS_MP_HD_AAC_MULT5_T and profile Samsung TV (B-series)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Dec 15, 2014 12:29 am

Re: No subs for transcoding files

Ok, another option could be to enable burned-in subtitles, Always. See if that helps.
<<

Bachusan

Serviio newbie

Posts: 8

Joined: Wed Dec 03, 2014 9:40 pm

Post Wed Dec 17, 2014 6:12 pm

Re: No subs for transcoding files

That seems to do the job :-)

One more question, how to make subs bigger ? :-)

Best regards
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Dec 17, 2014 9:18 pm

Re: No subs for transcoding files

That is nor possible, unless you use .ass /.ssa subtitle files and define the styles in these files.
<<

Bachusan

Serviio newbie

Posts: 8

Joined: Wed Dec 03, 2014 9:40 pm

Post Fri Dec 19, 2014 10:05 am

Re: No subs for transcoding files

Ok, I`ve used Subtitle Edit to change srt to ass, and now everything is working perfectly. Thanks for advises.

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 25 guests

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