MediaBrowser IOS profile fails to transcode non AVC/AAC file
When using the MediaBrowser under Chrome on Android 4.1, videos that cannot be played natively (AVC/AAC) should transform to applehttp per the IOS application profile.
- Code:
<Video targetContainer="applehttp" targetVCodec="h264" targetACodec="aac" forceStereo="true">
<Matches container="3gp" />
<Matches container="asf" />
<Matches container="avi" />
<Matches container="flv" />
<Matches container="matroska" />
<Matches container="mpeg" />
<Matches container="mpegts" />
<Matches container="mpegvideo" />
<Matches container="ogg" />
<Matches container="rm" />
<Matches container="wtv" />
<Matches container="mp4" vCodec="mpeg4" />
<Matches container="mp4" vCodec="msmpeg4" />
<Matches container="mp4" aCodec="ac3" />
For example this video should transform to applehttp:
- Code:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\Azureus Active Downloads\Transmissio
n Downloads\Sister Wendy_American Collection_04_LA County Museum of Art.mp4':
Stream #0:1(eng): Video: mpeg4 (Advanced Simple Profile) (mp4v / 0x7634706D)
, yuv420p, 720x416 [SAR 1:1 DAR 45:26], 2817 kb/s, 29.97 fps, 29.97 tbr, 30k tbn
, 29.97 tbc (default)
Stream #0:2(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 79
kb/s (default)
At least one output file must be specified
but the serviio log shows it fails to do so, and it hangs with a black playbackwindow in the Android 4.1 Chrome MediaBrowser.
- Code:
2015-04-23 15:12:20,019 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27866 and profile iOS
2015-04-23 15:12:20,019 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_04_LA County Museum of Art.mp4": HLS
2015-04-23 15:12:20,019 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_04_LA County Museum of Art.mp4": HLS
2015-04-23 15:12:20,020 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_04_LA County Museum of Art.mp4": HLS
2015-04-23 15:12:20,020 DEBUG [LocalContentCacheDecorator] Stored entry in the cache (local_default), returning it
2015-04-23 15:12:20,232 DEBUG [CDSRetrieveMediaServerResource] GET http://192.168.1.10:23424/cds/resource/23671/COVER_IMAGE?profile%3Dios%26authToken%3D443369e216724fa4b5079bd0c77f1381%26ext%3D.jpg HTTP/1.1, headers = [host: 192.168.1.10:23424,connection: keep-alive,accept: image/webp,*/*;q=0.8,user-agent: Mozilla/5.0 (Linux; Android 4.1.1; M7 Build/JRO03H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.108 Safari/537.36,referer: http://192.168.1.10:23424/mediabrowser/,accept-encoding: gzip, deflate, sdch,accept-language: en-US,en;q=0.8]
2015-04-23 15:12:20,232 DEBUG [CDSRetrieveMediaServerResource] Creating client with id '192.168.1.22'
2015-04-23 15:12:20,232 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.22, Profile=iOS'
2015-04-23 15:12:20,233 DEBUG [ResourceDeliveryProcessor] Request for resource 23671 and type 'COVER_IMAGE' received
2015-04-23 15:12:20,234 DEBUG [CoverImageRetrievalStrategy] Retrieving info of Cover image with id 23671
2015-04-23 15:12:20,234 DEBUG [CoverImageRetrievalStrategy] Retrieving Cover image (HD) with id 23671
2015-04-23 15:12:20,235 DEBUG [GETMethodProcessor] Stream entity has length: 14342
2015-04-23 15:12:20,240 DEBUG [CDSRetrieveMediaServerResource] GET http://192.168.1.10:23424/cds/resource/27866/MANIFEST/HLS-0/ORIGINAL.m3u8?profile=ios&authToken=443369e216724fa4b5079bd0c77f1381 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.108 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-04-23 15:12:20,240 DEBUG [CDSRetrieveMediaServerResource] Creating client with id '192.168.1.22'
2015-04-23 15:12:20,240 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.22, Profile=iOS'
2015-04-23 15:12:20,240 DEBUG [ResourceDeliveryProcessor] Request for resource 27866 and type 'MANIFEST' received
2015-04-23 15:12:20,240 DEBUG [ManifestRetrievalStrategy] Retrieving info of Manifest for media item with id 27866
2015-04-23 15:12:20,240 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27866 (local)
2015-04-23 15:12:20,243 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27866 and profile iOS
2015-04-23 15:12:20,243 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_04_LA County Museum of Art.mp4": HLS
2015-04-23 15:12:20,244 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_04_LA County Museum of Art.mp4": HLS
2015-04-23 15:12:20,244 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_04_LA County Museum of Art.mp4": HLS
2015-04-23 15:12:20,245 DEBUG [ManifestRetrievalStrategy] Retrieving Manifest for media item with id 27866
2015-04-23 15:12:20,245 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27866 (local)
2015-04-23 15:12:20,248 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27866 and profile iOS
2015-04-23 15:12:20,249 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_04_LA County Museum of Art.mp4": HLS
2015-04-23 15:12:20,249 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_04_LA County Museum of Art.mp4": HLS
2015-04-23 15:12:20,249 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_04_LA County Museum of Art.mp4": HLS
2015-04-23 15:12:20,250 DEBUG [GETMethodProcessor] Stream entity has length: 2
2015-04-23 15:12:25,129 DEBUG [CDSRetrieveMediaServerResource] GET http://192.168.1.10:23424/cds/resource/27866/MANIFEST/HLS-0/ORIGINAL.m3u8?profile=ios&authToken=443369e216724fa4b5079bd0c77f1381 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.108 Safari/537.36,accept-encoding: gzip,deflate]
2015-04-23 15:12:25,130 DEBUG [CDSRetrieveMediaServerResource] Creating client with id '192.168.1.22'
2015-04-23 15:12:25,130 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.22, Profile=iOS'
2015-04-23 15:12:25,130 DEBUG [ResourceDeliveryProcessor] Request for resource 27866 and type 'MANIFEST' received
2015-04-23 15:12:25,130 DEBUG [ManifestRetrievalStrategy] Retrieving info of Manifest for media item with id 27866
2015-04-23 15:12:25,130 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27866 (local)
2015-04-23 15:12:25,132 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27866 and profile iOS
2015-04-23 15:12:25,132 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_04_LA County Museum of Art.mp4": HLS
2015-04-23 15:12:25,132 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_04_LA County Museum of Art.mp4": HLS
2015-04-23 15:12:25,132 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_04_LA County Museum of Art.mp4": HLS
2015-04-23 15:12:25,133 DEBUG [ManifestRetrievalStrategy] Retrieving Manifest for media item with id 27866
2015-04-23 15:12:25,133 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27866 (local)
2015-04-23 15:12:25,135 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27866 and profile iOS
2015-04-23 15:12:25,135 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_04_LA County Museum of Art.mp4": HLS
2015-04-23 15:12:25,135 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_04_LA County Museum of Art.mp4": HLS
2015-04-23 15:12:25,135 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_04_LA County Museum of Art.mp4": HLS
2015-04-23 15:12:25,136 DEBUG [GETMethodProcessor] Stream entity has length: 188
I contrast this failure with the successful transform of a similar file by the ServiiGo Medium HLS Profile:
and note the serviio log which shows the successful GET request is for MEDIA_ITEM/HLS-0 rather than MANIFEST/HLS-0
- Code:
2015-04-23 13:52:56,732 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.10:57538
2015-04-23 13:53:08,925 DEBUG [CDSRetrieveMediaServerResource] GET http://192.168.1.10:23424/cds/resource/27673/MEDIA_ITEM/HLS-0/MEDIUM.m3u8?profile=serviigo_hls&authToken=621bd14280644a0bace8d39e2c6b8be1&clientId=744dd427f8f043bdac123d203d8f7bae HTTP/1.1, headers = [host: 192.168.1.10:23424,connection: keep-alive,user-agent: stagefright/1.2 (Linux;Android 4.1.1),accept-encoding: gzip,deflate]
2015-04-23 13:53:08,926 DEBUG [CDSRetrieveMediaServerResource] Creating client with id '744dd427f8f043bdac123d203d8f7bae'
2015-04-23 13:53:08,927 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=744dd427f8f043bdac123d203d8f7bae, Profile=ServiiGo (HLS)'
2015-04-23 13:53:08,927 DEBUG [ResourceDeliveryProcessor] Request for resource 27673 and type 'MEDIA_ITEM' received
2015-04-23 13:53:08,927 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27673 (local)
2015-04-23 13:53:08,929 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 27673, format HLS and profile ServiiGo (HLS)
2015-04-23 13:53:08,929 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file Sister Wendy_American Collection_01_The Art Institute of Chicago.mp4
2015-04-23 13:53:08,929 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_01_The Art Institute of Chicago.mp4": HLS
2015-04-23 13:53:08,929 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_01_The Art Institute of Chicago.mp4": HLS
2015-04-23 13:53:08,929 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 27673 (local)
2015-04-23 13:53:08,930 DEBUG [VideoDeliveryEngine] Delivering item '27673' for client 'Identifier=744dd427f8f043bdac123d203d8f7bae, Profile=ServiiGo (HLS)'
2015-04-23 13:53:08,931 DEBUG [VideoDeliveryEngine] Delivering file 'Sister Wendy_American Collection_01_The Art Institute of Chicago.mp4' using transcoding
2015-04-23 13:53:08,931 DEBUG [AbstractTranscodingDeliveryEngine] No other client uses transcoding job of file 'transcoding-temp-27672-serviigo_hls-MEDIUM.stf', will stop the job
2015-04-23 13:53:08,931 DEBUG [AbstractTranscodingDeliveryEngine] Stopping previous transcoding job of file 'transcoding-temp-27672-serviigo_hls-MEDIUM.stf'
2015-04-23 13:53:09,316 DEBUG [TranscodingJobListener] Deleted temp file 'D:\TEMP\Serviio\transcoding-temp-27672-serviigo_hls-MEDIUM.stf': true
2015-04-23 13:53:09,316 DEBUG [AbstractTranscodingDeliveryEngine] Removing transcoding job 'transcoding-temp-27672-serviigo_hls-MEDIUM.stf' of client 'Identifier=744dd427f8f043bdac123d203d8f7bae, Profile=ServiiGo (HLS)'
2015-04-23 13:53:09,316 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'Identifier=744dd427f8f043bdac123d203d8f7bae, Profile=ServiiGo (HLS)'
2015-04-23 13:53:09,317 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: D:\Azureus Active Downloads\Transmission Downloads\Sister Wendy_The American Collection\Sister Wendy_American Collection_01_The Art Institute of Chicago.mp4
2015-04-23 13:53:09,318 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\lib\ffdump.bat -threads 8 -i D:\Azureus Active Downloads\Transmission Downloads\Sister Wendy_The American Collection\Sister Wendy_American Collection_01_The Art Institute of Chicago.mp4 -y -c:v libx264 -pix_fmt yuv420p -profile:v baseline -level 3 -preset veryfast -b:v 1000k -maxrate:v 1000k -bufsize:v 1000k -crf 10 -vf scale=698:480 -r 30000/1001 -g 15 -bsf:v h264_mp4toannexb -flags -global_header -c:a aac -strict experimental -b:a 128k -ac 2 -map 0:2 -map 0:3 -sn -f segment -segment_time 10 -segment_format mpegts -segment_list_flags +cache -segment_list D:\TEMP\Serviio\transcoding-temp-27673-serviigo_hls-MEDIUM.stf\playlist.m3u8 D:\TEMP\Serviio\transcoding-temp-27673-serviigo_hls-MEDIUM.stf\segment%05d.ts
2015-04-23 13:53:12,319 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2015-04-23 13:53:12,319 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_01_The Art Institute of Chicago.mp4": HLS
2015-04-23 13:53:12,319 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sister Wendy_American Collection_01_The Art Institute of Chicago.mp4": HLS
2015-04-23 13:53:12,321 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2015-04-23 13:53:12,322 DEBUG [GETMethodProcessor] Entity will be consumed till the end
2015-04-23 13:53:12,322 DEBUG [GETMethodProcessor] Stream entity has length: -1
Note a similar failure occurs with this file:
- Code:
Input #0, matroska,webm, from 'D:\Azureus Active Downloads\Transmission Download
s\Kiss.Me.Kate.1953.3D.1080p.Half-SBS.DTS.x264-HDAccess\Kiss.Me.Kate.1953.3D.108
0p.Half-SBS.DTS.x264-HDAccess.mkv':
Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.9
8 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (de
fault)
At least one output file must be specified
I believe MediaBrowser should transform these files just as ServiiGodoes and play them successfully in its window.
I will await Zips response before raising a bitbucket ticket.