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

video buffers when on loop and when seeking #211

Open
sanin564 opened this issue Jan 24, 2025 · 3 comments
Open

video buffers when on loop and when seeking #211

sanin564 opened this issue Jan 24, 2025 · 3 comments

Comments

@sanin564
Copy link

The Bug

we are using hls video format for playing videos, and videos are buffering when :

  • seeking to a specific position.
  • in case of looping is on, and when video completed and then starts to play from beginning.

Expected behavior

When on loop, the video should play seemlessly without buffering.

Log

log
[mdk] default0x101b67540 stop, current state:  0requested: 1
[mdk] default0x101b67540 stop, current state:  0requested: 1
[mdk] default0x101b67540 stop, current state:  0requested: 1
[mdk] Failed to create io for url. io: 0x0, open: 0
[mdk] 0x10705dc00 MediaControl.prepare(0, ...) https://customer-cz3rwq0wcsalsq1k.cloudflarestream.com/119a32aaaea048c0a59d21091930bdee/manifest/video.m3u8
[mdk] Format: hls, range: 10000 +15600ms, bitrate: 0, size: 0
      Programs:
       Program id 0
       Metadata:
        variant_bitrate: 1571932
       Video:
       track 0  stream#0, range: 10000 +0ms, frames: 0
        codec: h264 tag: 0X1B profile: 77 level: 40, yuv420p, bpc:8, bpp:12(8,8,8), channels:(1,1,1), map: 0 1 2 0, bitrate: 0, 1080x1920, fps: 25, bframes: 2, primaries: BT709, trc: BT709, matrix: BT709, range: Limited
        extra data(41): 00 00 01 67 4D 40 28 EC A0 22 01 E3 CB E0 2D 40 40 40 50 00 00 03 00 10 00 00 03 03 20 F1 83 19 60 00 00 00 01 68 EA E3 F2
        Metadata:
         variant_bitrate: 1571932
       Program id 1
       Metadata:
        variant_bitrate: 788168
       Video:
       track 1  stream#1, range: 10000 +0ms, frames: 0
        codec: h264 tag: 0X1B profile: 77 level: 31, yuv420p, bpc:8, bpp:12(8,8,8), channels:(1,1,1), map: 0 1 2 0, bitrate: 0, 720x1280, fps: 25, bframes: 2, primaries: BT709, trc: BT709, matrix: BT709, range: Limited
        extra data(39): 00 00 01 67 4D 40 1F EC A0 5A 05 0D 80 B5 01 01 01 40 00 00 03 00 40 00 00 0C 83 C6 0C 65 80 00 00 00 01 68 EA E3 F2
        Metadata:
         variant_bitrate: 788168
       Program id 2
       Metadata:
        variant_bitrate: 389777
       Video:
       track 2  stream#2, range: 10000 +0ms, frames: 0
        codec: h264 tag: 0X1B profile: 77 level: 30, yuv420p, bpc:8, bpp:12(8,8,8), channels:(1,1,1), map: 0 1 2 0, bitrate: 0, 480x852, fps: 25, bframes: 2, primaries: BT709, trc: BT709, matrix: BT709, range: Limited
        extra data(40): 00 00 01 67 4D 40 1E EC A0 F0 36 FC F8 0B 50 10 10 14 00 00 03 00 04 00 00 03 00 C8 3C 58 B6 58 00 00 00 01 68 EA E3 F2
        Metadata:
         variant_bitrate: 389777
       Program id 3
       Metadata:
        variant_bitrate: 247790
       Video:
       track 3  stream#3, range: 10000 +0ms, frames: 0
        codec: h264 tag: 0X1B profile: 77 level: 30, yuv420p, bpc:8, bpp:12(8,8,8), channels:(1,1,1), map: 0 1 2 0, bitrate: 0, 360x640, fps: 25, bframes: 2, primaries: BT709, trc: BT709, matrix: BT709, range: Limited
        extra data(40): 00 00 01 67 4D 40 1E EC A0 B8 28 F2 F8 0B 50 10 10 14 00 00 03 00 04 00 00 03 00 C8 3C 58 B6 58 00 00 00 01 68 EA E3 F2
        Metadata:
         variant_bitrate: 247790
       Program id 4
       Metadata:
        variant_bitrate: 188837
       Video:
       track 4  stream#4, range: 10000 +0ms, frames: 0
        codec: h264 tag: 0X1B profile: 578 level: 21, yuv420p, bpc:8, bpp:12(8,8,8), channels:(1,1,1), map: 0 1 2 0, bitrate: 0, 240x426, fps: 25, bframes: 0, primaries: BT709, trc: BT709, matrix: BT709, range: Limited
        extra data(39): 00 00 01 67 42 C0 15 DB 0F 0D FE 4C 05 A8 08 08 0A 00 00 03 00 02 00 00 03 00 64 1E 2C 5D C0 00 00 00 01 68 CA 83 F2
        Metadata:
         variant_bitrate: 188837
[mdk] 0x101b67540 ***buffering progress 0%***
[mdk] ++++++++++++BUFFERING START++++++++++++
[mdk] 0x101b67540 ***buffering progress 16%***
[mdk] 0x101b67540 ***buffering progress 48%***
[mdk] 0x101b67540 ***buffering progress 80%***
[mdk] 0x101b67540 ***buffering progress 96%***
[mdk] 0x101b67540 ***buffering progress 100%***
[mdk] setLoop(0), now 0/0
[mdk] setLoop(-1), now 0/0
@sanin564
Copy link
Author

please ask if any more info is required.

@wang-bin
Copy link
Owner

        fvp.registerWith(options: {
          'player': {
            'demux.buffer.ranges': '8',
          }
        });

@sanin564
Copy link
Author

thank you for the response. i've tried the solution you shared. it has reduces the buffering when on loop(can't say no buffering at all), but when seeking, its still buffering, also, also when video ended and starts playing from first, its giving a glitched effect, i've attached a video as well.

Screen.Recording.2025-01-28.at.9.47.32.AM.mov

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

2 participants