jellyfin-androidtv icon indicating copy to clipboard operation
jellyfin-androidtv copied to clipboard

快进播放时无法正确播放,必须点返回键或者暂停键后,再点播放键才能播放。

Open chenchenno11 opened this issue 1 year ago • 8 comments

Describe the bug

快进播放时无法播放(画面不动),必须点返回键或者再点播放键才能播放。不管是源文件是在硬盘上还是云盘上都是一样的情况,如果不快进可以流畅播放。尝试过很多本地文件和云文件播放都是一样的情况

Logs

No response

FFmpeg logs

"Path":"F:\\\u522E\u524A\\4k\\4k\u5B8C\u6210\\\u5C0F\u51D1\u3088\u3064\u53F6\\STARS-715-4K \u5C0F\u51D1\u3088\u3064\u53F6\\STARS-715-4K.mp4","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mov,mp4,m4a,3gp,3g2,mj2","Size":45721505792,"Name":"STARS-715-4K","IsRemote":false,"ETag":"af32d5978b0298a9a4a8707252568c6e","RunTimeTicks":156898361344,"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":"h264","CodecTag":"avc1","Language":"und","ColorRange":null,"ColorSpace":"bt709","ColorTransfer":"bt709","ColorPrimaries":"bt709","DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/90000","CodecTimeBase":null,"Title":null,"VideoRange":"SDR","VideoRangeType":"SDR","VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"4K H264 SDR","NalLengthSize":"4","IsInterlaced":false,"IsAVC":true,"ChannelLayout":null,"BitRate":23038382,"BitDepth":8,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":2160,"Width":3840,"AverageFrameRate":59.939857,"RealFrameRate":59.94006,"Profile":"Main","Type":1,"AspectRatio":"16:9","Index":0,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p","Level":52,"IsAnamorphic":null},{"Codec":"aac","CodecTag":"mp4a","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,"Comment":null,"TimeBase":"1/48000","CodecTimeBase":null,"Title":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"AAC - Stereo - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"stereo","BitRate":256000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":"LC","Type":0,"AspectRatio":null,"Index":1,"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":23312675,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}

ffmpeg -analyzeduration 200M -ss 00:14:00.000 -fflags +genpts  -i file:"F:\刮削\4k\4k完成\小凑よつ叶\STARS-715-4K 小凑よつ叶\STARS-715-4K.mp4" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -start_at_zero -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 6 -hls_segment_type mpegts -start_number 140 -hls_segment_filename "F:\软件\transcodes\161e808076a84093c5d8eff130fcda03%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "F:\软件\transcodes\161e808076a84093c5d8eff130fcda03.m3u8"


ffmpeg version 5.1.3-Jellyfin Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12-win32 (GCC)
  configuration: --prefix=/opt/ffmpeg --arch=x86_64 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --pkg-config=pkg-config --pkg-config-flags=--static --extra-libs='-lfftw3f -lstdc++' --extra-cflags=-DCHROMAPRINT_NODLL --extra-version=Jellyfin --disable-ffplay --disable-debug --disable-doc --disable-sdl2 --disable-ptx-compression --disable-w32threads --enable-pthreads --enable-shared --enable-lto --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-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-amf --enable-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:F:\刮削\4k\4k完成\小凑よつ叶\STARS-715-4K 小凑よつ叶\STARS-715-4K.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf59.16.100
  Duration: 04:21:29.84, start: 0.000000, bitrate: 23312 kb/s
  Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 23038 kb/s, 59.94 fps, 59.94 tbr, 90k tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
Output #0, hls, to 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03.m3u8':
  Metadata:
    encoder         : Lavf59.27.100
  Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 23038 kb/s, 59.94 fps, 59.94 tbr, 90k tbn (default)
  Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x    
frame=    1 fps=0.4 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x    
frame=    1 fps=0.3 q=-1.0 size=N/A time=00:00:00.02 bitrate=N/A speed=0.00627x    
frame=   33 fps=8.5 q=-1.0 size=N/A time=00:00:00.55 bitrate=N/A speed=0.142x    
frame=  126 fps= 29 q=-1.0 size=N/A time=00:00:02.11 bitrate=N/A speed=0.479x    
frame=  288 fps= 56 q=-1.0 size=N/A time=00:00:04.82 bitrate=N/A speed=0.943x    
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03140.ts' for writing
frame=  403 fps= 72 q=-1.0 size=N/A time=00:00:06.74 bitrate=N/A speed= 1.2x    
frame=  435 fps= 71 q=-1.0 size=N/A time=00:00:07.27 bitrate=N/A speed=1.19x    
frame=  486 fps= 74 q=-1.0 size=N/A time=00:00:08.12 bitrate=N/A speed=1.23x    
frame=  601 fps= 80 q=-1.0 size=N/A time=00:00:10.02 bitrate=N/A speed=1.33x    
frame=  625 fps= 77 q=-1.0 size=N/A time=00:00:10.41 bitrate=N/A speed=1.29x    
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03141.ts' for writing
frame=  752 fps= 88 q=-1.0 size=N/A time=00:00:12.54 bitrate=N/A speed=1.46x    
frame=  804 fps= 88 q=-1.0 size=N/A time=00:00:13.41 bitrate=N/A speed=1.48x    
frame=  915 fps= 95 q=-1.0 size=N/A time=00:00:15.27 bitrate=N/A speed=1.59x    
frame= 1041 fps=103 q=-1.0 size=N/A time=00:00:17.38 bitrate=N/A speed=1.72x    
frame= 1110 fps=105 q=-1.0 size=N/A time=00:00:18.53 bitrate=N/A speed=1.75x    
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03142.ts' for writing
frame= 1123 fps=101 q=-1.0 size=N/A time=00:00:18.73 bitrate=N/A speed=1.69x    
frame= 1249 fps=108 q=-1.0 size=N/A time=00:00:20.82 bitrate=N/A speed=1.79x    
frame= 1366 fps=113 q=-1.0 size=N/A time=00:00:22.78 bitrate=N/A speed=1.88x    
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03143.ts' for writing
frame= 1515 fps=119 q=-1.0 size=N/A time=00:00:25.27 bitrate=N/A speed=1.99x    
frame= 1671 fps=126 q=-1.0 size=N/A time=00:00:27.86 bitrate=N/A speed= 2.1x    
frame= 1810 fps=130 q=-1.0 size=N/A time=00:00:30.20 bitrate=N/A speed=2.16x    
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03144.ts' for writing
frame= 2011 fps=137 q=-1.0 size=N/A time=00:00:33.55 bitrate=N/A speed=2.28x    
frame= 2190 fps=143 q=-1.0 size=N/A time=00:00:36.54 bitrate=N/A speed=2.39x    
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03145.ts' for writing
frame= 2319 fps=146 q=-1.0 size=N/A time=00:00:38.69 bitrate=N/A speed=2.44x    
frame= 2383 fps=134 q=-1.0 size=N/A time=00:00:39.74 bitrate=N/A speed=2.23x    
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03146.ts' for writing
frame= 2561 fps=138 q=-1.0 size=N/A time=00:00:42.73 bitrate=N/A speed= 2.3x    
frame= 2722 fps=121 q=-1.0 size=N/A time=00:00:45.39 bitrate=N/A speed=2.02x    
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03147.ts' for writing
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03148.ts' for writing
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03149.ts' for writing
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03150.ts' for writing
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03151.ts' for writing
frame= 4527 fps=195 q=-1.0 size=N/A time=00:01:15.54 bitrate=N/A speed=3.25x    
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03152.ts' for writing
frame= 4864 fps=204 q=-1.0 size=N/A time=00:01:21.13 bitrate=N/A speed= 3.4x    
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03153.ts' for writing
frame= 5115 fps=210 q=-1.0 size=N/A time=00:01:25.35 bitrate=N/A speed= 3.5x    
frame= 5415 fps=218 q=-1.0 size=N/A time=00:01:30.34 bitrate=N/A speed=3.63x    
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03154.ts' for writing
frame= 5533 fps=189 q=-1.0 size=N/A time=00:01:32.30 bitrate=N/A speed=3.15x    
frame= 5539 fps=172 q=-1.0 size=N/A time=00:01:32.41 bitrate=N/A speed=2.88x    
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03155.ts' for writing
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03156.ts' for writing
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03157.ts' for writing
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03158.ts' for writing
frame= 7008 fps=215 q=-1.0 size=N/A time=00:01:56.92 bitrate=N/A speed=3.58x    
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03159.ts' for writing
frame= 7297 fps=220 q=-1.0 size=N/A time=00:02:01.74 bitrate=N/A speed=3.67x    
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03160.ts' for writing
frame= 7638 fps=227 q=-1.0 size=N/A time=00:02:07.44 bitrate=N/A speed=3.78x    
frame= 7892 fps=231 q=-1.0 size=N/A time=00:02:11.66 bitrate=N/A speed=3.85x    
frame= 7971 fps=229 q=-1.0 size=N/A time=00:02:12.99 bitrate=N/A speed=3.82x    
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03161.ts' for writing
frame= 8305 fps=235 q=-1.0 size=N/A time=00:02:18.53 bitrate=N/A speed=3.92x    


[q] command received. Exiting.

[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03162.ts' for writing
[hls @ 000002444f059400] Opening 'F:\软件\transcodes\161e808076a84093c5d8eff130fcda03163.ts' for writing
frame= 8371 fps=209 q=-1.0 Lsize=N/A time=00:02:19.64 bitrate=N/A speed=3.48x    
video:389217kB audio:4365kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Media info of the file

No response

Application version

0.16.0 0.15.12

Device information

TCL Q10G75

Android version

Android11

Jellyfin server version

10.8.10

chenchenno11 avatar Sep 27 '23 15:09 chenchenno11

When fast-forwarding playback, it cannot be played correctly, and you must tap the back button or pause button before tapping the play button to play

When fast-forwarding playback, it cannot be played (the screen does not move), and you must tap the back button or tap the play key again to play. It is the same whether the source file is on a hard disk or a cloud disk, and it can be played smoothly if it is not fast-forwarded. I've tried a lot of local files and cloud file playback to play the same sentiment

Stream #0:0: Video: h264 Stream #0:1: Audio: aac (LC) Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy)

Have you got Enable hardware decoding for h264 ticked? Also 4k content needs a lot of bandwidth especially in h264, If the server and clients support h265, I suggest you look into it.

VampiricAlien avatar Sep 28 '23 02:09 VampiricAlien

Same problem on 0.16 release version.

peerless2012 avatar Dec 17 '23 23:12 peerless2012

When fast-forwarding playback, it cannot be played correctly, and you must tap the back button or pause button before tapping the play button to play

When fast-forwarding playback, it cannot be played (the screen does not move), and you must tap the back button or tap the play key again to play. It is the same whether the source file is on a hard disk or a cloud disk, and it can be played smoothly if it is not fast-forwarded. I've tried a lot of local files and cloud file playback to play the same sentiment

Stream #0:0: Video: h264 Stream #0:1: Audio: aac (LC) Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy)

Have you got Enable hardware decoding for h264 ticked? Also 4k content needs a lot of bandwidth especially in h264, If the server and clients support h265, I suggest you look into it.

I think it is not about bitrate, it always happens.

peerless2012 avatar Dec 17 '23 23:12 peerless2012

Same problem

TouiSoraHe avatar Feb 19 '24 07:02 TouiSoraHe

Also same problem on 0.16.7 release version. It seems tv client does not use hardware decoding on server, while other client does.

Erignik avatar Mar 23 '24 06:03 Erignik

Same problem on Android TV 16.10, and server version is linux 10.8.13. Please take a look into this issue.

BarneyShi avatar May 02 '24 07:05 BarneyShi

@chenchenno11 Hi, did you find a fix for this issue?

BarneyShi avatar May 02 '24 07:05 BarneyShi

@chenchenno11 Hi, did you find a fix for this issue?

Currently, you can play then pause, the play will continue.

peerless2012 avatar May 02 '24 07:05 peerless2012