Go Back   CodingForums.com > :: Server side development > PHP > Post a PHP snippet

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 7 votes, 5.00 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-06-2012, 11:00 AM   PM User | #496
atanas
New Coder

 
Join Date: Jan 2012
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
atanas is an unknown quantity at this point
Thanks for information. I will test and will tell if i make it.
atanas is offline   Reply With Quote
Old 10-06-2012, 06:30 PM   PM User | #497
dareweb
New to the CF scene

 
Join Date: Sep 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
dareweb is an unknown quantity at this point
Can you help me please to make my script work?

I created additional Class with function inside - Second.class.php.
Then I add in the beginning of index.php:

PHP Code:
// Instantiate second class
    
include 'Second.class.php';
    
$secondclass = new Second(); 
Then I need to call a function out of the class, but with following conditions:
1. It can be called only when mp3 file is already decoded and placed in mp3 folder.
2. It has parameter $filename, where the $filename is obviously the name of the file (like 'Beatles_-_Let_it_be.mp3')

I tried to add it in the end:
PHP Code:
$converter->GenerateMP3($_POST['quality']);
    
$secondclass->myfunction(strstr($converter->GetSongFileName())); 
As I thought that's how I can get filename.

And the function looks like this:
PHP Code:
function myfunction($filename)
        {
            
$filepath =  $_SERVER['PHP_SELF'].parent::_SONGFILEDIR.$filename;
            
$ch curl_init();
            
curl_setopt_array($ch, array(
            
CURLOPT_RETURNTRANSFER => 1,
            
CURLOPT_URL => parent::_APIURL,
            
CURLOPT_POST => TRUE,
            
CURLOPT_POSTFIELDS => 'api_key='.parent::_APIKEY.'&url='.$filepath,
            ));
            
            
$output curl_exec($ch);
            
curl_close($ch); 
Could you tell me what could be wrong with that?
dareweb is offline   Reply With Quote
Old 10-06-2012, 09:24 PM   PM User | #498
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by dareweb View Post
Can you help me please to make my script work?
If you have PHP code that needs to be executed after a completed conversion, then you need to put that code in ffmpeg_progress.php, inside the following existing condition:

PHP Code:
                    if (is_file(realpath(Config::_SONGFILEDIR $mp3File)))
                    {
                        
$conversionSuccess 1;
                    } 
If you are using another class, then you will have to instantiate it at the top of ffmpeg_progress.php. And if you need certain conversion data that you don't already have in ffmpeg_progress.php, then you will have to pass the data as additional parameters to the AJAX call in index.php.
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Old 10-06-2012, 09:41 PM   PM User | #499
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
The new (updated and hopefully stable) distribution of files is located at the bottom of this post.

Quote:
PLEASE SEE THIS POST FOR IMPORTANT INFO REGARDING THE USE AND INSTALLATION OF THIS SCRIPT.

DO NOT USE THE ZIP DISTRIBUTION LOCATED AT THE ABOVE LINKED PAGE. USE ONLY THE ZIP FILE ATTACHED TO THE BOTTOM OF THIS POST.
New in this release:

1) Fixed a bug in which errors could possibly occur when two users simultaneously convert the same YouTube video. This has been addressed with an additional constant "_ENABLE_CONCURRENCY_CONTROL" in the config class, which toggles this feature on and off. The only code to change is in YouTubeToMp3Converter.class.php and config.class.php.

I will soon be updating the paid-for version of the app as well, and I will email an updated (free) copy to all those who have already purchased the script. (Updates will be sent to your Tradebit email addresses only.)

As always, please let me know if you have any questions/concerns regarding the above and/or the code.
Attached Files
File Type: zip 10-6-12.zip (6.9 KB, 174 views)
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Old 10-06-2012, 10:48 PM   PM User | #500
atanas
New Coder

 
Join Date: Jan 2012
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
atanas is an unknown quantity at this point
New problem. I think that if i download too many videos from youtube, it active a protect.

Sorry for the interruption. We have been receiving a large volume of requests from your network. To continue with your YouTube experience, please enter the verification code below

When i try open video from the server I am redirected to this page: http://www.youtube.com/das_captcha?next=/


How to overcome that protect ?

Thanks !
atanas is offline   Reply With Quote
Old 10-06-2012, 10:51 PM   PM User | #501
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Hello everyone,

As promised, I have just finished updating the paid-for version of my software. New in this version:

1) Fixed a bug in which errors could possibly occur when two users simultaneously convert the same YouTube or Dailymotion video. This has been addressed with an additional constant "_ENABLE_CONCURRENCY_CONTROL" in the config class, which toggles this feature on and off. The code to change is in VideoConverter.class.php and config.class.php.

2) New concurrency control feature also prevents similar errors from occurring during ringtone creation

3) You can now prohibit conversions of videos that are longer than X number of seconds. This setting can be configured differently for each converted file type in the config class.

4) Expanded schedule.php (script that runs as daily task on server) so that it also deletes temporary video files and log files that were not automatically deleted due to conversion abandonment

All previous customers who have purchased the paid-for version of my app are receiving this new, updated version via the e-mail addresses that you provided at Tradebit.com.

Please report any issues with either the paid-for version or the free version in this forum thread.

Thanks!
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Old 10-06-2012, 11:13 PM   PM User | #502
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by atanas View Post
New problem. I think that if i download too many videos from youtube, it active a protect.

Sorry for the interruption. We have been receiving a large volume of requests from your network. To continue with your YouTube experience, please enter the verification code below

When i try open video from the server I am redirected to this page: http://www.youtube.com/das_captcha?next=/


How to overcome that protect ?

Thanks !
This is the second time someone has reported this problem, and I'm now officially convinced that this is an issue worth addressing. I also have a good idea of how to fix this. So, the next time I release a new version of the software, you can expect that I will do exactly that.

In the meantime, how many requests to YouTube are you making to get that CAPTCHA? Thousands? Tens of thousands? More? And in what time frame? Per day? Per hour? Some other duration?

Per a previous, quick brainstorming session about this very issue, I came up with the following plan to combat this CAPTCHA:

Quote:
1) In YouTubeToMp3Converter:ownloadVideo, replace file_get_contents with cURL request to video URL (enable cookies/"keep-alive" for the curl session)
2) return HTML source of cURL request to PHP variable (DO NOT close cURL connection)
3) If captcha image is found in html source, continue to step #4. Otherwise stop and proceed with conversion script normally.
4) print and flush new markup to page that creates a modal window (on top of existing content) displaying captcha image ripped from HTMl in PHP variable. Include a text field in modal window for user to type captcha phrase. Include a submit button. When the submit button is pressed (input type = button), after user types code, have the button trigger some AJAx that sends the user's unique id and typed captcha phrase to PHP script on server. The PHP script receives this data and adds a node to an XML file on the server. Also, after button is pressed, a message displays inside modal window that says the form is processing and to please wait.
5) In the meantime, directly after the print and flush of markup at the begining of step #4, initiate a while loop that checks the XML file for the user's unique ID and captcha phrase. If a matching XML node is not found, the script sleeps for X number of seconds, and then tries again. This loop continues until the node is found or some arbitrary time limit is reached.
6) When and if the XML node is found, more markup is printed and flushed that removes the modal window. Using the original, open cURL handle, send a subsequent request to the page that the YouTube captcha form submits to, sending corresponding user provided captcha phrase found in XML as POST variable. Go to step #1.
7) If the XML node is not found after time limit expires, more markup is printed and flushed that removes the modal window. the original conversion form submits, and an error message tells user that he/she took too long to enter the captcha, and to please try the conversion again (and, that, of course, the conversion failed).
Again, this is a very rough approach to how I might handle the issue. You are free to try to implement this approach yourself, or implement some other approach, until I have a chance to address the issue in the next version of the app.
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Old 10-07-2012, 09:00 PM   PM User | #503
Luckyplaya
New Coder

 
Join Date: Sep 2012
Location: Germany
Posts: 32
Thanks: 8
Thanked 1 Time in 1 Post
Luckyplaya is an unknown quantity at this point
I have replaced the VideoConverter.class.php and config.class.php and here's the error: Invalid video URL or file type! Please, try again.

what should i do now?
Luckyplaya is offline   Reply With Quote
Old 10-07-2012, 09:32 PM   PM User | #504
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by Luckyplaya View Post
I have replaced the VideoConverter.class.php and config.class.php and here's the error: Invalid video URL or file type! Please, try again.

what should i do now?
5 files total changed in paid-for version:

VideoConverter.class.php
config.class.php
index.php
ringtone.php
schedule.php
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Users who have thanked chump2877 for this post:
Luckyplaya (10-09-2012)
Old 10-08-2012, 05:48 PM   PM User | #505
atanas
New Coder

 
Join Date: Jan 2012
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
atanas is an unknown quantity at this point
I try something interesting. I try get content of youtube page from other machine and correct function DownloadVideo($youTubeUrl) to:
$file_contents = file_get_contents("http://othersite/youtube.php?video=$youTubeUrl);
and get the content but the script don't work.

Any ideas ?
atanas is offline   Reply With Quote
Old 10-08-2012, 10:10 PM   PM User | #506
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by atanas View Post
I try something interesting. I try get content of youtube page from other machine and correct function DownloadVideo($youTubeUrl) to:
$file_contents = file_get_contents("http://othersite/youtube.php?video=$youTubeUrl);
and get the content but the script don't work.

Any ideas ?
Because my script is running pattern matching that only matches the source of a YouTube.com page.

I have no idea what the source code of http://othersite/youtube.php is, but it clearly is different from the source of a regular YouTube.com video page.
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Old 10-09-2012, 07:47 AM   PM User | #507
atanas
New Coder

 
Join Date: Jan 2012
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
atanas is an unknown quantity at this point
http://othersite/youtube.php?video=h...?v=ccUskHHfJ9M and my script just show the content with file_get_contents .
atanas is offline   Reply With Quote
Old 10-09-2012, 04:21 PM   PM User | #508
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by atanas View Post
http://othersite/youtube.php?video=h...?v=ccUskHHfJ9M and my script just show the content with file_get_contents .
Give me a valid URL to the page (http://othersite/youtube.php?video=h...?v=ccUskHHfJ9M) or paste the source code of that page here...Then i will tell you with certainty why you are having problems with that approach...
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Old 10-09-2012, 05:56 PM   PM User | #509
atanas
New Coder

 
Join Date: Jan 2012
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
atanas is an unknown quantity at this point
This is the video: http://www.youtube.com/watch?v=A6dP2vMxRHs

This is the part of source code getting from other site, because the forum don't give me access to paste all coda:

Code:
<!DOCTYPE html>
  <html lang="bg" dir="ltr" >

      <script>
if (window.yt.timing) {yt.timing.tick("js_head");}    </script>

      <script>
      yt.setAjaxToken('subscription_ajax', "");
    yt.pubsub.subscribe('init', yt.www.subscriptions.SubscriptionButton.init);

  </script>


  <script>
    yt.setConfig({
      'VIDEO_ID': "A6dP2vMxRHs"    });
    yt.setAjaxToken('watch_actions_ajax', "");

    if (window['gYouTubePlayerReady']) {
      yt.registerGlobal('gYouTubePlayerReady');
    }
  </script>

  <script>
    yt = yt || {};
      yt.playerConfig = {"assets": {"css_actions": "http:\/\/s.ytimg.com\/yt\/cssbin\/www-player-actions-vflrtkTn7.css", "html": "\/html5_player_template", "css": "http:\/\/s.ytimg.com\/yt\/cssbin\/www-player-vflAP1Pz1.css", "js": "http:\/\/s.ytimg.com\/yt\/jsbin\/html5player-vfliqXF24.js"}, "url": "http:\/\/s.ytimg.com\/yt\/swfbin\/watch_as3-vfldzrQK1.swf", "min_version": "8.0.0", "args": {"fexp": "905705,901809,922401,920704,912806,927201,900711,913546,913556,925109,919003,912706,900816", "ptk": "youtube_multi", "shortform": true, "inactive_skippable_threshold": 600000, "allow_embed": 1, "iv_close_button": 0, "mpvid": "AATLoysW5LePoysG", "account_playback_token": "", "excluded_ads": "3=1_1,1_2,1_3,2_1,2_2,2_2_1,2_3", "csi_page_type": "watch5ad", "keywords": "Alex,Mica,Dalinda,Official,Video,radio,edit,senorita,mi corazon,romania,music,new,single,2012,constanta,fullhd,1ArtistMusic,1AM", "cr": "US", "ad3_module": "http:\/\/s.ytimg.com\/yt\/swfbin\/ad3-vfl_wT7C1.swf", "enablecsi": "1", "iv3_module": "http:\/\/s.ytimg.com\/yt\/swfbin\/iv3_module-vflG0Mme1.swf", "gut_tag": "\/4061\/ytpwmpu\/main_819911", "ad_flags": 0, "fmt_list": "46\/1920x1080\/99\/0\/0,37\/1920x1080\/9\/0\/115,45\/1280x720\/99\/0\/0,22\/1280x720\/9\/0\/115,44\/854x480\/99\/0\/0,35\/854x480\/9\/0\/115,43\/640x360\/99\/0\/0,34\/640x360\/9\/0\/115,18\/640x360\/9\/0\/115,5\/320x240\/7\/0\/0,36\/320x240\/99\/0\/0,17\/176x144\/99\/0\/0", "title": "Alex Mica - Dalinda (Official Video)", "length_seconds": 207, "loeid": "905705,901809", "enablejsapi": 1, "tk": "pIjMgvESjdXTc4T4qXNstFGm-fZJLSFYbft2Yi3_0vaqVh6lerXMww==", "plid": "AATLoysV_piYoXkY", "iv_module": "http:\/\/s.ytimg.com\/yt\/swfbin\/iv_module-vflMas-uM.swf", "watch_xlb": "http:\/\/s.ytimg.com\/yt\/xlbbin\/watch-strings-bg_BG-vflQuhAj_.xlb", "ad_tag": "http:\/\/ad-emea.doubleclick.net\/N4061\/pfadx\/com.ytpwmpu.entertainment\/main_819911;sz=WIDTHxHEIGHT;kvid=A6dP2vMxRHs;kpu=1artistmusic;kpid=819911;u=A6dP2vMxRHs|819911;mpvid=AATLoysW5LePoysG;plat=pc;kpeid=YM6H8mE3I8nTON-wMqg5Gg;afc=1;afct=content;dc_dedup=1;k5=3_12_35_36_211_592_612_613_1030_1115_1408;kclt=1;kcr=us;kga=-1;kgg=-1;klg=bg;ko=p;kr=A;kt=K;kvz=205;shortform=1;tves=0;ytcat=24;ytexp=905705.901809.922401.920704.912806.927201.900711.913546.913556.925109.919003.912706.900816;ytps=default;ytvt=w;!c=819911;k2=3;k2=12;k2=35;k2=36;k2=211;k2=592;k2=612;k2=613;k2=1030;k2=1115;k2=1408;", "ad_slots": "0", "url_encoded_fmt_stream_map": "itag=46\u0026url=http%3A%2F%2Fo-o---preferred---sn-x8vapo3-nv4e---v23---lscache6.c.youtube.com%2Fvideoplayback%3Fupn%3DBlgHS4N5zfQ%26sparams%3Dcp%252Cgcr%252Cid%252Cip%252Cipbits%252Citag%252Cratebypass%252Csource%252Cupn%252Cexpire%26fexp%3D905705%252C901809%252C922401%252C920704%252C912806%252C927201%252C900711%252C913546%252C913556%252C925109%252C919003%252C912706%252C900816%26ms%3Dau%26expire%3D1349823892%26itag%3D46%26ipbits%3D8%26gcr%3Dbg%26sver%3D3%26ratebypass%3Dyes%26source%3Dyoutube%26ip%3D91.196.127.143%26mv%3Du%26key%3Dyt1%26cp%3DU0hTTlhNUV9OTENOM19QR1VJOlpNYm0xQjhzR1gw%26id%3D03a74fdaf331447b\u0026type=video%2Fwebm%3B+codecs%3D%22vp8.0%2C+vorbis%22\u0026fallback_host=tc.v23.cache6.c.youtube.com\u0026sig=477A4C077A50BD04F6B21622D0D90699FABF6CFD.B484CE52444922B4C85011BAB41AA31A5B3E205C\u0026quality=hd1080,itag=37\u0026url=http%3A%2F%2Fo-o---preferred---sn-x8vapo3-nv4e---v9---lscache1.c.youtube.com%2Fvideoplayback%3Fupn%3DBlgHS4N5zfQ%26sparams%3Dcp%252Cgcr%252Cid%252Cip%252Cipbits%252Citag%252Cratebypass%252Csource%252Cupn%252Cexpire%26fexp%3D905705%252C901809%252C922401%252C920704%252C912806%252C927201%252C900711%252C913546%252C913556%252C925109%252C919003%252C912706%252C900816%26ms%3Dau%26expire%3D1349823892%26itag%3D37%26ipbits%3D8%26gcr%3Dbg%26sver%3D3%26ratebypass%3Dyes%26source%3Dyoutube%26ip%3D91.196.127.143%26mv%3Du%26key%3Dyt1%26cp%3DU0hTTlhNUV9OTENOM19QR1VJOlpNYm0xQjhzR1gw%26id%3D03a74fdaf331447b\u0026type=video%2Fmp4%3B+codecs%3D%22avc1.64001F%2C+mp4a.40.2%22\u0026fallback_host=tc.v9.cache1.c.youtube.com\u0026sig=6D30F8FB542DE6493F3639FA457F2E71EEEEBE0A.17A330CC06235F190D6A064F0D6F849432610E36\u0026quality=hd1080,itag=45\u0026url=http%3A%2F%2Fo-o---preferred---sn-x8vapo3-nv4e---v6---lscache7.c.youtube.com%2Fvideoplayback%3Fupn%3DBlgHS4N5zfQ%26sparams%3Dcp%252Cgcr%252Cid%252Cip%252Cipbits%252Citag%252Cratebypass%252Csource%252Cupn%252Cexpire%26fexp%3D905705%252C901809%252C922401%252C920704%252C912806%252C927201%252C900711%252C913546%252C913556%252C925109%252C919003%252C912706%252C900816%26ms%3Dau%26expire%3D1349823892%26itag%3D45%26ipbits%3D8%26gcr%3Dbg%26sver%3D3%26ratebypass%3Dyes%26source%3Dyoutube%26ip%3D91.196.127.143%26mv%3Du%26key%3Dyt1%26cp%3DU0hTTlhNUV9OTENOM19QR1VJOlpNYm0xQjhzR1gw%26id%3D03a74fdaf331447b\u0026type=video%2Fwebm%3B+codecs%3D%22vp8.0%2C+vorbis%22\u0026fallback_host=tc.v6.cache7.c.youtube.com\u0026sig=2F4A2C9EEB794598BA552F515F664B726979493A.2DE603CC1A89511CBCE31C9065EBCED663A28165\u0026quality=hd720,itag=22\u0026url=http%3A%2F%2Fo-o---preferred---sn-x8vapo3-nv4e---v6---lscache8.c.youtube.com%2Fvideoplayback%3Fupn%3DBlgHS4N5zfQ%26sparams%3Dcp%252Cgcr%252Cid%252Cip%252Cipbits%252Citag%252Cratebypass%252Csource%252Cupn%252Cexpire%26fexp%3D905705%252C901809%252C922401%252C920704%252C912806%252C927201%252C900711%252C913546%252C913556%252C925109%252C919003%252C912706%252C900816%26ms%3Dau%26expire%3D1349823892%26itag%3D22%26ipbits%3D8%26gcr%3Dbg%26sver%3D3%26ratebypass%3Dyes%26source%3Dyoutube%26ip%3D91.196.127.143%26mv%3Du%26key%3Dyt1%26cp%3DU0hTTlhNUV9OTENOM19QR1VJOlpNYm0xQjhzR1gw%26id%3D03a74fdaf331447b\u0026type=video%2Fmp4%3B+codecs%3D%22avc1.64001F%2C+mp4a.40.2%22\u0026fallback_host=tc.v6.cache8.c.youtube.com\u0026sig=2DE5BDA9307B76B4A41CBABE934AC9DEFE6A5522.830C59E4E2F2E62863C8ACF19C44352B1A92451B\u0026quality=hd720,itag=44\u0026url=http%3A%2F%2Fo-o---preferred---sn-x8vapo3-nv4e---v10---lscache2.c.youtube.com%2Fvideoplayback%3Fupn%3DBlgHS4N5zfQ%26sparams%3Dcp%252Cgcr%252Cid%252Cip%252Cipbits%252Citag%252Cratebypass%252Csource%252Cupn%252Cexpire%26fexp%3D905705%252C901809%252C922401%252C920704%252C912806%252C927201%252C900711%252C913546%252C913556%252C925109%252C919003%252C912706%252C900816%26ms%3Dau%26expire%3D1349823892%26itag%3D44%26ipbits%3D8%26gcr%3Dbg%26sver%3D3%26ratebypass%3Dyes%26source%3Dyoutube%26ip%3D91.196.127.143%26mv%3Du%26key%3Dyt1%26cp%3DU0hTTlhNUV9OTENOM19QR1VJOlpNYm0xQjhzR1gw%26id%3D03a74fdaf331447b\u0026type=video%2Fwebm%3B+codecs%3D%22vp8.0%2C+vorbis%22\u0026fallback_host=tc.v10.cache2.c.youtube.com\u0026sig=C3103E28837A4A049AD467C9F03EBD195D7BC888.8F273290C8F0531EE681726085EEB956B2F345DE\u0026quality=large,itag=35\u0026url=http%3A%2F%2Fo-o---preferred---sn-x8vapo3-nv4e---v5---lscache2.c.youtube.com%2Fvideoplayback%3Fupn%3DBlgHS4N5zfQ%26sparams%3Dalgorithm%252Cburst%252Ccp%252Cfactor%252Cgcr%252Cid%252Cip%252Cipbits%252Citag%252Csource%252Cupn%252Cexpire%26fexp%3D905705%252C901809%252C922401%252C920704%252C912806%252C927201%252C900711%252C913546%252C913556%252C925109%252C919003%252C912706%252C900816%26ms%3Dau%26algorithm%3Dthrottle-factor%26burst%3D40%26ip%3D91.196.127.143%26itag%3D35%26gcr%3Dbg%26sver%3D3%26source%3Dyoutube%26mv%3Du%26key%3Dyt1%26ipbits%3D8%26factor%3D1.25%26cp%3DU0hTTlhNUV9OTENOM19QR1VJOlpNYm0xQjhzR1gw%26expire%3D1349823892%26id%3D03a74fdaf331447b\u0026type=video%2Fx-flv\u0026fallback_host=tc.v5.cache2.c.youtube.com\u0026sig=52885DE5B4FDCB0ABF1DA5B6024D1DDA2452A51C.9BE5B0F8F9B968E5BBF76C7F3226B2B0C314CC30\u0026quality=large,itag=43\u0026url=http%3A%2F%2Fo-o---preferred---sn-x8vapo3-nv4e---v8---lscache6.c.youtube.com%2Fvideoplayback%3Fupn%3DBlgHS4N5zfQ%26sparams%3Dcp%252Cgcr%252Cid%252Cip%252Cipbits%252Citag%252Cratebypass%252Csource%252Cupn%252Cexpire%26fexp%3D905705%252C901809%252C922401%252C920704%252C912806%252C927201%252C900711%252C913546%252C913556%252C925109%252C919003%252C912706%252C900816%26ms%3Dau%26expire%3D1349823892%26itag%3D43%26ipbits%3D8%26gcr%3Dbg%26sver%3D3%26ratebypass%3Dyes%26source%3Dyoutube%26ip%3D91.196.127.143%26mv%3Du%26key%3Dyt1%26cp%3DU0hTTlhNUV9OTENOM19QR1VJOlpNYm0xQjhzR1gw%26id%3D03a74fdaf331447b\u0026type=video%2Fwebm%3B+codecs%3D%22vp8.0%2C+vorbis%22\u0026fallback_host=tc.v8.cache6.c.youtube.com\u0026sig=7AF1A7B663993D5DDF8205FB5C33630B99E6985E.765DAE164E4ED499B47F4C9DCE32F621152694D1\u0026quality=medium,itag=34\u0026url=http%3A%2F%2Fo-o---preferred---sn-x8vapo3-nv4e---v16---lscache7.c.youtube.com%2Fvideoplayback%3Fupn%3DBlgHS4N5zfQ%26sparams%3Dalgorithm%252Cburst%252Ccp%252Cfactor%252Cgcr%252Cid%252Cip%252Cipbits%252Citag%252Csource%252Cupn%252Cexpire%26fexp%3D905705%252C901809%252C922401%252C920704%252C912806%252C927201%252C900711%252C913546%252C913556%252C925109%252C919003%252C912706%252C900816%26ms%3Dau%26algorithm%3Dthrottle-factor%26burst%3D40%26ip%3D91.196.127.143%26itag%3D34%26gcr%3Dbg%26sver%3D3%26source%3Dyoutube%26mv%3Du%26key%3Dyt1%26ipbits%3D8%26factor%3D1.25%26cp%3DU0hTTlhNUV9OTENOM19QR1VJOlpNYm0xQjhzR1gw%26expire%3D1349823892%26id%3D03a74fdaf331447b\u0026type=video%2Fx-flv\u0026fallback_host=tc.v16.cache7.c.youtube.com\u0026sig=BC8ABBC73C0B94F2DA1AAF578E4560EC36CDB4EE.BE3342CE2918B9B7988ABE0541D9B3D3C97D3CEF\u0026quality=medium,itag=18\u0026url=http%3A%2F%2Fo-o---preferred---sn-x8vapo3-nv4e---v17---lscache5.c.youtube.com%2Fvideoplayback%3Fupn%3DBlgHS4N5zfQ%26sparams%3Dcp%252Cgcr%252Cid%252Cip%252Cipbits%252Citag%252Cratebypass%252Csource%252Cupn%252Cexpire%26fexp%3D905705%252C901809%252C922401%252C920704%252C912806%252C927201%252C900711%252C913546%252C913556%252C925109%252C919003%252C912706%252C900816%26ms%3Dau%26expire%3D1349823892%26itag%3D18%26ipbits%3D8%26gcr%3Dbg%26sver%3D3%26ratebypass%3Dyes%26source%3Dyoutube%26ip%3D91.196.127.143%26mv%3Du%26key%3Dyt1%26cp%3DU0hTTlhNUV9OTENOM19QR1VJOlpNYm0xQjhzR1gw%26id%3D03a74fdaf331447b\u0026type=video%2Fmp4%3B+codecs%3D%22avc1.42001E%2C+mp4a.40.2%22\u0026fallback_host=tc.v17.cache5.c.youtube.com\u0026sig=95F19040299E86B9F8E598F0A127FB51727E4027.0AD35F98A0172FD8F6A538711D822890D5D16091\u0026quality=medium,itag=5\u0026url=http%3A%2F%2Fo-o---preferred---sn-x8vapo3-nv4e---v1---lscache3.c.youtube.com%2Fvideoplayback%3Fupn%3DBlgHS4N5zfQ%26sparams%3Dalgorithm%252Cburst%252Ccp%252Cfactor%252Cgcr%252Cid%252Cip%252Cipbits%252Citag%252Csource%252Cupn%252Cexpire%26fexp%3D905705%252C901809%252C922401%252C920704%252C912806%252C927201%252C900711%252C913546%252C913556%252C925109%252C919003%252C912706%252C900816%26ms%3Dau%26algorithm%3Dthrottle-factor%26burst%3D40%26ip%3D91.196.127.143%26itag%3D5%26gcr%3Dbg%26sver%3D3%26source%3Dyoutube%26mv%3Du%26key%3Dyt1%26ipbits%3D8%26factor%3D1.25%26cp%3DU0hTTlhNUV9OTENOM19QR1VJOlpNYm0xQjhzR1gw%26expire%3D1349823892%26id%3D03a74fdaf331447b\u0026type=video%2Fx-flv\u0026fallback_host=tc.v1.cache3.c.youtube.com\u0026sig=962746F60E0FAE2901DF4BC0ECFACC759BF3ABF9.42A7E8318ED33DDE6A59504AA4F3BEF765D9F987\u0026quality=small,itag=36\u0026url=http%3A%2F%2Fo-o---preferred---sn-x8vapo3-nv4e---v23---lscache7.c.youtube.com%2Fvideoplayback%3Fupn%3DBlgHS4N5zfQ%26sparams%3Dalgorithm%252Cburst%252Ccp%252Cfactor%252Cgcr%252Cid%252Cip%252Cipbits%252Citag%252Csource%252Cupn%252Cexpire%26fexp%3D905705%252C901809%252C922401%252C920704%252C912806%252C927201%252C900711%252C913546%252C913556%252C925109%252C919003%252C912706%252C900816%26ms%3Dau%26algorithm%3Dthrottle-factor%26burst%3D40%26ip%3D91.196.127.143%26itag%3D36%26gcr%3Dbg%26sver%3D3%26source%3Dyoutube%26mv%3Du%26key%3Dyt1%26ipbits%3D8%26factor%3D1.25%26cp%3DU0hTTlhNUV9OTENOM19QR1VJOlpNYm0xQjhzR1gw%26expire%3D1349823892%26id%3D03a74fdaf331447b\u0026type=video%2F3gpp%3B+codecs%3D%22mp4v.20.3%2C+mp4a.40.2%22\u0026fallback_host=tc.v23.cache7.c.youtube.com\u0026sig=9051353F06847F6ED76E7C0983B8758578A13F2D.B72E5AF69578B8B6FD16B145482DAA23C8F3F26B\u0026quality=small,itag=17\u0026url=http%3A%2F%2Fo-o---preferred---sn-x8vapo3-nv4e---v9---lscache8.c.youtube.com%2Fvideoplayback%3Fupn%3DBlgHS4N5zfQ%26sparams%3Dalgorithm%252Cburst%252Ccp%252Cfactor%252Cgcr%252Cid%252Cip%252Cipbits%252Citag%252Csource%252Cupn%252Cexpire%26fexp%3D905705%252C901809%252C922401%252C920704%252C912806%252C927201%252C900711%252C913546%252C913556%252C925109%252C919003%252C912706%252C900816%26ms%3Dau%26algorithm%3Dthrottle-factor%26burst%3D40%26ip%3D91.196.127.143%26itag%3D17%26gcr%3Dbg%26sver%3D3%26source%3Dyoutube%26mv%3Du%26key%3Dyt1%26ipbits%3D8%26factor%3D1.25%26cp%3DU0hTTlhNUV9OTENOM19QR1VJOlpNYm0xQjhzR1gw%26expire%3D1349823892%26id%3D03a74fdaf331447b\u0026type=video%2F3gpp%3B+codecs%3D%22mp4v.20.3%2C+mp4a.40.2%22\u0026fallback_host=tc.v9.cache8.c.youtube.com\u0026sig=6B6A5932109E2C9242E4E13E458B0C4D29069BA4.0B635826890F636BC5830E2885001FD13D4C6657\u0026quality=small", "watermark": ",http:\/\/s.ytimg.com\/yt\/img\/watermark\/youtube_watermark-vflHX6b6E.png,http:\/\/s.ytimg.com\/yt\/img\/watermark\/youtube_hd_watermark-vflAzLcD6.png", "timestamp": 1349801569, "storyboard_spec": "http:\/\/i2.ytimg.com\/sb\/A6dP2vMxRHs\/storyboard3_L$L\/$N.jpg|48#27#100#10#10#0#default#sHHjk49hHpBer7bXfaS-r9DrbfQ|80#45#105#10#10#2000#M$M#kzeMyRhKUowVDoSmd125tIzgUrU|160#90#105#5#5#2000#M$M#twmlsiKJA71_dCDCT4TrSX-kLbw|320#180#105#3#3#2000#M$M#AvZcJwdTz4sdEr0meZZgsSKGyMQ", "iv_load_policy": 1, "showpopout": 1, "mpu": true, "hl": "bg_BG", "tmi": "1", "iv_logging_level": 4, "st_module": "http:\/\/s.ytimg.com\/yt\/swfbin\/st_module-vflVQgiyu.swf", "no_get_video_log": "1", "rvs": "view_count=193%2C338\u0026author=1artistmusic
And this is the source of file:

Code:
<?
$url = $_GET['url'];
echo $file = file_get_contents($url);
?>
atanas is offline   Reply With Quote
Old 10-09-2012, 11:28 PM   PM User | #510
Luckyplaya
New Coder

 
Join Date: Sep 2012
Location: Germany
Posts: 32
Thanks: 8
Thanked 1 Time in 1 Post
Luckyplaya is an unknown quantity at this point
Quote:
Originally Posted by chump2877 View Post
5 files total changed in paid-for version:

VideoConverter.class.php
config.class.php
index.php
ringtone.php
schedule.php

Ok, thanks.
Had to adapt the design of new and re-translate the script in German.
It was a bit more complex than before, but I did it.
Luckyplaya is offline   Reply With Quote
Reply

Bookmarks

Tags
audio, class, conversion, dailymotion, ffmpeg, mp3, php, script, video, youtube

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:54 PM.


Advertisement
Log in to turn off these ads.