Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HEVC playback on Android TV skips stutters #4279

Open
pablomarusich opened this issue Dec 10, 2024 · 1 comment
Open

HEVC playback on Android TV skips stutters #4279

pablomarusich opened this issue Dec 10, 2024 · 1 comment
Labels
bug Something isn't working playback Issue related to media playback

Comments

@pablomarusich
Copy link

Describe the bug

Client works fine with MKV, MP4 (H264) files, but stutters (frame skips, audio is smooth) when playing HEVC.

  1. Through web client in server PC, movie plays back fine.
  2. Through Android phone needed to select external player, used samsung video player, works fine like that (internal player and web player have same issue as Android TV).
  3. Android TV external players (MX, MPV, VLC) all present the same issue.
  4. Forced direct playback (disabling for user in control panel) does no difference (eith external or web player).
  5. Enabled hardware acceleration (checked it´s doing something on server, by increased activity on GPU while playing on client, it´s a 3060) still presents issue.
  6. Tried using Android mobile APK to no avail either.
  7. Converted file using Handbrake to H264, plays normally on Android TV.

According to the codec compatibility table HEVC, on an MP4 such as this, on Android TV (0.18) should work out the gate, shouldn´t it? I think I´m misunderstanding something here with the codecs...

https://jellyfin.org/docs/general/clients/codec-support/

Logs

This log is from playing directly on app player on Android TV

{"Protocol":0,"Id":"b2246fcf7deb2afdca5d4be580a86f9e","Path":"H:\Media\Movies\ALL Best Picture Nominees 1080p BluRay Part 1 of 3 1990-2004 75 Movies jZQ\1990\Goodfellas (1990) IMDB 8.7\Goodfellas.1990.REMASTERED.1080p.BluRay.x265-RARBG.mp4","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mov,mp4,m4a,3gp,3g2,mj2","Size":2431962944,"Name":"Goodfellas.1990.REMASTERED.1080p.BluRay.x265-RARBG","IsRemote":false,"ETag":"1d3b5a739d8a8a8e1d082a0af20f67ed","RunTimeTicks":87207150000,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"UseMostCompatibleTranscodingProfile":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":0,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"subrip","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Rotation":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","LocalizedHearingImpaired":"Hearing Impaired","DisplayTitle":"Undefined - SUBRIP - External","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Height":0,"Width":0,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":0,"Score":null,"IsExternal":true,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"H:\Media\Movies\ALL Best Picture Nominees 1080p BluRay Part 1 of 3 1990-2004 75 Movies jZQ\1990\Goodfellas (1990) IMDB 8.7\Goodfellas.1990.REMASTERED.1080p.BluRay.x265-RARBG.srt","PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"hevc","CodecTag":"hev1","Language":"und","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Rotation":null,"Comment":null,"TimeBase":"1/1200000","CodecTimeBase":null,"Title":null,"VideoRange":1,"VideoRangeType":1,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"LocalizedHearingImpaired":null,"DisplayTitle":"1080p HEVC SDR","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":null,"BitRate":2000233,"BitDepth":10,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":1080,"Width":1920,"AverageFrameRate":23.976215,"RealFrameRate":23.976025,"ReferenceFrameRate":23.976215,"Profile":"Main 10","Type":1,"AspectRatio":"16:9","Index":1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p10le","Level":120,"IsAnamorphic":false},{"Codec":"aac","CodecTag":"mp4a","Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Rotation":null,"Comment":null,"TimeBase":"1/48000","CodecTimeBase":null,"Title":null,"VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":"Default","LocalizedForced":null,"LocalizedExternal":"External","LocalizedHearingImpaired":null,"DisplayTitle":"English - AAC - 5.1 - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":"5.1","BitRate":224000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":null,"Profile":"LC","Type":0,"AspectRatio":null,"Index":2,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":2230975,"FallbackMaxStreamingBitrate":null,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":0,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null,"HasSegments":false}

ffmpeg -analyzeduration 200M -probesize 1G -fflags +genpts -f mov,mp4,m4a,3gp,3g2,mj2 -i file:"H:\Media\Movies\ALL Best Picture Nominees 1080p BluRay Part 1 of 3 1990-2004 75 Movies jZQ\1990\Goodfellas (1990) IMDB 8.7\Goodfellas.1990.REMASTERED.1080p.BluRay.x265-RARBG.mp4" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -tag:v:0 hvc1 -bsf:v hevc_mp4toannexb -start_at_zero -codec:a:0 libfdk_aac -ac 2 -ab 224000 -ar 48000 -af "volume=2" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d5%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d5.m3u8"

ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers
built with clang version 18.1.8
configuration: --cc=clang --pkg-config-flags=--static --extra-cflags=-I/clang64/ffbuild/include --extra-ldflags=-L/clang64/ffbuild/lib --prefix=/clang64/ffbuild/jellyfin-ffmpeg --extra-version=Jellyfin --disable-ffplay --disable-debug --disable-doc --disable-sdl2 --disable-ptx-compression --enable-lto=thin --enable-gpl --enable-version3 --enable-schannel --enable-iconv --enable-libxml2 --enable-zlib --enable-lzma --enable-gmp --enable-chromaprint --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libwebp --enable-libvpx --enable-libzimg --enable-libx264 --enable-libx265 --enable-libsvtav1 --enable-libdav1d --enable-libfdk-aac --enable-opencl --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
libavutil 59. 8.100 / 59. 8.100
libavcodec 61. 3.100 / 61. 3.100
libavformat 61. 1.100 / 61. 1.100
libavdevice 61. 1.100 / 61. 1.100
libavfilter 10. 1.100 / 10. 1.100
libswscale 8. 1.100 / 8. 1.100
libswresample 5. 1.100 / 5. 1.100
libpostproc 58. 1.100 / 58. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:H:\Media\Movies\ALL Best Picture Nominees 1080p BluRay Part 1 of 3 1990-2004 75 Movies jZQ\1990\Goodfellas (1990) IMDB 8.7\Goodfellas.1990.REMASTERED.1080p.BluRay.x265-RARBG.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
creation_time : 2020-04-02T12:50:16.000000Z
title : Goodfellas.1990.REMASTERED.1080p.BluRay.x265-RARBG
encoder : Lavf58.20.100
comment : Goodfellas.1990.REMASTERED.1080p.BluRay.x265-RARBG
Duration: 02:25:20.72, start: 0.000000, bitrate: 2230 kb/s
Stream #0:00x1: Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv), 1920x1080 [SAR 1:1 DAR 16:9], 2000 kb/s, 23.98 fps, 23.98 tbr, 1200k tbn (default)
Metadata:
creation_time : 2020-04-02T12:50:16.000000Z
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:10x2: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 224 kb/s (default)
Metadata:
creation_time : 2020-04-02T12:50:16.000000Z
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (aac (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
Output #0, hls, to 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d5.m3u8':
Metadata:
encoder : Lavf61.1.100
Stream #0:0: Video: hevc (Main 10) (hvc1 / 0x31637668), yuv420p10le(tv), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 2000 kb/s, 23.98 fps, 23.98 tbr, 90k tbn (default)
Stream #0:1: Audio: aac, 48000 Hz, stereo, s16, 224 kb/s (default)
Metadata:
encoder : Lavc61.3.100 libfdk_aac
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d50.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d51.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d52.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d53.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d54.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d55.ts' for writing
size=N/A time=00:00:00.00 bitrate=N/A speed= 0x
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d56.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d57.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d58.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d59.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d510.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d511.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d512.ts' for writing
size=N/A time=00:00:49.21 bitrate=N/A speed=48.3x

------ This repeats hundreds of times for interval timestamps ------

size=N/A time=02:18:35.58 bitrate=N/A speed=89.7x
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d51331.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d51332.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d51333.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d51334.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d51335.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d51336.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d51337.ts' for writing
size=N/A time=02:19:23.11 bitrate=N/A speed=89.7x
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d51338.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d51339.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d51340.ts' for writing
[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d51341.ts' for writing

[q] command received. Exiting.

[hls @ 000001bd9b163000] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\daa9b4b13192e7adcbae660fbd72b2d51342.ts' for writing
[out#0/hls @ 000001bd99431600] video:2086750KiB audio:231558KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: unknown
size=N/A time=02:20:12.13 bitrate=N/A speed=89.8x

FFmpeg logs

This log is from playing on external video player on Android TV

{"Protocol":0,"Id":"b2246fcf7deb2afdca5d4be580a86f9e","Path":"H:\\Media\\Movies\\ALL Best Picture Nominees 1080p BluRay Part 1 of 3 1990-2004 75 Movies jZQ\\1990\\Goodfellas (1990) IMDB 8.7\\Goodfellas.1990.REMASTERED.1080p.BluRay.x265-RARBG.mp4","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mov,mp4,m4a,3gp,3g2,mj2","Size":2431962944,"Name":"Goodfellas.1990.REMASTERED.1080p.BluRay.x265-RARBG","IsRemote":false,"ETag":"1d3b5a739d8a8a8e1d082a0af20f67ed","RunTimeTicks":87207150000,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"UseMostCompatibleTranscodingProfile":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":0,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"subrip","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Rotation":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","LocalizedHearingImpaired":"Hearing Impaired","DisplayTitle":"Undefined - SUBRIP - External","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Height":0,"Width":0,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":0,"Score":null,"IsExternal":true,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"H:\\Media\\Movies\\ALL Best Picture Nominees 1080p BluRay Part 1 of 3 1990-2004 75 Movies jZQ\\1990\\Goodfellas (1990) IMDB 8.7\\Goodfellas.1990.REMASTERED.1080p.BluRay.x265-RARBG.srt","PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"hevc","CodecTag":"hev1","Language":"und","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Rotation":null,"Comment":null,"TimeBase":"1/1200000","CodecTimeBase":null,"Title":null,"VideoRange":1,"VideoRangeType":1,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"LocalizedHearingImpaired":null,"DisplayTitle":"1080p HEVC SDR","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":null,"BitRate":2000233,"BitDepth":10,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":1080,"Width":1920,"AverageFrameRate":23.976215,"RealFrameRate":23.976025,"ReferenceFrameRate":23.976215,"Profile":"Main 10","Type":1,"AspectRatio":"16:9","Index":1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p10le","Level":120,"IsAnamorphic":false},{"Codec":"aac","CodecTag":"mp4a","Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Rotation":null,"Comment":null,"TimeBase":"1/48000","CodecTimeBase":null,"Title":null,"VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":"Default","LocalizedForced":null,"LocalizedExternal":"External","LocalizedHearingImpaired":null,"DisplayTitle":"English - AAC - 5.1 - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":"5.1","BitRate":224000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":null,"Profile":"LC","Type":0,"AspectRatio":null,"Index":2,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":2230975,"FallbackMaxStreamingBitrate":null,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":0,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null,"HasSegments":false}

ffmpeg -analyzeduration 200M -probesize 1G -f mov,mp4,m4a,3gp,3g2,mj2 -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -noautorotate -hwaccel_flags +unsafe_output -threads 1 -i file:"H:\Media\Movies\ALL Best Picture Nominees 1080p BluRay Part 1 of 3 1990-2004 75 Movies jZQ\1990\Goodfellas (1990) IMDB 8.7\Goodfellas.1990.REMASTERED.1080p.BluRay.x265-RARBG.mp4" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_nvenc -preset p1 -b:v 6667443 -maxrate 6667443 -bufsize 13334886 -profile:v:0 high -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_cuda=format=yuv420p" -codec:a:0 libfdk_aac -ac 2 -ab 224000 -af "volume=2" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d-1.mp4" -start_number 0 -hls_segment_filename "C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d.m3u8"


ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers
  built with clang version 18.1.8
  configuration: --cc=clang --pkg-config-flags=--static --extra-cflags=-I/clang64/ffbuild/include --extra-ldflags=-L/clang64/ffbuild/lib --prefix=/clang64/ffbuild/jellyfin-ffmpeg --extra-version=Jellyfin --disable-ffplay --disable-debug --disable-doc --disable-sdl2 --disable-ptx-compression --enable-lto=thin --enable-gpl --enable-version3 --enable-schannel --enable-iconv --enable-libxml2 --enable-zlib --enable-lzma --enable-gmp --enable-chromaprint --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libwebp --enable-libvpx --enable-libzimg --enable-libx264 --enable-libx265 --enable-libsvtav1 --enable-libdav1d --enable-libfdk-aac --enable-opencl --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      59.  8.100 / 59.  8.100
  libavcodec     61.  3.100 / 61.  3.100
  libavformat    61.  1.100 / 61.  1.100
  libavdevice    61.  1.100 / 61.  1.100
  libavfilter    10.  1.100 / 10.  1.100
  libswscale      8.  1.100 /  8.  1.100
  libswresample   5.  1.100 /  5.  1.100
  libpostproc    58.  1.100 / 58.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:H:\Media\Movies\ALL Best Picture Nominees 1080p BluRay Part 1 of 3 1990-2004 75 Movies jZQ\1990\Goodfellas (1990) IMDB 8.7\Goodfellas.1990.REMASTERED.1080p.BluRay.x265-RARBG.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    creation_time   : 2020-04-02T12:50:16.000000Z
    title           : Goodfellas.1990.REMASTERED.1080p.BluRay.x265-RARBG
    encoder         : Lavf58.20.100
    comment         : Goodfellas.1990.REMASTERED.1080p.BluRay.x265-RARBG
  Duration: 02:25:20.72, start: 0.000000, bitrate: 2230 kb/s
  Stream #0:0[0x1](und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv), 1920x1080 [SAR 1:1 DAR 16:9], 2000 kb/s, 23.98 fps, 23.98 tbr, 1200k tbn (default)
      Metadata:
        creation_time   : 2020-04-02T12:50:16.000000Z
        handler_name    : VideoHandler
        vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 224 kb/s (default)
      Metadata:
        creation_time   : 2020-04-02T12:50:16.000000Z
        handler_name    : SoundHandler
        vendor_id       : [0][0][0][0]
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_nvenc))
  Stream #0:1 -> #0:1 (aac (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[hls @ 000001f6d389d600] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d-1.mp4' for writing
Output #0, hls, to 'C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d.m3u8':
  Metadata:
    encoder         : Lavf61.1.100
  Stream #0:0: Video: h264 (High), cuda(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 6667 kb/s, 23.98 fps, 24k tbn (default)
      Metadata:
        encoder         : Lavc61.3.100 h264_nvenc
      Side data:
        cpb: bitrate max/min/avg: 6667443/0/6667443 buffer size: 13334886 vbv_delay: N/A
  Stream #0:1: Audio: aac, 48000 Hz, stereo, s16, 224 kb/s (default)
      Metadata:
        encoder         : Lavc61.3.100 libfdk_aac
[hls @ 000001f6d389d600] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d0.mp4' for writing
[hls @ 000001f6d389d600] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d1.mp4' for writing
[mp4 @ 000001f6d389db80] Packet duration: -16 / dts: 290792 is out of range
[hls @ 000001f6d389d600] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d2.mp4' for writing
frame=  287 fps=0.0 q=27.0 size=N/A time=00:00:00.00 bitrate=N/A dup=1 drop=0 speed=   0x    
[hls @ 000001f6d389d600] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d3.mp4' for writing
[mp4 @ 000001f6d389db80] Packet duration: -16 / dts: 579528 is out of range
[hls @ 000001f6d389d600] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d4.mp4' for writing
[mp4 @ 000001f6d389db80] Packet duration: -16 / dts: 722904 is out of range
[hls @ 000001f6d389d600] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d5.mp4' for writing
[hls @ 000001f6d389d600] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d6.mp4' for writing
[hls @ 000001f6d389d600] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d7.mp4' for writing
frame=  618 fps=608 q=11.0 size=N/A time=00:00:13.80 bitrate=N/A dup=1 drop=0 speed=13.6x    
[hls @ 000001f6d389d600] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d8.mp4' for writing
[hls @ 000001f6d389d600] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d9.mp4' for writing
[mp4 @ 000001f6d389db80] Packet duration: -16 / dts: 1443800 is out of range
[hls @ 000001f6d389d600] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d10.mp4' for writing
[hls @ 000001f6d389d600] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d11.mp4' for writing
[hls @ 000001f6d389d600] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d12.mp4' for writing


[q] command received. Exiting.

[hls @ 000001f6d389d600] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\6202ad3e70529cc97c2d57749762434d13.mp4' for writing
[out#0/hls @ 000001f6c4ed0b00] video:11859KiB audio:1107KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: unknown
frame=  971 fps=623 q=11.0 Lsize=N/A time=00:00:28.41 bitrate=N/A dup=1 drop=0 speed=18.2x

Media info of the file

General
Complete name                            : H:\Media\Movies\ALL Best Picture Nominees 1080p BluRay Part 1 of 3 1990-2004 75 Movies jZQ\1990\Goodfellas (1990) IMDB 8.7\Goodfellas.1990.REMASTERED.1080p.BluRay.x265-RARBG.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/mp41)
File size                                : 2.26 GiB
Duration                                 : 2 h 25 min
Overall bit rate                         : 2 231 kb/s
Frame rate                               : 23.976 FPS
Movie name                               : Goodfellas.1990.REMASTERED.1080p.BluRay.x265-RARBG
Encoded date                             : 2020-04-02 12:50:16 UTC
Tagged date                              : 2020-04-02 12:50:16 UTC
Writing application                      : Lavf58.20.100
Comment                                  : Goodfellas.1990.REMASTERED.1080p.BluRay.x265-RARBG

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L4@Main
Codec ID                                 : hev1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 2 h 25 min
Bit rate                                 : 2 000 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
Bits/(Pixel*Frame)                       : 0.040
Stream size                              : 2.03 GiB (90%)
Writing library                          : x265 3.3+4-rarbg-30eb4de83092:[Linux][GCC 8.3.1][64 bit] 10bit
Encoding settings                        : cpuid=1111039 / frame-threads=4 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x1080 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=4 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=23 / keyint=250 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=25 / lookahead-slices=4 / scenecut=40 / hist-scenecut=0 / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=3 / limit-refs=3 / limit-modes / me=3 / subme=3 / merange=57 / temporal-mvp / no-frame-dup / no-hme / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / no-sao / no-sao-non-deblock / rd=4 / selective-sao=0 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=1.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=abr / bitrate=2000 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=2 / cplxblur=20.0 / qblur=0.5 / ipratio=1.40 / pbratio=1.30 / aq-mode=3 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 / colormatrix=2 / chromaloc=0 / display-window=0 / cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / hist-threshold=0.01 / no-opt-cu-delta-qp / no-aq-motion / no-hdr10 / no-hdr10-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=0 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / no-scenecut-aware-qpconformance-window-offsets / right=0 / bottom=0
Encoded date                             : 2020-04-02 12:50:16 UTC
Tagged date                              : 2020-04-02 12:50:16 UTC
Codec configuration box                  : hvcC

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 2 h 25 min
Bit rate mode                            : Constant
Bit rate                                 : 224 kb/s
Channel(s)                               : 6 channels
Channel layout                           : C L R Ls Rs LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 233 MiB (10%)
Language                                 : English
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : 2020-04-02 12:50:16 UTC
Tagged date                              : 2020-04-02 12:50:16 UTC

Application version

0.18.2

Device information

Google TV with Remote

Android version

Android 12, vanilla

Jellyfin server version

10.10.1

@pablomarusich pablomarusich added bug Something isn't working playback Issue related to media playback labels Dec 10, 2024
@Hello-World-Traveler
Copy link

Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_nvenc))
  Stream #0:1 -> #0:1 (aac (native) -> aac (libfdk_aac))

The media is being transcoded into h264 (AVC) this happens if the device doesn't support HEVC.

As of version 0.12, HEVC is enabled on all devices running Android 5.0+, but early generations of the Amazon Fire may not work yet. 10Bit may be supported depending on your device. Before Client 0.12, HEVC support was enabled on specific devices.

HEVC 10bit will transcode if not support however HEVC 8bit might able playback on some devices.

Check your Nvidia graphics card as this is doing the transcoding. You can also change profiles in /dashboard/playback/transcoding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working playback Issue related to media playback
Projects
None yet
Development

No branches or pull requests

2 participants