Thu Oct 29, 2015 7:24 pm by csholmq
Edited the Chromecast profile and replaced
- Code:
<Video targetContainer="applehttp" targetVCodec="h264" targetACodec="aac" forceVTranscoding="true" maxHeight="720" maxVBitrate="7000">
with
- Code:
<Video targetContainer="applehttp" targetACodec="aac">
MP4 still works (delivered as native) but MKV does not. Despite being x264 inside. For some reason, the transcode job gets cancelled after 10s.
- Code:
2015-10-29 20:05:05,856 DEBUG [SearchManager] Committing search index
2015-10-29 20:05:11,830 DEBUG [AccessGroupDAOImpl] Reading a AccessGroup (id = 1)
2015-10-29 20:05:11,838 DEBUG [VideoDAOImpl] Reading a Video (id = 1039)
2015-10-29 20:05:11,869 DEBUG [VideoDAOImpl] Retrieving last episode for series 8
2015-10-29 20:05:11,877 DEBUG [MediaItemDAOImpl] Getting file of media item 1039
2015-10-29 20:05:11,879 DEBUG [GenreDAOImpl] Reading a Genre (id = 3)
2015-10-29 20:05:11,880 DEBUG [PersonDAOImpl] Retrieving list of grouped persons for MediaItem 1039
2015-10-29 20:05:11,931 DEBUG [VideoDAOImpl] Reading a Video (id = 1039)
2015-10-29 20:05:11,933 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1039 and profile Chromecast
2015-10-29 20:05:11,934 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sample.X264.mkv": HLS
2015-10-29 20:05:11,935 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sample.X264.mkv": HLS
2015-10-29 20:05:11,935 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sample.X264.mkv": HLS
2015-10-29 20:05:11,943 DEBUG [CoverImageDAOImpl] Reading a CoverImage (id = 1782)
2015-10-29 20:05:11,947 DEBUG [MediaItemDAOImpl] Getting file of media item 1039
2015-10-29 20:05:11,949 DEBUG [LocalContentCacheDecorator] Stored entry in the cache (local_resetafterplay), returning it
2015-10-29 20:05:12,287 DEBUG [CDSRetrieveMediaServerResource] GET http://domain.se:23424/cds/resource/1039/MANIFEST/HLS-0/ORIGINAL.m3u8?profile=chromecast&authToken=5eb0e115d36e4d79ae5977ec6bd8bdae&clientId=50fd2774dc5f44f98bd1e338d276f60b HTTP/1.1, headers = [host: domain.se:23424,connection: keep-alive,user-agent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.16.44433,origin: https://10a3cdca76bcc55b6c9a19a53c150e8c14617256.googledrive.com,accept: */*,accept-encoding: gzip, deflate,accept-language: en-US,en;q=0.8,cast-device-capabilities: {"display_supported":true}]
2015-10-29 20:05:12,288 DEBUG [CDSRetrieveMediaServerResource] Creating client with id '50fd2774dc5f44f98bd1e338d276f60b'
2015-10-29 20:05:12,288 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=50fd2774dc5f44f98bd1e338d276f60b, Profile=Chromecast'
2015-10-29 20:05:12,288 DEBUG [ResourceDeliveryProcessor] Request for resource 1039 and type 'MANIFEST' received
2015-10-29 20:05:12,298 DEBUG [ManifestRetrievalStrategy] Retrieving info of Manifest for media item with id 1039
2015-10-29 20:05:12,298 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1039 (local)
2015-10-29 20:05:12,298 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1039)
2015-10-29 20:05:12,299 DEBUG [VideoDAOImpl] Reading a Video (id = 1039)
2015-10-29 20:05:12,302 DEBUG [VideoDAOImpl] Reading a Video (id = 1039)
2015-10-29 20:05:12,304 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1039 and profile Chromecast
2015-10-29 20:05:12,305 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sample.X264.mkv": HLS
2015-10-29 20:05:12,306 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sample.X264.mkv": HLS
2015-10-29 20:05:12,306 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sample.X264.mkv": HLS
2015-10-29 20:05:12,307 DEBUG [CoverImageDAOImpl] Reading a CoverImage (id = 1782)
2015-10-29 20:05:12,310 DEBUG [MediaItemDAOImpl] Getting file of media item 1039
2015-10-29 20:05:12,314 DEBUG [ManifestRetrievalStrategy] Retrieving Manifest for media item with id 1039
2015-10-29 20:05:12,314 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1039 (local)
2015-10-29 20:05:12,314 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1039)
2015-10-29 20:05:12,315 DEBUG [VideoDAOImpl] Reading a Video (id = 1039)
2015-10-29 20:05:12,318 DEBUG [VideoDAOImpl] Reading a Video (id = 1039)
2015-10-29 20:05:12,320 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1039 and profile Chromecast
2015-10-29 20:05:12,323 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sample.X264.mkv": HLS
2015-10-29 20:05:12,323 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sample.X264.mkv": HLS
2015-10-29 20:05:12,323 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sample.X264.mkv": HLS
2015-10-29 20:05:12,325 DEBUG [CoverImageDAOImpl] Reading a CoverImage (id = 1782)
2015-10-29 20:05:12,328 DEBUG [MediaItemDAOImpl] Getting file of media item 1039
2015-10-29 20:05:12,330 DEBUG [GETMethodProcessor] Stream entity has length: 192
2015-10-29 20:05:12,668 DEBUG [CDSRetrieveMediaServerResource] GET http://domain.se:23424/cds/resource/1039/MEDIA_ITEM/HLS-0/ORIGINAL.m3u8?profile=chromecast&authToken=74d73fe3739b4677a001a7650e1cde72 HTTP/1.1, headers = [host: domain.se:23424,connection: keep-alive,user-agent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.16.44433,origin: https://10a3cdca76bcc55b6c9a19a53c150e8c14617256.googledrive.com,accept: */*,accept-encoding: gzip, deflate,accept-language: en-US,en;q=0.8,cast-device-capabilities: {"display_supported":true}]
2015-10-29 20:05:12,671 DEBUG [CDSRetrieveMediaServerResource] Creating client with id '192.168.1.1'
2015-10-29 20:05:12,671 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.1, Profile=Chromecast'
2015-10-29 20:05:12,671 DEBUG [ResourceDeliveryProcessor] Request for resource 1039 and type 'MEDIA_ITEM' received
2015-10-29 20:05:12,671 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1039 (local)
2015-10-29 20:05:12,672 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1039)
2015-10-29 20:05:12,673 DEBUG [VideoDAOImpl] Reading a Video (id = 1039)
2015-10-29 20:05:12,675 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1039, format HLS and profile Chromecast
2015-10-29 20:05:12,677 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file Sample.X264.mkv
2015-10-29 20:05:12,678 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sample.X264.mkv": HLS
2015-10-29 20:05:12,678 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sample.X264.mkv": HLS
2015-10-29 20:05:12,678 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Sample.X264.mkv": HLS
2015-10-29 20:05:12,681 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1039 (local)
2015-10-29 20:05:12,681 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1039)
2015-10-29 20:05:12,682 DEBUG [VideoDAOImpl] Reading a Video (id = 1039)
2015-10-29 20:05:12,684 DEBUG [VideoDeliveryEngine] Delivering item '1039' for client 'Identifier=192.168.1.1, Profile=Chromecast'
2015-10-29 20:05:12,692 DEBUG [VideoDeliveryEngine] Delivering file 'Sample.X264.mkv' using transcoding
2015-10-29 20:05:12,694 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'Identifier=192.168.1.1, Profile=Chromecast'
2015-10-29 20:05:12,738 DEBUG [MediaItemDAOImpl] Getting file of media item 1039
2015-10-29 20:05:12,742 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /share/Multimedia/Series/The 100/Season 1/Sample.X264.mkv
2015-10-29 20:05:12,744 DEBUG [ProcessExecutor] Starting /root/.serviio/opt/bin/ffmpeg -fflags +genpts -threads auto -i /share/Multimedia/Series/The 100/Season 1/Sample.X264.mkv -y -threads auto -c:v copy -bsf:v h264_mp4toannexb -c:a aac -strict experimental -b:a 192k -ac 2 -map 0:0 -map 0:1 -sn -f segment -segment_time 10 -segment_format mpegts -segment_list_flags +cache -segment_list /root/.serviio/tmp/Serviio/transcoding-temp-1039-chromecast-ORIGINAL.stf/playlist.m3u8 /root/.serviio/tmp/Serviio/transcoding-temp-1039-chromecast-ORIGINAL.stf/segment%05d.ts
2015-10-29 20:05:22,948 DEBUG [ProcessExecutor] Stopping external process: Thread[Thread-405,5,main]
2015-10-29 20:05:22,975 DEBUG [ProcessUtils] Sending kill -9 to the Unix process: 30278
2015-10-29 20:05:22,975 DEBUG [ProcessExecutor] Starting kill -9 30278
2015-10-29 20:05:23,004 DEBUG [TranscodingJobListener] Transcoding finished; successful: true
2015-10-29 20:05:23,056 DEBUG [TranscodingJobListener] Deleted temp file '/root/.serviio/tmp/Serviio/transcoding-temp-1039-chromecast-ORIGINAL.stf': true
2015-10-29 20:05:23,057 DEBUG [AbstractTranscodingDeliveryEngine] Removing transcoding job 'transcoding-temp-1039-chromecast-ORIGINAL.stf' of client 'Identifier=192.168.1.1, Profile=Chromecast'
2015-10-29 20:05:23,057 DEBUG [AbstractTranscodingDeliveryEngine] Removing transcoding listener with id transcoding-temp-1039-chromecast-ORIGINAL.stf
2015-10-29 20:05:23,061 WARN [ServiioStatusService] IOException occured. Returning error code 500 to the REST layer. Message: Transcoded file '/root/.serviio/tmp/Serviio/transcoding-temp-1039-chromecast-ORIGINAL.stf/playlist.m3u8' cannot be found, FFmpeg execution probably failed