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

MPV + Youtube : no audio, EDL parsing failed #11448

Closed
Azuraell opened this issue Mar 13, 2023 · 5 comments
Closed

MPV + Youtube : no audio, EDL parsing failed #11448

Azuraell opened this issue Mar 13, 2023 · 5 comments
Labels

Comments

@Azuraell
Copy link

This essentially prevents a program I use from working. I hope this issue contains enough information so that is may be solved, or that you can point me to an existing fix.
I asked several friends running Arch to try on their machine and it was reproduced every time.

Important Information

Provide following Information:

  • mpv version 0.35.1
  • Manjaro Linux 22.0.4
  • Source of the mpv binary : Community repository (Arch)
  • Window Manager: KDE Plasma 5.26.5
  • GPU driver and version : GLX version: 1.4
    Vendor: AMD (0x1002)
    Device: AMD Radeon Vega 10 Graphics (raven, LLVM 15.0.7, DRM 3.42, 5.15.94-1-MANJARO) (0x15d8)
    Version: 22.3.5

Reproduction steps

Expected behavior

When the command "mpv <YouTube URL>" is launched, the video starts playing normally in MPV

Actual behavior

When the command "mpv <YouTube URL>" is launched, either the video launches in MPV without any audio, or does not launch at all. Errors generally are :

EDL specifies no segments.'
EDL parsing failed.
Error in EDL.

Log file

mpv.log (no audio)
mpv2.log (failure)

@llyyr
Copy link
Contributor

llyyr commented Mar 13, 2023

Duplicate of #11392. You can copy ytdl_hook.lua to your scripts folder and run mpv with --ytdl=no or update to a newer enough version of mpv that has it fixed.

@ghost
Copy link

ghost commented Mar 14, 2023

Duplicate of #11392. You can copy ytdl_hook.lua to your scripts folder and run mpv with --ytdl=no or update to a newer enough version of mpv that has it fixed.

Thanks solved the issue for me.

But some videos still give the message when starting from terminal:

[ytdl_hook] EDL doesn't support fragmentswithout duration with MP4 DASH
[ytdl_hook] EDL doesn't support fragmentswithout duration with MP4 DASH

Using the mpv version from March 10 and yt-dlp March 4.

Sound and stream is fine though.

Edit:
This message does not appear anymore.
--ytdl=no was not needed with my version.

@Traneptora Traneptora closed this as not planned Won't fix, can't repro, duplicate, stale Mar 14, 2023
@markmark1
Copy link

[ytdl_hook]
[ytdl_hook] stack traceback:
[ytdl_hook] [C]: at 0x01010fe544
[ytdl_hook] Lua error: /mpv/scripts/ytdl_hook.lua:8: unexpected symbol near '<'
Failed to recognize file format.

@simurgh9
Copy link

simurgh9 commented Jun 13, 2023

copy ytdl_hook.lua to your scripts folder

Where might I find this scripts folder?

I installed mpv using homebrew brew install --cask mpv on a Mac.

@Traneptora
Copy link
Member

It would be in ~/.config/mpv/scripts/

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

No branches or pull requests

5 participants