Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-12-2013, 04:05 PM   PM User | #1
snake111
New Coder

 
Join Date: Jan 2012
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
snake111 is an unknown quantity at this point
Video Editing

I have an interesting project that I'm looking at undertaking. I'm a race director for running and triathlons and we always video tape the finish line, mostly as a backup to the timing system; but now I would like to offer participants a snippet of their finish.

What I would like to do is upload a 1 hour video, where a participants enters their race number and then it returns a video containing 5 seconds before and 5 second after their finish time. I would be able to find the spot in the video based on their finish time.

How would I create that video via server side, and return to the user either an mp4 or avi?

Any ideas where to start?
snake111 is offline   Reply With Quote
Old 01-12-2013, 06:17 PM   PM User | #2
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,521
Thanks: 45
Thanked 440 Times in 429 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
While there is almost certainly a way to do it (youtube offers all sorts of editing afterall) I'm going to be as frank as I can and say that finding that sort of knowledge here is probably not going to happen.

What I would suggest is that you manually edit the video and then upload it for your users to download. Either that, or you find some video editing code (look in the snippets forum - you may get lucky) and then input each contestants line crossing time and let the code do its thing (though if you have to watch it to get each persons time you might as well edit it manually).
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Old 01-12-2013, 09:36 PM   PM User | #3
snake111
New Coder

 
Join Date: Jan 2012
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
snake111 is an unknown quantity at this point
I think this might be the answer to my problem:
http://linuxgazette.net/178/brownss.html
snake111 is offline   Reply With Quote
Old 01-12-2013, 10:00 PM   PM User | #4
sorlaker
Regular Coder

 
Join Date: Dec 2009
Posts: 166
Thanks: 23
Thanked 1 Time in 1 Post
sorlaker has a little shameless behaviour in the past
This might help http://ffmpeg.org/trac/ffmpeg/wiki/U...0PHP%20scripts
sorlaker is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:41 AM.


Advertisement
Log in to turn off these ads.