+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: using PHP - how to convert video (avi, mp4, mkv) or even extract audio/video/subtitle

  1. #1
    psrnet00 is offline x10Hosting Member psrnet00 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    12

    Arrow using PHP - how to convert video (avi, mp4, mkv) or even extract audio/video/subtitle

    {sorry for bad english knowledge}

    i need to online convert video from url or direct downloadable site so i can download files after conversion

    i know some website provide online conversion of video and other files length is near 200 mb, but i need to convert more than 700MB

    i am very new to PHP, my question is that

    is there any way to create this php script or if you know how to do php script than help me to create this script

    or if this script is available than from where i can download this script for free with tutorial

    plzzzz do reply

  2. #2
    essellar's Avatar
    essellar is online now Community Advocate essellar has a spectacular aura about
    Join Date
    Feb 2010
    Location
    Toronto, Ontario, CA
    Posts
    1,152

    Re: using PHP - how to convert video (avi, mp4, mkv) or even extract audio/video/subt

    I'm going to try to strongly discourage you from trying this at all. Video conversion (decoding, then encoding) requires a lot of processing cycles and a large memory space, and getting conversion speeds significantly faster than real-time (one second of video takes one second to convert) takes a lot of horsepower. It's not even close to practical in a shared environment -- even if the timesharing and memory management were perfect and never allowed your code more than its share of resources, the processing time would increase to the point that burning a disc and hand-delivering it would be a practical alternative.

    Even the typical VPS would be underpowered for the task, and it's not something where you can just spawn a new instance to share the load (as you can with a request/reponse web server). That means a dedicated or co-located server with above-average specs. And that means money with a capital M. And you still won't be able to do it fast enough for a browser to wait for the results.

    It's far more practical to do the conversion on your local machine/network without the PHP layer, even if the object of the game is to move the files to a web server for download.
    “Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
    "It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)

  3. #3
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,162

    Re: using PHP - how to convert video (avi, mp4, mkv) or even extract audio/video/subt

    And you DEFINITELY wouldn't want to do this in PHP.
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

  4. #4
    psrnet00 is offline x10Hosting Member psrnet00 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    12

    Re: using PHP - how to convert video (avi, mp4, mkv) or even extract audio/video/subt

    ok... thanks anyway


    i want to change design of php but i can't find it... (x10hosting)

  5. #5
    GtoXic is offline x10 Lieutenant GtoXic is an unknown quantity at this point
    Join Date
    Apr 2010
    Posts
    447

    Re: using PHP - how to convert video (avi, mp4, mkv) or even extract audio/video/subt

    by change the design do you mean the style of the page (eg: colours etc)?

    If so, use CSS. You can find CSS help from google.
    Thanks for reading, GtoXic
    █ x10 Lieutenant
    █ If I have helped, please click the star in the bottom left of my post.

    █ Free Hosting support volunteer 410 posts from Community Advocate (This is NOT live!)


  6. #6
    Murphy65's Avatar
    Murphy65 is offline x10Hosting Member Murphy65 is an unknown quantity at this point
    Join Date
    Jun 2011
    Location
    Wonderland
    Posts
    31

    Re: using PHP - how to convert video (avi, mp4, mkv) or even extract audio/video/subt

    search in wp site in plugun sections!

  7. #7
    SJ.Wolfe's Avatar
    SJ.Wolfe is offline x10 Elder SJ.Wolfe is an unknown quantity at this point
    Join Date
    Aug 2010
    Location
    Washington, U.S.A.
    Posts
    590

    Re: using PHP - how to convert video (avi, mp4, mkv) or even extract audio/video/subt

    You would probably have better results using an actual program designed for converting video formats, instead of doing it via an online application anyway.
    SJWolfe - Volunteer Community Customer Service Representative
    Do NOT PM me, email me, or leave me a profile comment requesting support - Create a support ticket.
    Livewire's Slave - Wielder of the Finely Dressed Pimp Slap
    Join us on IRC! irc.x10hosting.com:6667 #publicchat

  8. #8
    saviorfromthenorth's Avatar
    saviorfromthenorth is offline x10Hosting Member saviorfromthenorth is an unknown quantity at this point
    Join Date
    Feb 2010
    Location
    Philippines
    Posts
    31

    Re: using PHP - how to convert video (avi, mp4, mkv) or even extract audio/video/subt

    I have the used ffmpeg extension before, it does work. It's not preloaded so you would have to install it yourself. The major problem you will be facing though are the numerous codecs out there that the library does not know how to convert. So you will experience a lot of errors. That's why nobody encourages you to try it.

  9. #9
    psrnet00 is offline x10Hosting Member psrnet00 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    12

    Re: using PHP - how to convert video (avi, mp4, mkv) or even extract audio/video/subt

    TO ADMIN,
    TO MEMBERS,
    TO THOSE WHO KNOWS FFMPEG,


    I look around many threads and posts in different sites, but bcz of less script and functions knowledge i am not able to get anything right, and also i know some sites (other than hosting site) provide this feature but they only allow max. length is 200 mb or less


    bcz i downloaded a movie that having different lang, i do not want to download 500 mb again, so i want to extract only audio and download it, i will delete those in 1 hrs after successfully conversion of vid to mp3, i want this for only personnel use and i am not going to allow any person expect me to use it, and even i will use only few times, bcz my main purpose is to learn php and hosting here


    so my three points are

    1. Admin and members who have privilege and authorized to access my site/domain can do it for me preload it for me plzzzzzzz

    2. if ffmapeg is not allowed at here x10hosting than plz admin and member tell me coz i donot want to be banned myself again

    3. can anyone explain me in simple and easy to understable that how do i can install ffmpeg on my server and extract audio from mp4/avi/mkv files

  10. #10
    nirajkum is offline x10 Sophmore nirajkum is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    161

    Re: using PHP - how to convert video (avi, mp4, mkv) or even extract audio/video/subt

    there are lots of open source project you can refer it and if you dont want to write the whole you can integrate tools in your project

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. streaming audio/video.
    By tamim_ch84 in forum Free Hosting
    Replies: 1
    Last Post: 06-18-2011, 04:55 PM
  2. audio video streaming
    By the.r3v3ng3r64 in forum Free Hosting
    Replies: 1
    Last Post: 02-05-2011, 04:49 PM
  3. Audio/Video Steaming?
    By albaloch in forum Free Hosting
    Replies: 2
    Last Post: 01-04-2011, 04:33 AM
  4. Audio-Video COnferencing
    By 4allofus in forum Programming Help
    Replies: 0
    Last Post: 09-09-2008, 11:56 AM
  5. Video/Audio drivers...
    By mikel2k3 in forum Off Topic
    Replies: 3
    Last Post: 08-07-2006, 08:38 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
x10hosting free hosting for the masses
dedicated servers