Page 1 of 1
Subtitles for MediaBrowser via iOS?

Posted:
Fri May 08, 2015 2:18 am
by fudster
I purchased Pro so I could use Subtitles when viewing videos on my iPad. MediaBrowser (and subtitles, in a full computer browser) seem to work fine, but it looks like there's no way to activate Subtitles in Safari on iOS.
If I enable Burned-in subtitles, videos won't play at all on iOS.
Any hints or solutions? Thanks...
Re: Subtitles for MediaBrowser via iOS?

Posted:
Sun May 10, 2015 10:58 am
by zip
Can you post
detailed log of playing the file with enabled burned-in subtitles?
Re: Subtitles for MediaBrowser via iOS?

Posted:
Mon May 11, 2015 5:20 am
by fudster
zip wrote:Can you post
detailed log of playing the file with enabled burned-in subtitles?
Yep, will do, as soon as I get a chance. Should be in the next few days. Thanks, back shortly with the log.
Re: Subtitles for MediaBrowser via iOS?

Posted:
Mon May 11, 2015 7:34 pm
by jhb50
I have a similar problem playing an AVC/AAC MP4 file using the provided ios profile on Android Chrome.
- Code:
ffmpeg version N-67331-g547fce9 Copyright (c) 2000-2014 the FFmpeg developers
built on Nov 1 2014 22:01:52 with gcc 4.9.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 54. 11.100 / 54. 11.100
libavcodec 56. 10.101 / 56. 10.101
libavformat 56. 12.100 / 56. 12.100
libavdevice 56. 2.100 / 56. 2.100
libavfilter 5. 2.101 / 5. 2.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\Azureus Active Downloads\Transmissio
n Downloads\Chicago.Fire.S03E16.HDTV.x264-LOL[ettv]\Chicago Fire - 03x16 - Red R
ag the Bull.LOL.English.C.orig.Addic7ed.com.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isom
creation_time : 2015-03-04 03:20:03
Duration: 00:41:37.90, start: 0.000000, bitrate: 920 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709/
unknown/unknown), 720x404, 798 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (d
efault)
Metadata:
creation_time : 2015-03-04 02:37:01
handler_name : L-SMASH Video Media Handler
encoder : AVC Coding
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 11
7 kb/s (default)
Metadata:
creation_time : 2015-03-04 03:20:04
handler_name : GPAC ISO Audio Handler
At least one output file must be specified
Press any key to continue . . .
The log shows no request for subtitles:
- Code:
2015-05-11 12:43:50,708 DEBUG [VideoDAOImpl] Reading a Video (id = 27533)
2015-05-11 12:43:50,709 DEBUG [GenreDAOImpl] Reading a Genre (id = 56)
2015-05-11 12:43:50,711 DEBUG [PersonDAOImpl] Retrieving list of grouped persons for MediaItem 27533
2015-05-11 12:43:50,744 DEBUG [VideoDAOImpl] Reading a Video (id = 27533)
2015-05-11 12:43:50,745 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27533 and profile iOS
2015-05-11 12:43:50,746 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4": HLS
2015-05-11 12:43:50,746 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4": HLS
2015-05-11 12:43:50,909 DEBUG [CDSRetrieveMediaServerResource] GET http://192.168.1.10:23424/cds/resource/27533/MEDIA_ITEM/AVC_MP4_MP_SD_AAC_MULT5-0/ORIGINAL?profile=ios&authToken=5772239e6c4640e0b5148f6814d45356 HTTP/1.1, headers = [host: 192.168.1.10:23424,connection: keep-alive,user-agent: Mozilla/5.0 (Linux; Android 4.1.1; M7 Build/JRO03H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.111 Safari/537.36,accept: */*,referer: http://192.168.1.10:23424/mediabrowser/,accept-encoding: gzip, deflate, sdch,accept-language: en-US,en;q=0.8,range: bytes=0-1]
2015-05-11 12:43:50,909 DEBUG [CDSRetrieveMediaServerResource] Creating client with id '192.168.1.21'
2015-05-11 12:43:50,909 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.21, Profile=iOS'
2015-05-11 12:43:50,909 DEBUG [ResourceDeliveryProcessor] Request for resource 27533 and type 'MEDIA_ITEM' received
2015-05-11 12:43:50,910 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27533 (local)
2015-05-11 12:43:50,910 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27533)
2015-05-11 12:43:50,910 DEBUG [VideoDAOImpl] Reading a Video (id = 27533)
2015-05-11 12:43:50,911 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27533, format AVC_MP4_MP_SD_AAC_MULT5 and profile iOS
2015-05-11 12:43:50,912 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27533 (local)
2015-05-11 12:43:50,912 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27533)
2015-05-11 12:43:50,913 DEBUG [VideoDAOImpl] Reading a Video (id = 27533)
2015-05-11 12:43:50,914 DEBUG [VideoDeliveryEngine] Delivering item '27533' for client 'Identifier=192.168.1.21, Profile=iOS'
2015-05-11 12:43:50,914 DEBUG [VideoDeliveryEngine] Delivering file 'Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4' in native format
2015-05-11 12:43:50,915 DEBUG [MediaItemDAOImpl] Getting file of media item 27533
2015-05-11 12:43:50,928 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 27533) as read
2015-05-11 12:43:50,932 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2015-05-11 12:43:50,932 DEBUG [GETMethodProcessor] Stream entity has length: 2
2015-05-11 12:43:50,980 DEBUG [CDSRetrieveMediaServerResource] GET http://192.168.1.10:23424/cds/resource/27533/MEDIA_ITEM/AVC_MP4_MP_SD_AAC_MULT5-0/ORIGINAL?profile=ios&authToken=5772239e6c4640e0b5148f6814d45356 HTTP/1.1, headers = [host: 192.168.1.10:23424,connection: keep-alive,user-agent: Mozilla/5.0 (Linux; Android 4.1.1; M7 Build/JRO03H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.111 Safari/537.36,accept-encoding: gzip,deflate]
2015-05-11 12:43:50,981 DEBUG [CDSRetrieveMediaServerResource] Creating client with id '192.168.1.21'
2015-05-11 12:43:50,981 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.21, Profile=iOS'
2015-05-11 12:43:50,981 DEBUG [ResourceDeliveryProcessor] Request for resource 27533 and type 'MEDIA_ITEM' received
2015-05-11 12:43:50,981 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27533 (local)
2015-05-11 12:43:50,981 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27533)
2015-05-11 12:43:50,982 DEBUG [VideoDAOImpl] Reading a Video (id = 27533)
2015-05-11 12:43:50,983 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27533, format AVC_MP4_MP_SD_AAC_MULT5 and profile iOS
2015-05-11 12:43:50,983 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27533 (local)
2015-05-11 12:43:50,983 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27533)
2015-05-11 12:43:50,983 DEBUG [VideoDAOImpl] Reading a Video (id = 27533)
2015-05-11 12:43:50,984 DEBUG [VideoDeliveryEngine] Delivering item '27533' for client 'Identifier=192.168.1.21, Profile=iOS'
2015-05-11 12:43:50,984 DEBUG [VideoDeliveryEngine] Delivering file 'Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4' in native format
2015-05-11 12:43:50,984 DEBUG [MediaItemDAOImpl] Getting file of media item 27533
2015-05-11 12:43:50,985 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 27533) as read
2015-05-11 12:43:50,986 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2015-05-11 12:43:50,986 DEBUG [GETMethodProcessor] Stream entity has length: 295731821
2015-05-11 12:43:52,541 DEBUG [CDSRetrieveMediaServerResource] GET http://192.168.1.10:23424/cds/resource/27533/MEDIA_ITEM/AVC_MP4_MP_SD_AAC_MULT5-0/ORIGINAL?profile=ios&authToken=5772239e6c4640e0b5148f6814d45356 HTTP/1.1, headers = [host: 192.168.1.10:23424,connection: keep-alive,user-agent: Mozilla/5.0 (Linux; Android 4.1.1; M7 Build/JRO03H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.111 Safari/537.36,accept-encoding: gzip,deflate]
2015-05-11 12:43:52,541 DEBUG [CDSRetrieveMediaServerResource] Creating client with id '192.168.1.21'
2015-05-11 12:43:52,542 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.21, Profile=iOS'
2015-05-11 12:43:52,542 DEBUG [ResourceDeliveryProcessor] Request for resource 27533 and type 'MEDIA_ITEM' received
2015-05-11 12:43:52,542 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27533 (local)
2015-05-11 12:43:52,542 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27533)
2015-05-11 12:43:52,543 DEBUG [VideoDAOImpl] Reading a Video (id = 27533)
2015-05-11 12:43:52,543 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27533, format AVC_MP4_MP_SD_AAC_MULT5 and profile iOS
2015-05-11 12:43:52,544 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27533 (local)
2015-05-11 12:43:52,544 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27533)
2015-05-11 12:43:52,545 DEBUG [VideoDAOImpl] Reading a Video (id = 27533)
2015-05-11 12:43:52,545 DEBUG [VideoDeliveryEngine] Delivering item '27533' for client 'Identifier=192.168.1.21, Profile=iOS'
2015-05-11 12:43:52,546 DEBUG [VideoDeliveryEngine] Delivering file 'Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4' in native format
2015-05-11 12:43:52,546 DEBUG [MediaItemDAOImpl] Getting file of media item 27533
2015-05-11 12:43:52,547 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 27533) as read
2015-05-11 12:43:52,548 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2015-05-11 12:43:52,549 DEBUG [GETMethodProcessor] Stream entity has length: 295731821
2015-05-11 12:43:52,644 DEBUG [CDSRetrieveMediaServerResource] GET http://192.168.1.10:23424/cds/resource/27533/MEDIA_ITEM/AVC_MP4_MP_SD_AAC_MULT5-0/ORIGINAL?profile=ios&authToken=5772239e6c4640e0b5148f6814d45356 HTTP/1.1, headers = [host: 192.168.1.10:23424,connection: keep-alive,user-agent: Mozilla/5.0 (Linux; Android 4.1.1; M7 Build/JRO03H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.111 Safari/537.36,accept-encoding: gzip,deflate]
2015-05-11 12:43:52,644 DEBUG [CDSRetrieveMediaServerResource] Creating client with id '192.168.1.21'
2015-05-11 12:43:52,644 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.21, Profile=iOS'
2015-05-11 12:43:52,645 DEBUG [ResourceDeliveryProcessor] Request for resource 27533 and type 'MEDIA_ITEM' received
2015-05-11 12:43:52,645 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27533 (local)
2015-05-11 12:43:52,645 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27533)
2015-05-11 12:43:52,646 DEBUG [VideoDAOImpl] Reading a Video (id = 27533)
2015-05-11 12:43:52,646 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27533, format AVC_MP4_MP_SD_AAC_MULT5 and profile iOS
2015-05-11 12:43:52,647 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27533 (local)
2015-05-11 12:43:52,647 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27533)
2015-05-11 12:43:52,648 DEBUG [VideoDAOImpl] Reading a Video (id = 27533)
2015-05-11 12:43:52,649 DEBUG [VideoDeliveryEngine] Delivering item '27533' for client 'Identifier=192.168.1.21, Profile=iOS'
2015-05-11 12:43:52,650 DEBUG [VideoDeliveryEngine] Delivering file 'Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4' in native format
2015-05-11 12:43:52,650 DEBUG [MediaItemDAOImpl] Getting file of media item 27533
2015-05-11 12:43:52,651 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 27533) as read
2015-05-11 12:43:52,652 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2015-05-11 12:43:52,653 DEBUG [GETMethodProcessor] Stream entity has length: 295731821
Whereas playing with MediaBrowser on the PC displays the subs and the log shows the access:
- Code:
2015-05-11 13:37:02,926 DEBUG [FolderDAOImpl] Getting number of sub-Folders in folder 2317 [Any]
2015-05-11 13:37:02,926 DEBUG [VideoDAOImpl] Retrieving list of videos for folder 2317 (from=0, count=18) [Any]
2015-05-11 13:37:02,928 DEBUG [MediaItemDAOImpl] Getting file of media item 27533
2015-05-11 13:37:02,930 DEBUG [SubtitlesService] Found external subtitles file: Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.srt
2015-05-11 13:37:02,930 DEBUG [ResourceValuesBuilder] Softsubs for media item 27533 found, will be served as a resource
2015-05-11 13:37:02,930 DEBUG [GenreDAOImpl] Reading a Genre (id = 56)
2015-05-11 13:37:02,930 DEBUG [VideoDAOImpl] Reading a Video (id = 27533)
2015-05-11 13:37:02,931 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27533 and profile Flash player
2015-05-11 13:37:02,931 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4": FLV
2015-05-11 13:37:02,931 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4": FLV
2015-05-11 13:37:02,931 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4": FLV
2015-05-11 13:37:02,932 DEBUG [CoverImageDAOImpl] Reading a CoverImage (id = 23722)
2015-05-11 13:37:02,932 DEBUG [MediaItemDAOImpl] Getting file of media item 27533
2015-05-11 13:37:02,933 DEBUG [SubtitlesService] Found external subtitles file: Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.srt
2015-05-11 13:37:02,933 DEBUG [ResourceValuesBuilder] Softsubs for media item 27533 found, will be served as a resource
2015-05-11 13:37:02,933 DEBUG [FolderDAOImpl] Getting number of VIDEO sub-folders and media items in folder 2317 (filter: ALL) [Any]
2015-05-11 13:37:02,934 DEBUG [LocalContentCacheDecorator] Stored entry in the cache (local_default), returning it
2015-05-11 13:37:02,955 DEBUG [FolderDAOImpl] Getting number of sub-Folders in folder 2317 [Any]
2015-05-11 13:37:02,956 DEBUG [VideoDAOImpl] Retrieving list of videos for folder 2317 (from=1, count=18) [Any]
2015-05-11 13:37:02,957 DEBUG [FolderDAOImpl] Getting number of VIDEO sub-folders and media items in folder 2317 (filter: ALL) [Any]
2015-05-11 13:37:02,958 DEBUG [LocalContentCacheDecorator] Stored entry in the cache (local_default), returning it
2015-05-11 13:37:05,574 DEBUG [FlowPlayerKeyGeneratorServerResource] RefererRef of the incoming request is 'localhost'
2015-05-11 13:37:05,575 DEBUG [FlowPlayerKeyGeneratorServerResource] Generating security key for domain 'localhost'
2015-05-11 13:37:05,625 DEBUG [VideoDAOImpl] Reading a Video (id = 27533)
2015-05-11 13:37:05,625 DEBUG [MediaItemDAOImpl] Getting file of media item 27533
2015-05-11 13:37:05,626 DEBUG [SubtitlesService] Found external subtitles file: Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.srt
2015-05-11 13:37:05,626 DEBUG [ResourceValuesBuilder] Softsubs for media item 27533 found, will be served as a resource
2015-05-11 13:37:05,627 DEBUG [GenreDAOImpl] Reading a Genre (id = 56)
2015-05-11 13:37:05,627 DEBUG [PersonDAOImpl] Retrieving list of grouped persons for MediaItem 27533
2015-05-11 13:37:05,630 DEBUG [VideoDAOImpl] Reading a Video (id = 27533)
2015-05-11 13:37:05,632 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27533 and profile Flash player
2015-05-11 13:37:05,632 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4": FLV
2015-05-11 13:37:05,632 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4": FLV
2015-05-11 13:37:05,633 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4": FLV
2015-05-11 13:37:05,633 DEBUG [CoverImageDAOImpl] Reading a CoverImage (id = 23722)
2015-05-11 13:37:05,633 DEBUG [MediaItemDAOImpl] Getting file of media item 27533
2015-05-11 13:37:05,634 DEBUG [SubtitlesService] Found external subtitles file: Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.srt
2015-05-11 13:37:05,634 DEBUG [ResourceValuesBuilder] Softsubs for media item 27533 found, will be served as a resource
2015-05-11 13:37:05,634 DEBUG [LocalContentCacheDecorator] Stored entry in the cache (local_default), returning it
2015-05-11 13:37:09,492 DEBUG [CDSRetrieveMediaServerResource] GET http://localhost:23424/cds/resource/27533/SUBTITLE.srt?profile=flv_player&authToken=1cf01f5e4f1548e8b1900b0b8a063183 HTTP/1.1, headers = [host: localhost:23424,connection: keep-alive,user-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36,x-requested-with: ShockwaveFlash/17.0.0.169,accept: */*,referer: http://localhost:23424/mediabrowser/,accept-encoding: gzip, deflate, sdch,accept-language: en-US,en;q=0.8]
2015-05-11 13:37:09,493 DEBUG [CDSRetrieveMediaServerResource] Creating client with id '127.0.0.1'
2015-05-11 13:37:09,493 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=127.0.0.1, Profile=Flash player'
2015-05-11 13:37:09,493 DEBUG [ResourceDeliveryProcessor] Request for resource 27533 and type 'SUBTITLE' received
2015-05-11 13:37:09,494 DEBUG [VideoDAOImpl] Reading a Video (id = 27533)
2015-05-11 13:37:09,495 DEBUG [MediaItemDAOImpl] Getting file of media item 27533
2015-05-11 13:37:09,495 DEBUG [SubtitlesService] Found external subtitle file: D:\Azureus Active Downloads\Transmission Downloads\Chicago.Fire.S03E18.HDTV.x264-LOL[ettv]\Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.srt
2015-05-11 13:37:09,496 DEBUG [SubtitlesRetrievalStrategy] Retrieving info of Subtitles for media item with id 27533
2015-05-11 13:37:09,496 DEBUG [VideoDAOImpl] Reading a Video (id = 27533)
2015-05-11 13:37:09,497 DEBUG [MediaItemDAOImpl] Getting file of media item 27533
2015-05-11 13:37:09,498 DEBUG [SubtitlesService] Found external subtitle file: D:\Azureus Active Downloads\Transmission Downloads\Chicago.Fire.S03E18.HDTV.x264-LOL[ettv]\Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.srt
2015-05-11 13:37:09,498 DEBUG [SubtitlesRetrievalStrategy] Retrieving Subtitles for media item with id 27533
2015-05-11 13:37:09,515 DEBUG [GETMethodProcessor] Stream entity has length: 49857
2015-05-11 13:37:12,479 DEBUG [CDSRetrieveMediaServerResource] GET http://localhost:23424/cds/resource/27533/MEDIA_ITEM/FLV-0/ORIGINAL?profile=flv_player&authToken=1cf01f5e4f1548e8b1900b0b8a063183 HTTP/1.1, headers = [host: localhost:23424,connection: keep-alive,user-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36,x-requested-with: ShockwaveFlash/17.0.0.169,accept: */*,referer: http://localhost:23424/mediabrowser/,accept-encoding: gzip, deflate, sdch,accept-language: en-US,en;q=0.8]
2015-05-11 13:37:12,480 DEBUG [CDSRetrieveMediaServerResource] Creating client with id '127.0.0.1'
2015-05-11 13:37:12,480 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=127.0.0.1, Profile=Flash player'
2015-05-11 13:37:12,480 DEBUG [ResourceDeliveryProcessor] Request for resource 27533 and type 'MEDIA_ITEM' received
2015-05-11 13:37:12,480 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27533 (local)
2015-05-11 13:37:12,480 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27533)
2015-05-11 13:37:12,481 DEBUG [VideoDAOImpl] Reading a Video (id = 27533)
2015-05-11 13:37:12,482 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27533, format FLV and profile Flash player
2015-05-11 13:37:12,482 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4
2015-05-11 13:37:12,482 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4": FLV
2015-05-11 13:37:12,482 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4": FLV
2015-05-11 13:37:12,482 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4": FLV
2015-05-11 13:37:12,483 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27533 (local)
2015-05-11 13:37:12,483 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 27533)
2015-05-11 13:37:12,483 DEBUG [VideoDAOImpl] Reading a Video (id = 27533)
2015-05-11 13:37:12,484 DEBUG [VideoDeliveryEngine] Delivering item '27533' for client 'Identifier=127.0.0.1, Profile=Flash player'
2015-05-11 13:37:12,484 DEBUG [VideoDeliveryEngine] Delivering file 'Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4' using transcoding
2015-05-11 13:37:12,485 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'Identifier=127.0.0.1, Profile=Flash player'
2015-05-11 13:37:12,486 DEBUG [MediaItemDAOImpl] Getting file of media item 27533
2015-05-11 13:37:12,487 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: D:\Azureus Active Downloads\Transmission Downloads\Chicago.Fire.S03E18.HDTV.x264-LOL[ettv]\Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4
2015-05-11 13:37:12,487 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\lib\ffdump.bat -fflags +genpts -threads 8 -i D:\Azureus Active Downloads\Transmission Downloads\Chicago.Fire.S03E18.HDTV.x264-LOL[ettv]\Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4 -y -threads 8 -c:v copy -c:a libmp3lame -b:a 112k -ar 44100 -ac 2 -map 0:0 -map 0:1 -sn -f flv D:\TEMP\Serviio\transcoding-temp-27533-flv_player-ORIGINAL.stf
2015-05-11 13:37:13,562 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2015-05-11 13:37:13,564 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4": FLV
2015-05-11 13:37:13,564 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4": FLV
2015-05-11 13:37:13,564 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Chicago Fire - 03x18 - Forgiving, Relentless, Unconditional.LOL.English.mp4": FLV
2015-05-11 13:37:13,564 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 27533) as read
2015-05-11 13:37:13,573 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2015-05-11 13:37:13,573 DEBUG [GETMethodProcessor] Entity will be consumed till the end
2015-05-11 13:37:13,574 DEBUG [GETMethodProcessor] Stream entity has length: -1
I also tried adding <SoftSubs mime-type="text/srt" /> but it made no difference.
Re: Subtitles for MediaBrowser via iOS?

Posted:
Mon May 11, 2015 10:48 pm
by zip
MediaBrowser on iOS doesn't support softsubs, only hardsubs (burned in)
Re: Subtitles for MediaBrowser via iOS?

Posted:
Mon May 11, 2015 11:03 pm
by jhb50
zip wrote:MediaBrowser on iOS doesn't support softsubs, only hardsubs (burned in)
Is that a limitation of ios/android player or the MediaBrowser implementation?
Re: Subtitles for MediaBrowser via iOS?

Posted:
Thu May 14, 2015 10:10 pm
by zip
Mybe both - I'm not sure if there is a subtitles support for the HTML5 players on Android/ iOS, but if there is it definitely is not srt, but some other format to which I'd have to convert. So it's not going to happen, at least any time soon.
Re: Subtitles for MediaBrowser via iOS?

Posted:
Wed May 20, 2015 7:46 pm
by fudster
Hi Petr, sorry it took so long to get to this. Here's the seemingly relevant part from my log:
- Code:
2015-05-20 13:32:49,197 DEBUG [MediaItemDAOImpl] Getting file of media item 52
2015-05-20 13:32:49,197 DEBUG [SubtitlesService] Found external subtitle file: /Users/john/Movies/popcorn keepers/The Rewrite (2014) [1080p]/The.Rewrite.2014.1080p.BluRay.x264.YIFY.srt
2015-05-20 13:32:59,261 WARN [ServiioStatusService] IOException occured. Returning error code 500 to the REST layer. Message: Transcoded file '/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/Serviio/transcoding-temp-52-ios-ORIGINAL-e4b8026738dc4349ef6a625406b8b88e.stf/playlist.m3u8' cannot be found, FFmpeg execution probably failed
2015-05-20 13:32:59,261 DEBUG [ServiioStatusService] Detailed exception:
java.io.IOException: Transcoded file '/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/Serviio/transcoding-temp-52-ios-ORIGINAL-e4b8026738dc4349ef6a625406b8b88e.stf/playlist.m3u8' cannot be found, FFmpeg execution probably failed
... stacktrace omitted...
2015-05-20 13:32:59,261 WARN [ServiioStatusService] IOException occured. Returning error code 500 to the REST layer. Message: Transcoded file '/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/Serviio/transcoding-temp-52-ios-ORIGINAL-e4b8026738dc4349ef6a625406b8b88e.stf/playlist.m3u8' cannot be found, FFmpeg execution probably failed
2015-05-20 13:32:59,261 DEBUG [ServiioStatusService] Detailed exception:
java.io.IOException: Transcoded file '/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/Serviio/transcoding-temp-52-ios-ORIGINAL-e4b8026738dc4349ef6a625406b8b88e.stf/playlist.m3u8' cannot be found, FFmpeg execution probably failed
at org.serviio.delivery.resource.transcode.FileBasedTranscodingDeliveryStrategy.createInputStream(FileBasedTranscodingDeliveryStrategy.java:47)
... stacktrace omitted...
2015-05-20 13:32:49,198 DEBUG [SubtitlesService] Found external subtitle file: /Users/john/Movies/popcorn keepers/The Rewrite (2014) [1080p]/The.Rewrite.2014.1080p.BluRay.x264.YIFY.srt
2015-05-20 13:32:49,199 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'Identifier=192.168.0.112, Profile=iOS'
2015-05-20 13:32:49,200 DEBUG [MediaItemDAOImpl] Getting file of media item 52
2015-05-20 13:32:49,201 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /Users/john/Movies/popcorn keepers/The Rewrite (2014) [1080p]/The.Rewrite.2014.1080p.BluRay.x264.YIFY.mp4
2015-05-20 13:32:49,201 DEBUG [ProcessExecutor] Starting /Library/Application Support/Serviio/lib/ffmpeg -threads auto -i /Users/john/Movies/popcorn keepers/The Rewrite (2014) [1080p]/The.Rewrite.2014.1080p.BluRay.x264.YIFY.mp4 -y -c:v libx264 -pix_fmt yuv420p -profile:v baseline -level 3 -preset veryfast -crf 10 -vf subtitles=filename='/Users/john/Movies/popcorn keepers/The Rewrite (2014) \[1080p\]/The.Rewrite.2014.1080p.BluRay.x264.YIFY.srt':original_size=1920x808:charenc=UTF-8 -r 24000/1001 -g 15 -bsf:v h264_mp4toannexb -flags -global_header -c:a copy -map 0:0 -map 0:1 -sn -f segment -segment_time 10 -segment_format mpegts -segment_list_flags +cache -segment_list /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/Serviio/transcoding-temp-52-ios-ORIGINAL-e4b8026738dc4349ef6a625406b8b88e.stf/playlist.m3u8 /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/Serviio/transcoding-temp-52-ios-ORIGINAL-e4b8026738dc4349ef6a625406b8b88e.stf/segment%05d.ts
2015-05-20 13:32:58,114 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target upnp:rootdevice from address /192.168.0.102:62520s
2015-05-20 13:32:58,114 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.0.102:62520
2015-05-20 13:32:59,252 DEBUG [ProcessExecutor] Stopping external process: Thread[Thread-89,5,main]
2015-05-20 13:32:59,253 DEBUG [ProcessUtils] Sending kill -9 to the Unix process: 44620
2015-05-20 13:32:59,253 DEBUG [ProcessExecutor] Starting kill -9 44620
2015-05-20 13:32:59,259 DEBUG [TranscodingJobListener] Transcoding finished; successful: true
2015-05-20 13:32:59,260 DEBUG [TranscodingJobListener] Deleted temp file '/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/Serviio/transcoding-temp-52-ios-ORIGINAL-e4b8026738dc4349ef6a625406b8b88e.stf': true
2015-05-20 13:32:59,260 DEBUG [AbstractTranscodingDeliveryEngine] Removing transcoding job 'transcoding-temp-52-ios-ORIGINAL-e4b8026738dc4349ef6a625406b8b88e.stf' of client 'Identifier=192.168.0.112, Profile=iOS'
2015-05-20 13:32:59,260 DEBUG [AbstractTranscodingDeliveryEngine] Removing transcoding listener with id transcoding-temp-52-ios-ORIGINAL-e4b8026738dc4349ef6a625406b8b88e.stf
2015-05-20 13:32:59,261 WARN [ServiioStatusService] IOException occured. Returning error code 500 to the REST layer. Message: Transcoded file '/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/Serviio/transcoding-temp-52-ios-ORIGINAL-e4b8026738dc4349ef6a625406b8b88e.stf/playlist.m3u8' cannot be found, FFmpeg execution probably failed
2015-05-20 13:32:59,261 DEBUG [ServiioStatusService] Detailed exception:
java.io.IOException: Transcoded file '/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/Serviio/transcoding-temp-52-ios-ORIGINAL-e4b8026738dc4349ef6a625406b8b88e.stf/playlist.m3u8' cannot be found, FFmpeg execution probably failed
Re: Subtitles for MediaBrowser via iOS?

Posted:
Sat May 23, 2015 12:40 am
by fudster
Hey Petr, just want to make sure you saw the logs I posted. They are from the original issue of the OP (me).
Is the transcoding getting deleted before Serviio is getting a chance to use it?
Re: Subtitles for MediaBrowser via iOS?

Posted:
Mon May 25, 2015 6:44 pm
by zip
Weird, FFmpeg gets killed 10 seconds after it starts.
Can you try to run
- Code:
ffmpeg -threads auto -i /Users/john/Movies/popcorn keepers/The Rewrite (2014) [1080p]/The.Rewrite.2014.1080p.BluRay.x264.YIFY.mp4 -y -c:v libx264 -pix_fmt yuv420p -profile:v baseline -level 3 -preset veryfast -crf 10 -vf subtitles=filename='/Users/john/Movies/popcorn keepers/The Rewrite (2014) \[1080p\]/The.Rewrite.2014.1080p.BluRay.x264.YIFY.srt':original_size=1920x808:charenc=UTF-8 -r 24000/1001 -g 15 -bsf:v h264_mp4toannexb -flags -global_header -c:a copy -map 0:0 -map 0:1 -sn -f segment -segment_time 10 -segment_format mpegts -segment_list_flags +cache -segment_list /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/Serviio/transcoding-temp-52-ios-ORIGINAL-e4b8026738dc4349ef6a625406b8b88e.stf/playlist.m3u8 /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/Serviio/transcoding-temp-52-ios-ORIGINAL-e4b8026738dc4349ef6a625406b8b88e.stf/segment%05d.ts
ffmpeg is located under /Library/Application Support/Serviio/lib/
Re: Subtitles for MediaBrowser via iOS?

Posted:
Mon May 25, 2015 11:14 pm
by fudster
Thanks Petr....
I created my own temp directory, it looks like the command worked. It took about 50 minutes to finish, and it consumed 19 Gb.
I opened the resulting playlist.m3u8 file in VLC, and it plays. I don't see the subtitles though.
Did some more testing from my iPad. Same thing - ffmpeg gets killed after 10 seconds.
It's tricky to try to watch the temp dir under /var, because it gets deleted as soon as the job is killed. But I wrote a bash loop to get a look at what's happening on the filesystem during those 10 seconds. No files are being written at all, no playlist.m3u8 and no *.ts files. The transcoding-temp-43-ios-ORIGINAL-79b300545d3e72ed0fedc42df0c14234.stf/ dir (or something like it) gets created, then it's deleted after the 10 seconds are up. It never contains anything from what I can see.
Re: Subtitles for MediaBrowser via iOS?

Posted:
Fri May 29, 2015 11:02 am
by zip
I think I've seen something like this on my system yesterday. Basically, the first time hardsubs are used, fontconfig (a library used to render the fonts) creates a cache of all the available fonts on your system. It can take a while. Can you try to view the movie on another device, with hardsubs? (like a TV, not through the MediaBrowser).
Re: Subtitles for MediaBrowser via iOS?

Posted:
Sun Jun 14, 2015 6:19 pm
by fudster
Sorry it's taking me so long to get back to this. I plan to check it on SmartShare on my LG Smart TV next time I'm there and have a chance.