-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[youtube] "Invalid data found when processing input" / ffmpeg errors on HDR VP9 in mp4 #7541
Comments
The format you are downloading is vp9 in mp4, which old ffmpeg cannot handle. Try updating ffmpeg to 6.0 and let us know if issue still exists. |
issue still exists with ffmpeg 6.0
|
I can also confirm that i started seeing this on my side today too. |
Another (smaller in size) video with which I can reproduce the issue:
It can't be played by mpv, and can't be read by ffprobe/ffmpeg. It can be played by VLC. Possibly relevant: https://superuser.com/a/1462096 |
but it looks like the vp09 format of other videos can be handled by ffmpeg |
yes ffmpeg3.4 works |
Tad late to the party but I'm also seeing this occasionally. |
So is it possible to set the default download format to h264 instead of vp09? |
You can do something like -f bestvideo[ext=mp4] or -f bestvideo[ext!=webm] |
This doesn't work because of the vp9-in-mp4 and av1 formats that Youtube serves.
|
I wasn't aware YT was slipping those codecs into mp4 containers. Most concerning as the machine I watch on is very old and I have to avoid high FPS, high Res and vp9/webm/av1. |
based on my experience videos that are in HDR have this problem, I use -S +hdr (if you gonna use this put it before -f just in case, it didn't work for me until I did that) to download the best non HDR one |
Thanks a lot, this works for me, when downloading HDR videos |
any solution if wanting to download the HDR version? |
While searching for a solution I stumbled upon this doc from Google:
I haven't figured out yet how to ensure that the new HDR info is the same as the input and how to automate this, but hopefully someone more experienced can make some progress.
The missing option seems to be Maybe this helps move things along. |
are you mean recompiling ffmpeg might help? This is a great development, thank you for sharing @puc9 |
@PikuZheng I don't really know, but I believe that the issue here is indeed ffmpeg. |
Maybe not working. . . I've been using static ffmpeg from here, but it has |
I am using an ffmpeg build dynamically linked to a libvpx that was compiled with It's worth noting that this issue only presents with HDR VP9 in mp4 container formats, not the HDR VP9 webm formats that youtube serves. A user on the discord server shared this link, which seems potentially related, but the workarounds given in the answer do not work. MP4Box can remux the HDR VP9 mp4, but ffmpeg still cannot read the resulting file. |
This has been reported to ffmpeg's bugtracker: https://trac.ffmpeg.org/ticket/10711 |
Has this been fixed yet? I'm still having the same issue with the latest ffmpeg and yt-dlp builds |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as duplicate.
This comment was marked as duplicate.
I'm having this issue with the latest ffmpeg and yt-dlp builds too.
|
@Goosegit11 check the ffmpeg bugtracker link for updates on this. It is out of our hands |
@bashonly Yep, sorry |
the latest master build from yt-dlp/FFmpeg-Builds has the fix, if anyone wants to test it |
This has worked for the streams I kept to validate this. Thanks for building it! |
Unfortunately I need musl or static compilation :( |
confirmed fixed in ffmpeg 7.0.1 |
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Region
Japan
Provide a description that is worded well enough to be understood
It looks like #7536 but youtube video. When trying to download a video, I encountered the error "Invalid data found when processing input".
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output
The text was updated successfully, but these errors were encountered: