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

Playback issue with range (position) with unusual video framerate #6404

Open
gilou opened this issue May 18, 2024 · 1 comment
Open

Playback issue with range (position) with unusual video framerate #6404

gilou opened this issue May 18, 2024 · 1 comment
Labels
Status: Waiting for answer Waiting issue author answer

Comments

@gilou
Copy link

gilou commented May 18, 2024

Describe the current behavior

If I try to seek in a video, that runs at 1 FPS (240p1), Firefox issues a byte range request but loads indefinitely, and does not manage to play the video at all.

Steps to reproduce

  1. Using Firefox, go to https://www.yiny.org/w/51UnWF8X1BBQBGhhPbseGU?start=5m34s&autoplay=1
  2. Hit play if autoplay is not engaged
  3. it seems to load forever, but won't play

Describe the expected behavior

It should play!

Additional information

  • PeerTube instance:

  • Browser name, version and platforms on which you could reproduce the bug: Firefox 126/Ubuntu 22.04
    Note : on Chrome, it tries to play, so we have blank for x seconds, but seems to realize it's not correct, and it issues another request for somehow the appropriate range.

  • Link to browser console log if relevant:
    Video format "nerd stats" info:
    Player mode
    p2p-media-loader
    P2P
    activé
    UUID de la vidéo
    2084d57c-4966-4ede-8a29-154861234128
    Fenêtre d’affichage / Cadres
    1850x941*1.00 / 0 supprimées sur 0
    Résolution
    240p1
    Volume
    100
    Codecs
    avc1.640015 / mp4a.40.2

My guess is that it expects a different framerate when translating from timestamp to bytes, and doesn't get what it wants… But I didn't analyze the issue further. Of course, I could stream in 30 FPS, or maybe stream using pure audio, but those "videos" are now out in 240p/1 FPS… And seek / timestamped playback is broken.

@Chocobozzz
Copy link
Owner

Hi,

I think it's a firefox bug as it correctly works on chrome and I don't see issues in the m3u8 file PeerTube creates.

You can also test using directly hls.js on https://hlsjs.video-dev.org/demo/ with https://www.yiny.org/static/streaming-playlists/hls/2084d57c-4966-4ede-8a29-154861234128/79859328-8cd1-4326-8185-b3365a7c8b1b-240.m3u8

@Chocobozzz Chocobozzz added the Status: Waiting for answer Waiting issue author answer label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Waiting for answer Waiting issue author answer
Projects
None yet
Development

No branches or pull requests

2 participants