Jellyfin always transcodes


#1

Hello!

Jellyfin works like a charm for me, there is just one issue I have:
No matter which file i am playing, it always transcodes the video.

I tried the web player from chrome, firefox, edge, and on my phone (OnePlus 5) from chrome and jellyfin app. It defaults to a very high bitrate on auto which is too much for my internet connection. I tried using auto, using any other method makes it convert to the specified option. e.g. 1080p 60Mbits gives me 60Mbits 1080p, despite the original video having a much lower bitrate.

The files are normal h264 mkv videos. It might just be some option I changed. I checked Playpack -> Streaming for any limits but there weren’t any.

That’s what it looks like (on auto)
image

Is there another setting I can check?


#2

On the server dashboard what does it display as the transcode reason?


#3

I’m willing to bet it’s the AC3. I think only Safari plays it back right now…


#4

On the dashboard it just states for example “Transcoding - 41.1 Mbps ts h264 mp3”

If the video would work, but the file has an unplayable audio track that requires transcoding, is the video transcoded as well?
Do you know which other formats I could try? Maybe I can find a file and test it.

Thank you for your rapid responses!


#5

For most platform coverage you should stick to h264 + aac, though h264 is kinda old thus not very space efficient, but any other iron out there could play it.

The fact that it transcodes video (if it really does) is a bug, it should only be transcoding audio and copying video stream as-is. Though looking at your original media I wonder what h264 100 stands for, I never saw that 100 there. Maybe it’s some level 10.0, and if that’s the case it is the reason for your videos being transcoded.

If you could post an output of mediainfo your_media_file.mkv here it should help diagnosing the issue.


#6

Sometimes, it does display a sensible reason, like media exceeds bitrate, other times it does not. Playing a HEVC file does not result in something like “video format not supported”, it just transcodes.

I found a video file with an AAC Stream, it still transcodes. This is the media info:

Media Info 1

General
Unique ID : 326024187846803051960844377235406023831 (0xF545F97F2E2DE8C9461E0CD1B8AD6C97)
Complete name : big_buck_bunny_720p_30mb.mkv
Format : Matroska
Format version : Version 2
File size : 30.1 MiB
Duration : 2 min 50 s
Overall bit rate : 1 479 kb/s
Writing application : Lavf53.24.2
Writing library : Lavf53.24.2

Video
ID : 1
Format : MPEG-4 Visual
Format profile : Simple@L1
Format settings, BVOP : No
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Codec ID : V_MPEG4/ISO/ASP
Codec ID/Info : Advanced Simple Profile
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Writing library : Lavc54.92.100
Default : Yes
Forced : No

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC-2
Duration : 2 min 50 s
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Delay relative to video : 5 ms
Default : Yes
Forced : No

Also, this is the media info where I captured the statistics in the opening thread:

Media Info 2

General
Format : Matroska
Format version : Version 4 / Version 2
File size : 846 MiB
Duration : 21 min 36 s
Overall bit rate : 5 476 kb/s
Encoded date : UTC 2015-09-24 08:22:00
Writing application : mkvmerge v8.4.0 (‘A better way to fly’) 64bit
Writing library : libebml v1.3.1 + libmatroska v1.4.2
Cover : Yes
Attachments : small_cover.jpg / cover.jpg / cover_land.jpg / small_cover_land.jpg

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 21 min 36 s
Bit rate : 5 090 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (23976/1000) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.102
Stream size : 787 MiB (93%)
Language : English
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Codec ID : A_AC3
Duration : 21 min 36 s
Bit rate mode : Constant
Bit rate : 384 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 : 59.3 MiB (7%)
Language : English
Service kind : Complete Main
Default : Yes
Forced : No

Text
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 21 min 26 s
Bit rate : 129 b/s
Count of elements : 607
Stream size : 20.4 KiB (0%)
Language : English
Default : No
Forced : No

Additionally, I tried the following files showing the same behavior:

Media Info 3

General
Format : Matroska
Format version : Version 4 / Version 2
File size : 5.46 GiB
Duration : 1 h 8 min
Overall bit rate : 11.5 Mb/s
Encoded date : UTC 2010-02-22 21:41:29
Writing application : no_variable_data
Writing library : no_variable_data

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, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 h 8 min
Bit rate : 9 977 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 : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.201
Stream size : 4.64 GiB (85%)
Writing library : x264 core 152 r2851 ba24899
Encoding settings : cabac=1 / ref=4 / deblock=1:-3:-3 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=24 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=9977 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=3:0.80
Default : Yes
Forced : No
Statistics Tags Issue : no_variable_data 1970-01-01 00:00:00 / no_variable_data 2010-02-22 21:41:29
FromStats_BitRate : 9974632
FromStats_Duration : 01:08:06.333000000
FromStats_FrameCount : 97974
FromStats_StreamSize : 5094958947

Audio
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Codec ID : A_DTS
Duration : 1 h 8 min
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
Stream size : 735 MiB (13%)
Language : English
Default : Yes
Forced : No
Statistics Tags Issue : no_variable_data 1970-01-01 00:00:00 / no_variable_data 2010-02-22 21:41:29
FromStats_BitRate : 1509000
FromStats_Duration : 01:08:06.336000000
FromStats_FrameCount : 383094
FromStats_StreamSize : 770785128

Text #1
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : English
Default : No
Forced : No
Statistics Tags Issue : no_variable_data 1970-01-01 00:00:00 / no_variable_data 2010-02-22 21:41:29
FromStats_BitRate : 51
FromStats_Duration : 01:04:55.683000000
FromStats_FrameCount : 746
FromStats_StreamSize : 24872

Text #2
ID : 4
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Title : SDH
Language : English
Default : No
Forced : No
Statistics Tags Issue : no_variable_data 1970-01-01 00:00:00 / no_variable_data 2010-02-22 21:41:29
FromStats_BitRate : 53
FromStats_Duration : 01:08:01.244000000
FromStats_FrameCount : 829
FromStats_StreamSize : 27058

Media Info 4

General
Format : Matroska
Format version : Version 4 / Version 2
File size : 5.46 GiB
Duration : 1 h 8 min
Overall bit rate : 11.5 Mb/s
Encoded date : UTC 2010-02-22 21:41:29
Writing application : no_variable_data
Writing library : no_variable_data

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, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 h 8 min
Bit rate : 9 977 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 : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.201
Stream size : 4.64 GiB (85%)
Writing library : x264 core 152 r2851 ba24899
Encoding settings : cabac=1 / ref=4 / deblock=1:-3:-3 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=24 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=9977 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=3:0.80
Default : Yes
Forced : No
Statistics Tags Issue : no_variable_data 1970-01-01 00:00:00 / no_variable_data 2010-02-22 21:41:29
FromStats_BitRate : 9974632
FromStats_Duration : 01:08:06.333000000
FromStats_FrameCount : 97974
FromStats_StreamSize : 5094958947

Audio
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Codec ID : A_DTS
Duration : 1 h 8 min
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
Stream size : 735 MiB (13%)
Language : English
Default : Yes
Forced : No
Statistics Tags Issue : no_variable_data 1970-01-01 00:00:00 / no_variable_data 2010-02-22 21:41:29
FromStats_BitRate : 1509000
FromStats_Duration : 01:08:06.336000000
FromStats_FrameCount : 383094
FromStats_StreamSize : 770785128

Media Info 5

General
Format : Matroska
Format version : Version 4 / Version 2
File size : 15.5 GiB
Duration : 2 h 15 min
Overall bit rate mode : Variable
Overall bit rate : 16.4 Mb/s
Encoded date : UTC 2019-01-24 01:01:41
Writing application : mkvmerge v30.1.0 (‘Forever And More’) 64-bit
Writing library : libebml v1.3.6 + libmatroska v1.4.9
Cover : Yes
Attachments : small_cover.jpg / small_cover_land.jpg / cover.jpg / cover_land.jpg

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 5 Ref Frames
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 2 h 15 min
Bit rate : 12.0 Mb/s
Width : 1 920 pixels
Height : 800 pixels
Display aspect ratio : 2.40:1
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.326
Stream size : 11.4 GiB (73%)
Writing library : x264 core 142 r2431+42 c69a006 tMod [8-bit@all X86_64]
Encoding settings : cabac=1 / ref=5 / deblock=1:-3:-3 / analyse=0x3:0x113 / me=umh / subme=11 / psy=1 / fade_compensate=0.00 / psy_rd=1.05:1.05 / mixed_ref=1 / me_range=36 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-4 / threads=16 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / fgo=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=150 / rc=2pass / mbtree=0 / bitrate=12000 / ratetol=1.0 / qcomp=0.70 / qpmin=0:0:0 / qpmax=69:69:69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=40000 / vbv_bufsize=30000 / nal_hrd=none / filler=0 / ip_ratio=1.30 / pb_ratio=1.20 / aq=1:0.68 / aq-sensitivity=10.00 / aq-factor=1.00:1.00:1.00 / aq2=0 / aq3=0
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio #1
ID : 2
Format : TrueHD
Format profile : TrueHD+Atmos / TrueHD
Codec ID : A_TRUEHD
Duration : 2 h 15 min
Bit rate mode : Variable
Bit rate : 3 597 kb/s
Maximum bit rate : 5 472 kb/s
Channel(s) : Object Based / 8 channels
Channel positions : Object Based / Front: L C R, Side: L R, Back: L R, LFE
Sampling rate : / 48.0 kHz
Frame rate : 1 200.000 FPS (40 SPF)
Compression mode : Lossless
Stream size : 3.41 GiB (22%)
Language : English
Default : Yes
Forced : No

Audio #2
ID : 3
Format : AC-3
Format/Info : Audio Coding 3
Codec ID : A_AC3
Duration : 2 h 15 min
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 : 435 MiB (3%)
Language : English
Service kind : Complete Main
Default : No
Forced : No

Text #1
ID : 4
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 2 h 14 min
Bit rate : 65 b/s
Count of elements : 1922
Stream size : 64.3 KiB (0%)
Title : English-SRT
Language : English
Default : Yes
Forced : No

Not sure if it matters,

but here are my transcode options

Jellyfin is running on the latest docker “master”.

Thank you again for your help :slight_smile:


#7

So any AC-3/Dolby or DTS is an instant transcode for the audio.

I’ve confirmed that pretty much only Edge and Safari have support for Dolby AC-3. No one supports DTS out of the box at this time.

Regarding the AAC content, I think it’s because it’s surround, not stereo. I unfortunately don’t have any more direct answers at the moment.


#8

So as far as I understood, it’s a bug that it doesn’t at least just transcode audio and copy video. Is there a way I could provide more information for debugging?


#9

Would be of much help if you can provide a piece of that video.
Could be as simple as ffmpeg -i yourvideo.mkv -map 0 -c copy -t 5 sample.mkv, that should take first 5 seconds.

Please check that your issue is reproduced on that sample before throwing it our way pls :slight_smile: