| You are here: DEVPPL ‹ Forum ‹ Programming ‹ JavaScript Forum |
NOTIFICATIONS
|
|
|||||||||||||||
Login |
Uploading videos
2 posts
• Page 1 of 1
0
Uploading videos
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
0
Re: Uploading videos
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.
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
|
|