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

播放H265视频seek后出错 #1587

Open
zzzhr1990 opened this issue Aug 28, 2024 · 2 comments
Open

播放H265视频seek后出错 #1587

zzzhr1990 opened this issue Aug 28, 2024 · 2 comments

Comments

@zzzhr1990
Copy link
Contributor

zzzhr1990 commented Aug 28, 2024

您使用的西瓜播放器版本是多少? What version of xgplayer are you using?
3.0.21-rc.1 / 3.0.10 均测试能复现问题

您使用的操作系统和浏览器分别是? What OS and browser are you using?
MacOS 14.6.1 (23G93) Safari 版本17.6 (19618.3.11.11.5)

如何复现问题? How to reproduce the problem?
使用MP4插件播放视频 https://2dland.cn/test/test_video_h265.mp4 拖动进度条即可复现报错

 let player = new Player({
    id: 'vs',
    autoplay: true,
    volume: 1,
    url: 'https://2dland.cn/test/test_video_h265.mp4',
    poster: "//lf3-static.bytednsdoc.com/obj/eden-cn/nupenuvpxnuvo/xgplayer_doc/poster.jpg",
    playsinline: true,
    thumbnail: {
    pic_num: 44,
    width: 160,
    height: 90,
    col: 10,
    row: 10,
    // urls: ['//lf3-static.bytednsdoc.com/obj/eden-cn/nupenuvpxnuvo/xgplayer_doc/xgplayer-demo-thumbnail.jpg'],
    },
    definition: {
      defaultDefinition: '720p',
      // list: videoList
    },
    // TestSpeed: {
    //   url: '//lf3-static.bytednsdoc.com/obj/eden-cn/nupenuvpxnuvo/xgplayer_doc/xgplayer-demo-720p.mp4',
    //   openSpeed: true,
    //   loadSize: 200*1024,
    //   testTimeStep: 5000,
    //   testCnt: 3,
    // },
    height: window.innerHeight -300,
    width: window.innerWidth,
    plugins: [Mp4Plugin]
  });

您期望的播放器正常行为是? What did you expect to happen?

正常播放

实际播放器的表现是? What actually happened?

几次拖动之后会报不支持的视频

可填写您所在的公司和相关产品业务,方便我们提供更好的技术支持 You can write your company and product which uses xgplayer, for helping us provide better technical support.

@zzzhr1990 zzzhr1990 changed the title 3.0.21-rc.1 3.0.21-rc.1 master 分支播放H265视频出错 Aug 28, 2024
@zzzhr1990
Copy link
Contributor Author

zzzhr1990 commented Aug 28, 2024

压制参数:

ffmpeg -i Fantastic\ Places\ in\ 4K\ 60FPS\ HDR\ Dolby\ Vision\ \(4K\ Video\)\ \[YZ84iQrbYjw\].webm -c:v libx265 test_video_h265.mp4
ffmpeg version 7.0.2 Copyright (c) 2000-2024 the FFmpeg developers
  built with Apple clang version 15.0.0 (clang-1500.3.9.4)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.0.2 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
  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, matroska,webm, from 'Fantastic Places in 4K 60FPS HDR Dolby Vision (4K Video) [YZ84iQrbYjw].webm':
  Metadata:
    ENCODER         : Lavf61.1.100
  Duration: 00:10:20.93, start: 0.000000, bitrate: 28638 kb/s
  Stream #0:0(eng): Video: vp9 (Profile 2), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160, SAR 1:1 DAR 16:9, 59.94 fps, 59.94 tbr, 1k tbn (default)
      Metadata:
        DURATION        : 00:10:20.903000000
      Side data:
        Mastering Display Metadata, has_primaries:1 has_luminance:1 r(0.7080,0.2920) g(0.1700,0.7970) b(0.1310 0.0460) wp(0.3127, 0.3290) min_luminance=0.005000, max_luminance=1000.000000
  Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
      Metadata:
        DURATION        : 00:10:20.928000000
Stream mapping:
  Stream #0:0 -> #0:0 (vp9 (native) -> hevc (libx265))
  Stream #0:1 -> #0:1 (opus (native) -> aac (native))
Press [q] to stop, [?] for help
x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
x265 [info]: build info [Mac OS X][clang 15.0.0][64 bit] 10bit
x265 [info]: using cpu capabilities: NEON
x265 [warning]: Turning on repeat-headers for HDR compatibility
x265 [info]: Main 10 profile, Level-5.1 (Main tier)
x265 [info]: Thread pool created using 10 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(34 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 3
x265 [info]: Keyframe min / max / scenecut / bias  : 25 / 250 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / off / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
x265 [info]: tools: b-intra strong-intra-smoothing lslices=8 deblock sao
Output #0, mp4, to 'test_video_h265.mp4':
  Metadata:
    encoder         : Lavf61.1.100
  Stream #0:0(eng): Video: hevc (hev1 / 0x31766568), yuv420p10le(tv, bt2020nc/bt2020/smpte2084, progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 59.94 fps, 19001 tbn (default)
      Metadata:
        DURATION        : 00:10:20.903000000
        encoder         : Lavc61.3.100 libx265
      Side data:
        cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
        Mastering Display Metadata, has_primaries:1 has_luminance:1 r(0.7080,0.2920) g(0.1700,0.7970) b(0.1310 0.0460) wp(0.3127, 0.3290) min_luminance=0.005000, max_luminance=1000.000000
  Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
      Metadata:
        DURATION        : 00:10:20.928000000
        encoder         : Lavc61.3.100 aac

@zzzhr1990 zzzhr1990 changed the title 3.0.21-rc.1 master 分支播放H265视频出错 3.0.21-rc.1 master 分支播放H265视频seek后出错 Aug 28, 2024
@zzzhr1990 zzzhr1990 changed the title 3.0.21-rc.1 master 分支播放H265视频seek后出错 播放H265视频seek后出错 Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@zzzhr1990 and others