Jump to content

Nvidia Shield transcoding high 10 profile videos


alfablac

Recommended Posts

alfablac

I'm trying to understand why this file won't direct play on my Shield (2017 Pro)

I didn't easily found its manual stating which mkv combinations it supports.

 

 

General
Unique ID                                : 196482277684736776797688851120112855870 (0x93D11C36F2C2A5B39B9B4502A4C8EB3E)
Complete name                            : Made in Abyss - S01E01 - The City of the Great Pit [Bluray-1080p FLAC x264-FLAC].mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 513 MiB
Duration                                 : 23 min 41 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 3 025 kb/s
Encoded date                             : UTC 2017-11-01 18:04:08
Writing application                      : mkvmerge v7.7.0 ('Six Voices') 64bit built on Feb 28 2015 23:39:33
Writing library                          : libebml v1.3.1 + libmatroska v1.4.2
Attachments                              : CANDARA_0.TTF / CANDARAI_0.TTF / CANDARAB_2.TTF / CANDARAZ_2.TTF

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High 10@L5
Format settings                          : CABAC / 6 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 6 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 23 min 41 s
Bit rate                                 : 2 331 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.047
Stream size                              : 395 MiB (77%)
Writing library                          : x264 core 152 r2851 ba24899
Encoding settings                        : cabac=1 / ref=6 / deblock=1:1:1 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=5 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=1:0.60
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Codec ID                                 : A_FLAC
Duration                                 : 23 min 41 s
Bit rate mode                            : Variable
Bit rate                                 : 687 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 10.417 FPS (4608 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossless
Stream size                              : 117 MiB (23%)
Writing library                          : Lavf57.83.100
Language                                 : Japanese
Default                                  : Yes
Forced                                   : No

Text
ID                                       : 3
Format                                   : ASS
Codec ID                                 : S_TEXT/ASS
Codec ID/Info                            : Advanced Sub Station Alpha
Duration                                 : 21 min 51 s
Bit rate                                 : 107 b/s
Count of elements                        : 313
Compression mode                         : Lossless
Stream size                              : 17.3 KiB (0%)
Language                                 : Portuguese
Default                                  : Yes
Forced                                   : No

Menu
00:00:00.000                             : en:Prólogo.
00:06:47.365                             : en:Abertura: "Underground River", Kevin Penkin.
00:08:18.957                             : en:Episódio 01: A Cidade do Grande Fosso - Parte A.
00:13:29.976                             : en:Episódio 01: A Cidade do Grande Fosso - Parte B.
00:22:00.236                             : en:Encerramento: "Deep in Abyss", Miyu Tomita & Mariya Ise.
00:23:30.951                             : en:Prévia do Próximo Episódio: Festival da Ressurreição.
 

The reason stated is unsupported profile.

IIRC I was able to play high 10 profile files before, unless I'm wrong.

 

Logs say:

 

2020-03-29 23:11:28.879
Emby Server version: 4.4.0.40
Operating system: Unix 4.14.132.0
Command Line: EmbyServer.dll -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe

App: AndroidTv 1.7.92g
SHIELD


{"Protocol":"File","Id":"9eebb4f7a22d606bf59486ff4383bc2c","Path":"Made in Abyss - S01E01 - The City of the Great Pit [Bluray-1080p FLAC x264-FLAC].mkv","Type":"Default","Container":"mkv","Size":537738635,"Name":"S01E01 - The City of the Great Pit [Bluray-1080p FLAC x264-FLAC]","IsRemote":false,"RunTimeTicks":14219650000,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"h264","TimeBase":"1/1000","CodecTimeBase":"1001/48000","VideoRange":"SDR","DisplayTitle":"1080p H264","NalLengthSize":"4","IsInterlaced":false,"IsAVC":true,"BitRate":3025326,"BitDepth":10,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":1080,"Width":1920,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"High 10","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p10le","Level":50,"IsAnamorphic":false},{"Codec":"flac","Language":"jpn","TimeBase":"1/1000","CodecTimeBase":"1/48000","DisplayTitle":"Japanese FLAC stereo (Default)","DisplayLanguage":"Japanese","IsInterlaced":false,"ChannelLayout":"stereo","BitDepth":16,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File"},{"Codec":"ass","Language":"por","TimeBase":"1/1000","CodecTimeBase":"0/1","DisplayTitle":"Portuguese (Default ASS)","DisplayLanguage":"Portuguese","IsInterlaced":false,"IsDefault":true,"IsForced":false,"Type":"Subtitle","Index":2,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File"},{"Codec":"srt","Language":"ger","DisplayTitle":"German (SRT)","DisplayLanguage":"German","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":3,"IsExternal":true,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"Made in Abyss - S01E01 - The City of the Great Pit [Bluray-1080p FLAC x264-FLAC].de.srt","Protocol":"File"},{"Codec":"srt","Language":"eng","DisplayTitle":"English (SRT)","DisplayLanguage":"English","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":4,"IsExternal":true,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"Made in Abyss - S01E01 - The City of the Great Pit [Bluray-1080p FLAC x264-FLAC].en.srt","Protocol":"File"}],"Formats":[],"Bitrate":3025326,"RequiredHttpHeaders":{},"ReadAtNativeFramerate":false}

>>>>>>  User policy for 
        EnablePlaybackRemuxing: True
        EnableVideoPlaybackTranscoding: True
        EnableAudioPlaybackTranscoding: True

>>>>>>  Affected codecs
Encoder libx264 Software Encoder
        Profiles: Baseline Profile (Level 6.2), Main Profile (Level 6.2), High Profile (Level 6.2), High 10 Profile (Level 6.2), High 4:2:2 Profile (Level 6.2), High 4:4:4 Predictive Profile (Level 6.2)


>>>>>>  FindVideoEncoder - Media: h264, UseHardwareCodecs: True, Mode: Automatic
Info    Checking: 'libx264 Software Encoder'
Info    Check successful - selecting 'libx264 Software Encoder'

>>>>>>  FindVideoDecoder - MediaType: h264, Mode: Automatic
Info    Checking: 'Automatic software decoder'
Info    Check successful - selecting 'Automatic software decoder'

>>>>>>  Processing Plan
Info    Name                                        CanDoInHardware      WillDoInHardware     Reason                                  
Info    Automatic software decoder               >> False                False                Software Codec                           
Info    VideoInput                               >> False                False                Not a hardware decoder                   
Info    ColorConversion                          >> False                False                                                         
Info    VideoOutput                              >> False                False                Not a hardware encoder                   
Info    libx264 Software Encoder                 >> False                False                Software Codec                           

>>>>>>  Projected Processing Formats
Info    Previous                HW-Context   Format       SW-Format       Next
Info    h264                 >> -            yuv420p10    yuv420p10    >> format
Info    format               >> -            yuv420p      yuv420p      >> 

>>>>>  Legacy Command

/usr/bin/ffmpeg -f matroska -i file:"Made in Abyss - S01E01 - The City of the Great Pit [Bluray-1080p FLAC x264-FLAC].mkv" -threads 4 -map 0:0 -map 0:1 -sn -c:v:0 libx264 -pix_fmt yuv420p  -maxrate 3025326 -bufsize 6050652 -preset veryfast -profile:v:0 high -level:v:0 4.1 -crf 23 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -g:v:0 72 -keyint_min:v:0 72 -sc_threshold:v:0 0  -copyts -vsync -1 -codec:a:0 aac -metadata:s:a:0 language=jpn -disposition:a:0 default -ac:a:0 2 -ab:a:0 192000  -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 "files/transcoding-temp/554171.m3u8" -y "files/transcoding-temp/554171_%d.ts"

>>>>>  Actual Command

/usr/bin/ffmpeg -y -copyts -start_at_zero -f matroska,webm -c:v:0 h264 -i "Made in Abyss - S01E01 - The City of the Great Pit [Bluray-1080p FLAC x264-FLAC].mkv" -filter_complex "[0:0]format@f1=pix_fmts=yuv420p[f1_out0]" -map [f1_out0] -map 0:1 -sn -c:v:0 libx264 -g:v:0 72 -maxrate:v:0 3025326 -bufsize:v:0 6050652 -sc_threshold:v:0 0 -keyint_min:v:0 72 -pix_fmt:v:0 yuv420p -preset:v:0 veryfast -profile:v:0 high -level:v:0 4.0 -x264opts:v:0 "subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none" -crf:v:0 23 -c:a:0 aac -ab:a:0 192000 -ac:a:0 2 -metadata:s:a:0 language=jpn -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list files/transcoding-temp/554171.m3u8 -segment_list_type m3u8 -segment_time 3 -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 "files/transcoding-temp/554171_%d.ts"

Any help would be appreciated. Edited by alfablac
Link to comment
Share on other sites

Jdiesel

I believe the Shield TVs decoder only supports Hi10 with the h265 codec and not h264.

 

Edit: I might be mistaken. Looks like Hi10p is software decode only.

Edited by Jdiesel
Link to comment
Share on other sites

alfablac

I believe the Shield TVs decoder only supports Hi10 with the h265 codec and not h264.

Edit: I might be mistaken. Looks like Hi10p is software decode only.

Weird part is all the other Android devices I tested direct played it even with the ASS subtitle on. But those use mpv and not Exoplayer so it might be requiring the Shield to hw decode it which it may not support.

 

Wish Emby had a more accessible option to use the external player in these cases. MX Player seems to play it fine, but I have to go through many menus to activate it, and it switches universally. In other words I wish there was a temp option to use the external player.

Edited by alfablac
Link to comment
Share on other sites

Weird part is all the other Android devices I tested direct played it even with the ASS subtitle on. But those use mpv and not Exoplayer so it might be requiring the Shield to hw decode it which it may not support.

 

Hi.  You realize that is doing exactly the same thing - it is just that MPV has ffmpeg inside of it so it is doing the conversion (transcode) without you seeing it.

Link to comment
Share on other sites

alfablac

Hi.  You realize that is doing exactly the same thing - it is just that MPV has ffmpeg inside of it so it is doing the conversion (transcode) without you seeing it.

Wow didn't know that this black magic existed.

So, I guess the h264 hi 10 profile with 5.+ level are pretty much abandoned by all devices. I was able to play with Kodi though.

 

Anyway, an easier "play with external player" button would be great. Lol

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