-
Notifications
You must be signed in to change notification settings - Fork 217
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
On MacOS Ventura; Error: "Failed to recognize file format" when attempting to play any YouTube video #585
Comments
Does it work fine if you're running mpv on its own without Syncplay? Do you have the latest version of ytdl installed? |
Yes, it plays fine in mpv. It doesnt even reach mpv from syncplay as far as i can tell. Can provide info just let me know, i would really like this fixed Edit:
|
I'm having the exact same issue on Windows 10. When I /qa it, it removes it from the queue immediately seemingly without reaching mpv (just the "x has updated the playlist" message pops up). When I turn off shared playlists, /qa the youtube video and then turn on shared playlists again, it DOES reach mpv but returns "failed to recognize file format" but in this case does NOT remove the entry from the playlist. I initially thought it was related to ffmpeg, so I installed that and now mpv plays pasted youtube videos fine (lua script to paste) but the playlist issue prevails. |
I think this is a different bug to what i'm experiencing on macOS. Not sure about the original issue creator |
Having the same issue with macOS Sonoma. My mpv is able to play from YouTube URLs without Syncplay.
|
Any update on this? |
My workaround is to substitute mpv with IINA, an mpv-based player with many enhancements made specifically for macOS. It works just fine with Syncplay. |
Thanks for the workaround @suhailskhan - I've now added it to the FAQ at https://syncplay.pl/guide/trouble/ to benefit others who have the same issue. |
Out of curiosity, I looked into the problem a little more and encountered #379. I captured a debug log using the instructions @albertosottile provided in that issue thread, and interestingly the log appeared to similar to the one presented in the thread. Even though the logs are similar, this earlier issue ended up being resolved in an earlier release of Syncplay. I will leave my log at the end of this comment. Here is my system and the versions of all the software I tested with:
|
@suhailskhan The problem is that the location of the Python that runs |
I encountered this recently. My setup:
Everything is installed from brew. Looks like syncplay is trying to find |
@albertosottile I see, that is fair enough. Though I must say that this Python path that you observed from my debug output is that of a Python interpreter installed with MacPorts. Much like how Homebrew puts symlinks of executables in |
@stszap Are you aware of any way to do so?
@suhailskhan This is perhaps the direct solution for your configuration, but what about people that have |
@albertosottile After some digging I have a proof of concept. The latest release of mpv 0.39.0 added a new property First, create a lua file
Then run mpv with that script and some URL which triggers ytdl
This is the most relevant part I'm not sure about how to integrate this with syncplay but the basic idea is to somehow do a test run of mpv with the same configuration as the real run but also add a lua script and use some sort of dummy URL, then extract ytdl path from the output. Maybe there is an easier way but this is all I could cobble together. |
Thanks for your continued work on this. The new mpv property in 0.39.0 seem to a move in the right direction. That said, for Syncplay to have better support for yt-dlp in this use case then either there would need to be an upstream change to allow for this to be supported in a much less hacky way or someone would need to volunteer to add support in a relatively clean and unobtrusive way and then maintain that support. Syncplay's core functionality is to play locally stored files. Where it is easy we don't mind users allowing users to benefit from the streaming functionality provided by their media player, but where this is not reliable we generally see that as an upstream or out-of-scope issue rather. This is due to our limited resources, the need to avoid feature creep which can adversely impact on maintainability, and because this is not a feature we use and so we are not well placed to implement, test, and maintain the functionality (as well as the fact that ). When I talk about clean and unobtrusive way I mean something along the following lines:
|
Totally understandable. I also think that lua script solution is way too hacky. I tried a much simpler user-side fix for yt-dlp users: just symlink
|
Describe the bug
When attempts are made to play a YouTube video on either of my machines running macOS Ventura using MPV I receive the error message "Failed to recognize file format" and nothing plays. I can play the same videos fine using SyncPlay and MPV on Windows 10. This applies to SyncPlay version 1.6.8, 1.6.9, and 1.7 Beta 1.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The linked YouTube video should start playing.
Version and platform:
The text was updated successfully, but these errors were encountered: