Solved

PHP Video Upload

Posted on 2007-03-27
9
7,663 Views
Last Modified: 2008-03-08
I just need some links to tutorials showing how to upload videos with PHP.  In the past I made a Flash/PHP upload system for audio files, but I am not 100% sure on how to convert this to video and make it so that I can play the videos in flash video players.

Also, if anyone knows how to get 3 snapshots from the video when it is uploaded that would be helpful as well.
0
Comment
Question by:jls33fsls
  • 3
  • 2
  • 2
  • +1
9 Comments
 
LVL 18

Expert Comment

by:ingwa
ID: 18804819
I have done a similar thing, but have used a cms, xml output, flash video file--flv, and php.  Basically what you want to do is encode your video with flash 8, then take a screenshot of a decent frame--this also ensures that you get the best perspective for the video--and then enter it via cms.  In flash, program it to read xml, which you can create on the fly using database queries, XML header encoding, and xml output, and hey presto, you have a totally dynamic, cms driven video player using flash and it's cool video streaming capabilities without using streaming servers.

Hope this helps.
0
 

Author Comment

by:jls33fsls
ID: 18804834
Right, but I am making a video section on my site like a YouTube type thing (although nowhere near as big or complex), and I just need to get the actual automatic uploading of the videos working, the playback isn't a problem.  How can I make a script that automatically does what you said when the user uploads a video?

This is on a Linux machine by the way if it requires any open source converting software like I had to use for my audio upload system.
0
 
LVL 29

Expert Comment

by:rdivilbiss
ID: 18805226
Well this tutorial handles the upload and even mentions security which isn't a bad thing.

http://www.tizag.com/phpT/fileupload.php

I'm a little stumped on the snapshot issue though.
0
 
LVL 29

Expert Comment

by:rdivilbiss
ID: 18805250
Possibly this SourceForge project is what you are looking for. Convert videos to FLV with PHP.

http://sourceforge.net/projects/wve/
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

by:jls33fsls
ID: 18805816
That tutorial for an upload script is just a generic one, I need one specific to videos.  I will have to take a look at that video to FLV one tomorrow and see if that is what I am looking for.  Also I am still wondering about the screenshots.
0
 
LVL 29

Expert Comment

by:rdivilbiss
ID: 18807918
>Also I am still wondering about the screenshots.

Sorry, I can't offer anything specific about that.  Maybe another expert has some experience with that. I can see why you would want that.
0
 
LVL 18

Accepted Solution

by:
ingwa earned 0 total points
ID: 21040612
the script I recommended, although very complex and includes a player will meet your uploading and auto-thumbnailing needs.  You can easily scale down the site and keep just the upload section.  As your site progresses, you can re-enable sections.

MOD: If the asker still needs this question closed, PAQ with refund.  This will be useful for others on EE.
0
 
LVL 1

Expert Comment

by:modus_operandi
ID: 21076823
Closed, 500 points refunded.
modus_operandi
EE Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHP_POST() error message 9 41
Is this error or Notice in php error log? 6 32
Access Object's Property 9 22
mysql update statement effect only some rows 4 26
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now