New to transcoding
I have some mp4 files
with the the following meta data
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.58.100
Duration: 00:19:35.56, start: 0.000000, bitrate: 1498 kb/s
Chapter #0:0: start 0.000000, end 220.120000
Metadata:
title : Chapter 01
Chapter #0:1: start 220.120000, end 630.280000
Metadata:
title : Chapter 02
Chapter #0:2: start 630.280000, end 1081.240000
Metadata:
title : Chapter 03
Chapter #0:3: start 1081.240000, end 1149.640000
Metadata:
title : Chapter 04
Chapter #0:4: start 1149.640000, end 1175.560000
Metadata:
title : Chapter 05
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 722 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 384 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream #0:2(eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 384 kb/s
Metadata:
handler_name : SoundHandler
Side data:
audio service type: main
Stream #0:3(eng): Data: bin_data (text / 0x74786574)
Metadata:
handler_name : SubtitleHandler
Trying to play back on a roku device. Typically i get no audio (which i think is to do the the AAC being 5.1, The other symptom is something the files plays at fast forward speed all the time someimes.
I have been trying to which part of the transcoding section is used, but cant see to see where this is selected
see below
2016-12-18 11:20:31,865 DEBUG [ServiioHttpService] Incoming request from /192.168.0.224:34415: GET /resource/385294/MEDIA_ITEM/AVC_TS_MP_SD_AAC_MULT5_ISO-0/ORIGINAL HTTP/1.1, headers = [Connection: close,Host: 192.168.0.253:8895,user-agent: Roku/DVP-6.x]]
2016-12-18 11:20:31,865 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.224
2016-12-18 11:20:31,865 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.224
2016-12-18 11:20:31,865 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.224
2016-12-18 11:20:31,866 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.0.224, Profile=Roku Media Player, Name=Roku Media Player'
2016-12-18 11:20:31,866 DEBUG [ResourceDeliveryProcessor] Request for resource 385294 and type 'MEDIA_ITEM' received
2016-12-18 11:20:31,866 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 385294 (local)
2016-12-18 11:20:31,866 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 385294)
2016-12-18 11:20:31,868 DEBUG [VideoDAOImpl] Reading a Video (id = 385294)
2016-12-18 11:20:31,868 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 385294, format AVC_TS_MP_SD_AAC_MULT5_ISO and profile Roku Media Player
2016-12-18 11:20:31,868 DEBUG [AbstractAVTranscodingDeliveryEngine] Getting media info for transcoded version of file test.mp4
2016-12-18 11:20:31,869 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "test.mp4": AVC_TS_MP_SD_AAC_MULT5_ISO
2016-12-18 11:20:31,869 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 385294 (local)
2016-12-18 11:20:31,870 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 385294)
2016-12-18 11:20:31,870 DEBUG [VideoDAOImpl] Reading a Video (id = 385294)
2016-12-18 11:20:31,870 DEBUG [VideoDeliveryEngine] Delivering item '385294' for client 'Identifier=192.168.0.224, Profile=Roku Media Player, Name=Roku Media Player'
2016-12-18 11:20:31,870 DEBUG [VideoDeliveryEngine] Delivering file 'test.mp4' using transcoding
2016-12-18 11:20:31,871 DEBUG [AbstractAVTranscodingDeliveryEngine] No other client uses transcoding job of file 'transcoding-temp-b1d2b8da12ce773e1768e96dfefba4e4.stf', will stop the job
2016-12-18 11:20:31,871 DEBUG [AbstractAVTranscodingDeliveryEngine] Stopping previous transcoding job of file 'transcoding-temp-b1d2b8da12ce773e1768e96dfefba4e4.stf'
2016-12-18 11:20:31,871 DEBUG [ProcessExecutor] Stopping external process: Thread[Thread-2960,5,main]
2016-12-18 11:20:31,910 DEBUG [ProcessUtils] Sending kill -9 to the Unix process: 892
2016-12-18 11:20:31,910 DEBUG [ProcessExecutor] Starting kill -9 892
2016-12-18 11:20:31,993 DEBUG [TranscodingJobListener] Transcoding finished; successful: true
2016-12-18 11:20:31,996 DEBUG [TranscodingJobListener] Deleted temp file '/tmp/Serviio/transcoding-temp-b1d2b8da12ce773e1768e96dfefba4e4.stf': true
2016-12-18 11:20:31,996 DEBUG [AbstractAVTranscodingDeliveryEngine] Removing transcoding job 'transcoding-temp-b1d2b8da12ce773e1768e96dfefba4e4.stf' of client 'Identifier=192.168.0.224, Profile=Roku Media Player, Name=Roku Media Player'
2016-12-18 11:20:31,996 DEBUG [AbstractAVTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'Identifier=192.168.0.224, Profile=Roku Media Player, Name=Roku Media Player'
2016-12-18 11:20:31,997 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /test.mp4
2016-12-18 11:20:32,012 DEBUG [ProcessExecutor] Starting ffmpeg -threads 0 -i /test.mp4 -y -c:v libx264 -pix_fmt yuv420p -b:v 12000k -maxrate:v 12000k -bufsize:v 12000k -profile:v baseline -level 3 -preset:v veryfast -crf 10 -r 25 -g 15 -bsf:v h264_mp4toannexb -flags -global_header -c:a:0 copy -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-3c1d9415ffc457adc6886aae2861b159.stf
2016-12-18 11:20:32,515 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2016-12-18 11:20:32,516 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "test.mp4": AVC_TS_MP_SD_AAC_MULT5_ISO
2016-12-18 11:20:32,516 DEBUG [GETMethodProcessor] Stream entity has length: 50000000000
2016-12-18 11:20:32,516 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2016-12-18 11:20:32,516 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/vnd.dlna.mpeg-tts,Cache-control: no-cache,Connection: close,Date: Sun, 18 Dec 2016 11:20:32 GMT,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.8,transferMode.dlna.org: Streaming]]
2016-12-18 11:20:32,516 INFO [PlaybackEventsManager] Playback of media item 385294 has started at 0% on Identifier=192.168.0.224, Profile=Roku Media Player, Name=Roku Media Player
2016-12-18 11:20:35,195 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:alive) message from Renderer 93b2abac-cb6a-4857-b891-0019f5810c84 from address 192.168.0.123
2016-12-18 11:20:35,195 DEBUG [RendererManager] Retrieve device description from http://192.168.0.123:54417/93b2abac-cb6 ... 810c84.xml
2016-12-18 11:20:36,645 DEBUG [SearchManager] Committing search index
2016-12-18 11:20:37,620 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:alive) message from Renderer 93b2abac-cb6a-4857-b891-0019f5810c84 from address 192.168.0.123
2016-12-18 11:20:37,620 DEBUG [RendererManager] Retrieve device description from http://192.168.0.123:54417/93b2abac-cb6 ... 810c84.xml
2016-12-18 11:20:40,044 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:alive) message from Renderer 93b2abac-cb6a-4857-b891-0019f5810c84 from address 192.168.0.123
2016-12-18 11:20:40,048 DEBUG [RendererManager] Retrieve device description from http://192.168.0.123:54417/93b2abac-cb6 ... 810c84.xml
I have tried to manually convert the files to aac stereo but still get no sound
To start with i'm just trying to find out where in the logs is the output which shows which transcoding section is selected. I cant seem to find it. Also changing the obvious section for 5.1 passthough makes no difference.
Any ideas how I found out which part of the profile be being selected and if possible the issue on my profile
Thanks