VideoHelp.com Forum
+ Reply to Thread
Results 1 to 12 of 12
Thread
  1. Member
    Join Date: Jan 2007
    Location: United States
    Hi, I'm new to videohelp.com and I was wondering if there is any way that you can have someone upload a file then once its uploaded, it automatically converts it to .mp4 by some type of server-side software or script. I would really like to know how to do this, cause this would be really cool.

    Thanks in advance for your responses,
    ~VenumX
    Quote Quote  

  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    You can use any converter...the tricky part is to get it automatically.

    I would use mencoder to convert and mp4box to make a .mp4 file( they are available for both win and linux). They are command line apps so it would would be pretty easy to make it automatically using a batch script. See for example http://forum.doom9.org/archive/index.php/t-118930.html
    Quote Quote  

  3. Member
    Join Date: Jan 2007
    Location: United States
    Thanks, I'll definately look into it!
    Quote Quote  

  4. Member mats.hogberg's Avatar
    Join Date: Jul 2002
    Location: Sweden (PAL)
    But it'll take quite some server horsepower, + a patient user. Hardly a process where you have the client waiting for a form post to finish. Rather more like a mailback system or something.

    /Mats
    Quote Quote  

  5. Member
    Join Date: Jan 2007
    Location: United States
    well they just need to upload it, its not going to redownload the file, just save it on the server as .mp4
    Quote Quote  

  6. Member mats.hogberg's Avatar
    Join Date: Jul 2002
    Location: Sweden (PAL)
    So, what good will it do on the server in mp4 shape, realistcally 15 minutes later (with the uploaded video around 5 minutes in length)?

    /Mats
    Quote Quote  

  7. Member
    Join Date: Jan 2007
    Location: United States
    I posted this in another part of the forums, now im just gonna put it in here
    -----------------------------------------------------------------------------------------
    Hello, I was wondering if there was any way to make a website that a user would be able to upload a video in any format and the server would automatically take the uploaded file and convert it to a .mp4 and save the converted version on the server. I know that with the server converting it, it would take a while for the file to be converted for the users viewing on large files, but if there was a limit ont he filesize the users uploaded it wouldnt matter. The closest thing to what i want can be found at http://www.zamzar.com. They have done a great job getting the video conversion going, and I was wondering if there was a way I could just do the video conversion to convert straight to .mp4. Thanks in advance for your responses.
    --------------------------------------------------------------
    Just a better idea of what i was looking to do. I just want to have al the videos in .mp4 format on the server but i want to be able to upload any format. If anyone has any idea of how this would or even could work it would be greatly appreciated.
    Quote Quote  

  8. Member
    Join Date: Dec 2004
    Location: Australia
    Easiest way to have a server convert uploaded files to mp4 would be ffmpeg via say php. ffmpeg supports most formats as input (not as many as mencoder) and can output directly to mp4, including audio using lame or faac for the audio and Xvid, libavcodec (MPEG-4 Part 2 and AVC) or x264 for the video. ffmpeg can also output flv, wmv, ogg, etc.
    Quote Quote  

  9. Member
    Join Date: Jan 2007
    Location: United States
    is there a way to do it via aspx? cause that would be much more convinient...and if there is could you point me in the right direction?
    Quote Quote  

  10. Member mats.hogberg's Avatar
    Join Date: Jul 2002
    Location: Sweden (PAL)
    Sure is. We run executables from aspx in some applications. For short:
    Code:
    Process myProcess = new Process();
    myProcess.StartInfo.FileName = executable; 
    myProcess.StartInfo.Arguments = arguments;
    bool result=myProcess.Start();
    executable is the full path of the exe you want to run (like "c:\program files\ffmpeg.exe"), arguments are the arguments you want to pass to the executable.

    As this is run by the "aspnet" user, you have to make sure that user has the right priveliges, or run it as a user with better access rights (better option) with "impersonate" (set in web.config)

    /Mats
    Quote Quote  

  11. Member
    Join Date: Jan 2007
    Location: United States
    Interesting...thanks
    Quote Quote  

  12. Member
    Join Date: Mar 2007
    Location: Canada
    There are some online conversion sites that can do that such as www.zamzar.com or www.heywatch.com. Alternatively, if you're a "podcaster", you can use something like http://www.podcastspot.com. THey will automatically convert whatever you upload to the popular formats.
    Quote Quote  




Similar Threads

  1. Replies: 21
    Last Post: 13th Apr 2011, 19:23
  2. Replies: 0
    Last Post: 3rd Nov 2010, 23:50
  3. Replies: 8
    Last Post: 17th May 2010, 08:09
  4. Server side media conversion
    By diddle in forum Linux
    Replies: 1
    Last Post: 11th Aug 2009, 13:10
  5. FFMPEG audio/video desynchronized (converting video server side)
    By Lleoun in forum Newbie / General discussions
    Replies: 1
    Last Post: 18th Apr 2008, 07:19
Search   Contact us   About   Advertise   Forum   RSS Feeds   Statistics   Tools