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

[BUG] Failed pre-check for video info error #449

Closed
u0a1009 opened this issue Sep 16, 2021 · 20 comments
Closed

[BUG] Failed pre-check for video info error #449

u0a1009 opened this issue Sep 16, 2021 · 20 comments
Labels
is: bug Something isn't working

Comments

@u0a1009
Copy link
Contributor

u0a1009 commented Sep 16, 2021

Hi, I'm using YoutubeDL-Material with Synology Docker, and there is a problem with download.
When I enter youtube link to download the video, it fails.

Failed pre-check for video info: Error: Command failed with exit code 1: /app/node_modules/youtube-dl/bin/youtube-dl --dump-json -o video/%(title)s.mp4 --write-info-json --print-json -f bestvideo+bestaudio --merge-output-format mp4 --write-thumbnail http://www.youtube.com/watch?v=qo7ae99w1IQ

And I attached a photo too.

I searched some issues and Tzahi said them to configure with Youtube DLC, not DL. But since I'm not familiar with docker environment, I don't know how to change to DLC.

Can you give me how to do it or is there something more great way to fix this problem?
Thanks.

1
2
3
4

@u0a1009 u0a1009 added the is: bug Something isn't working label Sep 16, 2021
@GlassedSilver
Copy link
Collaborator

Personally I prefer to stay on the OG myself (personal preference and a reluctance to be skippy with forks in general with software), but if you're willing to switch forks that's no problem. :)

Just follow along:

Settings > Advanced > "Select a downloader"

image

Nothing Docker specific, you can all do it from within the app itself. :)

Hope it helps. Let me know if you need anything else :)

@u0a1009
Copy link
Contributor Author

u0a1009 commented Sep 16, 2021

Personally I prefer to stay on the OG myself (personal preference and a reluctance to be skippy with forks in general with software), but if you're willing to switch forks that's no problem. :)

Just follow along:

Settings > Advanced > "Select a downloader"

image

Nothing Docker specific, you can all do it from within the app itself. :)

Hope it helps. Let me know if you need anything else :)

Oh, thanks. I thought it was very hard to change.
But still same error even I changed downloader to dlc..
Is there any way to fix this error?

Log :
2021-09-16T05:02:45.990Z ERROR: Error during parsing: Error: Command failed with exit code 1: /app/node_modules/youtube-dl/bin/youtube-dl --dump-json http://www.youtube.com/watch?v=qo7ae99w1IQ
2021-09-16T05:02:45.995Z ERROR: failed to parse for urls starting with https://www.youtube.com/watch?v=qo7ae99w1IQ
2021-09-16T05:02:49.976Z ERROR: Error while retrieving info on video with URL https://www.youtube.com/watch?v=qo7ae99w1IQ with the following message: Error: Command failed with exit code 1: /app/node_modules/youtube-dl/bin/youtube-dl --dump-json -o video/%(title)s.mp4 --write-info-json --print-json -f bestvideo+bestaudio --merge-output-format mp4 --write-thumbnail http://www.youtube.com/watch?v=qo7ae99w1IQ
2021-09-16T05:02:49.978Z ERROR: ERROR: Unable to download webpage: <urlopen error [Errno -3] Try again> (caused by URLError(gaierror(-3, 'Try again'),))

@GlassedSilver
Copy link
Collaborator

Looks like you're still using youtube-dl. Did you press save after changing the setting? (sorry I forgot to point that out, My bad!)

image

@u0a1009
Copy link
Contributor Author

u0a1009 commented Sep 16, 2021

Looks like you're still using youtube-dl. Did you press save after changing the setting? (sorry I forgot to point that out, My bad!)

image

Yeah I thought that is strange but I already pressed Save button.
I restarted the container but it didn't start.
Maybe something went wrong.. I'll reinstall the container.

@GlassedSilver
Copy link
Collaborator

Keep us updated, if it fails again maybe @Tzahi12345 can figure it out better than I could. Just in case you might want to trail the log as it loads up and share a snippet of that. Can't really help with Synology specifically here, but the log will be in the appdata folder (the path defined as /app/appdata so docker/youtubedl/app on your Synology machine)

@u0a1009
Copy link
Contributor Author

u0a1009 commented Sep 16, 2021

Keep us updated, if it fails again maybe @Tzahi12345 can figure it out better than I could. Just in case you might want to trail the log as it loads up and share a snippet of that. Can't really help with Synology specifically here, but the log will be in the appdata folder (the path defined as /app/appdata so docker/youtubedl/app on your Synology machine)

I reinstalled many times and also downgraded but the problem occured again.
I think it is youtube dl or dlc's problem but well I can't handle this problem.
So, well, I'll wait for @Tzahi12345 and this is my log :

2021-09-16T06:13:03.942Z INFO: Cannot find config file. Creating one with default values...
2021-09-16T06:13:03.995Z INFO: Beginning migration: 4.1->4.2+
2021-09-16T06:13:04.017Z INFO: 4.1->4.2+ migration complete!
2021-09-16T06:13:09.137Z ERROR: youtube-dl failed to update. Restart the server to try again.
2021-09-16T06:13:09.138Z ERROR: getaddrinfo EAI_AGAIN yt-dl.org
2021-09-16T06:13:09.140Z INFO: youtube-dl successfully updated!
2021-09-16T06:13:09.152Z INFO: YoutubeDL-Material v4.2 started on PORT 17442
[ I changed downloader to youtube-dlc and tried to download video ]
2021-09-16T06:14:12.865Z ERROR: Error during parsing: Error: Command failed with exit code 1: /app/node_modules/youtube-dl/bin/youtube-dl --dump-json http://www.youtube.com/watch?v=qo7ae99w1IQ
2021-09-16T06:14:12.866Z ERROR: failed to parse for urls starting with https://www.youtube.com/watch?v=qo7ae99w1IQ
2021-09-16T06:14:24.817Z ERROR: Error while retrieving info on video with URL https://www.youtube.com/watch?v=qo7ae99w1IQ with the following message: Error: Command failed with exit code 1: /app/node_modules/youtube-dl/bin/youtube-dl --dump-json -o video/%(title)s.mp4 --write-info-json --print-json -f bestvideo+bestaudio --merge-output-format mp4 --write-thumbnail http://www.youtube.com/watch?v=qo7ae99w1IQ
2021-09-16T06:14:24.819Z ERROR: ERROR: Unable to download webpage: <urlopen error [Errno -3] Try again> (caused by URLError(gaierror(-3, 'Try again'),))
[ I restarted this container ]
2021-09-16T06:15:03.285Z ERROR: Failed to check youtube-dlc version for an update.
2021-09-16T06:15:03.291Z ERROR: request to https://api.github.com/repos/blackjack4494/yt-dlc/tags failed, reason: getaddrinfo EAI_AGAIN api.github.com
2021-09-16T06:15:17.280Z ERROR: Failed to check youtube-dlc version for an update.
2021-09-16T06:15:17.287Z ERROR: request to https://api.github.com/repos/blackjack4494/yt-dlc/tags failed, reason: getaddrinfo EAI_AGAIN api.github.com
[ Endless repeat ]

@Tzahi12345
Copy link
Owner

You can also try yt-dlp if you're on the latest nightly.

Someone else did see the exact same error, and it looks like their solution worked. Check it out and let me know how it goes!

@GlassedSilver
Copy link
Collaborator

Depending on what kinds of arguments you use you might want to find out if the fork you switch to uses them differently or dropped support for them.

For example I know that youtube-dlp (I think) uses a light version of the info json. There is a flag to write the classic format to disk though. Just as a little explanation why specifically with youtube-dl I'm extremely conservative.

@Tzahi12345
Copy link
Owner

I actually specifically asked the dev to add an argument to keep more info in the JSON, otherwise it would be impossible for us to use. But yeah definitely something to keep in mind!

@u0a1009
Copy link
Contributor Author

u0a1009 commented Sep 17, 2021 via email

@u0a1009
Copy link
Contributor Author

u0a1009 commented Sep 17, 2021 via email

@GlassedSilver
Copy link
Collaborator

Running into the same error:

error: Forever detected script exited with code: 1
error: Script restart attempt #128
internal/modules/cjs/loader.js:818
throw err;
^

Error: Cannot find module 'rxjs'
Require stack:
- /app/db.js
- /app/app.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
at Function.Module._load (internal/modules/cjs/loader.js:667:27)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/app/db.js:12:29)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/app/app.js:13:16)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/app/db.js', '/app/app.js' ]
}
error: Forever detected script exited with code: 1
error: Script restart attempt #129
internal/modules/cjs/loader.js:818
throw err;
^

Error: Cannot find module 'rxjs'
Require stack:
- /app/db.js
- /app/app.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
at Function.Module._load (internal/modules/cjs/loader.js:667:27)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/app/db.js:12:29)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/app/app.js:13:16)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/app/db.js', '/app/app.js' ]
}
error: Forever detected script exited with code: 1
error: Script restart attempt #130
internal/modules/cjs/loader.js:818
throw err;
^

etc etc...

This is on the latest nightly after the first try to start it up.

This is with the downloader fork set to regular youtube-dl. So it's not because of that I think.

@GlassedSilver
Copy link
Collaborator

And I'm now curious is there any way to encode video file to h264 in ytdl-material? Since I'm using mac and ios, I cannot play vp9 and opus(not sure) codec not using third-party player. So I'd like to change it to h264 and aac, or anything else. I found there is --encoding option, but I couldn't find how to use it. If you don't mind, can you tell me how to use it?

And I'm now curious is there any way to encode video file to h264 in ytdl-material? Since I'm using mac and ios, I cannot play vp9 and opus(not sure) codec not using third-party player. So I'd like to change it to h264 and aac, or anything else. I found there is --encoding option, but I couldn't find how to use it. If you don't mind, can you tell me how to use it?

You can look up the documentation for youtube-dl here:

https://github.com/ytdl-org/youtube-dl/blob/master/README.md#workarounds

I linked you right to the relevant part. Unfortunately the documentation doesn't get much more specific than that. Maybe if you just pass HEVC (that should be hardware-decoded on basically anything modern these days, in Apple land as well) it SHOULD work I guess?

Not sure if it would also be advisable to force a container along with that, shouldn't be necessary though. Not sure anymore, haven't checked that in a while.

Cheers and hope this is somewhat helpful.

@Tzahi12345
Copy link
Owner

However, I installed the nightly version to use dlp, but it was not executed due to the following error. Now, there is no reason for me to install the nightly version since I have solved my problem, but I'm simply informing you for bug report.

Oops missed an import! Should be fixed now.

@u0a1009
Copy link
Contributor Author

u0a1009 commented Sep 17, 2021

If anyone who uses synology or anything else suffers from the same problem as me, it would be nice to guide them to turn off the firewall. Really thanks for your help and I'll close this issue.

@u0a1009 u0a1009 closed this as completed Sep 17, 2021
@GlassedSilver
Copy link
Collaborator

However, I installed the nightly version to use dlp, but it was not executed due to the following error. Now, there is no reason for me to install the nightly version since I have solved my problem, but I'm simply informing you for bug report.

Oops missed an import! Should be fixed now.

Nice! Just gonna wait for DockerHub to catch up to the latest commit then and then it's party time!

Can't wait to see the new download backend in action! :D

@GlassedSilver
Copy link
Collaborator

If anyone who uses synology or anything else suffers from the same problem as me, it would be nice to guide them to turn off the firewall. Really thanks for your help and I'll close this issue.

We'll bring it to anyone's attention if raised directly again to us, additionally I created a notice page for Synology in the Wiki. :)

https://github.com/Tzahi12345/YoutubeDL-Material/wiki/Synology

@u0a1009
Copy link
Contributor Author

u0a1009 commented Sep 17, 2021

We'll bring it to anyone's attention if raised directly again to us, additionally I created a notice page for Synology in the Wiki. :)

https://github.com/Tzahi12345/YoutubeDL-Material/wiki/Synology

Thanks :)

@jwillmer
Copy link

works again

@GlassedSilver
Copy link
Collaborator

works again

Can confirm, seems pretty good so far, let's see how this one handles busy sub peaks :)

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

No branches or pull requests

4 participants