Jump to content

Emby gets resoltion on detail page wrong


raven-au

Recommended Posts

raven-au

Hi,

 

I have noticed that Emby gets the resolution wrong on the detail page of many shows.

It like somewhere along the line there's a "if the show isn't something I've checked for

then it's NTSC SD".

 

For example:

General
Unique ID                                : 246328326078385111388339663018218779565 (0xB9511C24AB1889AF9E95B537B43473AD)
Complete name                            : /share/gandalf/media/TV/SciFi/Star Trek The Next Generation/Season 1/Star Trek The Next Generation.S01E03.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 1.12 GiB
Duration                                 : 45 min 33 s
Overall bit rate                         : 3 516 kb/s
Encoded date                             : UTC 2017-01-15 01:13:42
Writing application                      : mkvmerge v9.6.0 ('Slave To Your Mind') 64bit
Writing library                          : libebml v1.3.4 + libmatroska v1.4.5 / Lavf55.12.0

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, RefFrames               : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 45 min 33 s
Bit rate                                 : 1 541 kb/s
Width                                    : 960 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 4:3
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.093
Stream size                              : 502 MiB (44%)
Writing library                          : x264 core 142 r2431 ac76440
Encoding settings                        : cabac=1 / ref=3 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=9 / lookahead_threads=1 / 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=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=22.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio #1
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 45 min 33 s
Bit rate mode                            : Constant
Bit rate                                 : 448 kb/s
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 146 MiB (13%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No

Audio #2
ID                                       : 3
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Mode                                     : 16
Format settings, Endianness              : Big
Codec ID                                 : A_DTS
Duration                                 : 45 min 33 s
Bit rate mode                            : Constant
Bit rate                                 : 1 509 kb/s
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 93.750 FPS (512 SPF)
Bit depth                                : 24 bits
Compression mode                         : Lossy
Delay relative to video                  : 83 ms
Stream size                              : 492 MiB (43%)
Title                                    : Surround
Language                                 : English
Default                                  : No
Forced                                   : No

Text
ID                                       : 4
Format                                   : PGS
Muxing mode                              : zlib
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Duration                                 : 44 min 24 s
Bit rate                                 : 15.4 kb/s
Count of elements                        : 1272
Stream size                              : 4.88 MiB (0%)
Language                                 : English
Default                                  : No
Forced                                   : No

Menu
00:00:00.000                             : :Chapter 1
00:05:51.810                             : :Chapter 2
00:13:15.670                             : :Chapter 3
00:21:55.397                             : :Chapter 4
00:29:01.448                             : :Chapter 5
00:37:11.187                             : :Chapter 6
00:44:43.681                             : :Chapter 7

is clearly a 720p show that is 4:3 aspect ratio but shows as 480p in the web interface and Emby Theater.

 

And this one:

General
Unique ID                                : 262472770380956180306955726615577658691 (0xC5766AB3D14183259707DF5BC9EC8543)
Complete name                            : /share/gandalf/media/TV/SciFi/Doctor Who/Season 8/Doctor Who 8x10 - The Mind of Evil (6).mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 232 MiB
Duration                                 : 25 min 6 s
Overall bit rate                         : 1 292 kb/s
Movie name                               : The Mind of Evil (6)
Writing application                      : HandBrake rev0
Writing library                          : libmkv 0.6.5

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, RefFrames               : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 25 min 6 s
Bit rate                                 : 1 074 kb/s
Width                                    : 706 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 4:3
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.106
Stream size                              : 193 MiB (83%)
Writing library                          : x264 core 129
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00: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=9 / lookahead_threads=1 / 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=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=4 / qpmax=69 / qpstep=4 / vbv_maxrate=62500 / vbv_bufsize=78125 / crf_max=0.0 / nal_hrd=none / ip_ratio=1.40 / aq=1:1.00
Language                                 : English
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.601 PAL
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.601

Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 25 min 6 s
Bit rate mode                            : Constant
Bit rate                                 : 192 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 34.5 MiB (15%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No

Text
ID                                       : 3
Format                                   : VobSub
Codec ID                                 : S_VOBSUB
Codec ID/Info                            : Picture based subtitle format used on DVDs
Language                                 : English
Default                                  : No
Forced                                   : No

Menu
00:00:00.000                             : Chapter 1
00:05:10.480                             : Chapter 2
00:10:19.400                             : Chapter 3
00:15:23.800                             : Chapter 4
00:21:00.720                             : Chapter 5
00:23:46.200                             : Chapter 6

is clearly a 576p 4:3 show but is listed as a 480p show.

Edited by raven-au
Link to comment
Share on other sites

raven-au

Thats what ffmpeg tells us.

 

What ffmpeg (or ffprobe) command line is used and how does the server extract the information.

Link to comment
Share on other sites

raven-au

Thats what ffmpeg tells us.

 

 

Or perhaps ffprobe is broken on the QNAP qpkg (the current testing build) I have installed.

 

/share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffprobe Doctor\ Who\ 8x08\ -\ The\ Mind\ of\ Evil\ \(4\).mkv                          

/share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffprobe: error while loading shared libraries: liblibsmb-samba4.so: cannot open shared object file: No such file or directory

[/share/media/TV/SciFi/Doctor Who/Season 8] #

 

I have done "export LD_LIBRARY_PATH=/share/CACHEDEV1_DATA/.qpkg/EmbyServer/lib:/share/CACHEDEV1_DATA/.qpkg/EmbyServer" before trying to execute this.

I included "/share/CACHEDEV1_DATA/.qpkg/EmbyServer" in it just in case.

 

ffmpeg works ok.

Looks like something is wrong with the library search path of ffprobe.

 

Ian

Edited by raven-au
Link to comment
Share on other sites

raven-au

Or perhaps ffprobe is broken on the QNAP qpkg (the current testing build) I have installed.

 

/share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffprobe Doctor\ Who\ 8x08\ -\ The\ Mind\ of\ Evil\ \(4\).mkv                          

/share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffprobe: error while loading shared libraries: liblibsmb-samba4.so: cannot open shared object file: No such file or directory

[/share/media/TV/SciFi/Doctor Who/Season 8] #

 

I have done "export LD_LIBRARY_PATH=/share/CACHEDEV1_DATA/.qpkg/EmbyServer/lib:/share/CACHEDEV1_DATA/.qpkg/EmbyServer" before trying to execute this.

I included "/share/CACHEDEV1_DATA/.qpkg/EmbyServer" in it just in case.

 

ffmpeg works ok.

Looks like something is wrong with the library search path of ffprobe.

 

Oh, my bad, I needed to add /share/CACHEDEV1_DATA/.qpkg/EmbyServer/lib/samba to LD_LIBRARY_PATH.

 

ffprobe returns:

[/share/media/TV/SciFi/Doctor Who/Season 8] # /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffprobe Doctor\ Who\ 8x09\ -\ The\ Mind\ of\ Evil\ \(5\).mkv
ffprobe version 3.4 Copyright (c) 2007-2017 the FFmpeg developers
  built with gcc 6.3.0 (crosstool-NG crosstool-ng-1.23.0)
  configuration: --enable-cross-compile --cross-prefix=x86_64-pc-linux-gnu- --arch=x86_64 --target-os=linux --prefix=/srv/buildbot/x64/ffmpeg-x64/staging --pkg-config=pkg-config --disable-static --disable-cuda --disable-cuvid --disable-iconv --disable-nvenc --disable-doc --disable-ffplay --disable-ffserver --disable-xlib --enable-shared --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libsmbclient --enable-libtheora --enable-libvorbis --enable-libwebp --enable-libx264 --enable-libzvbi --enable-vaapi --enable-version3 --extra-libs='-laddns-samba4 -lasn1util-samba4 -lauthkrb5-samba4 -lCHARSET3-samba4 -lcliauth-samba4 -lcli-cldap-samba4 -lcli-ldap-common-samba4 -lcli-nbt-samba4 -lcli-smb-common-samba4 -lcom_err -lcommon-auth-samba4 -ldbwrap-samba4 -ldcerpc-binding -ldcerpc-samba-samba4 -ldl -ldrm -lexpat -lflag-mapping-samba4 -lfreetype -lfribidi -lfontconfig -lgenrand-samba4 -lgensec-samba4 -lgmp -lgse-samba4 -lgssapi_krb5 -lhogweed -llibcli-lsa3-samba4 -llibsmb-samba4 -linterfaces-samba4 -liov-buf-samba4 -lk5crypto -lkrb5 -lkrb5samba-samba4 -lkrb5support -lldb -lldbsamba-samba4 -llttng-ust -llttng-ust-tracepoint -lmessages-dgm-samba4 -lmessages-util-samba4 -lmsghdr-samba4 -lmsrpc3-samba4 -lndr -lndr-krb5pac -lndr-nbt -lndr-samba-samba4 -lndr-standard -lnettle -lpng -lreplace-samba4 -lsamba-cluster-support-samba4 -lsamba-credentials -lsamba-debug-samba4 -lsamba-errors -lsamba-hostconfig -lsamba-modules-samba4 -lsamba-security-samba4 -lsamba-sockets-samba4 -lsamba-util -lsamba3-util-samba4 -lsamdb -lsamdb-common-samba4 -lsecrets3-samba4 -lserver-id-db-samba4 -lserver-role-samba4 -lsmbconf -lsmbd-shim-samba4 -lsmb-transport-samba4 -lsocket-blocking-samba4 -lsys-rw-samba4 -ltalloc -ltalloc-report-samba4 -ltdb -ltdb-wrap-samba4 -ltevent -ltevent-util -ltime-basic-samba4 -lurcu-bp -lurcu-cds -lurcu-common -lutil-cmdline-samba4 -lutil-reg-samba4 -lutil-setid-samba4 -lutil-tdb-samba4 -lwbclient -lwinbind-client-samba4'
  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
Input #0, matroska,webm, from 'Doctor Who 8x09 - The Mind of Evil (5).mkv':
  Metadata:
    encoder         : libmkv 0.6.5
    TITLE           : The Mind of Evil (5)
  Duration: 00:23:37.00, start: 0.000000, bitrate: 1382 kb/s
    Chapter #0:0: start 0.000000, end 318.200000
    Metadata:
      title           : Chapter 1
    Chapter #0:1: start 318.200000, end 627.040000
    Metadata:
      title           : Chapter 2
    Chapter #0:2: start 627.040000, end 908.640000
    Metadata:
      title           : Chapter 3
    Chapter #0:3: start 908.640000, end 1149.920000
    Metadata:
      title           : Chapter 4
    Chapter #0:4: start 1149.920000, end 1360.880000
    Metadata:
      title           : Chapter 5
    Chapter #0:5: start 1360.880000, end 1417.000000
    Metadata:
      title           : Chapter 6
    Stream #0:0(eng): Video: h264 (High), yuv420p(tv, smpte170m/bt470bg/bt709, progressive), 710x576 [SAR 16:15 DAR 71:54], SAR 145:136 DAR 51475:39168, 25 fps, 25 tbr, 1k tbn, 180k tbc (default)
    Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
    Stream #0:2(eng): Subtitle: dvd_subtitle, 720x576

Which is clearly not 480p.

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