1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ffmpeg video conversation

Discussion in 'PHP & Perl' started by mylikes786, Mar 25, 2014.

  1. mylikes786

    mylikes786 Registered Member

    Joined:
    Oct 31, 2013
    Messages:
    80
    Likes Received:
    6
    hello all,

    I have ffmpeg instaled on my dedicated server.

    I have a video site there is some video in my server.

    I want user can download those video in there pc in diffrent quality and format also but i dont want keep 1 video in diffrent format or quality in my server. I want keep only in 1 format in my server and user can download in diffrent format like mp4, flv etc in diffrent quality low, medium, high

    same like we download video from youtube


    it is possible? can we do this?
     
  2. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    950
    Likes Received:
    662
    Occupation:
    Web/Bot Developer
    ffmpeg will convert the file on your server prior to download. If you don't want to keep the extra files on your server you'll have to make sure to delete them after conversion & download. Of course all this can be scripted.
     
  3. Eightomic

    Eightomic Registered Member Premium Member

    Joined:
    Oct 20, 2012
    Messages:
    60
    Likes Received:
    13
    Occupation:
    Web Developer / Designer
    Location:
    United States
    Home Page:
    This is possible, but it will be very resource-intensive to process these download requests over time. I'd suggest checking out a 3rd-party video encoding and hosting service such as Zencoder.