Hey allemaal
Zoals jullie misschien al weten ben ik iemand die veel met de geheimen van YouTube doet..
Na een week onderzoek aan hun player ben ik erachter gekomen hoe de beveiliging werkte..
Die inmiddels alweer veranderd is, maar dat is al weer ingebouwd in mijn script
Eerst nog even een tip voor de muzieksites onder ons
Jullie weten allemaal wel van de afbeeldingen uit videos van YouTube.. Zoals..
Afbeelding niet beschikbaarDe bron kon niet worden geladen (i.ytimg.com).Bron openen ↗Er is nog meer
Namelijk:
hqdefault.jpg
Afbeelding niet beschikbaarDe bron kon niet worden geladen (i.ytimg.com).Bron openen ↗sddefault.jpg
Afbeelding niet beschikbaarDe bron kon niet worden geladen (i.ytimg.com).Bron openen ↗maxresdefault.jpg
Afbeelding niet beschikbaarDe bron kon niet worden geladen (i.ytimg.com).Bron openen ↗Het script download de video en slaat hem op als een FLV bestand op je host.. (Dat kan je altijd nog weghalen
)
Toch ben ik erachter gekomen dat het echter niet de FLV video is.. Maar een iets anders.. Naja het werkt in flowplayer dus dat maakt niet uit ;p
Voordat ik jullie het script geef moeten jullie wel wat dingen weten..
Videos die inhoud bevatten van bijvoorbeeld SME kunnen niet worden gedownload.. Het bestand geeft dan status=fail terug met daarin de redenen.
In het video bestand (get_video_info) staan meerdere links.. Vandaar heb ik de q-code in het script.. De q-code kan het volgende zijn.. (LET WEL OP EN VOORKOM DODE DOWNLOADS)
Legenda: q-code | video-type
Bij videos met als hoogste kwaliteit HD 1080:
1 | HD 1080 Video
4 | Niks (bestaat wel word niet ondersteund door FlowPlayer)
7 | HD 720 Video
13 | 480p Video
19 | 480p Video
22 | 360p Video
25 | 240p Video
Bij videos met als hoogste kwaliteit HD 720:
4 | HD 720 Video
7 | Niks (bestaat wel word niet ondersteund door FlowPlayer)
10 | 480p Video
16 | 360p Video
19 | 360p Video
22 | 240p Video
Bij videos met als hoogste kwaliteit 480p/360p:
2 | 480p Video
4 | 480p Video
5 | 360p Video
10 | 360p Video
16 | Werkelijk geen idee.. hij laad eeuwig..
19 | 360p Video
22 | 240p Video
Dan nu het script maar..
Je zult zelf maar moeten uittoveren hoe het werkt.. Ik ga niet alles voor je voorkouwen.
Donaties zijn altijd welkom
Voorbeeld van de werking..
http://www.basmilius.com/youtube/watch?video_id=CtfImnUDoes&q=1
PS: Binnenkort komt er een nieuwe mini site van mij waar scripts zoals deze gratis over te nemen zijn
Zoals jullie misschien al weten ben ik iemand die veel met de geheimen van YouTube doet..Na een week onderzoek aan hun player ben ik erachter gekomen hoe de beveiliging werkte..
Die inmiddels alweer veranderd is, maar dat is al weer ingebouwd in mijn script

Eerst nog even een tip voor de muzieksites onder ons
Jullie weten allemaal wel van de afbeeldingen uit videos van YouTube.. Zoals..(Voorbeelden)
Afbeelding niet beschikbaarDe bron kon niet worden geladen (i.ytimg.com).Bron openen ↗
Namelijk:hqdefault.jpg
Afbeelding niet beschikbaarDe bron kon niet worden geladen (i.ytimg.com).Bron openen ↗
Afbeelding niet beschikbaarDe bron kon niet worden geladen (i.ytimg.com).Bron openen ↗
Afbeelding niet beschikbaarDe bron kon niet worden geladen (i.ytimg.com).Bron openen ↗
)Toch ben ik erachter gekomen dat het echter niet de FLV video is.. Maar een iets anders.. Naja het werkt in flowplayer dus dat maakt niet uit ;p
Voordat ik jullie het script geef moeten jullie wel wat dingen weten..
Videos die inhoud bevatten van bijvoorbeeld SME kunnen niet worden gedownload.. Het bestand geeft dan status=fail terug met daarin de redenen.
In het video bestand (get_video_info) staan meerdere links.. Vandaar heb ik de q-code in het script.. De q-code kan het volgende zijn.. (LET WEL OP EN VOORKOM DODE DOWNLOADS)
Legenda: q-code | video-type
Bij videos met als hoogste kwaliteit HD 1080:
1 | HD 1080 Video
4 | Niks (bestaat wel word niet ondersteund door FlowPlayer)
7 | HD 720 Video
13 | 480p Video
19 | 480p Video
22 | 360p Video
25 | 240p Video
Bij videos met als hoogste kwaliteit HD 720:
4 | HD 720 Video
7 | Niks (bestaat wel word niet ondersteund door FlowPlayer)
10 | 480p Video
16 | 360p Video
19 | 360p Video
22 | 240p Video
Bij videos met als hoogste kwaliteit 480p/360p:
2 | 480p Video
4 | 480p Video
5 | 360p Video
10 | 360p Video
16 | Werkelijk geen idee.. hij laad eeuwig..
19 | 360p Video
22 | 240p Video
Dan nu het script maar..
Je zult zelf maar moeten uittoveren hoe het werkt.. Ik ga niet alles voor je voorkouwen.
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]/*
* Copyright © 2008 - 2011 Bas Milius - Alle rechten voorbehouden
* YouTube video getter..
*/[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/file_exists"]file_exists[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"videos/"[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]video_id[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]" - "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]q[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]".flv"[/COLOR][COLOR= #007700])){[/COLOR]
[COLOR= #0000BB]$content[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"videos/"[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]video_id[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]" - "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]q[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]".flv"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Content-Type: video/mp4"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$content[/COLOR][COLOR= #007700];
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[COLOR= #0000BB]$video_info[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"http://www.youtube.com/get_video_info?video_id="[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]video_id[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$video_info[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/urldecode"]urldecode[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$video_info[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$title[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"&title="[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$video_info[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$title[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"&ad"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$title[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$title[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"&ft"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$title[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$title[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"&sw"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$title[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$title[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"&ex"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$title[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$title[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$title[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #FF8000]//echo $video_info;[/COLOR]
[COLOR= #0000BB]$video_info[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"|"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$video_info[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$video_info[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/urldecode"]urldecode[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$video_info[/COLOR][COLOR= #007700][(([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]q[/COLOR][COLOR= #007700]])) ?[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]q[/COLOR][COLOR= #007700]] :[/COLOR] [COLOR= #0000BB]13[/COLOR][COLOR= #007700])]);[/COLOR]
[COLOR= #0000BB]$video_info[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]",45"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$video_info[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$video_info[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]",44"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$video_info[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$video_info[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]",43"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$video_info[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$video_info[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]",35"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$video_info[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$video_info[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]",34"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$video_info[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$video_info[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]",22"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$video_info[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$video_info[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]",18"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$video_info[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$video_info[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]",5"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$video_info[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]//header("Content-Type: video/x-flv");[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Content-Type: video/mp4"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Content-Disposition:filename="[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$title[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]".flv"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][COLOR= #0000BB]$contents[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$video_info[/COLOR][COLOR= #007700])){[/COLOR]
[URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$contents[/COLOR][COLOR= #007700]);
}[/COLOR]
[COLOR= #0000BB]$file[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/fopen"]fopen[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"videos/"[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]video_id[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]" - "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]q[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]".flv"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"w+"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/fwrite"]fwrite[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$file[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$contents[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/fclose"]fclose[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$file[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$contents[/COLOR][COLOR= #007700];
}[/COLOR]
?> Voorbeeld van de werking..
http://www.basmilius.com/youtube/watch?video_id=CtfImnUDoes&q=1
PS: Binnenkort komt er een nieuwe mini site van mij waar scripts zoals deze gratis over te nemen zijn


, Mijn post is fout geplaats, en je kan even normaal doen.