jellyfin / jellyfin-androidtv

Android TV Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
2.85k stars 488 forks source link

Chromecast TV VC1 - “Too many errors. Giving up” #3510

Closed alanman87 closed 2 months ago

alanman87 commented 6 months ago

Describe the bug

Playback any movie with VC1 in MKV container. The player errors out with “Too many errors. Giving up.”

Happens with direct and transcode regardless of playback quality selected.

Logs

No response

FFmpeg logs

/videos/23e677fb-17f1-ed99-30ed-c68dab3eb4e0/hls1/main/0.ts

{"Protocol":0,"Id":"23e677fb17f1ed9930edc68dab3eb4e0","Path":"/mnt/unionfs/Media/Movies/The Lost World Jurassic Park (1997)/The Lost World Jurassic Park (1997) {imdb-tt0119567} [Remux-1080p][DTS-HD MA 7.1][VC1]-FraMeSToR.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv,webm","Size":35415265280,"Name":"The Lost World Jurassic Park (1997) {imdb-tt0119567} [Remux-1080p][DTS-HD MA 7.1][VC1]-FraMeSToR","IsRemote":false,"ETag":"17410fe23fe6c67563a60a82543ceeb0","RunTimeTicks":77267189760,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":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":"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,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"English - SUBRIP - External","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":0,"Score":null,"IsExternal":true,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"/mnt/unionfs/Media/Movies/The Lost World Jurassic Park (1997)/The Lost World Jurassic Park (1997) {imdb-tt0119567} [Remux-1080p][DTS-HD MA 7.1][VC1]-FraMeSToR.en.srt","PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"vc1","CodecTag":"WVC1","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,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":"SDR","VideoRangeType":"SDR","VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"1080p VC1 SDR","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":36667844,"BitDepth":8,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":1080,"Width":1920,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"Advanced","Type":1,"AspectRatio":"16:9","Index":1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p","Level":3,"IsAnamorphic":null},{"Codec":"dts","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,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"DTS-HD MA - 7.1 - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"7.1","BitRate":null,"BitDepth":24,"RefFrames":null,"PacketLength":null,"Channels":8,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":"DTS-HD MA","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},{"Codec":"PGSSUB","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,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"Undefined - Default - PGSSUB","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":3,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"PGSSUB","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,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"Undefined - PGSSUB","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":4,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"PGSSUB","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,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"Undefined - PGSSUB","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":5,"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":36667844,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}

/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -init_hw_device vaapi=va:,kernel_driver=i915,driver=iHD -init_hw_device qsv=qs@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -i file:"/mnt/unionfs/Media/Movies/The Lost World Jurassic Park (1997)/The Lost World Jurassic Park (1997) {imdb-tt0119567} [Remux-1080p][DTS-HD MA 7.1][VC1]-FraMeSToR.mkv" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_qsv -preset 7 -look_ahead 0 -b:v 7293150 -maxrate 7293150 -bufsize 14586300 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=format=nv12:extra_hw_frames=24,hwmap=derive_device=qsv,format=qsv" -codec:a:0 libfdk_aac -ac 8 -ab 128000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/config/data/transcodes/414a83143d9ff3428864b7d7a26000c8%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/data/transcodes/414a83143d9ff3428864b7d7a26000c8.m3u8"

ffmpeg version 6.0.1-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
[matroska,webm @ 0x55c8cfd40840] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
[matroska,webm @ 0x55c8cfd40840] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
[matroska,webm @ 0x55c8cfd40840] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
Input #0, matroska,webm, from 'file:/mnt/unionfs/Media/Movies/The Lost World Jurassic Park (1997)/The Lost World Jurassic Park (1997) {imdb-tt0119567} [Remux-1080p][DTS-HD MA 7.1][VC1]-FraMeSToR.mkv':
  Metadata:
    encoder         : libebml v1.2.0 + libmatroska v1.1.0
    creation_time   : 2011-10-21T07:12:16.000000Z
  Duration: 02:08:46.72, start: 0.000000, bitrate: 36667 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 253.587000
      Metadata:
        title           : 00:00:00.000
    Chapter #0:1: start 253.587000, end 518.309000
      Metadata:
        title           : 00:04:13.587
    Chapter #0:2: start 518.309000, end 971.929000
      Metadata:
        title           : 00:08:38.309
    Chapter #0:3: start 971.929000, end 1303.135000
      Metadata:
        title           : 00:16:11.929
    Chapter #0:4: start 1303.135000, end 2002.459000
      Metadata:
        title           : 00:21:43.135
    Chapter #0:5: start 2002.459000, end 2508.798000
      Metadata:
        title           : 00:33:22.459
    Chapter #0:6: start 2508.798000, end 2878.000000
      Metadata:
        title           : 00:41:48.798
    Chapter #0:7: start 2878.000000, end 3220.592000
      Metadata:
        title           : 00:47:58.000
    Chapter #0:8: start 3220.592000, end 3886.674000
      Metadata:
        title           : 00:53:40.592
    Chapter #0:9: start 3886.674000, end 4379.709000
      Metadata:
        title           : 01:04:46.674
    Chapter #0:10: start 4379.709000, end 4847.885000
      Metadata:
        title           : 01:12:59.709
    Chapter #0:11: start 4847.885000, end 5178.965000
      Metadata:
        title           : 01:20:47.885
    Chapter #0:12: start 5178.965000, end 5513.383000
      Metadata:
        title           : 01:26:18.965
    Chapter #0:13: start 5513.383000, end 6143.637000
      Metadata:
        title           : 01:31:53.383
    Chapter #0:14: start 6143.637000, end 6652.688000
      Metadata:
        title           : 01:42:23.637
    Chapter #0:15: start 6652.688000, end 6733.936000
      Metadata:
        title           : 01:50:52.688
    Chapter #0:16: start 6733.936000, end 7090.875000
      Metadata:
        title           : 01:52:13.936
    Chapter #0:17: start 7090.875000, end 7191.601000
      Metadata:
        title           : 01:58:10.875
    Chapter #0:18: start 7191.601000, end 7316.434000
      Metadata:
        title           : 01:59:51.601
    Chapter #0:19: start 7316.434000, end 7726.719000
      Metadata:
        title           : 02:01:56.434
  Stream #0:0: Video: vc1 (Advanced) (WVC1 / 0x31435657), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
  Stream #0:1: Audio: dts (DTS-HD MA), 48000 Hz, 7.1, s32p (24 bit) (default)
  Stream #0:2: Subtitle: hdmv_pgs_subtitle (default)
  Stream #0:3: Subtitle: hdmv_pgs_subtitle
  Stream #0:4: Subtitle: hdmv_pgs_subtitle
Stream mapping:
  Stream #0:0 -> #0:0 (vc1 (native) -> h264 (h264_qsv))
  Stream #0:1 -> #0:1 (dts (dca) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
Output #0, hls, to '/config/data/transcodes/414a83143d9ff3428864b7d7a26000c8.m3u8':
  Metadata:
    encoder         : Lavf60.3.100
  Stream #0:0: Video: h264, qsv(bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 7293 kb/s, 23.98 fps, 90k tbn (default)
    Metadata:
      encoder         : Lavc60.3.100 h264_qsv
    Side data:
      cpb: bitrate max/min/avg: 7293150/0/7293150 buffer size: 14586300 vbv_delay: N/A
  Stream #0:1: Audio: aac, 48000 Hz, 7.1(wide), s16, 128 kb/s (default)
    Metadata:
      encoder         : Lavc60.3.100 libfdk_aac
frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
[hls @ 0x55c8d00a1b80] Opening '/config/data/transcodes/414a83143d9ff3428864b7d7a26000c80.ts' for writing
[hls @ 0x55c8d00a1b80] Opening '/config/data/transcodes/414a83143d9ff3428864b7d7a26000c81.ts' for writing
frame=  145 fps=0.0 q=17.0 size=N/A time=00:00:06.27 bitrate=N/A speed=12.3x    
[hls @ 0x55c8d00a1b80] Opening '/config/data/transcodes/414a83143d9ff3428864b7d7a26000c82.ts' for writing

[q] command received. Exiting.

[hls @ 0x55c8d00a1b80] Opening '/config/data/transcodes/414a83143d9ff3428864b7d7a26000c83.ts' for writing
frame=  266 fps=0.0 q=23.0 Lsize=N/A time=00:00:11.09 bitrate=N/A speed=  12x    
video:10313kB audio:178kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Media info of the file

No response

Application version

0.16.7

Device information

Chromecast TV 4K

Android version

Latest updated stock OS

Jellyfin server version

10.8.13

jellyfin-bot commented 2 months ago

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.

If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.

This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.