Page 11 of 13 FirstFirst ... 910111213 LastLast
Results 51 to 55 of 63

Thread: Youtube den canli yayinlardan m3u8 alma işlemi.

  1. Go to Thank YouDownload #51
    Go to Thank You
    Yönetici yilmaz's Avatar

    Info

    Go to Top of Post

    Quote Originally Posted by bahri View Post
    Bu deişik bir model. Benim #47 ci posta daki ornek deil.

    Bu aşagğıdaki benim örnek:

    PHP Code:
    1. <?php
    2. ini_set("user_agent","facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)");
    3. function get_data($html) {
    4. $ch curl_init();
    5. $timeout 5;
    6. curl_setopt($chCURLOPT_URL$html);
    7. curl_setopt($chCURLOPT_SSL_VERIFYPEERfalse);
    8. curl_setopt($chCURLOPT_USERAGENT"facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)");
    9. curl_setopt($chCURLOPT_REFERER"http://facebook.com");
    10. curl_setopt($chCURLOPT_RETURNTRANSFER1);
    11. curl_setopt($chCURLOPT_CONNECTTIMEOUT$timeout);
    12. $data curl_exec($ch);
    13. curl_close($ch);
    14. return $data;
    15. }
    16. $html file_get_contents("https://www.youtube.com/watch?v=inOugVa_NYA");
    17. //echo $html; 
    18. preg_match_all('/(hlsManifestUrl(.*?)\.m3u8[^&">]+)/'$html,$posts);
    19. foreach ($posts as $post) {
    20.     $link $post[0];
    21.     $link stripslashes($post[0]);
    22.     $link str_replace("hlsManifestUrl","",$link);
    23.     $link str_replace('":"',"",$link);
    24.     $man get_data("$link");
    25.     //echo $man;
    26. preg_match_all('/(https:\/.*\/96\/.*index.m3u8)/U',$man,$matches); 
    27. $link1=$matches[1][0];
    28. //echo $link1;
    29. header ("Location: $link1");
    30. }
    31. ?>
    [MENTION=64]bahri[/MENTION] ustam senin bu kodlar m3u8'i alıyor ama bir url hatası var sanırım erişim hatası veriyor.


  2. The Following 3 Users Say Thank You to yilmaz For This Useful Post:

  3. Go to Thank YouDownload #52
    Go to Thank You
    Üye bahri's Avatar

    Info

    Go to Top of Post

    Evet usta link yazdırırsan 3x yazıyor ondan hata veriyor ama direkt header olarak çalişıyor. Hata var karışmış.

    Ama aşağıdaki şekli dogru olanı echo yapınca 1x yazıyor.
    PHP Code:
    1. <?php
    2. ini_set("user_agent","facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)");
    3. function get_data($html) {
    4. $ch curl_init();
    5. $timeout 5;
    6. curl_setopt($chCURLOPT_URL$html);
    7. curl_setopt($chCURLOPT_SSL_VERIFYPEERfalse);
    8. curl_setopt($chCURLOPT_USERAGENT"facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)");
    9. curl_setopt($chCURLOPT_REFERER"http://facebook.com");
    10. curl_setopt($chCURLOPT_RETURNTRANSFER1);
    11. curl_setopt($chCURLOPT_CONNECTTIMEOUT$timeout);
    12. $data curl_exec($ch);
    13. curl_close($ch);
    14. return $data;
    15. }
    16. $html file_get_contents("https://www.youtube.com/watch?v=inOugVa_NYA"); 
    17. preg_match_all(
    18.     '/(hlsManifestUrl.*?\.m3u8[^&">]+)/'
    19.     $html,
    20.     $posts// will contain the article data
    21.     PREG_SET_ORDER // formats data into an array of posts
    22. );
    23. foreach ($posts as $post) {
    24.     $link $post[0];
    25. $link stripslashes($post[0]);
    26. $link str_replace("hlsManifestUrl","",$link);
    27. $link str_replace("\":\"","",$link);
    28. /* 96=1920x1080, 95=1280x720, 94=854x480, 93=640x360 */
    29. $man get_data($link);
    30. preg_match_all('/(https:\/.*\/95\/.*index.m3u8)/U',$man,$matchesPREG_PATTERN_ORDER); 
    31. $link1=$matches[1][0];
    32. header("Content-Type application/vnd.apple.mpegurl");
    33. //header('Content-Type: video/mp2t');
    34. header("Location: $link1");
    35. }
    36. ?>


  4. The Following 5 Users Say Thank You to bahri For This Useful Post:

  5. Go to Thank YouDownload #53
    Go to Thank You
    Yeni Üye didi's Avatar

    Info

    Go to Top of Post

    slm arkadaslar
    cok ugrasiyorum bir hayli beceremedim
    youTube dan bakiyorum m3u8 olarak nasil olacana beceremedim

    misal Vatan tv bunu bir arkadas m3 u ya cevire bilcek mi

    koniyi okiyorum fakat nafile beceremiyorum

    tskler


  6. The Following 4 Users Say Thank You to didi For This Useful Post:

  7. Go to Thank YouDownload #54
    Go to Thank You
    Yasaklı Tekzen sahtekarı's Avatar

    Info

    Go to Top of Post

    show tv calismadi malesef, hangi bedava php server de bu ayarlar yapilabiliyor´



  8. The Following 2 Users Say Thank You to Tekzen sahtekarı For This Useful Post:

  9. Go to Thank YouDownload #55
    Go to Thank You
    Üye Defne2021's Avatar

    Info

    Go to Top of Post

    Merhabalar Youtube la ilgili acaba Reklamsiz seyretmenin bir yolu varmi? Yardimlariniz Icin Tesekkürler


  10. The Following User Says Thank You to Defne2021 For This Useful Post:

Page 11 of 13 FirstFirst ... 910111213 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •