Jump to content

HDR lost on MKV --> M4V Direct Stream


mbnwa

Recommended Posts

Is there anyway to retain the HDR meta data when direct streaming a container switch from MKV -> M4V? Currently on my Apple TV (4K) if I remux the MKV to MP4 I get HDR however I am trying to retain Dolby Atmos for the future so I am using MKV. 

 

EDIT: As the post below shows Emby is doing a full transcode for some reason, Emby should do a direct stream remux vs a full on transcode.

 

Thanks

Edited by mbnwa
  • Like 1
Link to comment
Share on other sites

OK it seems that this is getting transcoded not direct streamed, not sure why that would be the case as the HEVC and AC3 streams should be supported only the container is not supported. (This is while selecting the AC3 track not TrueHD track)

 

2018-01-08 19:39:40.470 Info App: User policy for XXXXXXXXXXXX. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True

2018-01-08 19:39:40.470 Info App: Profile: Unknown Profile, Path: \\192.168.50.10\Media Storage\Movies\Deadpool\Deadpool (4K UHD).mkv, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2018-01-08 19:39:40.470 Info App: Profile: Unknown Profile, No direct play profiles found for Path: \\192.168.50.10\Media Storage\Movies\Deadpool\Deadpool (4K UHD).mkv
2018-01-08 19:39:40.470 Info App: RemoteClientBitrateLimit: 20000000, RemoteIp: 192.168.50.80, IsInLocalNetwork: True
2018-01-08 19:39:40.470 Info App: Profile: Unknown Profile, Path: \\192.168.50.10\Media Storage\Movies\Deadpool\Deadpool (4K UHD).mkv, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2018-01-08 19:39:40.470 Info App: Profile: Unknown Profile, No direct play profiles found for Path: \\192.168.50.10\Media Storage\Movies\Deadpool\Deadpool (4K UHD).mkv
2018-01-08 19:39:40.470 Info App: RemoteClientBitrateLimit: 20000000, RemoteIp: 192.168.50.80, IsInLocalNetwork: True
2018-01-08 19:39:40.470 Info App: Profile: Unknown Profile, Path: \\192.168.50.10\Media Storage\Movies\Deadpool\Deadpool (4K UHD).mkv, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2018-01-08 19:39:40.470 Info App: Profile: Unknown Profile, No direct play profiles found for Path: \\192.168.50.10\Media Storage\Movies\Deadpool\Deadpool (4K UHD).mkv
2018-01-08 19:39:40.470 Info App: RemoteClientBitrateLimit: 20000000, RemoteIp: 192.168.50.80, IsInLocalNetwork: True
2018-01-08 19:39:40.471 Info HttpServer: HTTP Response 200 to 192.168.50.80. Time: 5ms. http://192.168.50.10:8096/emby/Items/fdfbeab9812d77a39be3219e45633a4b/PlaybackInfo?UserId=66f17f239d9172dd0aef9b4f6743c04c&StartTimeTicks=0&AutoOpenLiveStream=true&MaxStreamingBitrate=140000000
2018-01-08 19:39:40.472 Info HttpServer: HTTP GET http://192.168.50.10:8096/emby/Users/66f17f239d9172dd0aef9b4f6743c04c/Items?recursive=true&limit=4&includeItemTypes=Movie&filters=IsUnplayed&sortBy=DateCreated&sortOrder=Descending. UserAgent: Emby/3 CFNetwork/893.14 Darwin/17.4.0
2018-01-08 19:39:40.505 Info HttpServer: HTTP Response 200 to 192.168.50.80. Time: 33ms. http://192.168.50.10:8096/emby/Users/66f17f239d9172dd0aef9b4f6743c04c/Items?recursive=true&limit=4&includeItemTypes=Movie&filters=IsUnplayed&sortBy=DateCreated&sortOrder=Descending
2018-01-08 19:39:40.795 Info HttpResultFactory: Transmit file S:\Mediabrowser\transcoding\transcoding-temp\ac627edf5f4535e0eef2bf5d0984f39320.ts
2018-01-08 19:39:40.797 Info HttpServer: HTTP Response 500 to 192.168.50.80. Time: 765ms. http://192.168.50.10:8096/emby/videos/fdfbeab9812d77a39be3219e45633a4b/hls1/main/20.ts?DeviceId=B1C0DE9E-97E7-495F-BA29-6AB45B941382&MediaSourceId=fdfbeab9812d77a39be3219e45633a4b&VideoCodec=h264&AudioCodec=ac3,aac,mp3&AudioStreamIndex=2&VideoBitrate=139616000&AudioBitrate=384000&MaxAudioChannels=6&MaxWidth=3840&PlaySessionId=e117c43679954da99661b00873c06f7c&CopyTimestamps=false&EnableSubtitlesInManifest=true&Tag=5865b6669dc90c1d4a0af916cb312190&RequireAvc=false&RequireNonAnamorphic=false&SegmentContainer=ts&BreakOnNonKeyFrames=True&TranscodeReasons=ContainerNotSupported,VideoCodecNotSupported,AudioCodecNotSupported&h264-profile=high,main,baseline,constrainedbaseline&h264-deinterlace=true&h264-level=42

 

5a543acc69393_Screenshot20180108193926.p     5a543b1da849b_Screenshot20180108193914.p

 

5a543cd9abd3c_Screenshot20180108195005.p

 

The following is the same MKV converted to M4V it looks like "Codec Tag" was added would that cause this issue? In addition the bitrates seem to be different but no transcoding was done just remux into M4V container. The below will direct play with out issues.

5a5441ae6171f_Screenshot20180108201218.p

 

5a54429d2537c_Screenshot20180108201810.p

Edited by mbnwa
Link to comment
Share on other sites

Apple TV does not support what? I have shown if it's in m4v it works as expected however it does not work as expected in MKV where Emby should do on the fly direct stream (remux) from MKV to M4V leaving the audio and video alone. (I am also talking about Apple TV 4K)

 

https://www.apple.com/apple-tv-4k/specs/

5a5443e9eda58_Screenshot20180108202231.p

Edited by mbnwa
Link to comment
Share on other sites

Guest asrequested

Apple TV does not support what? I have shown if it's in m4v it works as expected however it does not work as expected in MKV where Emby should do on the fly direct stream (remux) from MKV to M4V leaving the audio and video alone. (I am also talking about Apple TV 4K)

 

5a5443e9eda58_Screenshot20180108202231.p

 

I was just going to ask about that. So then you should post the transcode log. That will tell us what's happening

Link to comment
Share on other sites

It's not however that's not the stream I am selecting, I am selecting 5.1 AC3 stream - Apple will be releasing an update later to add Atmos support based on it's release notes. 

 

Transcode Log:

2018-01-08 20:29:57.698

Application version: 3.2.60.0
 
 
{"Protocol":"File","Id":"fdfbeab9812d77a39be3219e45633a4b","Path":"S:\\Media Storage\\Movies\\Deadpool\\Deadpool (4K UHD).mkv","Type":"Default","Container":"mkv,webm","Name":"Deadpool (4K UHD).mkv","IsRemote":false,"ETag":"5865b6669dc90c1d4a0af916cb312190","RunTimeTicks":64862400512,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"RequiresLooping":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"hevc","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1001/24000","DisplayTitle":"4K HEVC","IsInterlaced":false,"BitRate":51141683,"RefFrames":1,"IsDefault":false,"IsForced":false,"Height":2160,"Width":3840,"AverageFrameRate":23.9760246,"RealFrameRate":23.9760246,"Profile":"Main 10","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p10le","Level":153,"IsAnamorphic":false},{"Codec":"truehd","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1/48000","Title":"Surround 7.1","DisplayTitle":"Eng TRUEHD 7.1 Default","IsInterlaced":false,"ChannelLayout":"7.1","BitDepth":24,"Channels":8,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false},{"Codec":"ac3","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1/48000","Title":"Surround 5.1","DisplayTitle":"Eng Dolby Digital 5.1","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":640000,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":2,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false},{"Codec":"ac3","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1/48000","Title":"Stereo","DisplayTitle":"Eng Dolby Digital stereo","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":224000,"Channels":2,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":3,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false},{"Codec":"ac3","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1/48000","Title":"Stereo","DisplayTitle":"Eng Dolby Digital stereo","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":224000,"Channels":2,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":4,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false},{"Codec":"PGSSUB","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"0/1","DisplayTitle":"Eng","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":5,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false}],"Formats":[],"Bitrate":51141683,"RequiredHttpHeaders":{}}
 
User policy for XXXXXXXXXXXXXXXXXXXXXX: EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
 
C:\Users\XXXXXXXXXXXXXXXXXXXXXX\AppData\Roaming\MediaBrowser-Server\system\ffmpeg.exe -f matroska,webm -i file:"S:\Media Storage\Movies\Deadpool\Deadpool (4K UHD).mkv" -threads 0 -map 0:0 -map 0:2 -map -0:s -codec:v:0 libx264 -vf "scale=trunc(min(max(iw\,ih*dar)\,3840)/2)*2:trunc(ow/dar/2)*2" -pix_fmt yuv420p -preset veryfast -crf 18 -maxrate 102283366 -bufsize 204566732 -profile:v high -level 4.1 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames "expr:if(isnan(prev_forced_t),eq(t,t),gte(t,prev_forced_t+3))" -copyts -vsync -1 -codec:a:0 ac3 -ac 6 -ab 384000  -f segment -max_delay 5000000 -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 -start_at_zero -segment_time 3  -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "S:\Mediabrowser\transcoding\transcoding-temp\0ea1665e3cdafef049ddc0594ebf69d1.m3u8" -y "S:\Mediabrowser\transcoding\transcoding-temp\0ea1665e3cdafef049ddc0594ebf69d1%d.ts"
 
ffmpeg version 3.4.1 Copyright © 2000-2017 the FFmpeg developers
  built with gcc 7.2.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
[matroska,webm @ 00000172cc898360] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'file:S:\Media Storage\Movies\Deadpool\Deadpool (4K UHD).mkv':
  Metadata:
    title           : Deadpool
    encoder         : libmakemkv v1.10.9 (1.3.5/1.4.7) darwin(x64-release)
    creation_time   : 2018-01-09T02:58:57.000000Z
  Duration: 01:48:06.24, start: 0.000000, bitrate: 51141 kb/s
    Chapter #0:0: start 0.000000, end 184.726208
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 184.726208, end 353.019333
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 353.019333, end 570.570000
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 570.570000, end 799.089958
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 799.089958, end 1008.716042
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1008.716042, end 1212.294417
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 1212.294417, end 1326.408417
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 1326.408417, end 1629.628000
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 1629.628000, end 1918.958708
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 1918.958708, end 2211.709500
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 2211.709500, end 2466.088625
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 2466.088625, end 2685.474458
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 2685.474458, end 2816.605458
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 2816.605458, end 3010.799458
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 3010.799458, end 3198.028167
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 3198.028167, end 3332.662667
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 3332.662667, end 3547.752542
    Metadata:
      title           : Chapter 17
    Chapter #0:17: start 3547.752542, end 3785.072958
    Metadata:
      title           : Chapter 18
    Chapter #0:18: start 3785.072958, end 4026.439083
    Metadata:
      title           : Chapter 19
    Chapter #0:19: start 4026.439083, end 4155.442958
    Metadata:
      title           : Chapter 20
    Chapter #0:20: start 4155.442958, end 4349.720375
    Metadata:
      title           : Chapter 21
    Chapter #0:21: start 4349.720375, end 4606.059792
    Metadata:
      title           : Chapter 22
    Chapter #0:22: start 4606.059792, end 4843.713875
    Metadata:
      title           : Chapter 23
    Chapter #0:23: start 4843.713875, end 5153.064583
    Metadata:
      title           : Chapter 24
    Chapter #0:24: start 5153.064583, end 5463.791667
    Metadata:
      title           : Chapter 25
    Chapter #0:25: start 5463.791667, end 5686.972958
    Metadata:
      title           : Chapter 26
    Chapter #0:26: start 5686.972958, end 5992.736750
    Metadata:
      title           : Chapter 27
    Chapter #0:27: start 5992.736750, end 6486.240000
    Metadata:
      title           : Chapter 28
    Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [sAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc
    Metadata:
      BPS-eng         : 44972821
      DURATION-eng    : 01:48:06.229750000
      NUMBER_OF_FRAMES-eng: 155514
      NUMBER_OF_BYTES-eng: 36463002673
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.9 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-09 02:58:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: truehd, 48000 Hz, 7.1, s32 (24 bit) (default)
    Metadata:
      title           : Surround 7.1
      BPS-eng         : 5024481
      DURATION-eng    : 01:48:06.230000000
      NUMBER_OF_FRAMES-eng: 7783476
      NUMBER_OF_BYTES-eng: 4073742712
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.9 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-09 02:58:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 640000
      DURATION-eng    : 01:48:06.240000000
      NUMBER_OF_FRAMES-eng: 202695
      NUMBER_OF_BYTES-eng: 518899200
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.9 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-09 02:58:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 224000
      DURATION-eng    : 01:48:06.208000000
      NUMBER_OF_FRAMES-eng: 202694
      NUMBER_OF_BYTES-eng: 181613824
      SOURCE_ID-eng   : 001104
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.9 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-09 02:58:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:4(eng): Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 224000
      DURATION-eng    : 01:48:06.208000000
      NUMBER_OF_FRAMES-eng: 202694
      NUMBER_OF_BYTES-eng: 181613824
      SOURCE_ID-eng   : 001105
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.9 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-09 02:58:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 41605
      DURATION-eng    : 01:47:39.307020833
      NUMBER_OF_FRAMES-eng: 3704
      NUMBER_OF_BYTES-eng: 33593007
      SOURCE_ID-eng   : 0012A0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.9 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-09 02:58:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> h264 (libx264))
  Stream #0:2 -> #0:1 (ac3 (native) -> ac3 (native))
Press [q] to stop, [?] for help
[libx264 @ 00000172ce14db00] using SAR=1/1
[libx264 @ 00000172ce14db00] frame MB size (240x135) > level limit (8192)
[libx264 @ 00000172ce14db00] DPB size (4 frames, 129600 mbs) > level limit (1 frames, 32768 mbs)
[libx264 @ 00000172ce14db00] VBV bitrate (102283) > level limit (50000)
[libx264 @ 00000172ce14db00] VBV buffer (204566) > level limit (62500)
[libx264 @ 00000172ce14db00] MB rate (776823) > level limit (245760)
[libx264 @ 00000172ce14db00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 00000172ce14db00] profile Main, level 4.1
[libx264 @ 00000172ce14db00] 264 - core 152 r2851 ba24899 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=4 chroma_me=0 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=18 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=102283 vbv_bufsize=204566 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
[segment @ 00000172ce59d5a0] Opening 'S:\Mediabrowser\transcoding\transcoding-temp\0ea1665e3cdafef049ddc0594ebf69d10.ts' for writing
Output #0, segment, to 'S:\Mediabrowser\transcoding\transcoding-temp\0ea1665e3cdafef049ddc0594ebf69d1%d.ts':
  Metadata:
    encoder         : Lavf57.83.100
    Stream #0:0: Video: h264 (libx264), yuv420p, 3840x2160 [sAR 1:1 DAR 16:9], q=-1--1, 23.98 fps, 90k tbn, 23.98 tbc
    Metadata:
      encoder         : Lavc57.107.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 102283000/0/0 buffer size: 204566000 vbv_delay: -1
    Stream #0:1: Audio: ac3, 48000 Hz, 5.1, fltp, 384 kb/s
    Metadata:
      encoder         : Lavc57.107.100 ac3
frame=    1 fps=0.9 q=0.0 size=N/A time=00:00:00.66 bitrate=N/A speed=0.58x    
frame=    3 fps=1.8 q=0.0 size=N/A time=00:00:00.66 bitrate=N/A speed=0.401x    
frame=   22 fps= 10 q=0.0 size=N/A time=00:00:01.49 bitrate=N/A speed=0.686x    
frame=   33 fps= 12 q=23.0 size=N/A time=00:00:01.91 bitrate=N/A speed=0.711x    
frame=   54 fps= 17 q=23.0 size=N/A time=00:00:02.87 bitrate=N/A speed=0.897x    
frame=   75 fps= 20 q=23.0 size=N/A time=00:00:03.67 bitrate=N/A speed=0.989x    
frame=   94 fps= 22 q=23.0 size=N/A time=00:00:04.57 bitrate=N/A speed=1.08x    
[segment @ 00000172ce59d5a0] Opening 'S:\Mediabrowser\transcoding\transcoding-temp\0ea1665e3cdafef049ddc0594ebf69d1.m3u8.tmp' for writing
[segment @ 00000172ce59d5a0] Opening 'S:\Mediabrowser\transcoding\transcoding-temp\0ea1665e3cdafef049ddc0594ebf69d11.ts' for writing
frame=  112 fps= 23 q=23.0 size=N/A time=00:00:05.24 bitrate=N/A speed=1.09x    
frame=  129 fps= 24 q=23.0 size=N/A time=00:00:05.91 bitrate=N/A speed= 1.1x    
frame=  142 fps= 24 q=23.0 size=N/A time=00:00:06.55 bitrate=N/A speed=1.11x    
frame=  159 fps= 25 q=23.0 size=N/A time=00:00:07.22 bitrate=N/A speed=1.13x    
frame=  172 fps= 25 q=23.0 size=N/A time=00:00:07.77 bitrate=N/A speed=1.12x    
[segment @ 00000172ce59d5a0] Opening 'S:\Mediabrowser\transcoding\transcoding-temp\0ea1665e3cdafef049ddc0594ebf69d1.m3u8.tmp' for writing
[segment @ 00000172ce59d5a0] Opening 'S:\Mediabrowser\transcoding\transcoding-temp\0ea1665e3cdafef049ddc0594ebf69d12.ts' for writing
frame=  189 fps= 25 q=23.0 size=N/A time=00:00:08.50 bitrate=N/A speed=1.13x    
frame=  205 fps= 26 q=23.0 size=N/A time=00:00:09.05 bitrate=N/A speed=1.13x    
frame=  219 fps= 26 q=23.0 size=N/A time=00:00:09.65 bitrate=N/A speed=1.13x    
frame=  234 fps= 26 q=23.0 size=N/A time=00:00:10.23 bitrate=N/A speed=1.13x    
frame=  248 fps= 26 q=23.0 size=N/A time=00:00:10.87 bitrate=N/A speed=1.14x    
[segment @ 00000172ce59d5a0] Opening 'S:\Mediabrowser\transcoding\transcoding-temp\0ea1665e3cdafef049ddc0594ebf69d1.m3u8.tmp' for writing
[segment @ 00000172ce59d5a0] Opening 'S:\Mediabrowser\transcoding\transcoding-temp\0ea1665e3cdafef049ddc0594ebf69d13.ts' for writing
frame=  266 fps= 26 q=23.0 size=N/A time=00:00:11.67 bitrate=N/A speed=1.16x    
frame=  282 fps= 27 q=23.0 size=N/A time=00:00:12.25 bitrate=N/A speed=1.16x    
frame=  296 fps= 27 q=23.0 size=N/A time=00:00:12.98 bitrate=N/A speed=1.17x    
frame=  310 fps= 27 q=23.0 size=N/A time=00:00:13.46 bitrate=N/A speed=1.16x    
[segment @ 00000172ce59d5a0] Opening 'S:\Mediabrowser\transcoding\transcoding-temp\0ea1665e3cdafef049ddc0594ebf69d1.m3u8.tmp' for writing
[segment @ 00000172ce59d5a0] Opening 'S:\Mediabrowser\transcoding\transcoding-temp\0ea1665e3cdafef049ddc0594ebf69d14.ts' for writing
frame=  321 fps= 26 q=23.0 size=N/A time=00:00:13.97 bitrate=N/A speed=1.15x    
frame=  338 fps= 27 q=23.0 size=N/A time=00:00:14.65 bitrate=N/A speed=1.16x    
frame=  354 fps= 27 q=23.0 size=N/A time=00:00:15.25 bitrate=N/A speed=1.16x    
frame=  368 fps= 27 q=23.0 size=N/A time=00:00:15.89 bitrate=N/A speed=1.16x    
frame=  386 fps= 27 q=23.0 size=N/A time=00:00:16.66 bitrate=N/A speed=1.17x    
[segment @ 00000172ce59d5a0] Opening 'S:\Mediabrowser\transcoding\transcoding-temp\0ea1665e3cdafef049ddc0594ebf69d1.m3u8.tmp' for writing
[segment @ 00000172ce59d5a0] Opening 'S:\Mediabrowser\transcoding\transcoding-temp\0ea1665e3cdafef049ddc0594ebf69d15.ts' for writing
frame=  404 fps= 27 q=23.0 size=N/A time=00:00:17.43 bitrate=N/A speed=1.18x    
frame=  417 fps= 27 q=23.0 size=N/A time=00:00:17.97 bitrate=N/A speed=1.18x    
frame=  435 fps= 28 q=23.0 size=N/A time=00:00:18.68 bitrate=N/A speed=1.18x    
frame=  451 fps= 28 q=23.0 size=N/A time=00:00:19.38 bitrate=N/A speed=1.19x    
[segment @ 00000172ce59d5a0] Opening 'S:\Mediabrowser\transcoding\transcoding-temp\0ea1665e3cdafef049ddc0594ebf69d1.m3u8.tmp' for writing
[segment @ 00000172ce59d5a0] Opening 'S:\Mediabrowser\transcoding\transcoding-temp\0ea1665e3cdafef049ddc0594ebf69d16.ts' for writing
[segment @ 00000172ce59d5a0] Opening 'S:\Mediabrowser\transcoding\transcoding-temp\0ea1665e3cdafef049ddc0594ebf69d1.m3u8.tmp' for writing
frame=  462 fps= 27 q=-1.0 Lsize=N/A time=00:00:19.86 bitrate=N/A speed=1.18x    
video:17201kB audio:932kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 00000172ce14db00] frame I:8     Avg QP:11.12  size:218077
[libx264 @ 00000172ce14db00] frame P:138   Avg QP:14.06  size: 68843
[libx264 @ 00000172ce14db00] frame B:316   Avg QP:17.10  size: 20153
[libx264 @ 00000172ce14db00] consecutive B-frames:  6.3%  4.8%  8.4% 80.5%
[libx264 @ 00000172ce14db00] mb I  I16..4: 77.9%  0.0% 22.1%
[libx264 @ 00000172ce14db00] mb P  I16..4: 33.1%  0.0%  0.0%  P16..4: 23.1%  0.0%  0.0%  0.0%  0.0%    skip:43.8%
[libx264 @ 00000172ce14db00] mb B  I16..4:  4.1%  0.0%  0.0%  B16..8: 16.1%  0.0%  0.0%  direct: 5.5%  skip:74.4%  L0:40.6% L1:50.8% BI: 8.7%
Link to comment
Share on other sites

Guest asrequested

Well, MKV isn't supported, and are you trying to use subtitles?

[matroska,webm @ 00000172cc898360] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size

You said when you remuxed to MP4 (as you tested, earlier), then play it with the AC3 track, what happens?

Link to comment
Share on other sites

I understand that MKV is not supported however Emby has 3 modes Direct Play (nothing done, plays direct from the NAS), Direct Stream (remux based on invalid container as in this case and what I am aiming for or invalid audio codec) and Transcode (CPU HOG)

 

Subtitle was not selected (none)

 

When I remux to M4V HDR works, AC3 works and it's Direct Play, in my MKV example everything that was selected is supported by the device however for some reason Emby feels it necessary to transcode the audio and video as well as the container, however only the container should need to be changed thus falling under direct streaming vs transcode. 

Edited by mbnwa
Link to comment
Share on other sites

Guest asrequested

Luke would have to confirm this, but (and I for get the correct terminology) in some instances, when a change needs to made (remux etc), the streams aren't transferable through the server, and are then transcoded. In your case, the container isn't supported and probably is forcing a full transcode. As you see by your own remux, it will direct play (with the AC3 track, selected)

Link to comment
Share on other sites

Funny your thread https://emby.media/community/index.php?/topic/48799-direct-play-vs-direct-streaming-vs-transcoding/ states basically what I am doing base on the selected audio / video being supported by the device in question

 

Under the Direct Stream section, maybe Luke will chime in and advise why a full transcode is being forced and not just a simple remux into the new container.

  • The container isn't supported by the player (MKV, AVI, MP4 etc). In this case, the server will demux the file and remux it in a supported container, with no change to the audio or video.
Link to comment
Share on other sites

If you look at my 2nd post the remuxed file is still in main 10 and it plays with direct play and HDR as expected the only difference is the addition of the "codec tag" that is missing from the MKV.

 

In addition the Apple TV 4K link that was posted states it supports Main 10 https://www.apple.co...le-tv-4k/specs/

Edited by mbnwa
Link to comment
Share on other sites

the video codec tag is not hvc1 and that is the reason for the full transcode.

 

 

 

@@ebr can further elaborate

Link to comment
Share on other sites

Luke, the M4V has the codec tag of HVC1 (as seen by my screen shots) and does not transcode the MKV does not have the codec tag and transcodes vs direct stream, both files has the codec listed as "HEVC" this can all be seen in my screenshots on the 2nd post.

Link to comment
Share on other sites

right, the video codec tag is not hvc1 and that is the reason for the full transcode.

 

@ebr can further elaborate
Link to comment
Share on other sites

MakeMKV does not put codec tag's in the MKV container as far as I can tell, so if the MKV needs to have codec tag's added hvc1, ac-3, ect how can that be added to the MKV?

Link to comment
Share on other sites

Guest asrequested

MakeMKV does not put codec tag's in the MKV container as far as I can tell, so if the MKV needs to have codec tag's added hvc1, ac-3, ect how can that be added to the MKV?

 

I'm thinking that you can't. Apple does stupid things. I have a feeling that apple tv requires that tag, and can only be applied in the containers that apple, supports. I'm curious to see what @@ebr says. This interests me.

Link to comment
Share on other sites

We figured that over time apple would improve hevc playback so if there have been any tvos updates recently that might affect it then we can re-evaluate to see if the condition is still needed.

 

but @@ebr can elaborate.

Link to comment
Share on other sites

andyblac644

another reason to use infuse pro 5 as the external player  :D.

Edited by andyblac644
Link to comment
Share on other sites

Yes, it is the absence of the codec tag that is the problem.

 

The issue here is we have to err on the conservative side of transcoding when we don't know that codec tag.  Because Apple actually only supports one flavor of HEVC.  So, if your video happened to be the other flavor, it simply would not play.

Link to comment
Share on other sites

I have not found a way to be able to add the codec tag into the MKV MakeMKV does not do it, MKVToolNix does not add the proper tag via it's hex editor it does allow a codec name tag to be added but Emby does not see that as Codec tag or any tag at all for that matter. What suggestion do you have to be able to add the Codec tag to the MKV so transcoding is not required?

Edited by mbnwa
Link to comment
Share on other sites

  • 1 month later...
Zodler

Please help. I have the same problem. If I play an MKV HEVC HDR, the TV does not switch to HDR and the server is saying it is transcoding. If I play other MKV AVC it says Direct playing.

 

If I use Infuse or MrMC emby client, they play the file correctly with TV switching to HDR and Emby server saying Direct Playing.

 

I hope you can correct this in Emby Apple TV app.

 

In the meantime I tried to mux the MKV to MP4 with no success. The resulted file is unplayable even on PC. The program I use it uses MP4BOX, what should I use to mux MKV HDR to MP4?

Link to comment
Share on other sites

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...