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

Twitch VODs not playing from the beginning #14840

Open
5 of 6 tasks
TheLongLife opened this issue Sep 13, 2024 · 4 comments
Open
5 of 6 tasks

Twitch VODs not playing from the beginning #14840

TheLongLife opened this issue Sep 13, 2024 · 4 comments

Comments

@TheLongLife
Copy link

TheLongLife commented Sep 13, 2024

mpv Information

mpv v0.38.0-567-g68a1a387 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
 built on Jun 29 2024 00:14:16
libplacebo version: v7.349.0 (v7.349.0-rc1-3-g1fd3c7b-dirty)
FFmpeg version: N-116052-gd5e603ddc
FFmpeg library versions:
   libavcodec      61.9.100
   libavdevice     61.2.100
   libavfilter     10.2.102
   libavformat     61.4.100
   libavutil       59.27.100
   libswresample   5.2.100
   libswscale      8.2.100

Other Information

- Windows version: Windows 10 LTSC 1809
- GPU model, driver and version: irrelevant
- Source of mpv: Windows builds by shinchiro
- Introduced in version: n/a

Reproduction Steps

  1. Play Twitch VOD (by dragging the link to mpv window, or however you want)
  2. Look at the progress bar / current time

Expected Behavior

For video to start playing at the beginning 00:00:00

Actual Behavior

It starts playing roughly a minute after the beginning.

Seeking to beginning manually doesn't work, it just goes back to that same spot.
In VLC it plays from the beginning without issues.

Log File

output.txt

Sample Files

No response

I carefully read all instruction and confirm that I did the following:

  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.
@na-na-hi
Copy link
Contributor

na-na-hi commented Sep 13, 2024

mpv v0.38.0-567-g68a1a387 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
built on Jun 29 2024 00:14:16

Update. There was a known regression in that range which was fixed.

Edit: still reproducible on current master. The regression had a similar symptom but this might have a different cause.

@Sneakpeakcss
Copy link

Had the same issue some time ago and found out that script-opts-add=ytdl_hook-use_manifests=yes fixed this, but at the same time it stopped selecting the very best quality track no matter the ytdl-format setting.

@TheLongLife
Copy link
Author

TheLongLife commented Sep 13, 2024

Had the same issue some time ago and found out that script-opts-add=ytdl_hook-use_manifests=yes fixed this, but at the same time it stopped selecting the very best quality track no matter the ytdl-format setting.

Oh that does fix it. Thank you.
It sets the quality to 720p but I can change it to higher resolution within UOSC stream quality menu, no problem.
Actually changing the quality makes the beginning unplayable again xD

@Sneakpeakcss
Copy link

Had the same issue some time ago and found out that script-opts-add=ytdl_hook-use_manifests=yes fixed this, but at the same time it stopped selecting the very best quality track no matter the ytdl-format setting.

Oh that does fix it. Thank you. It sets the quality to 720p but I can change it to higher resolution within UOSC stream quality menu, no problem. Actually changing the quality makes the beginning unplayable again xD

Calling it a fix was a bit generous. If you're using mpv-twitch-chat script, then it no longer shifts the subtitle by a minute forward, but if you either reload or progress the video too far, and seek to 00:00 then the issue comes back. To correct the quality i use a lua script + conditional profile:

mp.add_hook("on_preloaded", 50, function ()
    local title = mp.get_property_native("title")
    if title and title:find("Twitch VoD") then
        if mp.get_property("vid") ~= "1" then mp.set_property("vid", "1") end
        if mp.get_property("aid") ~= "1" then mp.set_property("aid", "1") end
    end
end)
[twitchvod]
profile-cond=get("path", ""):find("^https://www.twitch.tv/(.*)videos?") ~= nil
profile-restore=copy
script-opts-add=ytdl_hook-use_manifests=yes
title=Twitch VoD — ${media-title}

From what i remember both vlc and mpc-hc do not have this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants