Get Video File Total Time Of Playing
I have uploaded the video file to server. we need to get the total time of playing file duration and store the values to database. how can i get the total time for uploaded video file?
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Video Playing In Php
i need to play a video files in my site i did the same in php i use windows media player for playing the video its working in IE but not in Firefox may be the reason is activex controls but i need an other player, working in both browsers which one is best and were i get it.
View Replies !
View Related
Ow To Add Then Display The The Total Amount Of Time For A Given Set Of Time Stamps.
I need to know how to add then display the the total amount of time for a given set of time stamps. For example my page looks like this: task--------time 1-----------start at 8:00 1-----------end at 8:10 2-----------start at 8:12 3-----------start at 8:13 2-----------end at 8:14 3-----------end at 8:20 //notice there is no 8:11 I need to add then display the total amount of time it took for all tasks. Then separate the individual tasks then figure and diaplay the total amount of time needed for each individual task. Code:
View Replies !
View Related
Check Server Time Before Playing Next Music Track
I am making a media player, and running a webserver /php mysql database to arrange music and the playlists. However i need the music player webpage - likely using media player embeded or similiar, to break off from each track and allow my system tell it which one to play each time. I will manage this with cusomt made m3u playlists using php and mysql of track data. The php will load the media player the m3u text file depending on the time critera each one is set to. However if say after 10 songs the time is gone 6pm, and at 6 pm a new playlist is to be loaded , i need the music player to check this after everytime and not just play the m3u file through to the end so to speak? Allowing my php code to recall the mysql database for a new playist and track details at 6 oclock. Get me? any ideas how i can do this? will i force page refreshes? but this will hamper the media player i suspect?
View Replies !
View Related
Calculating Time - Get Time From A Video Game
When I get time from a video game it has the time syntax like 0D 0H 0M and it can hold data up to 23D 23H 59M. So how would I take that type of syntax and take only the H and M time variables and put it into a database called Minutes & Hours. Dont worry about the Day datatype because no-one will spend 1 day in a game unless thier idleing which would be cheating. So take 0D 14H 42M and put it in 2 colums in a database the one bing Hours And THe Other Being minutes. I think theres an explode and implode statements in ther but I have no idea on how to do it.
View Replies !
View Related
Add Timestamps To Get Total Time
how to even start to do this. I need to know how to add then display the the total amount of time for a given set of time stamps. For example my page looks like this: task--------time 1-----------start at 8:00 1-----------end at 8:10 2-----------start at 8:12 3-----------start at 8:13 2-----------end at 8:14 3-----------end at 8:20 //notice there is no 8:11 I need to add then display the total amount of time it took for all tasks. Then separate the individual tasks then figure and diaplay the total amount of time needed for each individual task. Code:
View Replies !
View Related
Email MP3 File After Playing
I have a list of mp3 files (1 minute long) for web page vistors to choose to listen to. I would like for them to click on the link, have a popup window open playing the mp3 file and in the same popup window, also have an email form for them to send either the link or the mp3 file to a friend. How can this be accomplished? I host my own mp3 files, i have php, and MySQL on the webserver.
View Replies !
View Related
Elapsed Time Function - How Do I Convert It To Only Total Seconds?
Below is a good elapsed time function I found. However, I'd like to return total seconds instead of broken down into days, hours, minutes & seconds. In other words, I want "125" instead of "2 minutes 5 seconds". function calcElapsedTime($time) { // calculate elapsed time (in seconds!) $diff = time()-$time; $daysDiff = floor($diff/60/60/24); $diff -= $daysDiff*60*60*24; $hrsDiff = floor($diff/60/60); $diff -= $hrsDiff*60*60; $minsDiff = floor($diff/60); $diff -= $minsDiff*60; $secsDiff = $diff; return ('(elapsed time '.$daysDiff.'d '.$hrsDiff.'h '.$minsDiff.'m '.$secsDiff.'s)'); }
View Replies !
View Related
Total Row Of A Flat File
This one is easy, i want to count the total row of a flat file. Let say i have a file called 'myfile.txt'now inside that text file it has text content rows like below, 1. banana //first row 2. orange 3. papaya 4. grapes 5. lemon //last row now how do i count the total row of this text file and display the result? I think i done this before i just lost the script tho.
View Replies !
View Related
Linking To Video File?
This is more strictly an HTML problem, but as I'm also using PHP and the HTML groups seem to be infested with spam, I'm posting it here! At the school where I work I've got an online searchable database of video tapes and dvds, using MySql and PHP on a Linux machine. It works fine. I'm trancoding some of the tapes to avi files, which can be accessed as a samba share. I'd like to put clickable links into the database, so if a user sees the file is coloured blue, they can click it and it plays. I've got it working, but: Using a 'href' link in HTML code of the PHP powered web page, the file is downloaded at the user end completely before it starts playing, which results in an unacceptably long delay. But if a user accesses the file directly using the samba share directory, the video starts almost immediately and 'streams'. How can I embed into my PHP powered web page a link that uses samba file sharing, so it streams,
View Replies !
View Related
Thumbnail Of A Video File
I have developed an application where the visitors of site come and upload movie clips of MPG, MPEG, MOV, RAR format get uploaded. I would like to create a functionality so that whenever a movie is uploaded, automatically a thumbnail of that movie should be created. the thumbnail should be extracted from any frame from within that particular movie clip. the best example is youtube movie uploads. I am still unable to find any solution and did lot of search about it on internet. Please let me know the technique if any one has done this before or any link to a resource where I can search and get an idea how this is done.
View Replies !
View Related
Mirroring A Video File
We have a video file on our site that we are going to mirror on two other servers. What we want to do is have the website pull from one of the three servers in a cycle pattern each time the file is called up. Code:
View Replies !
View Related
Get Video File Information
I'm designing a simple program to allow us to include different types of media that are presented in a classroom over the web only to users that we create. At present, the instructor would simply use the upload form in the admin area to include the file in the correct directory ie: /home/user/public_html/classes/theclass/movies/movie.mpg, .avi or .mov. Code:
View Replies !
View Related
Video File To Stdout - Corrupting
I'm using a linux binary to split a video file via php with system() the binary prints out the cut file either to a local file, or in my case, to stdout. when I play the file locally, it works great, but when i download it from php, the file is corrupt.. i think it may be that the browser/http stream is encoding the data in transit. header('Content-Type: application/octet-stream'); //header('Content-Type: video/mpeg'); system('/bin/cutme /usr/Club.mpg [30:00-32:00] --stdout', $retval);
View Replies !
View Related
Merge Two/more Video Chunk Into One File
I want to merge video chunks into one video file. I have used 'cat' command for joining chunks file , but while play it will play only first chunk file. code for joining file is using 'cat command as follows : exec("cat tmpvideo/*.* >> tmpvideo/". $tmpname); And using file function is : if ($handle = opendir('/home/ftpusers/zoopy/zoopy-stage/public/tmpvideo')) { while (false !== ($file = readdir($handle))) { echo $file.""; $fh=fopen("/home/ftpusers/zoopy/zoopy-stage/public/tmpvideo/".$file,"r"); $content=fread($fh, filesize("/home/ftpusers/zoopy/zoopy-stage/public/tmpvideo/".$file)); fclose ($fh); $fh1=fopen("tmpvideo/".$tmpname,"a+") or die("unable to create file"); fwrite($fh1,$content); fclose($fh1); } closedir($handle); } Using this code it join the file , but while run it gives error of corrupt file.
View Replies !
View Related
Analyzing A Log File FROM Time TO Time
I have a maillog.txt file like this Mar-15-07 07:49:58 82.235.17.23 <ltcrosby@mailreader.com>..blah Mar-15-07 07:52:50 82.235.17.23 <ltcrosby@mailreader.com>..blah ... Mar-20-07 01:52:50 82.235.17.23 <ltcrosby@mailreader.com>..blah In this log , I want search the first line with the value "delayed rejected" AND the ip "82.235.17.23" ONLY in the time log interval FROM Mar-15-07 07:49:58 TO (Mar-15-07 07:49:58)+28 hours . Can you give me some suggestion to write this code ? Code:
View Replies !
View Related
Playing Videos From CD
I have created a CD full of large video files to accompany a web site. The user puts the CD in the drive and is taken to the online web site. When they click on a video file I want the video to play directly from the CD (to avoid large downloads). Currently I link to the video files in my code like so: <a href="file:///D:/filename.mpg">play video</a> However, this doesn't work for some reason. If you right click and choose 'save target as' and open it from the hard disk - it works! Does anyone have any ideas why this is happening and how to get it to play when the user clicks on the link?
View Replies !
View Related
Playing Mp3s
i want to create an online mp3 player similar to iLikes (http://ilike.com/challenge) with a PHP backend, but I'm not sure how to go about creating the front-end (actually playing mp3s)... i've seen flash based players i.e. XSPF but i would rather use something like JavaScript if even possible...any advice?
View Replies !
View Related
Playing With Dates
I want to select * from my db, but I want to select from the current date and back.PHP Code: $date = date('Y-m-d'); $sql = "SELECT * FROM TABLE1 WHERE column1 = '$date'"; I have a mixture of dates in column1. Some are in the past, others are in the future. But I'm only needing to query any record from the current day and in the past.
View Replies !
View Related
Playing Videos
I have a few small videos that i want to play on a web pages, they are wmv + mpg files, can this be done on the page where the user presses a play button to start them? has anybody got an example?
View Replies !
View Related
Playing Mp3 Files
is it possible to create a mp3/rm player in PHP using real media/windows plugins? Anyone having experience of creating such script? I want to play the media files online so that my users cant downlaod or see the actul file location.
View Replies !
View Related
Playing MP3's In A Webpage...
Is there a way to open up an MP3 by using the header functions similar to the following: header("Content-type: audio/x-mpegurl; name="file.mp3"""); header("Content-Disposition: filename="http://somedomain/dir/file.mp3""); does this make any sense?
View Replies !
View Related
Playing Music Across Pages
I'm developing a site in PHP4 for a music artist, who wants music to play across all their pages. I have loaded a simple flash applet to play the music, but every time the visitor to the site moves to a different page the music starts again. The artist would like the music to play continuously. I can only think of three possible ways to solve this, and I am not happy with any of them. 1) Use frames - but this will wreck my lovely CSS layout 2) Open the player in another window - but this has issues with popup blockers, and really I would prefer it all to be on screen at the same time. 3) Re-design the whole site in Flash - I don't have time for this right now.
View Replies !
View Related
Playing Music Files
I have a list of file descriptions in a list box that is filled via a php mysql select. I know the name of the file that is described by the file that is select from that list box. It is an audio file. I have a "Play" button. I know how to get to a section of code when the user clicks that button. Question 1: What do I have to do to make it play on the the user's machine when he clicks the "Play" button. Question 2: When he terminates the music, I want it to stay on the original page.
View Replies !
View Related
|