Jump to content

Chromecast only Stereo on transcode


Recommended Posts

Posted

Hey - Hoping for some help with this as I don't understand where I am going wrong!

 

Have the same issue on both Chromecast and Now TV 2 (Roku) where files will not play in 5.1. I am (now) aware that Chromecast does not support DTS passthrough, but even with 5.1 AC3 I only get stereo output from the Chromecast to my AVR. 

 

Here's the transcode log from the film with AC3. Would appreciate any help to get this resolved!

http://192.168.167.109:8096/videos/95f191cde82700472647573026eb4c97/stream.mkv?DeviceId=2a64d3e2d2b17d4d38bda89f33bf58094a8ba3cc&MediaSourceId=95f191cde82700472647573026eb4c97&VideoCodec=h264&AudioCodec=mp3&AudioStreamIndex=1&VideoBitrate=10680000&AudioBitrate=320000&MaxAudioChannels=6&Level=41&Profile=high&PlaySessionId=4f3553228fa24b42a8833d595f8ac145&api_key=911767f513c1404a8ac42f20e527ee13

{"Protocol":"File","Id":"95f191cde82700472647573026eb4c97","Path":"\\\\SERVER\\Data\\Movies\\Hancock\\Hancock.avi","Type":"Default","Container":"avi","Name":"1080P/H264/AC3","RunTimeTicks":61341400000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","IsInterlaced":false,"BitRate":7311570,"BitDepth":8,"RefFrames":1,"IsDefault":false,"IsForced":false,"Height":1072,"Width":1920,"AverageFrameRate":23.975,"RealFrameRate":23.97602,"Profile":"Constrained Baseline","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":13,"IsAnamorphic":false,"IsCabac":false},{"Codec":"ac3","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":448000,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":7769237,"RequiredHttpHeaders":{}}

C:\Users\Jason\AppData\Roaming\Emby-Server\ffmpeg\20151111\ffmpeg.exe -fflags +genpts -noaccurate_seek -i file:"\\SERVER\Data\Movies\Hancock\Hancock.avi" -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -map_metadata -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 320000 -af "aresample=async=1,volume=2" -y "C:\Users\Jason\AppData\Roaming\Emby-Server\transcoding-temp\8e35ccc00171df1062d87dec82d7f905.mkv"


ffmpeg version N-76598-g2905c51 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 5.2.0 (GCC)
  configuration: --arch=x86_64 --target-os=mingw32 --cross-prefix=/home/mceuser/ffmpeg-windows-build-helpers/sandbox/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --pkg-config=pkg-config --disable-w32threads --enable-gpl --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --enable-libvidstab --enable-libx265 --enable-decklink --extra-libs=-loleaut32 --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-libilbc --enable-libwavpack --enable-libwebp --enable-libgme --enable-dxva2 --enable-libdcadec --enable-avisynth --enable-gray --enable-libmfx --extra-libs=-lpsapi --extra-cflags= --enable-static --disable-shared --prefix=/home/mceuser/ffmpeg-windows-build-helpers/sandbox/mingw-w64-x86_64/x86_64-w64-mingw32 --enable-runtime-cpudetect
  libavutil      55.  5.100 / 55.  5.100
  libavcodec     57. 15.100 / 57. 15.100
  libavformat    57. 14.100 / 57. 14.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 15.100 /  6. 15.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, avi, from 'file:\\SERVER\Data\Movies\Hancock\Hancock.avi':
  Metadata:
    title           : title01
    encoder         : Lavf52.33.0
  Duration: 01:42:14.14, start: 0.000000, bitrate: 7769 kb/s
    Stream #0:0: Video: h264 (Constrained Baseline) (H264 / 0x34363248), yuv420p, 1920x1072 [SAR 1:1 DAR 120:67], 7311 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 47.95 tbc
    Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 448 kb/s
[matroska @ 00000000030ef960] Codec for stream 0 does not use global headers but container format requires global headers
Output #0, matroska, to 'C:\Users\Jason\AppData\Roaming\Emby-Server\transcoding-temp\8e35ccc00171df1062d87dec82d7f905.mkv':
  Metadata:
    encoder         : Lavf57.14.100
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1920x1072 [SAR 1:1 DAR 120:67], q=2-31, 7311 kb/s, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc
    Stream #0:1: Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp, 320 kb/s
    Metadata:
      encoder         : Lavc57.15.100 libmp3lame
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (ac3 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[NULL @ 0000000002df0020] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
[NULL @ 0000000002df0020] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
[NULL @ 0000000002df0020] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
[NULL @ 0000000002df0020] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument

Posted

hi, as a test, do you have any content that direct plays on the chromecast? can you verify whether that passes through the ac3 or not? thanks.

Posted

Also, can you please provide the corresponding emby server log? thanks.

Posted

Thanks for quick response!

 

I think this is the snippet form the corresponding server log. So it says here that it's eligible for direct play? Would this not play then or still require transcoding?

 

I have a slew of different encodings in my media - would need to check what is able toe be direct played. What's the most ideal format to direct stream to Chromecast?

2016-01-23 22:37:20.8963 Info App: Profile: Unknown Profile, Path: \\SERVER\Data\Movies\Hancock\Hancock.avi, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2016-01-23 22:37:20.8963 Info App: Profile: Unknown Profile, No direct play profiles found for Path: \\SERVER\Data\Movies\Hancock\Hancock.avi
2016-01-23 22:37:20.8963 Info App: Profile: Unknown Profile, Path: \\SERVER\Data\Movies\Hancock\Hancock.avi, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2016-01-23 22:37:20.8963 Info App: Profile: Unknown Profile, No direct play profiles found for Path: \\SERVER\Data\Movies\Hancock\Hancock.avi
2016-01-23 22:37:20.8963 Info App: Profile: Unknown Profile, Path: \\SERVER\Data\Movies\Hancock\Hancock.avi, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2016-01-23 22:37:20.8963 Info App: Profile: Unknown Profile, No direct play profiles found for Path: \\SERVER\Data\Movies\Hancock\Hancock.avi
2016-01-23 22:37:20.8963 Info HttpServer: HTTP Response 200 to 192.168.167.102. Time: 0ms. http://192.168.167.109:8096/Items/95f191cde82700472647573026eb4c97/PlaybackInfo?UserId=55e46a9f12de35ee61b990a66781e512&StartTimeTicks=0&MaxStreamingBitrate=11000000
2016-01-23 22:37:21.1303 Info HttpServer: HTTP Response 200 to 192.168.167.102. Time: 655ms. http://192.168.167.109:8096/Playback/BitrateTest?size=2400000
2016-01-23 22:37:21.3799 Info HttpServer: HTTP GET http://192.168.167.109:8096/videos/95f191cde82700472647573026eb4c97/stream.mkv?DeviceId=2a64d3e2d2b17d4d38bda89f33bf58094a8ba3cc&MediaSourceId=95f191cde82700472647573026eb4c97&VideoCodec=h264&AudioCodec=mp3&AudioStreamIndex=1&VideoBitrate=10680000&AudioBitrate=320000&MaxAudioChannels=6&Level=41&Profile=high&PlaySessionId=4f3553228fa24b42a8833d595f8ac145&api_key=911767f513c1404a8ac42f20e527ee13. UserAgent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2016-01-23 22:37:21.4735 Info HttpServer: HTTP GET http://192.168.167.109:8096/mediabrowser/Items/95f191cde82700472647573026eb4c97/Images/Primary?tag=72805a0419c5bda4164c69f906284d5f. UserAgent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2016-01-23 22:37:21.4735 Info HttpServer: HTTP Response 200 to 192.168.167.102. Time: 0ms. http://192.168.167.109:8096/mediabrowser/Items/95f191cde82700472647573026eb4c97/Images/Primary?tag=72805a0419c5bda4164c69f906284d5f
2016-01-23 22:37:21.5203 Info HttpServer: HTTP GET http://192.168.167.109:8096/mediabrowser/Items/95f191cde82700472647573026eb4c97/Images/Backdrop/0?tag=798d61602ff94f9d2d6698bd905e1468. UserAgent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2016-01-23 22:37:21.5359 Info HttpServer: HTTP Response 200 to 192.168.167.102. Time: 16ms. http://192.168.167.109:8096/mediabrowser/Items/95f191cde82700472647573026eb4c97/Images/Backdrop/0?tag=798d61602ff94f9d2d6698bd905e1468
2016-01-23 22:37:21.5359 Info App: C:\Users\Jason\AppData\Roaming\Emby-Server\ffmpeg\20151111\ffmpeg.exe -fflags +genpts -noaccurate_seek -i file:"\\SERVER\Data\Movies\Hancock\Hancock.avi" -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -map_metadata -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 320000 -af "aresample=async=1,volume=2" -y "C:\Users\Jason\AppData\Roaming\Emby-Server\transcoding-temp\8e35ccc00171df1062d87dec82d7f905.mkv"
2016-01-23 22:37:22.4407 Info HttpServer: HTTP OPTIONS http://192.168.167.109:8096/Sessions/Playing. UserAgent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2016-01-23 22:37:22.4407 Info HttpServer: HTTP Response 200 to 192.168.167.102. Time: 0ms. http://192.168.167.109:8096/Sessions/Playing
2016-01-23 22:37:22.4563 Info HttpServer: HTTP POST http://192.168.167.109:8096/Sessions/Playing. UserAgent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2016-01-23 22:37:22.4563 Info HttpServer: HTTP Response 204 to 192.168.167.102. Time: 0ms. http://192.168.167.109:8096/Sessions/Playing
2016-01-23 22:37:22.4875 Info HttpServer: HTTP GET http://192.168.167.109:8096/emby/Users/55e46a9f12de35ee61b990a66781e512/Items/95f191cde82700472647573026eb4c97. UserAgent: Mozilla/5.0 (Linux; Android 6.0.1; Nexus 6 Build/MMB29S; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/47.0.2526.100 Mobile Safari/537.36
2016-01-23 22:37:22.5031 Info HttpServer: HTTP Response 200 to 192.168.167.103. Time: 16ms. http://192.168.167.109:8096/emby/Users/55e46a9f12de35ee61b990a66781e512/Items/95f191cde82700472647573026eb4c97
2016-01-23 22:37:22.5187 Info HttpServer: HTTP GET http://192.168.167.109:8096/emby/Items/95f191cde82700472647573026eb4c97/Images/Primary?height=280&tag=72805a0419c5bda4164c69f906284d5f&quality=90. UserAgent: Mozilla/5.0 (Linux; Android 6.0.1; Nexus 6 Build/MMB29S; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/47.0.2526.100 Mobile Safari/537.36
Posted (edited)

I have this? 

 

Media Info

Video
CodecH264
ProfileHigh
Level51
Resolution1920x816
Aspect ratio2.35:1
AnamorphicNo
InterlacedNo
Framerate23.97602
Bitrate7336 kbps
Bit depth8 bit
Pixel formatyuv420p
Ref frames2
CABACYes
Audio
CodecAC3
Layout5.1
Channels6 ch
Bitrate500 kbps
Sample rate48000 khz
DefaultNo
Containermkv

 

Vid stream looks OK - It's the audio piece that's confusing... I have to make sure it's AAC to direct play? 

Edited by mitsumaui
Posted

OK Just tried this video: 

Media Info
Video
CodecH264
ProfileHigh
Level40
Resolution1920x960
Aspect ratio2:1
AnamorphicNo
InterlacedNo
Framerate23.97599
Bitrate2576 kbps
Bit depth8 bit
Pixel formatyuv420p
Ref frames4
Audio
Languageeng
CodecAAC
ProfileHE-AAC
Layout5.1
Channels6 ch
Sample rate48000 khz
DefaultNo
Subtitle
CodecSRT
DefaultYes
ForcedNo
ExternalNo
Containermkv
 

 

 

Still only showing FL / FR on AVR and transcoding:

http://192.168.167.109:8096/videos/73c2a3d3d4bf9338a3bd955c8cf65a0d/stream.mkv?DeviceId=2a64d3e2d2b17d4d38bda89f33bf58094a8ba3cc&MediaSourceId=73c2a3d3d4bf9338a3bd955c8cf65a0d&VideoCodec=h264&AudioCodec=mp3&AudioStreamIndex=1&VideoBitrate=10680000&AudioBitrate=320000&MaxAudioChannels=6&Level=41&Profile=high&PlaySessionId=f524c5c92166400b8a902190623ce932&api_key=911767f513c1404a8ac42f20e527ee13

{"Protocol":"File","Id":"73c2a3d3d4bf9338a3bd955c8cf65a0d","Path":"\\\\SERVER\\Data\\Ryan Friendly\\Movies\\Jurassic World 2015\\Jurassic World (2015).mkv","Type":"Default","Container":"mkv","Name":"1080P/H264/AAC","RunTimeTicks":74611540000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","IsInterlaced":false,"BitRate":2638074,"BitDepth":8,"RefFrames":4,"IsDefault":false,"IsForced":false,"Height":960,"Width":1920,"AverageFrameRate":23.97599,"RealFrameRate":23.97599,"Profile":"High","Type":"Video","AspectRatio":"2:1","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":40,"IsAnamorphic":false},{"Codec":"aac","Language":"eng","IsInterlaced":false,"ChannelLayout":"5.1","Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Profile":"HE-AAC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"srt","IsInterlaced":false,"IsDefault":true,"IsForced":false,"Type":"Subtitle","Index":2,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Level":0}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":2638074,"RequiredHttpHeaders":{}}

C:\Users\Jason\AppData\Roaming\Emby-Server\ffmpeg\20151111\ffmpeg.exe -fflags +genpts -noaccurate_seek -i file:"\\SERVER\Data\Ryan Friendly\Movies\Jurassic World 2015\Jurassic World (2015).mkv" -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -map_metadata -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 320000 -af "aresample=async=1,volume=2" -y "C:\Users\Jason\AppData\Roaming\Emby-Server\transcoding-temp\45a2e5b13db25568270bcb89ca7cd9a6.mkv"


ffmpeg version N-76598-g2905c51 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 5.2.0 (GCC)
  configuration: --arch=x86_64 --target-os=mingw32 --cross-prefix=/home/mceuser/ffmpeg-windows-build-helpers/sandbox/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --pkg-config=pkg-config --disable-w32threads --enable-gpl --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --enable-libvidstab --enable-libx265 --enable-decklink --extra-libs=-loleaut32 --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-libilbc --enable-libwavpack --enable-libwebp --enable-libgme --enable-dxva2 --enable-libdcadec --enable-avisynth --enable-gray --enable-libmfx --extra-libs=-lpsapi --extra-cflags= --enable-static --disable-shared --prefix=/home/mceuser/ffmpeg-windows-build-helpers/sandbox/mingw-w64-x86_64/x86_64-w64-mingw32 --enable-runtime-cpudetect
  libavutil      55.  5.100 / 55.  5.100
  libavcodec     57. 15.100 / 57. 15.100
  libavformat    57. 14.100 / 57. 14.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 15.100 /  6. 15.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[aac @ 00000000004e7220] element type mismatch 3 != 0
Input #0, matroska,webm, from 'file:\\SERVER\Data\Ryan Friendly\Movies\Jurassic World 2015\Jurassic World (2015).mkv':
  Metadata:
    creation_time   : 2015-09-25 17:53:11
    ENCODER         : Lavf55.12.0
  Duration: 02:04:21.15, start: 0.000000, bitrate: 2638 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709), 1920x960 [SAR 1:1 DAR 2:1], 23.98 fps, 23.98 tbr, 1k tbn, 180k tbc
    Stream #0:1(eng): Audio: aac (HE-AAC), 48000 Hz, 5.1, fltp
    Metadata:
      title           : Surround
      LANGUAGE        : eng
    Stream #0:2: Subtitle: subrip (default)
[matroska @ 0000000002a1b700] Codec for stream 0 does not use global headers but container format requires global headers
Output #0, matroska, to 'C:\Users\Jason\AppData\Roaming\Emby-Server\transcoding-temp\45a2e5b13db25568270bcb89ca7cd9a6.mkv':
  Metadata:
    encoder         : Lavf57.14.100
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1920x960 [SAR 1:1 DAR 2:1], q=2-31, 23.98 fps, 23.98 tbr, 1k tbn, 1k tbc
    Stream #0:1: Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp, 320 kb/s
    Metadata:
      encoder         : Lavc57.15.100 libmp3lame
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (aac (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[aac @ 0000000002f53020] element type mismatch 3 != 0
    Last message repeated 279 times
frame=  279 fps=0.0 q=-1.0 size=    3091kB time=00:00:11.85 bitrate=2135.4kbits/s    
[aac @ 0000000002f53020] element type mismatch 3 != 0
    Last message repeated 250 times

Server logs:

Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2016-01-23 23:22:52.5547 Info HttpServer: HTTP Response 200 to 192.168.167.102. Time: 0ms. http://192.168.167.109:8096/Items/73c2a3d3d4bf9338a3bd955c8cf65a0d/PlaybackInfo?UserId=55e46a9f12de35ee61b990a66781e512&StartTimeTicks=0&MaxStreamingBitrate=11000000
2016-01-23 23:22:52.6483 Info HttpServer: HTTP POST http://192.168.167.109:8096/Items/73c2a3d3d4bf9338a3bd955c8cf65a0d/PlaybackInfo?UserId=55e46a9f12de35ee61b990a66781e512&StartTimeTicks=0&MaxStreamingBitrate=11000000. UserAgent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2016-01-23 23:22:52.6483 Info App: Profile: Unknown Profile, Path: \\SERVER\Data\Ryan Friendly\Movies\Jurassic World 2015\Jurassic World (2015).mkv, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2016-01-23 23:22:52.6483 Info App: Profile: VideoAudioCodecProfile, DirectPlay=false. Reason=Unknown Profile.AudioProfile Condition: NotEquals. ConditionValue: HE-AAC. IsRequired: True. Path: \\SERVER\Data\Ryan Friendly\Movies\Jurassic World 2015\Jurassic World (2015).mkv
2016-01-23 23:22:52.6483 Info App: Profile: Unknown Profile, Path: \\SERVER\Data\Ryan Friendly\Movies\Jurassic World 2015\Jurassic World (2015).mkv, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2016-01-23 23:22:52.6483 Info App: Profile: VideoAudioCodecProfile, DirectPlay=false. Reason=Unknown Profile.AudioProfile Condition: NotEquals. ConditionValue: HE-AAC. IsRequired: True. Path: \\SERVER\Data\Ryan Friendly\Movies\Jurassic World 2015\Jurassic World (2015).mkv
2016-01-23 23:22:52.6483 Info App: Profile: Unknown Profile, Path: \\SERVER\Data\Ryan Friendly\Movies\Jurassic World 2015\Jurassic World (2015).mkv, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2016-01-23 23:22:52.6483 Info App: Profile: VideoAudioCodecProfile, DirectPlay=false. Reason=Unknown Profile.AudioProfile Condition: NotEquals. ConditionValue: HE-AAC. IsRequired: True. Path: \\SERVER\Data\Ryan Friendly\Movies\Jurassic World 2015\Jurassic World (2015).mkv
2016-01-23 23:22:52.6483 Info HttpServer: HTTP Response 200 to 192.168.167.102. Time: 0ms. http://192.168.167.109:8096/Items/73c2a3d3d4bf9338a3bd955c8cf65a0d/PlaybackInfo?UserId=55e46a9f12de35ee61b990a66781e512&StartTimeTicks=0&MaxStreamingBitrate=11000000
2016-01-23 23:22:52.9291 Info HttpServer: HTTP OPTIONS http://192.168.167.109:8096/Videos/73c2a3d3d4bf9338a3bd955c8cf65a0d/73c2a3d3d4bf9338a3bd955c8cf65a0d/Subtitles/2/0/Stream.js. UserAgent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2016-01-23 23:22:52.9291 Info HttpServer: HTTP Response 200 to 192.168.167.102. Time: 0ms. http://192.168.167.109:8096/Videos/73c2a3d3d4bf9338a3bd955c8cf65a0d/73c2a3d3d4bf9338a3bd955c8cf65a0d/Subtitles/2/0/Stream.js
2016-01-23 23:22:53.0071 Info HttpServer: HTTP GET http://192.168.167.109:8096/videos/73c2a3d3d4bf9338a3bd955c8cf65a0d/stream.mkv?DeviceId=2a64d3e2d2b17d4d38bda89f33bf58094a8ba3cc&MediaSourceId=73c2a3d3d4bf9338a3bd955c8cf65a0d&VideoCodec=h264&AudioCodec=mp3&AudioStreamIndex=1&VideoBitrate=10680000&AudioBitrate=320000&MaxAudioChannels=6&Level=41&Profile=high&PlaySessionId=f524c5c92166400b8a902190623ce932&api_key=911767f513c1404a8ac42f20e527ee13. UserAgent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2016-01-23 23:22:53.0071 Info App: C:\Users\Jason\AppData\Roaming\Emby-Server\ffmpeg\20151111\ffmpeg.exe -fflags +genpts -noaccurate_seek -i file:"\\SERVER\Data\Ryan Friendly\Movies\Jurassic World 2015\Jurassic World (2015).mkv" -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -map_metadata -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 320000 -af "aresample=async=1,volume=2" -y "C:\Users\Jason\AppData\Roaming\Emby-Server\transcoding-temp\45a2e5b13db25568270bcb89ca7cd9a6.mkv"
2016-01-23 23:22:53.0383 Info HttpServer: HTTP GET http://192.168.167.109:8096/mediabrowser/Items/73c2a3d3d4bf9338a3bd955c8cf65a0d/Images/Primary?tag=f4a19e7eb5e5a458d25e47dd5ce21516. UserAgent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2016-01-23 23:22:53.1007 Info HttpServer: HTTP GET http://192.168.167.109:8096/mediabrowser/Items/73c2a3d3d4bf9338a3bd955c8cf65a0d/Images/Backdrop/0?
Posted

 

OK Just tried this video: 

Media Info
Video
CodecH264

ProfileHigh

Level40

Resolution1920x960

Aspect ratio2:1

AnamorphicNo

InterlacedNo

Framerate23.97599

Bitrate2576 kbps

Bit depth8 bit

Pixel formatyuv420p

Ref frames4

Audio
Languageeng

CodecAAC

ProfileHE-AAC

Layout5.1

Channels6 ch

Sample rate48000 khz

DefaultNo

Subtitle
CodecSRT

DefaultYes

ForcedNo

ExternalNo

Containermkv
 

 

 

Still only showing FL / FR on AVR and transcoding:

http://192.168.167.109:8096/videos/73c2a3d3d4bf9338a3bd955c8cf65a0d/stream.mkv?DeviceId=2a64d3e2d2b17d4d38bda89f33bf58094a8ba3cc&MediaSourceId=73c2a3d3d4bf9338a3bd955c8cf65a0d&VideoCodec=h264&AudioCodec=mp3&AudioStreamIndex=1&VideoBitrate=10680000&AudioBitrate=320000&MaxAudioChannels=6&Level=41&Profile=high&PlaySessionId=f524c5c92166400b8a902190623ce932&api_key=911767f513c1404a8ac42f20e527ee13

{"Protocol":"File","Id":"73c2a3d3d4bf9338a3bd955c8cf65a0d","Path":"\\\\SERVER\\Data\\Ryan Friendly\\Movies\\Jurassic World 2015\\Jurassic World (2015).mkv","Type":"Default","Container":"mkv","Name":"1080P/H264/AAC","RunTimeTicks":74611540000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","IsInterlaced":false,"BitRate":2638074,"BitDepth":8,"RefFrames":4,"IsDefault":false,"IsForced":false,"Height":960,"Width":1920,"AverageFrameRate":23.97599,"RealFrameRate":23.97599,"Profile":"High","Type":"Video","AspectRatio":"2:1","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":40,"IsAnamorphic":false},{"Codec":"aac","Language":"eng","IsInterlaced":false,"ChannelLayout":"5.1","Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Profile":"HE-AAC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"srt","IsInterlaced":false,"IsDefault":true,"IsForced":false,"Type":"Subtitle","Index":2,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Level":0}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":2638074,"RequiredHttpHeaders":{}}

C:\Users\Jason\AppData\Roaming\Emby-Server\ffmpeg\20151111\ffmpeg.exe -fflags +genpts -noaccurate_seek -i file:"\\SERVER\Data\Ryan Friendly\Movies\Jurassic World 2015\Jurassic World (2015).mkv" -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -map_metadata -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 320000 -af "aresample=async=1,volume=2" -y "C:\Users\Jason\AppData\Roaming\Emby-Server\transcoding-temp\45a2e5b13db25568270bcb89ca7cd9a6.mkv"


ffmpeg version N-76598-g2905c51 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 5.2.0 (GCC)
  configuration: --arch=x86_64 --target-os=mingw32 --cross-prefix=/home/mceuser/ffmpeg-windows-build-helpers/sandbox/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --pkg-config=pkg-config --disable-w32threads --enable-gpl --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --enable-libvidstab --enable-libx265 --enable-decklink --extra-libs=-loleaut32 --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-libilbc --enable-libwavpack --enable-libwebp --enable-libgme --enable-dxva2 --enable-libdcadec --enable-avisynth --enable-gray --enable-libmfx --extra-libs=-lpsapi --extra-cflags= --enable-static --disable-shared --prefix=/home/mceuser/ffmpeg-windows-build-helpers/sandbox/mingw-w64-x86_64/x86_64-w64-mingw32 --enable-runtime-cpudetect
  libavutil      55.  5.100 / 55.  5.100
  libavcodec     57. 15.100 / 57. 15.100
  libavformat    57. 14.100 / 57. 14.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 15.100 /  6. 15.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[aac @ 00000000004e7220] element type mismatch 3 != 0
Input #0, matroska,webm, from 'file:\\SERVER\Data\Ryan Friendly\Movies\Jurassic World 2015\Jurassic World (2015).mkv':
  Metadata:
    creation_time   : 2015-09-25 17:53:11
    ENCODER         : Lavf55.12.0
  Duration: 02:04:21.15, start: 0.000000, bitrate: 2638 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709), 1920x960 [SAR 1:1 DAR 2:1], 23.98 fps, 23.98 tbr, 1k tbn, 180k tbc
    Stream #0:1(eng): Audio: aac (HE-AAC), 48000 Hz, 5.1, fltp
    Metadata:
      title           : Surround
      LANGUAGE        : eng
    Stream #0:2: Subtitle: subrip (default)
[matroska @ 0000000002a1b700] Codec for stream 0 does not use global headers but container format requires global headers
Output #0, matroska, to 'C:\Users\Jason\AppData\Roaming\Emby-Server\transcoding-temp\45a2e5b13db25568270bcb89ca7cd9a6.mkv':
  Metadata:
    encoder         : Lavf57.14.100
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1920x960 [SAR 1:1 DAR 2:1], q=2-31, 23.98 fps, 23.98 tbr, 1k tbn, 1k tbc
    Stream #0:1: Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp, 320 kb/s
    Metadata:
      encoder         : Lavc57.15.100 libmp3lame
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (aac (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[aac @ 0000000002f53020] element type mismatch 3 != 0
    Last message repeated 279 times
frame=  279 fps=0.0 q=-1.0 size=    3091kB time=00:00:11.85 bitrate=2135.4kbits/s    
[aac @ 0000000002f53020] element type mismatch 3 != 0
    Last message repeated 250 times

Server logs:

Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2016-01-23 23:22:52.5547 Info HttpServer: HTTP Response 200 to 192.168.167.102. Time: 0ms. http://192.168.167.109:8096/Items/73c2a3d3d4bf9338a3bd955c8cf65a0d/PlaybackInfo?UserId=55e46a9f12de35ee61b990a66781e512&StartTimeTicks=0&MaxStreamingBitrate=11000000
2016-01-23 23:22:52.6483 Info HttpServer: HTTP POST http://192.168.167.109:8096/Items/73c2a3d3d4bf9338a3bd955c8cf65a0d/PlaybackInfo?UserId=55e46a9f12de35ee61b990a66781e512&StartTimeTicks=0&MaxStreamingBitrate=11000000. UserAgent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2016-01-23 23:22:52.6483 Info App: Profile: Unknown Profile, Path: \\SERVER\Data\Ryan Friendly\Movies\Jurassic World 2015\Jurassic World (2015).mkv, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2016-01-23 23:22:52.6483 Info App: Profile: VideoAudioCodecProfile, DirectPlay=false. Reason=Unknown Profile.AudioProfile Condition: NotEquals. ConditionValue: HE-AAC. IsRequired: True. Path: \\SERVER\Data\Ryan Friendly\Movies\Jurassic World 2015\Jurassic World (2015).mkv
2016-01-23 23:22:52.6483 Info App: Profile: Unknown Profile, Path: \\SERVER\Data\Ryan Friendly\Movies\Jurassic World 2015\Jurassic World (2015).mkv, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2016-01-23 23:22:52.6483 Info App: Profile: VideoAudioCodecProfile, DirectPlay=false. Reason=Unknown Profile.AudioProfile Condition: NotEquals. ConditionValue: HE-AAC. IsRequired: True. Path: \\SERVER\Data\Ryan Friendly\Movies\Jurassic World 2015\Jurassic World (2015).mkv
2016-01-23 23:22:52.6483 Info App: Profile: Unknown Profile, Path: \\SERVER\Data\Ryan Friendly\Movies\Jurassic World 2015\Jurassic World (2015).mkv, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2016-01-23 23:22:52.6483 Info App: Profile: VideoAudioCodecProfile, DirectPlay=false. Reason=Unknown Profile.AudioProfile Condition: NotEquals. ConditionValue: HE-AAC. IsRequired: True. Path: \\SERVER\Data\Ryan Friendly\Movies\Jurassic World 2015\Jurassic World (2015).mkv
2016-01-23 23:22:52.6483 Info HttpServer: HTTP Response 200 to 192.168.167.102. Time: 0ms. http://192.168.167.109:8096/Items/73c2a3d3d4bf9338a3bd955c8cf65a0d/PlaybackInfo?UserId=55e46a9f12de35ee61b990a66781e512&StartTimeTicks=0&MaxStreamingBitrate=11000000
2016-01-23 23:22:52.9291 Info HttpServer: HTTP OPTIONS http://192.168.167.109:8096/Videos/73c2a3d3d4bf9338a3bd955c8cf65a0d/73c2a3d3d4bf9338a3bd955c8cf65a0d/Subtitles/2/0/Stream.js. UserAgent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2016-01-23 23:22:52.9291 Info HttpServer: HTTP Response 200 to 192.168.167.102. Time: 0ms. http://192.168.167.109:8096/Videos/73c2a3d3d4bf9338a3bd955c8cf65a0d/73c2a3d3d4bf9338a3bd955c8cf65a0d/Subtitles/2/0/Stream.js
2016-01-23 23:22:53.0071 Info HttpServer: HTTP GET http://192.168.167.109:8096/videos/73c2a3d3d4bf9338a3bd955c8cf65a0d/stream.mkv?DeviceId=2a64d3e2d2b17d4d38bda89f33bf58094a8ba3cc&MediaSourceId=73c2a3d3d4bf9338a3bd955c8cf65a0d&VideoCodec=h264&AudioCodec=mp3&AudioStreamIndex=1&VideoBitrate=10680000&AudioBitrate=320000&MaxAudioChannels=6&Level=41&Profile=high&PlaySessionId=f524c5c92166400b8a902190623ce932&api_key=911767f513c1404a8ac42f20e527ee13. UserAgent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2016-01-23 23:22:53.0071 Info App: C:\Users\Jason\AppData\Roaming\Emby-Server\ffmpeg\20151111\ffmpeg.exe -fflags +genpts -noaccurate_seek -i file:"\\SERVER\Data\Ryan Friendly\Movies\Jurassic World 2015\Jurassic World (2015).mkv" -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -map_metadata -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 320000 -af "aresample=async=1,volume=2" -y "C:\Users\Jason\AppData\Roaming\Emby-Server\transcoding-temp\45a2e5b13db25568270bcb89ca7cd9a6.mkv"
2016-01-23 23:22:53.0383 Info HttpServer: HTTP GET http://192.168.167.109:8096/mediabrowser/Items/73c2a3d3d4bf9338a3bd955c8cf65a0d/Images/Primary?tag=f4a19e7eb5e5a458d25e47dd5ce21516. UserAgent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2016-01-23 23:22:53.1007 Info HttpServer: HTTP GET http://192.168.167.109:8096/mediabrowser/Items/73c2a3d3d4bf9338a3bd955c8cf65a0d/Images/Backdrop/0?

 

The answer to this particular example is HE-AAC, which Chromecast does not support.

Posted

Ah - Did not realize that was different! 

 

So without sounding like a n00b - Can there not be some option to re-code the audio into AAC? I don't mind too much about transcoding, as I do about ensuring I have 5.1 audio! 

 

something like if >2 audio channels, encode in AAC, or just let me encode everything in that when using Chromecast or Roku...

Posted (edited)

If you check out the folder sync feature it can create pre-transcoded copies:

 

https://github.com/MediaBrowser/Wiki/wiki/Folder%20Sync

 

Is that what you're asking?

 

 

Not exactly Luke... 

 

In short, I don't care about the CPU usage for transcoding, but I do care about the capacity and time it would take for me to re-encode videos to work with streaming boxes (too time / disk consuming). 

 

What would be great - is to change the on-the-fly transcoding. Instead of automatically down mixing to 2 channel MP3, provide option that if the container has >2 audio channels, encode this into a multi-channel format supported by the streaming device (i.e. AAC). 

Edited by mitsumaui
Posted

BTW - I did manage to find some content which put out 5.1! So it did work.

 

The icing would be if I could get a transcode to keep multi channel audio! :)

Posted

Ok, it's the issue of transcoding then.

 

@@shorty1483, I can switch back from mp3 to aac but I will need to get immediate feedback on whether or not the audio popping issue returns. It was only happening when transcoding to aac.

Posted (edited)

The chromecast can transcode to AC3 in hls and pass-through cant it? Then if your tv supports it you get sound, otherwise you get silence. Then always transcode to AC3 in the presence of surround (would maybe require an app setting), otherwise fall back to mp3 or aac. This would mean transcoding DTS to ac3, 7.1 truehd to 7.1 ac3 etc. This is possible but I am not sure how licensing works on android. In fact on checking, along with (dd) ac3 there is also (dd+) ac3 7.1 is supported, as is aac 5.1

 

bfad6e0cab2529421cf1d29a162df2e3.jpg

 

https://developers.google.com/cast/docs/media

Edited by speechles
Posted

Ok, it's the issue of transcoding then.

 

@@shorty1483, I can switch back from mp3 to aac but I will need to get immediate feedback on whether or not the audio popping issue returns. It was only happening when transcoding to aac.

 

If you send out an update, I'll check today.

Posted

Hey guys,

Please re-test because when transcoding now you should see ac-3, assuming supported hardware

Posted

Hey guys,

Please re-test because when transcoding now you should see ac-3, assuming supported hardware

 

 

I tested a few films today - all were outputting multi-channel audio! I did not experience any audio issues to note. 

 

One thing I did notice, is that the video took a little longer to display, so for the first 5 seconds you could hear the audio, with the video taking around 5 seconds to appear. But then some times I was just switching between films.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...