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 21 of 85 FirstFirst ... 1119202122233171 ... LastLast
Results 301 to 315 of 1275
Like Tree8Likes

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

  1. #301
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    Thanked 157 Times in 148 Posts
    PHP Code:
    $exec_string parent::_FFMPEG.' -i '.$this->GetTempVidFileName().' -vol 768 -y -acodec libmp3lame -ab '.$quality.'k '.$this->GetSongFileName() . ' 2> ./logs/' $this->_uniqueID '.txt'
    Your FFMPEG command looks fine....
    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!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  2. #302
    New Coder
    Join Date
    Feb 2012
    Posts
    24
    Thanks
    0
    Thanked 3 Times in 3 Posts
    yes looks good.. give me version of ffmpeg using this

    Code:
    ffmpeg --version
    also do you have php-ffmpeg installed (if linux box)
    and what distro

  3. #303
    New Coder
    Join Date
    Feb 2012
    Posts
    24
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Something weird is going on with your ffmpeg

    if you look at your log

    http://zaap.ch/logs/1330827379_4f52d...6.68506985.txt

    and then look at mine

    Code:
    ffmpeg version 0.7.11, Copyright (c) 2000-2011 the FFmpeg developers
      built on Jan 28 2012 01:15:07 with gcc 4.4.5
      configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
      libavutil    50. 43. 0 / 50. 43. 0
      libavcodec   52.123. 0 / 52.123. 0
      libavformat  52.111. 0 / 52.111. 0
      libavdevice  52.  5. 0 / 52.  5. 0
      libavfilter   1. 80. 0 /  1. 80. 0
      libswscale    0. 14. 1 /  0. 14. 1
      libpostproc  51.  2. 0 / 51.  2. 0
    [matroska,webm @ 0x16ac2e0] Estimating duration from bitrate, this may be inaccurate
    Input #0, matroska,webm, from 'videos/1330903706_4f53fa9ab3c4c8.48064843.flv':
      Duration: 00:03:50.47, start: 0.000000, bitrate: N/A
        Stream #0.0: Video: vp8, yuv420p, 480x360, PAR 1:1 DAR 4:3, 29.97 fps, 29.97 tbr, 1k tbn, 29.97 tbc (default)
        Stream #0.1: Audio: vorbis, 44100 Hz, stereo, s16 (default)
    Output #0, mp3, to 'mp3/Kid_Rock_-_All_Summer_Long_OFFICIAL_MUSIC_VIDEO.mp3':
      Metadata:
        TSSE            : Lavf52.111.0
        Stream #0.0: Audio: libmp3lame, 44100 Hz, stereo, s16, 192 kb/s (default)
    Stream mapping:
      Stream #0.1 -> #0.0
    Press [q] to stop, [?] for help
    size=     402kB time=00:00:17.16 bitrate= 192.1kbits/s    
    size=     807kB time=00:00:34.42 bitrate= 192.0kbits/s    
    size=    1211kB time=00:00:51.64 bitrate= 192.0kbits/s    
    size=    1625kB time=00:01:09.32 bitrate= 192.0kbits/s    
    size=    2033kB time=00:01:26.75 bitrate= 192.0kbits/s

  4. #304
    New Coder
    Join Date
    Feb 2012
    Posts
    15
    Thanks
    4
    Thanked 0 Times in 0 Posts
    ffmpeg version:
    Code:
    ffmpeg version git-2012-03-04-f972193 Copyright (c) 2000-2012 the FFmpeg developers
      built on Mar  3 2012 18:12:10 with gcc 4.4.3
      configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab
      libavutil      51. 41.100 / 51. 41.100
      libavcodec     54.  6.100 / 54.  6.100
      libavformat    54.  2.100 / 54.  2.100
      libavdevice    53.  4.100 / 53.  4.100
      libavfilter     2. 62.101 /  2. 62.101
      libswscale      2.  1.100 /  2.  1.100
      libswresample   0.  7.100 /  0.  7.100
      libpostproc    52.  0.100 / 52.  0.100
    Missing argument for option '-version'
    yes I have installed php-ffmpeg

    I have Ubuntu 10.04.4 LTS

  5. #305
    New Coder
    Join Date
    Feb 2012
    Posts
    24
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by cana888 View Post
    ffmpeg version:
    Code:
    ffmpeg version 0.7.11, Copyright (c) 2000-2011 the FFmpeg developers
      built on Jan 28 2012 01:15:07 with gcc 4.4.5
      configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
      libavutil    50. 43. 0 / 50. 43. 0
      libavcodec   52.123. 0 / 52.123. 0
      libavformat  52.111. 0 / 52.111. 0
      libavdevice  52.  5. 0 / 52.  5. 0
      libavfilter   1. 80. 0 /  1. 80. 0
      libswscale    0. 14. 1 /  0. 14. 1
      libpostproc  51.  2. 0 / 51.  2. 0
    ffmpeg 0.7.11
    libavutil    50. 43. 0 / 50. 43. 0
    libavcodec   52.123. 0 / 52.123. 0
    libavformat  52.111. 0 / 52.111. 0
    libavdevice  52.  5. 0 / 52.  5. 0
    libavfilter   1. 80. 0 /  1. 80. 0
    libswscale    0. 14. 1 /  0. 14. 1
    libpostproc  51.  2. 0 / 51.  2. 0
    yes I have installed php-ffmpeg

    I have Ubuntu 10.04.4 LTS
    I have a gut feeling that it may be the version of ffpmeg you are running. you seem to be running a nightly build

    try the stable one

    http://ffmpeg.org/releases/ffmpeg-0.10.tar.gz

    let me know how that works..
    Last edited by drakus; 03-05-2012 at 12:17 AM.

  6. Users who have thanked drakus for this post:

    cana888 (03-05-2012)

  7. #306
    New Coder
    Join Date
    Feb 2012
    Posts
    15
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Thanks Drakus working perfect now, I have one more problem with downloading progress nothing showing, do you have any ide about this?

  8. #307
    New Coder
    Join Date
    Feb 2012
    Posts
    24
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by cana888 View Post
    Thanks Drakus working perfect now, I have one more problem with downloading progress nothing showing, do you have any ide about this?
    welcome.. my only guess is you are downloading so fricken fast. even a huge 100+Meg video that it has no time to check status and it goes right into the conversion.

    sorry to say, with out really looking at a log. i cannot tell you.

    maybe chump can chime in...

  9. Users who have thanked drakus for this post:

    cana888 (03-05-2012)

  10. #308
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by drakus View Post
    welcome.. my only guess is you are downloading so fricken fast. even a huge 100+Meg video that it has no time to check status and it goes right into the conversion.
    I think that's probably right. Looking at the source code after the conversion completes, you see the following:

    Code:
    <script type="text/javascript">updateVideoDownloadProgress("1");</script><script type="text/javascript">updateVideoDownloadProgress("2");</script><script type="text/javascript">updateVideoDownloadProgress("3");</script><script type="text/javascript">updateVideoDownloadProgress("4");</script><script type="text/javascript">updateVideoDownloadProgress("5");</script><script type="text/javascript">updateVideoDownloadProgress("6");</script><script type="text/javascript">updateVideoDownloadProgress("7");</script><script type="text/javascript">updateVideoDownloadProgress("7");</script><script type="text/javascript">updateVideoDownloadProgress("9");</script><script type="text/javascript">updateVideoDownloadProgress("10");</script><script type="text/javascript">updateVideoDownloadProgress("11");</script><script type="text/javascript">updateVideoDownloadProgress("12");</script><script type="text/javascript">updateVideoDownloadProgress("13");</script><script type="text/javascript">updateVideoDownloadProgress("14");</script><script type="text/javascript">updateVideoDownloadProgress("14");</script><script type="text/javascript">updateVideoDownloadProgress("16");</script><script type="text/javascript">updateVideoDownloadProgress("17");</script><script type="text/javascript">updateVideoDownloadProgress("18");</script><script type="text/javascript">updateVideoDownloadProgress("19");</script><script type="text/javascript">updateVideoDownloadProgress("20");</script><script type="text/javascript">updateVideoDownloadProgress("21");</script><script type="text/javascript">updateVideoDownloadProgress("22");</script><script type="text/javascript">updateVideoDownloadProgress("23");</script><script type="text/javascript">updateVideoDownloadProgress("24");</script><script type="text/javascript">updateVideoDownloadProgress("25");</script><script type="text/javascript">updateVideoDownloadProgress("26");</script><script type="text/javascript">updateVideoDownloadProgress("27");</script><script type="text/javascript">updateVideoDownloadProgress("28");</script><script type="text/javascript">updateVideoDownloadProgress("28");</script><script type="text/javascript">updateVideoDownloadProgress("30");</script><script type="text/javascript">updateVideoDownloadProgress("31");</script><script type="text/javascript">updateVideoDownloadProgress("32");</script><script type="text/javascript">updateVideoDownloadProgress("33");</script><script type="text/javascript">updateVideoDownloadProgress("34");</script><script type="text/javascript">updateVideoDownloadProgress("35");</script><script type="text/javascript">updateVideoDownloadProgress("36");</script><script type="text/javascript">updateVideoDownloadProgress("37");</script><script type="text/javascript">updateVideoDownloadProgress("38");</script><script type="text/javascript">updateVideoDownloadProgress("39");</script><script type="text/javascript">updateVideoDownloadProgress("40");</script><script type="text/javascript">updateVideoDownloadProgress("41");</script><script type="text/javascript">updateVideoDownloadProgress("42");</script><script type="text/javascript">updateVideoDownloadProgress("43");</script><script type="text/javascript">updateVideoDownloadProgress("44");</script><script type="text/javascript">updateVideoDownloadProgress("45");</script><script type="text/javascript">updateVideoDownloadProgress("46");</script><script type="text/javascript">updateVideoDownloadProgress("47");</script><script type="text/javascript">updateVideoDownloadProgress("48");</script><script type="text/javascript">updateVideoDownloadProgress("49");</script><script type="text/javascript">updateVideoDownloadProgress("50");</script><script type="text/javascript">updateVideoDownloadProgress("51");</script><script type="text/javascript">updateVideoDownloadProgress("52");</script><script type="text/javascript">updateVideoDownloadProgress("53");</script><script type="text/javascript">updateVideoDownloadProgress("54");</script><script type="text/javascript">updateVideoDownloadProgress("55");</script><script type="text/javascript">updateVideoDownloadProgress("55");</script><script type="text/javascript">updateVideoDownloadProgress("56");</script><script type="text/javascript">updateVideoDownloadProgress("58");</script><script type="text/javascript">updateVideoDownloadProgress("59");</script><script type="text/javascript">updateVideoDownloadProgress("60");</script><script type="text/javascript">updateVideoDownloadProgress("61");</script><script type="text/javascript">updateVideoDownloadProgress("62");</script><script type="text/javascript">updateVideoDownloadProgress("63");</script><script type="text/javascript">updateVideoDownloadProgress("64");</script><script type="text/javascript">updateVideoDownloadProgress("65");</script><script type="text/javascript">updateVideoDownloadProgress("66");</script><script type="text/javascript">updateVideoDownloadProgress("67");</script><script type="text/javascript">updateVideoDownloadProgress("68");</script><script type="text/javascript">updateVideoDownloadProgress("69");</script><script type="text/javascript">updateVideoDownloadProgress("70");</script><script type="text/javascript">updateVideoDownloadProgress("71");</script><script type="text/javascript">updateVideoDownloadProgress("72");</script><script type="text/javascript">updateVideoDownloadProgress("73");</script><script type="text/javascript">updateVideoDownloadProgress("74");</script><script type="text/javascript">updateVideoDownloadProgress("75");</script><script type="text/javascript">updateVideoDownloadProgress("76");</script><script type="text/javascript">updateVideoDownloadProgress("77");</script><script type="text/javascript">updateVideoDownloadProgress("78");</script><script type="text/javascript">updateVideoDownloadProgress("79");</script><script type="text/javascript">updateVideoDownloadProgress("80");</script><script type="text/javascript">updateVideoDownloadProgress("81");</script><script type="text/javascript">updateVideoDownloadProgress("82");</script><script type="text/javascript">updateVideoDownloadProgress("83");</script><script type="text/javascript">updateVideoDownloadProgress("84");</script><script type="text/javascript">updateVideoDownloadProgress("85");</script><script type="text/javascript">updateVideoDownloadProgress("86");</script><script type="text/javascript">updateVideoDownloadProgress("87");</script><script type="text/javascript">updateVideoDownloadProgress("88");</script><script type="text/javascript">updateVideoDownloadProgress("89");</script><script type="text/javascript">updateVideoDownloadProgress("90");</script><script type="text/javascript">updateVideoDownloadProgress("91");</script><script type="text/javascript">updateVideoDownloadProgress("92");</script><script type="text/javascript">updateVideoDownloadProgress("93");</script><script type="text/javascript">updateVideoDownloadProgress("94");</script><script type="text/javascript">updateVideoDownloadProgress("95");</script><script type="text/javascript">updateVideoDownloadProgress("96");</script><script type="text/javascript">updateVideoDownloadProgress("97");</script><script type="text/javascript">updateVideoDownloadProgress("98");</script><script type="text/javascript">updateVideoDownloadProgress("99");</script><script type="text/javascript">updateVideoDownloadProgress("100");</script><div id="conversionSuccess"></div><script type="text/javascript">var progressBar = document.getElementById("progress"); progressBar.style.width = progressBar.innerHTML = "0%"; updateConversionProgress("Autechre_-_Puch.mp3");</script>
    That indicates that download progress bar is working. But there was absolutely zero delay from download to conversion, so your download speed must be phenomenal. Because before the download progress indicator has a chance to clear the output buffer and appear on the screen, the download is already complete and updateConversionProgress() is fired, the output buffer is flushed again, and the resulting output replaces the download progress bar.
    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!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  11. Users who have thanked chump2877 for this post:

    cana888 (03-05-2012)

  12. #309
    New Coder
    Join Date
    Feb 2012
    Posts
    24
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Cana, I want to see a traceroute to youtube or youtube cache server from your vps/server. I am pinging 100 to you no matter which server I am on of mine.

    I wonder if they have a cache server in the same DC that you are in.

    That is just to fast.

  13. #310
    New Coder
    Join Date
    Feb 2012
    Posts
    15
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by drakus View Post
    Cana, I want to see a traceroute to youtube or youtube cache server from your vps/server. I am pinging 100 to you no matter which server I am on of mine.

    I wonder if they have a cache server in the same DC that you are in.

    That is just to fast.
    Code:
    traceroute to www.youtube.com (74.125.79.91), 30 hops max, 60 byte packets
     1  89.248.169.1 (89.248.169.1)  1.811 ms  1.915 ms  1.862 ms
     2  * * *
     3  * * *
     4  209.85.248.93 (209.85.248.93)  1.718 ms  1.454 ms 209.85.248.88 (209.85.248.                                        88)  1.585 ms
     5  209.85.255.70 (209.85.255.70)  1.739 ms 209.85.255.74 (209.85.255.74)  1.997                                         ms  1.939 ms
     6  216.239.49.36 (216.239.49.36)  5.744 ms  20.123 ms  20.021 ms
     7  209.85.255.130 (209.85.255.130)  8.231 ms * *
     8  ey-in-f91.1e100.net (74.125.79.91)  6.262 ms  6.220 ms  5.993 ms

  14. #311
    New Coder
    Join Date
    Feb 2012
    Posts
    24
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by cana888 View Post
    Code:
    traceroute to www.youtube.com (74.125.79.91), 30 hops max, 60 byte packets
     1  89.248.169.1 (89.248.169.1)  1.811 ms  1.915 ms  1.862 ms
     2  * * *
     3  * * *
     4  209.85.248.93 (209.85.248.93)  1.718 ms  1.454 ms 209.85.248.88 (209.85.248.                                        88)  1.585 ms
     5  209.85.255.70 (209.85.255.70)  1.739 ms 209.85.255.74 (209.85.255.74)  1.997                                         ms  1.939 ms
     6  216.239.49.36 (216.239.49.36)  5.744 ms  20.123 ms  20.021 ms
     7  209.85.255.130 (209.85.255.130)  8.231 ms * *
     8  ey-in-f91.1e100.net (74.125.79.91)  6.262 ms  6.220 ms  5.993 ms
    umm no wonder so fast... u on same network / dc as one of the cache servers

    you will never see a download progress bar

  15. #312
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    To install the server in ubuntu 11.10 Oneiric Ocelot :

    to install php5 : sudo apt-get install php5
    to install apache2 : sudo apt-get install apache2
    restart apache : sudo /etc/init.d/apache2 restart
    to install Curl : sudo apt-get install php5-curl
    to install x264 : sudo apt-get install x264
    to install libx264 : sudo apt-get install libx264-dev
    to install ffmpeg : sudo apt-get install ffmpeg
    to install php-ffmpeg : sudo apt-get install php5-ffmpeg
    to install all codecs : sudo apt-get install libavcodec-extra-53

    If you have a problem, say me !
    beaudav75

  16. #313
    New Coder
    Join Date
    Feb 2012
    Posts
    24
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by beaudav75 View Post
    Hi,

    To install the server in ubuntu 11.10 Oneiric Ocelot :

    to install php5 : sudo apt-get install php5
    to install apache2 : sudo apt-get install apache2
    restart apache : sudo /etc/init.d/apache2 restart
    to install Curl : sudo apt-get install php5-curl
    to install x264 : sudo apt-get install x264
    to install libx264 : sudo apt-get install libx264-dev
    to install ffmpeg : sudo apt-get install ffmpeg
    to install php-ffmpeg : sudo apt-get install php5-ffmpeg
    to install all codecs : sudo apt-get install libavcodec-extra-53

    If you have a problem, say me !
    beaudav75
    TY one good thing about Ubuntu is their packages are more up to dae than debian... I will incorporate this into my script...

    Thanks

  17. #314
    New Coder
    Join Date
    Feb 2012
    Posts
    15
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Its that possible to split script to 3 pages. E.X: home, downloading&converting, download mp3?

    Last one (download mp3) to have unique url e.x: http://domain.com/v=HMpmI2F2cMs
    Last edited by cana888; 03-08-2012 at 12:09 PM.

  18. #315
    New Coder
    Join Date
    Feb 2012
    Posts
    24
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by cana888 View Post
    Its that possible to split script to 3 pages. E.X: home, downloading&converting, download mp3?

    Last one (download mp3) to have unique url e.x: http://domain.com/v=HMpmI2F2cMs
    You can do this by inserting into a database so that it is always available, or you can do some random string generators or maybe even use http://php.net/manual/en/function.tempnam.php to generate a temp file name from orginal and it will delete the temp file after downloaded.


 
Page 21 of 85 FirstFirst ... 1119202122233171 ... LastLast

LinkBacks (?)

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