Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP






SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





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
Video Playing With Flash Player
I would like to upload video file (wmv,mov,mpeg) and to play it with flash player.how do it convert to flash file and play? help me


View Replies !   View Related
How I Calculate Total Time Taken By A Music File Which I Uploded
can you help me about the matter.

I have to show the music file lenth(time ex. time : 2:07). I can find
it in php have any function is there to cacultae that time.

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
Total Login Time
How can I know that when a user is logged in? Like I want to store each login and logout time of each user in a database.

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
Find The Total Time Each Visitor Spent
I have web site and want to find the total time each visitor spent(after login) on my site's specific php page eg.www.mysite/profile.php. How i do it ?

View Replies !   View Related
Playing Wav Audio File In The Browser
Is there a simple way to embed a wav file that shows the stop and play button, and also the progress bar without the users being able to download the wav file when they right-click on the player??

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
Monitor Total User Active Time On Your Website
Any scripts that can be easily modified for this type of facility? I need a script that stores user session time and then adds them to display the total time a user has been active on my website.

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
Total File Size After Generating From Db
Is it possible to get the filesize after a page is being generated by php from the database? (e.g. Filesize of an article)

View Replies !   View Related
Can I Get Total Number Of Rows Form A Csv File
can I get the total number of rows in a csv file?

View Replies !   View Related
How To Convert Video File For Example .mpg Into Flash File I.e. .swf
I want to convert a video file into flash file bcoz my site only supports flash file to play.

View Replies !   View Related
Video File Upload
I need some help about upload and run video file on web with php. So could anybody pls help by providing idea or tutorial.

View Replies !   View Related
Video File Uploading
Can any body guide me please how to upload video files using php
and how to maintain it?
Is there any thing diffrent way to upload a video files?

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
Get Video File Dimensions
How can i get a video file dimensions(Height and width) using PHP? The video extension is .flv.

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
Need Help In Grabbing Frame From Video File ?
I want a PHP script that can grab 1st frame of video. video can be .FLV, .MOV, .avi can you send me PHP script ASAP?

View Replies !   View Related
Generating Thumbnail From Video File ? Can Gd To This ?
I am looking for a PHP script to generate thumbnail from a movie file (.AVI,
..MOV, .MPEG, .MPG, .WMV, etc...).

Ideally, the file will be "remote" (hosted on another web server than the
PHP script).

View Replies !   View Related
Generate Thumbnail (of Video File)
Is there any package I can use to extract the first frame of a video file and use the output as a thumbnail?

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
Sending A Video File Through Fsockopen?
Sending a video file through fsockopen?

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
How To Upload Big Size File Like Mp3 And Video
how to upload big size file like mp3 and video?

View Replies !   View Related
Video File Converting To Swf File Using Php
How to convert video file converting using php.


View Replies !   View Related
Get Lenght In Seconds Or Miliseconds From A FLV Video File
I've been trying to read the lenght of an Flv video file the whole morning! I've read tons of documentatio from mmpeg, mencoder, php, mplayer and nothing has come to my mind yet. I've a FLV file...¿how can I retrieve it's lenght from code without playing it?

View Replies !   View Related
Use Special Characters Or Spaces In The Video File.
Ok this is my problem. Im running a website that uses a youtube clone script i bought the code it all works, the problem now is when i wanna upload a video it doesn't let me use special characters or spaces in the video file.

For example

my first - video.wmv wont work

myfirst-video.wmv will work

View Replies !   View Related
Do I Need To Change In Server To Upload Video File
Do i need to change in server to upload video file. Please help me when i trying to upload video file i got noting when i am trying to print $_FILES array.

can anyone have upload video file script. or tell me if i need to change any setting on the server.

View Replies !   View Related
Convert Any Type Of Video File To Wmv9 Format
Can you please give me some idea or script through which I can convert any type
of video file to wmv9 format by ffmpeg in linux platform?

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 With Sessions
So I have finnaly got around to playing with sessions and all seems to work, I had a few problems but i've fixed them. However i have a problem. PHP 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
PHP And JS Not Playing Nicely
I guess the PHP and Javascript are not playing nicely =( I recieve the error Parse error: parse error, unexpected T_ECHO in phpharvest.php on line 205 for some reason it does not like the echo. Code:

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 FM Station
Is it possible to play the FM station on the web page using php? What may be the requirements for playing the station?

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 A Movie In Webpage
I want to play a movie in web page (php). Can any one help me? How can I do this?

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
Playing Mp3 Music Online
i want to create a search interface where the users search mp3's using a criteria. the mp3 search results can then be played online or downloaded.

View Replies !   View Related
Playing Videos Dynamically
Could anyone suggest me code on how to play the videos dynamically using php,

for example, my file name is abc.mpg

how to retrieve the file name dynamically and play the file.

View Replies !   View Related
Playing Of Wav / Mp3 Files For Soundboard?
Seems like everyone embeds sound files into a single flash file for their soundboards. Is there a way to create a pure html/php page that plays particular sounds when a link or box is clicked, rather than going the flash player route?

View Replies !   View Related

Copyright © 2005-08 www.BigResource.com, All rights reserved