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

ERROR: Postprocessing: Error opening input files: Invalid data found when processing input #157

Open
halfoctave opened this issue Dec 26, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@halfoctave
Copy link

Describe the bug
Trying to download a video from Youtube and getting the following error. I've changed the video privacy from Unlisted to Public but no success.

To Reproduce
Steps to reproduce the behavior:

  1. Use this URL in Open Video Downloader: https://youtube.com/live/h5wXaZqboOI
  2. Try downloading it in 1080p60 with Video+Audio
  3. The video will download 100% but error out in the end
  4. ERROR: Postprocessing: Error opening input files: Invalid data found when processing input

Expected behavior
The video should get downloaded to the designated folder without any issue

Screenshots
image

Additional info (please complete the following information):

  • OS: Windows 11
  • Application version: v2.5.4
  • Application type: Installer from Github
@halfoctave halfoctave added the bug Something isn't working label Dec 26, 2024
@halfoctave
Copy link
Author

Just tried downloading only the video and it was successfully downloaded. The error is only when either Video+Audio is downloaded or just the Audio.

@StefanLobbenmeier
Copy link
Owner

just tried on macos with v3 and had no issue with that video, trying again with v2

But this is most likely some ffmpeg issue - can you show the log (towards the end just before the error)?
Also please make sure auto update ytdl binaries is turned on.

@StefanLobbenmeier
Copy link
Owner

Actually in v2 I can reproduce, curious about what exactly causes the difference here

@StefanLobbenmeier
Copy link
Owner

I get this error in my logs:

[Merger] Merging formats into "~/Downloads/[WIP] A Plague Tale Requiem: Chapter 9 Part 2-(1080p60).mp4"
ERROR: Postprocessing: Error opening input files: Invalid data found when processing input
Download stopped
Download stopped
Download finished

while in v3 this part just works:

"/opt/homebrew/bin/yt-dlp" "--ffmpeg-location" "/opt/homebrew/bin/ffmpeg" "-v" "--compat-opt" "manifest-filesize-approx" "--concurrent-fragments" "10" "--cookies-from-browser" "brave" "--merge-output-format" "mp4" "--remux-video" "mp4" "--recode-video" "mp4" "--audio-format" "aac" "--embed-metadata" "--embed-thumbnail" "--embed-chapters" "--paths" "~/Downloads" "--output" "%(title).200s-(%(height)sp%(fps).0d).%(ext)s" "--write-thumbnail" "--keep-video" "--print" "[video-metadata-json]%()j" "--no-simulate" "--no-quiet" "-f" "299+251" "--load-info-json" "/var/folders/nj/6jg107f16rq5773t7pp5_j5m0000gp/T/yt-dlp-compose13336770526288418440yt-dlp-metadata.json" "--progress-template" "[download-progress]%(progress)j" "https://youtube.com/live/h5wXaZqboOI"

[DefaultDispatcher-worker-1] INFO de.lobbenmeier.stefan.downloadlist.business.DownloadItem - [Merger] Merging formats into "~/Downloads/[WIP] A Plague Tale Requiem: Chapter 9 Part 2-(1080p60).mp4"
[DefaultDispatcher-worker-1] INFO de.lobbenmeier.stefan.downloadlist.business.DownloadItem - [VideoConvertor] Not converting media file "~/Downloads/[WIP] A Plague Tale Requiem: Chapter 9 Part 2-(1080p60).mp4"; already is in target format mp4
[DefaultDispatcher-worker-1] INFO de.lobbenmeier.stefan.downloadlist.business.DownloadItem - [Metadata] Adding metadata to "~/Downloads/[WIP] A Plague Tale Requiem: Chapter 9 Part 2-(1080p60).mp4"

it might be caused by some explicit conversion option that somehow fails in v2, but frankly no idea

@halfoctave
Copy link
Author

I was able to download it now, and I think I’ve figured out why.

Earlier, the video was still being processed by YouTube, which is probably why I couldn’t download it using Open video downloader and kept encountering an error (the download button in YouTube Studio was also not active at the time). Now that YouTube has finished processing the video and the download button is active at YT, the download worked using v2.5.4 as well.

If that is the case, then I guess a better error message would help or including it in FAQ might.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants