You are here: DEVPPL Forum Programming JavaScript Forum
NOTIFICATIONS
54.104
MEMBERS
15.696
TOPICS
62.283
POSTS
  562
FLASH GAMES
7.740
TUTORIALS
 

Login

E-mail:
Password:

Uploading videos

0

Loading

Uploading videos

Postby John_zakaria » Wed May 04, 2011 8:46 am

please i want to know how to Upload video file of any extention and it converts to .flv like U-Tube?
John_zakaria
 
Reputation: 0
Posts: 60
Joined: Sun Feb 08, 2009 8:29 am
Highscores: 0
Arcade winning challenges: 0

Uploading videos - Sponsored results

Sponsored results

Login to get rid of ads

 

0

Loading

Re: Uploading videos

Postby Rajmv » Sun Jul 17, 2011 5:41 pm

i faced the same problem for my cms.

you can forget about doing this on shared hosting.

you need a server with root access _and_ lotsa bandwidth. it's not going to be cheap, in the 50-100euro/month range.

if you're just trying to get it to work at home (like i am), then you'll need http://jumploader.com to upload, and http://www.ffmpeg.org/ to convert it to flv.

the basic idea is that you have jumploader upload the video(s), then kick off a script(s1) on your web server that creates todo-files (json) on your server, and then starts a script(s2) *via the commandline* that is allowed to run forever, which works with these todo files. this (s2) script will while doing it's work write to json status files on your server, which the browser then reads via periodic ajax calls.

i've gotten it so far that it'll first generate the thumbnails, and shows those to the end-user while the video is converting to flv.

if you want to get your software ready for the future, i recommend adding a curl layer between (s1) and (s2). You'd need several layers actually, to get the uploaded video to the video-conversion server (via ftp usually).

video-conversion is very cpu-intensive, and can take as long as a full playback of the video.

took me nearly 2 years to get it right and able to work off multiple servers.
Rajmv
 
Reputation: 0
Posts: 103
Joined: Thu Jul 14, 2011 8:22 am
Highscores: 0
Arcade winning challenges: 0
^ Back to Top