duration

using Applescript to retrieve movie file duration via Finder properties

When using Get Info on movie files in the Finder, I've noticed that many movie files have an accessible "Duration" property under the More Info tab. Is there an easy way to access this data using Applescript? I've tried lines like "set theTime to (duration of aFile)", but it doesn't seem to be as simple as that. Ideally I'd like to acce...

How use asp.net get video duration

using Microsoft.DirectX.AudioVideoPlayback; Video vvideo = new Video(FileUpload.FileName.ToString()); StringBuilder sb = new StringBuilder(); sb.Append(duration.toString()); error message; “Installed an access attempt was made to the application domain.” “vvideo” instance is created error msj :// But down found ...

How to extract audio/video file duration?

I need to find the duration of numerous formats of audio and video files, in milliseconds. I've been searching around for a while, but I can't find anything that will let me do this. I'm using C/++ in Linux. Thanks in advance. ...

OutputCache not caching for the whole duration time

I made a simple testcase. default.asp: <%=now%> web.config: <?xml version="1.0" encoding="UTF-8"?> <configuration> <location path="default.asp"> <system.webServer> <caching> <profiles> <add extension=".asp" policy="CacheForTimePeriod" kernelCachePolicy="DontCache" duration="01:00:00" varyByQue...

Handling Time datatypes in SOAP

Hi all, I'm starting a project to update our XML schema for the SOAP interface for the company I work for. Looking at the XML schemas at w3c I've noticed there's a specific datatype for duration. We currently use "HH:MM:SS" to specify duration, as opposed to 'P5Y2M10D' The Snr Developer above me has said he'd like to keep everything co...

Appropriate way to set a duration in Java

What is the appropriate way to set a duration in Java with standard Java libs? Date()? Calendar()? Example? Thanks & Cheers ER ...

how to sort durations with Qt?

i'm trying to make QSortFilterProxyModel sort items by duration. preconditions: hours and minutes must not have leading zeros if duration is less than an hour, then hours must not be displayed, but only minutes and seconds if duration is less than a minute, then 0 minutes and the corresponding number of seconds must be displayed [0:42...

How can i calculate time duration between sunrise and sunset?

Hello friends My question is How can i calculate time duration between sunrise and sunset? Then how can i divide this duration(sunrise to sunset) into 8 equal parts(Hr: Min)? All i need is starting and ending time of every part. And i want to write this code in VB.NET because in VB.NET i can easily design the GUI. Thanks ...

How do you convert an XSLT 2.0 date duration to a string?

I am using some code to subtract one date from another using XSLT 2.0: <xsl:template match="moveInDate"> <xsl:value-of select="current-date() - xs:date(.)"/> </xsl:template> This works, however it leaves me with an answer of P2243D, which I assume corresponds to a "Period of 2243 Days" (which is correct in terms of the math). Sin...

in android when video duration or date_modified attribute available through content provider

I'm having some trouble accessing attributes like DURATION and DATE_MODIFIED of video and image. My app access these attributes for both type of data but if I take a picture or shoot a video the related attributes are not immediately available through content provider e.g. for DURATION for that specific video it returns 0. If I restart ...

How can I get the duration of an MP3 file (CBR or VBR) with a very small library or native code c/c++ ?

I can't use any mp3 code that is patented by Fraunhofer, so no encoders OR decoders (e.g. ffmpeg, lame, MAD, etc.), plus it's too big. I am doing this on Windows, but DirectShow's IMediaDet seems to slow down over time, calling it a few hundred times brings my system to a crawl, even re-using the same interface object and just putting ...

video metadata - duration not always accessed

I'm creating a video player in an environment where stream.bytesTotal isn't available. I need to use the duration metadata encoded in flv files to extrapolate for things such as the play progress, and the time display. The problem is when loading an flv the metadata, including the duration, fails to be accessed 2 out of 3 times. Here is...

How to dynamically adjust the duration/speed of a Tween Animation in Android

Let's say I have an android app, and in that app I want to animate a graphic of a ball in an "L" shape. This would require me to define a Tween Animation where I create an animation xml file (written below) and apply it to a View which has the ball graphic in it. <translate> Ydelta = 20; offset = 0; duration = 100; </translate> <trans...

Measure stored procedure duration

Hi, In my application I want to know the execution time for a stored procedure. My pattern is to execute reader and get the data reader and read the results. The reader return immediately and I don’t know the stored procedure execution time. I cannot put the timers after the reader because I want to have an extension method to encapsu...

How to store the time period(duration) of a captured video in iPhone ?

Hi Guys, Thanks to all for responding to the questions which I Posted. I got one problem that is, While capturing the video in the iPhone, I don't know how to store the time period (duration) that I captured video with iPhone. Can any one solve my problem. I am using the following code for capturing. -(void) RecordVideoWithCamera { ...

Google Maps API 3 Directions - Adding trip duration and distance to infoWindow

Howdy Gang, I'm so close on this one right now, but can't quite get the result I'm looking for. This is an attempt to pull a series of geolocations - along with a title and text. These are then assigned to markers which are populated on a google map. My ultimate goal is to get the distance and duration of travel between each of the marke...

ffmpeg duration start

Hi Folks, When I run ffmpeg -i 115050295.wmv, I get the following data. Input #0, asf, from '115050295.wmv': Duration: 00:02:22.53, start: 3.100000, bitrate: 1462 kb/s Stream #0.0: Video: wmv2, yuv420p, 640x360, 29.92 tbr, 1k tbn, 1k tbc Stream #0.1: Audio: wmav2, 44100 Hz, stereo, s16, 96 kb/s The duration mentioned here i...

C# - Duration between two DateTimes in minutes.

Hi All, I need to determine duration between two DateTimes in minutes. However, there is a slight twist: exclude weekends only count minutes which are between 7:00AM and 7:00PM. for example: [09/30/2010 6:39:00 PM] - [09/30/2010 7:39:00 PM] = 21 Minutes I'm just having a hard time coming up with a decent way to do it and would ...

Project cost and duration estimation and hourly rate for Freelance asp.net project

Hey guys this is one of the non Technical questions I can say but very important in terms of charging for software development. Recently I have been offered a freelancing project on ASP.net from one my known friends. Please try to help me cos I am new to freelancing and I really dunno how much to quote for the project. Also this is my f...

jQuery removeClass duration not working?

I have a paragraph set with the following style: .design_info_box p.design_info_desc { height:30px; text-overflow: ellipsis; overflow:hidden; } With this, you can see the first 2 lines of text with a button to "read more" which expands the paragraph to show the rest of the text. Here is the code for the button: $(".read-...