Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 59 of 81 FirstFirst ... 949575859606169 ... LastLast
Results 871 to 885 of 1202
Like Tree6Likes

Thread: YouTube-to-MP3 conversion - PHP class and script

  1. #871
    New Coder
    Join Date
    Jun 2013
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    Quote Originally Posted by zhanly View Post
    Hi

    For some unknown reasons, the auto-update doesn't work properly on my servers, I see software.xml file has 0kb file size, do you know what's wrong?

    Thanks
    maybe your software.xml hasn't got 777 permission, what OS do you use in your server?
    Last edited by rajah; 08-14-2013 at 08:11 AM.

  2. #872
    New Coder
    Join Date
    Jul 2012
    Posts
    14
    Thanks
    3
    Thanked 0 Times in 0 Posts
    There was something wrong on my server config, I believe 'no free space' that caused this error.

  3. #873
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,791
    Thanks
    19
    Thanked 156 Times in 147 Posts
    Quote Originally Posted by rajah View Post
    I think youtube change it's signature again?
    tested with xWTiOqJqkk0
    Fixed

    Your software will auto-update to decryption fix version 0.8 within the hour.
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  4. #874
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,791
    Thanks
    19
    Thanked 156 Times in 147 Posts
    Quote Originally Posted by krater13 View Post
    multiple proxies its not good solutions. becouse a proxies have a slow speed, and download will take much time. Recaptcha dependense in ip or network? maybe to rotate real IP's in curl curl_setopt($ch, CURLOPT_INTERFACE, "$ip"); on same network?
    I have coded proxy solutions, and they work fast enough. So I've seen the results, and I know that it works. Period.

    As I said earlier, a proxy can be a "real" IP in the same network, and that is in fact an ideal solution.

    Trying to "re-serve" the YouTube Recaptcha to your site users will cause you nothing but misery (in my experience). I have tried a million ways to do this, and failed miserably each time. I won't say it's impossible, but I've found that proxies are the easier, less expensive, and most effective solution.

    Here is an excerpt from some email correspondence I recently had with a client regarding "re-serving" the YouTube captcha, and exactly why this strategy will give you headaches:

    >>shouldn't youtube be able to successfully accept the captcha as it is coming from the servers ip the same one that youtube blocked?

    Yes, it should, and it does. The problem is submitting the form via cURL (sending the POST variables via an open cURL resource) as opposed to submitting the form inside the browser (manually). OR, submitting the form manually, but attempting to change where the form loads or where it redirects to following form submission.

    Recaptcha (another Google product) seems to have a lot of extra protection as opposed to other simple captchas. For example:

    1) It keeps track of the referring URL. If the referring URL is not from YouTube, it fails.
    2) It seems to know the user agent used to solve the captcha (i.e., bot vs. browser)
    3) It won’t load inside an iframe. YouTube uses a frame-busting HTTP header on its video pages to stop loading inside any kind of frame.
    4) Solving the captcha once should theoretically stop the captcha from appearing for some time, but in my tests, you can solve the captcha and get redirected to YouTube – only to have to solve the captcha again for the very next video page you request.
    5) When trying to submit form via cURL, I can never seem to solve the captcha correctly (even when typing the correct code). There must be some kind of header or combination of HTTP headers that I need to send in the page requests, or its employing some other kind of protection.
    6) I have even tried loading the form submission in a popup or pop-under window, close the new window once it has loaded, and then reload the conversion request on your site. But the problem is that there is no way to know for sure when the popup has loaded because you cannot handle javascript events (i.e., onload event) on a remote server’s page (violates the same origin policy). And different video pages load at varying rates, so using a timer (i.e., wait 2-3 seconds then close popup) for this is impractical as well.

    So the gist of this is that we can submit the captcha request to youtube and have it succeed, but it seems if we try to deviate from that process (or manipulate the process) in any way, we run into problems....and since the goal is to have the captcha submission work seamlessly with your site, then we are forced to (even subtly) alter/manipulate the captcha to do this.
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  5. #875
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,791
    Thanks
    19
    Thanked 156 Times in 147 Posts
    Quote Originally Posted by krater13 View Post
    so is it posible to do auto refresh page if u get a captcha, till the time u didnt?
    I wouldn't recommend that, since that requires you to make repeated, rapid-fire requests to YouTube -- up until the point that you don't receive the captcha. And aren't repeated, rapid-fire requests to YouTube ultimately the catalyst for producing the captcha in the first place?
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  6. #876
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question good advertising network ?

    Hi everyone ? how are you doing ? i am looking for an advertising network that has image/video ads for my website . based on your experience what networks do you suggest. I got rejected by adsense and Affinity . cheers !

  7. #877
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,791
    Thanks
    19
    Thanked 156 Times in 147 Posts
    To all users of my software:

    Your software will auto-update to decryption fix version 0.9 within the hour.

    Have a nice day!
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  8. #878
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,791
    Thanks
    19
    Thanked 156 Times in 147 Posts
    Quote Originally Posted by ho3ein View Post
    Hi everyone ? how are you doing ? i am looking for an advertising network that has image/video ads for my website . based on your experience what networks do you suggest. I got rejected by adsense and Affinity . cheers !
    I think http://www.warriorforum.com/ would be a good place to look for ideas about advertising for this kind of site.

    One of my clients highly recommends: http://www.adreactor.com/

    Edit: Another one is http://www.clicksor.com/, but you will earn more with http://www.adreactor.com (according to my client). Good luck!
    Last edited by chump2877; 08-15-2013 at 10:26 PM.
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  9. Users who have thanked chump2877 for this post:

    ho3ein (08-16-2013)

  10. #879
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    3
    Thanks
    1
    Thanked 2 Times in 1 Post
    Hello,

    I see a lot users ask which ads network is good for this type of script,
    here is little list:

    1. adreactor.com ----- the best
    2. yieldads.com
    3. adcash.com
    4. clicksor.com
    5. chitika.com
    6. bidvertiser.com

    there is a lot networks which is good for this type of script i just add some of,


    cost per action (CPA),
    u will earn money per any install or buy product which u promote on your page,
    some of networks:

    cj.com
    matomymedia.com
    clickbank.com

    I hope this post will help,

    Thanks.

  11. The Following 2 Users Say Thank You to vsetgz For This Useful Post:

    chump2877 (08-15-2013), ho3ein (08-16-2013)

  12. #880
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Hi , thanks a lot . i'm gonna check them out !

  13. #881
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Just tried idea with proxy rotating and in few hours all proxy servers began get captcha.

  14. #882
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,791
    Thanks
    19
    Thanked 156 Times in 147 Posts
    Quote Originally Posted by krater13 View Post
    Just tried idea with proxy rotating and in few hours all proxy servers began get captcha.
    Sounds like you don't have enough proxies to handle your site traffic. Or there is a flaw in your implementation of proxies.

    Can you explain in more detail exactly what you are doing and how you are integrating proxies? What kinds of proxies are you using? What kind of traffic does your site have?
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  15. #883
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    36 usa private proxy, ~15k unique visitors and ~50k impressions a day

  16. #884
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,791
    Thanks
    19
    Thanked 156 Times in 147 Posts
    Quote Originally Posted by krater13 View Post
    36 usa private proxy, ~15k unique visitors and ~50k impressions a day
    Honestly, with that many proxies (and assuming you are rotating through them equally and generally implementing them effectively!), and with that amount of traffic, it seems like you shouldn't be having this much of a problem avoiding the YouTube captcha.

    Where are you getting your proxies from? What provider? Is anyone else using those proxies?

    Also, I would really need to see the code you are using to integrate proxies into your YouTube video requests. (There could be a flaw in your implementation.) And I'd probably need to troubleshoot the issue directly on your server to effectively advise you.

    Granted, YouTube "is" inconsistent in terms of who gets the captcha, when they get the captcha, and how often. But, again, it seems to me that your situation could be avoided (or, at the very least, minimized) via the use of proxies.
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  17. #885
    New to the CF scene
    Join Date
    Apr 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    I would like to know if you or someone from here knows the answer to the following.

    I compiled from source ffmpeg with all the necessary codecs, uploaded and reconfigured your script. I chmod 777 to ffmpeg bin and chown www-data to ffmpeg.

    When executing command manually from bin folder I successfully encode flv to mp3 using lame but your script fails to access bin file.

    So I made a php script
    <?php
    exec('~/bin/ffmpeg -i "/var/www/test/youtube/videos/1376995108_52134724adcbf4.88584827.flv" -acodec libmp3lame -ac 2 -ab 128 -vn -y "/var/www/test/youtube/videos//filename3.mp3"');
    ?>

    and placed it into youtube test folder... when accessing via browser it doesn't work but if I try using terminal "php test.php" it initiates and finishes conversion successfully.

    Persmissions are
    -rwxrwxr-x 1 www-data www-data 15511760 Aug 20 11:45 ffmpeg
    and path is correct, otherwise conversion wouldn't worked over php test.php

    Can someone explain me why lighttpd (web server) gets
    sh: 1: /root/bin/ffmpeg: Permission denied
    when accessing ffmpeg?

    Solution was to move ffmpeg bin to same folder as script but I want to know why it doesn't work with /root/bin/ffmpeg bin and how to make script work with /root/bin/ffmpeg bin.


    Tutorial to install ffmpeg with lame mp3 support on Ubuntu from terminal (SSH)

    I already have webserver installed along with mysql and php.
    If you don't know how to install and configure web server giyf, type lamp ubuntu (if you are using ubuntu) and follow the first tutorial that makes sense...
    example
    http://www.howtoforge.com/ubuntu_lamp_for_newbies

    I use lighttpd instead of apache so some of my paths my be different, consult if you get stuck somewhere with phpinfo();

    apt-get update
    apt-get upgrade

    apt-get install php5-ffmpeg

    add extension=ffmpeg.so in php.ini by typing
    nano /etc/php5/cgi/php.ini
    use ctrl+insert or right click to insert text into editor

    I installed few lame libraries, I usually tend to install all that has to do with extension or product when installing first time so I don't have to bother in future, I removed those I know that are not necessary but I might leave some that are not needed, few mb more or less...
    apt-get install libmp3lame0
    apt-get install libmp3lame-dev
    apt-get install libavcodec-extra-52
    apt-get install subversion

    How to compile ffmpeg with lame mp3 encoder?
    http://ffmpeg.org/trac/ffmpeg/wiki/U...mpilationGuide

    If you get stuck with error about asm install it by
    apt-get install nasm

    you can test from terminal if you successfully installed ffmpeg with lame by issuing following command

    ~/bin/ffmpeg -i path_to_flv_file/filename.flv -acodec libmp3lame -ac 2 -ab 128 -vn -y path_to_output_dir/filename3.mp3


    After you have successfully compiled ffmpeg with lame support do following

    chown -R www-data:www-data ~/bin/
    chmod 755 ~/bin/ffmpeg

    and change const _FFMPEG = '/root/bin/ffmpeg'; in config.class.php file of your script

    I tried even with 777 but didn't work until I moved file to my server document root folder (/var/www/)

    so do following
    cp ~/bin/ffmpeg /var/www/path_to_script_folder/
    and change const _FFMPEG = '/var/www/path_to_script_folder/ffmpeg'; in config.class.php file of your script

    it should work flawlessly now... if you stuck somewhere in process send me a pm or email I will be glad to help


 
Page 59 of 81 FirstFirst ... 949575859606169 ... LastLast

LinkBacks (?)

  1. 07-21-2014, 05:32 PM
  2. 07-12-2014, 05:59 PM
  3. 06-26-2014, 03:39 PM
  4. 05-31-2014, 09:13 PM
  5. 04-24-2014, 07:53 PM
  6. 04-19-2014, 10:22 AM
  7. 04-04-2014, 08:33 PM
  8. 04-04-2014, 01:58 AM
  9. 03-28-2014, 06:03 AM
  10. 03-20-2014, 06:11 PM
  11. 03-16-2014, 01:22 AM
  12. 03-08-2014, 04:56 PM
  13. 03-07-2014, 06:21 PM
  14. 03-01-2014, 12:48 PM
  15. 02-22-2014, 08:40 PM
  16. 02-22-2014, 12:02 AM
  17. 02-21-2014, 08:15 PM
  18. 02-21-2014, 12:00 AM
  19. 02-20-2014, 08:37 PM
  20. 02-20-2014, 06:53 PM
  21. 02-20-2014, 03:21 PM

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
  •