Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
youtube-dl piping to vlc works on ubuntu but fails on WSL #26525
Comments
|
Seems permission related. What kind of user are you using? Have you tried |
|
I am running as a normal user. I tried running both youtube-dl and vlc with sudo and there is no difference. Would it be able to identify what the actual error with ffmpeg is? The current error message |
|
That is depending on your OS. In Ubuntu |
|
Interesting. Since you say that ffmpeg is having issues writing to a pipe, I decided to do some digging on my own. vlc was failing to stream .mp4 files that I'd manually downloaded as well. To get a "headless" vlc install, I'd installed the On a side note, I thought that a popular package like vlc would have instructions for a headless/server install, but it doesn't. Hand to manually dig and install the packages that were needed. |
Checklist
Verbose log
Description
Command run
I am using youtube-dl to download a HLS stream on the fly and stream it over my network using VLC. The standard method for piping youtube-dl to vlc is as follows:
youtube-dl URL -o - | vlc -and I am using it. On a ubuntu desktop system of mine, this works successfully. However, on a WSL2 (with ubuntu as the distro), I get this error with FFMPEG. I have the latest version of youtube-dl from pip and ffmpeg from my distro's repos. To add, if I run youtube-dl without piping it to VLC, it runs fine. The error with ffmpeg only appears when it is piped to vlc.I would really appreciate it if someone is able to look into this, or atleast guide me on how to investigate this myself.