Page 1 of 1

[SOLVED] error 500 with subtitle

PostPosted: Tue Mar 05, 2013 2:56 am
by thenamelessthing
Hi, when I activate embedded subtitle the file is impossible to play and I obtain this error in the log..



2013-03-04 21:53:37,254 DEBUG [WebServer] Incoming connection from /192.168.1.134:17518
2013-03-04 21:53:37,255 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.134
2013-03-04 21:53:37,255 DEBUG [ResourceTransportRequestHandler] GET /resource/6833/MEDIA_ITEM/MPEG_PS_NTSC-0/ORIGINAL HTTP/1.1, headers = [Host: 192.168.1.3:8895,TimeSeekRange.dlna.org: npt=00:00:00.000-,transferMode.dlna.org: Streaming,Connection: keep-alive]]
2013-03-04 21:53:37,256 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.134
2013-03-04 21:53:37,256 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.134, Profile=Panasonic Viera E/S/ST/VT (2011)'
2013-03-04 21:53:37,256 DEBUG [ResourceDeliveryProcessor] Request for resource 6833 and type 'MEDIA_ITEM' received
2013-03-04 21:53:37,257 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 6833 (local)
2013-03-04 21:53:37,257 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 6833)
2013-03-04 21:53:37,257 DEBUG [VideoDAOImpl] Reading a Video (id = 6833)
2013-03-04 21:53:37,257 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 6833, format MPEG_PS_NTSC and profile Panasonic Viera E/S/ST/VT (2011)
2013-03-04 21:53:37,258 DEBUG [MediaItemDAOImpl] Getting file of media item 6833
2013-03-04 21:53:37,259 DEBUG [SubtitlesService] Found external subtitle file: /data/Teleseries/Revolution/Saison 01/Revolution.S01E01.VOSTFR.720p.WEBDL.AVC.AC3-BiG.srt
2013-03-04 21:53:37,259 DEBUG [MediaItemDAOImpl] Getting file of media item 6833
2013-03-04 21:53:37,260 DEBUG [SubtitlesService] Found external subtitle file: /data/Teleseries/Revolution/Saison 01/Revolution.S01E01.VOSTFR.720p.WEBDL.AVC.AC3-BiG.srt
2013-03-04 21:53:37,260 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file Revolution.S01E01.VOSTFR.720p.WEBDL.AVC.AC3-BiG.mkv
2013-03-04 21:53:37,260 DEBUG [MediaItemDAOImpl] Getting file of media item 6833
2013-03-04 21:53:37,261 DEBUG [SubtitlesService] Found external subtitle file: /data/Teleseries/Revolution/Saison 01/Revolution.S01E01.VOSTFR.720p.WEBDL.AVC.AC3-BiG.srt
2013-03-04 21:53:37,261 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Revolution.S01E01.VOSTFR.720p.WEBDL.AVC.AC3-BiG.mkv: MPEG_PS_PAL
2013-03-04 21:53:37,261 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Revolution.S01E01.VOSTFR.720p.WEBDL.AVC.AC3-BiG.mkv: MPEG_PS_NTSC
2013-03-04 21:53:37,261 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 6833 (local)
2013-03-04 21:53:37,261 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 6833)
2013-03-04 21:53:37,262 DEBUG [VideoDAOImpl] Reading a Video (id = 6833)
2013-03-04 21:53:37,262 DEBUG [VideoDeliveryEngine] Delivering item '6833' for client 'Identifier=192.168.1.134, Profile=Panasonic Viera E/S/ST/VT (2011)'
2013-03-04 21:53:37,263 DEBUG [MediaItemDAOImpl] Getting file of media item 6833
2013-03-04 21:53:37,263 DEBUG [SubtitlesService] Found external subtitle file: /data/Teleseries/Revolution/Saison 01/Revolution.S01E01.VOSTFR.720p.WEBDL.AVC.AC3-BiG.srt
2013-03-04 21:53:37,263 DEBUG [MediaItemDAOImpl] Getting file of media item 6833
2013-03-04 21:53:37,263 DEBUG [SubtitlesService] Found external subtitle file: /data/Teleseries/Revolution/Saison 01/Revolution.S01E01.VOSTFR.720p.WEBDL.AVC.AC3-BiG.srt
2013-03-04 21:53:37,263 DEBUG [VideoDeliveryEngine] Delivering file 'Revolution.S01E01.VOSTFR.720p.WEBDL.AVC.AC3-BiG.mkv' using transcoding
2013-03-04 21:53:37,263 DEBUG [MediaItemDAOImpl] Getting file of media item 6833
2013-03-04 21:53:37,264 DEBUG [SubtitlesService] Found external subtitle file: /data/Teleseries/Revolution/Saison 01/Revolution.S01E01.VOSTFR.720p.WEBDL.AVC.AC3-BiG.srt
2013-03-04 21:53:37,264 DEBUG [AbstractTranscodingDeliveryEngine] A suitable transcoding job already exists, re-use it for client 'Identifier=192.168.1.134, Profile=Panasonic Viera E/S/ST/VT (2011)'
2013-03-04 21:53:37,264 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: FFmpeg execution failed
java.io.IOException: FFmpeg execution failed
at org.serviio.delivery.resource.transcode.FileBasedTranscodingDeliveryStrategy.createInputStream(FileBasedTranscodingDeliveryStrategy.java:47)
at org.serviio.delivery.resource.transcode.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:131)
at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:100)
at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:120)
at org.serviio.delivery.GETMethodProcessor.retrieveResource(GETMethodProcessor.java:120)
at org.serviio.delivery.GETMethodProcessor.buildDeliveryContainer(GETMethodProcessor.java:48)
at org.serviio.delivery.AbstractMethodProcessor.handleRequest(AbstractMethodProcessor.java:100)
at org.serviio.delivery.ResourceDeliveryProcessor.deliverContent(ResourceDeliveryProcessor.java:80)
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:58)
at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:192)



My ffmpeg version is:

ffmpeg version git-2013-03-04-393dcbf Copyright (c) 2000-2013 the FFmpeg developers
built on Mar 3 2013 22:13:07 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx --enable-librtmp --enable-libxvid
libavutil 52. 17.103 / 52. 17.103
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.102 / 54. 63.102
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 41.100 / 3. 41.100
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

Re: error 500 with subtitle

PostPosted: Tue Mar 05, 2013 7:59 am
by Illico
Could you check your srt file ?
/data/Teleseries/Revolution/Saison 01/Revolution.S01E01.VOSTFR.720p.WEBDL.AVC.AC3-BiG.srt

with the SrtWiz windows tool.
viewtopic.php?f=17&t=2971

Re: error 500 with subtitle

PostPosted: Tue Mar 05, 2013 11:58 am
by jk50
Your ffmpeg was compiled without support for subtitles.
It looks like you followed the Serviio wiki to compile ffmpeg on linux.
The instructions there don't seem include support for subtitles.

Install these additional libraries

libass
libass-dev
libfreetype
libfreetype-dev
fontconfig
libfontconfig-dev

Recompile ffmpeg, adding this to your previous ./configure step

--enable-libass --enable-libfreetype --enable-fontconfig

Re: error 500 with subtitle

PostPosted: Tue Mar 05, 2013 4:00 pm
by thenamelessthing
Your ffmpeg was compiled without support for subtitles.
It looks like you followed the Serviio wiki to compile ffmpeg on linux.
The instructions there don't seem include support for subtitles.



Your right! I will do it this evening. I post after if it solve or not my problem!


Thanks you!

Re: error 500 with subtitle

PostPosted: Wed Mar 06, 2013 1:15 am
by thenamelessthing
Where I can find installation instruction (repo) for these library?

libass libfreetype libfreetype-dev

Re: error 500 with subtitle

PostPosted: Wed Mar 06, 2013 1:56 am
by jk50
open a console and run this command

  Code:
sudo apt-get install fontconfig libfontconfig1-dev libfreetype6 libfreetype6-dev libass4 libass-dev


should do it for you

Re: error 500 with subtitle

PostPosted: Thu Mar 07, 2013 3:28 pm
by thenamelessthing
It's working! Thanks you very much! Now I can enjoy my tv show! Any volunters for updating the wiki for Ubuntu 12.04??