jeckman / YouTube-Downloader

PHP script for downloading videos from youtube; also parsing youtube feed into RSS enclosures for podcatchers
GNU General Public License v2.0
894 stars 473 forks source link

No format stream map found - was the video id correct? #396

Open Azicoly opened 5 years ago

Azicoly commented 5 years ago

Got this error - No format stream map found - was the video id correct? for this link 'nlj9fqTC-BU'

Izvekov commented 5 years ago

/src/Application/ResultController.php line 101 $redirect_url = $this->getDownloadUrlByFormat($video_info, $_GET['format']); src/Provider/Youtube/VideoInfo.php line 412 $adaptive_formats = explode(',', $this->data['adaptive_fmts']);

miadsaadidi commented 5 years ago

I have the same lines!! $GET allows to get a variable from the url like domain.com/ResultController.php?format=something. when the format is not specified, we get this error. this link is generated automatically, so you can't add it manually. To avoid this error try to add ResultController.php try to add a condition on the requested value before using isset($_GET['something'].

Please make sure to make a copy of your files before editing. Hope this could help you

Izvekov commented 5 years ago

Thank you very much, there is no more mistake. Now I'm just getting a message No format stream map found - was the video id correct? But as far as I understand it can be solved if you run the script on the server in another country? Is it possible to send such requests to you on the server, in exchange you can send to my those that you give such a message? Or I am not right and it can be solved on my server?

KitDevUA commented 5 years ago

Thank you very much, there is no more mistake. Now I'm just getting a message No format stream map found - was the video id correct? But as far as I understand it can be solved if you run the script on the server in another country? Is it possible to send such requests to you on the server, in exchange you can send to my those that you give such a message? Or I am not right and it can be solved on my server?

I think it is possible to solve by proxy :)

Izvekov commented 5 years ago

Thank you so much for your reply. Yes the proxy needs to solve the problem, if you guess through which country should request to do so. Can you tell me where YouTube-Downloader request goes, which must be sent via proxy? Thanks.

jeckman commented 5 years ago

The checks for if isset are good ideas, but they'll just change the error message.

The problem is you are not getting a format stream map from youtube - I suppose we could tighten some of the checking on this to throw the correct error earlier in the process but that is not going to fix the underlying error.

Izvekov commented 5 years ago

Thank you for answering and trying to help. replace if (isset($GET['format'])) { $adaptive_formats = explode(',', $this->data['adaptive_fmts']); } The script produces the other links error wrote Notice: Undefined variable: adaptive_formats in /src/Provider/Youtube/VideoInfo.php on line 415 Catchable fatal error: Argument 1 passed to YoutubeDownloader\Provider\Youtube\VideoInfo::parseFormats() must be of the type array, null given, called in /src/Provider/Youtube/VideoInfo.php on line 415 and defined in /src/Provider/Youtube/VideoInfo.php on line 257 The problem is not solved so :(

KitDevUA commented 5 years ago

Thank you so much for your reply. Yes the proxy needs to solve the problem, if you guess through which country should request to do so. Can you tell me where YouTube-Downloader request goes, which must be sent via proxy? Thanks.

Any third world country will work. But this will not help with those videos that have other restrictions. For example, age. I have no perfect solution. I am looking for it in this thread just like you)

butyzon4u commented 5 years ago

Where can I buy sure proxy?

On Sat, Sep 7, 2019, 7:23 PM Craft-Lawrence notifications@github.com wrote:

Thank you so much for your reply. Yes the proxy needs to solve the problem, if you guess through which country should request to do so. Can you tell me where YouTube-Downloader request goes, which must be sent via proxy? Thanks.

Any third world country will work. But this will not help with those videos that have other restrictions. For example, age. I have no perfect solution. I am looking for it in this thread just like you)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jeckman/YouTube-Downloader/issues/396?email_source=notifications&email_token=AHDIAFIGBT3NBBX5RBQB363QIPPSDA5CNFSM4H7EGKZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6E5T3I#issuecomment-529127917, or mute the thread https://github.com/notifications/unsubscribe-auth/AHDIAFJ45IRONMBXBCNUCZ3QIPPSDANCNFSM4H7EGKZQ .

KitDevUA commented 5 years ago

Where can I buy sure proxy?

proxy6_dot_net, I use Turkey. But again, it helped me with less then half the problematic videos. I advise you to look for a better solution.

butyzon4u commented 5 years ago

Which solution do you suggest?

On Sat, Sep 7, 2019, 8:20 PM Craft-Lawrence notifications@github.com wrote:

Where can I buy sure proxy?

proxy6_dot_net, I use Turkey. But again, it helped me with less then half the problematic videos. I advise you to look for a better solution.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jeckman/YouTube-Downloader/issues/396?email_source=notifications&email_token=AHDIAFPUFPOFMQO2PSFPBODQIPWIDA5CNFSM4H7EGKZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6E67LY#issuecomment-529133487, or mute the thread https://github.com/notifications/unsubscribe-auth/AHDIAFPZM6FDOGT3PV5RSS3QIPWIDANCNFSM4H7EGKZQ .

butyzon4u commented 5 years ago

I have used a lot of proxies which don't work. How good is the source?

On Sat, Sep 7, 2019, 8:20 PM Craft-Lawrence notifications@github.com wrote:

Where can I buy sure proxy?

proxy6_dot_net, I use Turkey. But again, it helped me with less then half the problematic videos. I advise you to look for a better solution.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jeckman/YouTube-Downloader/issues/396?email_source=notifications&email_token=AHDIAFPUFPOFMQO2PSFPBODQIPWIDA5CNFSM4H7EGKZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6E67LY#issuecomment-529133487, or mute the thread https://github.com/notifications/unsubscribe-auth/AHDIAFPZM6FDOGT3PV5RSS3QIPWIDANCNFSM4H7EGKZQ .

KitDevUA commented 5 years ago

I have used a lot of proxies which don't work. How good is the source?

This is an ordinary proxy. This solution helps me with some videos that were previously inaccessible. I just made several attempts to get the video through the loop, where second step is via proxy.

butyzon4u commented 5 years ago

Okay judge at the proxies available there which one exactly have you made use of and worked for you?

On Sat, Sep 7, 2019, 8:44 PM Craft-Lawrence notifications@github.com wrote:

I have used a lot of proxies which don't work. How good is the source?

This is an ordinary bear. This solution helps me with some videos that were previously inaccessible. I just made several attempts to get the video through the loop, where second step is via proxy.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jeckman/YouTube-Downloader/issues/396?email_source=notifications&email_token=AHDIAFOKRYHQCB5XSJFCI63QIPZB3A5CNFSM4H7EGKZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6E7R7Y#issuecomment-529135871, or mute the thread https://github.com/notifications/unsubscribe-auth/AHDIAFI5TUSM3DS4EBLGWC3QIPZB3ANCNFSM4H7EGKZQ .

Izvekov commented 5 years ago

New changes in format (just today) and not give out links, but gives a "flow map format not found - was the correct ID for the video?" Help please.

amircloner commented 5 years ago

hi guys

No format stream map found - was the video id correct?

error_log

[11-Sep-2019 16:41:10 UTC] PHP Notice: Undefined index: url_encoded_fmt_stream_map in /home/rnqutir/streambit.ir/YouTube-Downloader/src/Provider/Youtube/VideoInfo.php on line 396 [11-Sep-2019 16:41:36 UTC] PHP Notice: Undefined index: url_encoded_fmt_stream_map in /home/rnqutir/streambit.ir/YouTube-Downloader/src/Provider/Youtube/VideoInfo.php on line 396 [11-Sep-2019 16:42:00 UTC] PHP Notice: Undefined index: url_encoded_fmt_stream_map in /home/rnqutir/streambit.ir/YouTube-Downloader/src/Provider/Youtube/VideoInfo.php on line 396

how fixed it

Amonpointh commented 5 years ago

This youtube downloader stopped working

amircloner commented 5 years ago

which number stil working

Izvekov commented 5 years ago

miracle. Today everything worked, although nothing changed or updated!

miadsaadidi commented 5 years ago

@Izvekov could you please test this video https://www.youtube.com/watch?v=VfkJvsR6dhI because It's still not working for me. I got 0B file size

Izvekov commented 5 years ago

@miadsaadidi through some proxies gives an error, through others gives a link that when you try to open gives an error 403. I found only one proxy through which working links can get to your file. If appropriate http://smsbox.qlihost.ru/y/getvideo.php?videoid=VfkJvsR6dhI can use at their discretion, changing videoid

adamwoo2444 commented 5 years ago

not working for this link "https://www.youtube.com/watch?v=ZEKcufmrb0s" .

butyzon4u commented 5 years ago

Location restriction

On Sat, Sep 14, 2019, 9:45 PM adamwoo2444 notifications@github.com wrote:

not working for this link "https://www.youtube.com/watch?v=ZEKcufmrb0s" .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jeckman/YouTube-Downloader/issues/396?email_source=notifications&email_token=AHDIAFNOOSTEXETRZBLF6JDQJU5ODA5CNFSM4H7EGKZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6XCWMI#issuecomment-531508017, or mute the thread https://github.com/notifications/unsubscribe-auth/AHDIAFKMLYRI54IORN4N4Q3QJU5ODANCNFSM4H7EGKZQ .

dribgnikcom commented 4 years ago

Still the same error... Some days it will work on 10% of videos, but most of the time, it's no format stream map found.

What does this have to do with a proxy? Say I go to Youtube, click play, and the video starts, how is that different from how the script works?

Why should one work and the other one be blocked.

0.10 is long in the tooth and has not been working properly for the past year.

mhama commented 4 years ago

As I failed to download any of youtube videos recently, I fixed an aspect of the problem with the PR https://github.com/jeckman/YouTube-Downloader/pull/431 , and it has merged. So please try the current master branch.

In the cource of creating the PR, I found several reasons to show No format stream map found - was the video id correct? error screen.

When there is ciper parameters in the formats and no url parameters exist, it returns 500 error on getting video size.

PHP Fatal error:  Uncaught Exception: <url> malformed in /app/src/Http/CurlClient.php:203
Stack trace:
#0 /app/src/Http/CurlClient.php(113): YoutubeDownloader\Http\CurlClient->getHttpResponseFromCurl(Resource id #2, Array)
#1 /app/src/Http/CurlClient.php(76): YoutubeDownloader\Http\CurlClient->sendRequest(Object(YoutubeDownloader\Http\Request))
#2 /app/src/Application/ControllerAbstract.php(105): YoutubeDownloader\Http\CurlClient->send(Object(YoutubeDownloader\Http\Request), Array)
#3 /app/src/Application/ResultController.php(174): YoutubeDownloader\Application\ControllerAbstract->getSize('', Object(YoutubeDownloader\Config), Object(YoutubeDownloader\Toolkit))
#4 /app/src/Application/App.php(83): YoutubeDownloader\Application\ResultController->execute()
#5 /app/getvideo.php(23): YoutubeDownloader\Application\App->runWithRoute('results')
#6 {main}
jeckman commented 4 years ago

@mhama thanks for the pull request.

Could you do another pull request to turn some of these responses into better user-facing errors?

We get a lot of error reports here that just say "it doesn't work" - getting better error messages would help reduce the volume of those by making more clear what the underlying issue might be

dribgnikcom commented 4 years ago

Thank you, it's working. Something is up with git. I'm an ignoramous but I've been able to clone and checkout with git before, but now it's giving me old, stale versions (both when updating and cloning -- per the instructions you provided).

In the end I just did a wget on the zip instead and I got the fresh files.

attackwap commented 4 years ago

player_response only comes out if the video is not copyrighted, for music videos like vevo and more there is no player_response at get_video_info