Welcome Guest.   Make a donation to an author on the site November 25, 2014, 04:11:24 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2013! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1] 2 3 4 5 6 7 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA: Shell extension to show total play time of media clips  (Read 52990 times)
MilesAhead
Member
**
Posts: 5,052



View Profile WWW Give some DonationCredits to this forum member
« on: March 08, 2009, 05:23:18 PM »

If you have MediaInfo installed and hover the mouse you can get a tooltip with the play time of the video clip and some other info.  But I've yet to see a shell extension where you can select multiple media files, right click to select a command, and get the total play time.  Even if you drag & drop a bunch of videos onto MediaInfo I don't think there's any option for total play time of all the clips.  Would be very convenient for those of us who like to burn discs full of .avi files or whatnot.
« Last Edit: February 01, 2012, 11:58:48 AM by mouser » Logged

"It's only called research if you didn't find it the first time."
-- MilesAhead
Coeluh
Supporting Member
**
Posts: 273


Family Guy ^^

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: March 08, 2009, 06:02:58 PM »

This sounds interesting.

Is there BTW something like xfire has where it counts the number of time you play a certain game and last:fm counts what music you play for tv shows and movies?
« Last Edit: March 08, 2009, 06:05:20 PM by Coeluh » Logged
MilesAhead
Member
**
Posts: 5,052



View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: March 08, 2009, 06:21:34 PM »

I'm not familiar with xfire, but I'm not into gaming so my ignorance is infinite there. smiley  I was just thinking where MediaInfo provides a .dll the play time could be had for each file.  The shell extension would have to get the filenames from the shell or it could just use the Copy to clipboard trick if it was an AHK app, make the dll calls into the MediaInfo library and do the math.  Could even just use a MsgBox to give the results.  Doesn't have to be fancy.

Hours minutes and seconds are just harder to add in your head than decimal.
Logged

"It's only called research if you didn't find it the first time."
-- MilesAhead
MilesAhead
Member
**
Posts: 5,052



View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: March 09, 2009, 05:14:55 PM »

Hmmmm looks like if you call the MediaInfo dll and ask for Duration String 3 you get back a string with hh:min:sec.milliseconds playtime and could parse that to split it out to integers.

For an ahk aficionado the rest should be easy smiley
Logged

"It's only called research if you didn't find it the first time."
-- MilesAhead
skwire
Global Moderator
*****
Posts: 4,158



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: March 09, 2009, 06:20:06 PM »

I could easily make a simple drag-n-drop app that would allow you do drag a list of files to it and report the total time.  Would that be acceptable?
Logged

MilesAhead
Member
**
Posts: 5,052



View Profile WWW Give some DonationCredits to this forum member
« Reply #5 on: March 09, 2009, 07:06:02 PM »

skwire that would be most excellent.  Anything to avoid data entry into a "time calculator" thingy. smiley
Logged

"It's only called research if you didn't find it the first time."
-- MilesAhead
skwire
Global Moderator
*****
Posts: 4,158



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #6 on: March 10, 2009, 01:34:08 AM »

Extremely simple and preliminary, but see if this is something like what you had in mind.  Just drag-n-drop files to the list; the time will compute automatically.  You can also do the typical shortcuts:

Delete: Delete selected rows (time will recompute as you delete files).
Ctrl-A: Select all.
Ctrl-U: Unselect all.
Ctrl-I:  Invert selection.
Ctrl-up/down: Move a selection up and down.

Download: PlayTime
« Last Edit: March 13, 2009, 04:21:39 AM by skwire » Logged

skwire
Global Moderator
*****
Posts: 4,158



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: March 10, 2009, 05:38:08 AM »

Some other things I forgot to mention:

  • Just about any media file type should work...video and audio i.e. anything mediainfo.dll supports.
  • Also, you can drop a folder and it will recursively scan through it.
Logged

lanux128
Global Moderator
*****
Posts: 6,133



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #8 on: March 10, 2009, 06:36:09 AM »

skwire: can't get it to work. it crashes when i drag-n-drop a file (mp3) or folder containing mp3s. any idea why?

Logged

skwire
Global Moderator
*****
Posts: 4,158



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #9 on: March 10, 2009, 06:40:12 AM »

I've been uploading new builds throughout the night.  Please re-download and try.  Also, do you have both files (mediainfo_poller.exe and mediainfo.dll) in the same folder?
Logged

lanux128
Global Moderator
*****
Posts: 6,133



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #10 on: March 10, 2009, 06:54:19 AM »

i've downloaded once again but the results are the same and yes, both files are in the same folder. here are the different versions of the file.


Logged

skwire
Global Moderator
*****
Posts: 4,158



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #11 on: March 10, 2009, 06:59:42 AM »

Hellllll...completely my fault.  Please re-download and try.   embarassed embarassed embarassed
Logged

lanux128
Global Moderator
*****
Posts: 6,133



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #12 on: March 10, 2009, 07:27:52 AM »

it works now! thumbs up
Logged

Coeluh
Supporting Member
**
Posts: 273


Family Guy ^^

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #13 on: March 10, 2009, 08:16:55 AM »

Lol, I've watched some tv show for more than 200 hours.
Logged
MilesAhead
Member
**
Posts: 5,052



View Profile WWW Give some DonationCredits to this forum member
« Reply #14 on: March 10, 2009, 05:35:47 PM »


Very nice!  Thanks very much. Drag & Drop is even better since it's smoother in Vista64.
Logged

"It's only called research if you didn't find it the first time."
-- MilesAhead
skwire
Global Moderator
*****
Posts: 4,158



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #15 on: March 10, 2009, 05:48:00 PM »

Is this all you wanted the application to do?  If so, we'll call it done.  =]
Logged

gonwk
Participant
*
Posts: 3


View Profile Give some DonationCredits to this forum member
« Reply #16 on: March 10, 2009, 08:04:48 PM »

Hi SKWire,

What in the world is "Trout" program in your Sig all about!?!?  What does it do?

Thanks!

G!:)
Logged
app103
That scary taskbar girl
Global Moderator
*****
Posts: 5,327



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #17 on: March 10, 2009, 08:08:52 PM »

Hi SKWire,

What in the world is "Trout" program in your Sig all about!?!?  What does it do?

Thanks!

G!:)

Best darn audio player ever!   Grin

http://www.donationcoder....m/index.php?topic=16157.0
Logged

skwire
Global Moderator
*****
Posts: 4,158



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #18 on: March 11, 2009, 02:57:20 AM »

Hi SKWire,

What in the world is "Trout" program in your Sig all about!?!?  What does it do?

Thanks!

G!:)

Best darn audio player ever!   Grin

http://www.donationcoder....m/index.php?topic=16157.0

I'm not sure if I'd ever go that far.  =]  Gonwk, Trout is a small, freeware audio player that I've written.  Feel free to try it out and let me know what you think.
Logged

MilesAhead
Member
**
Posts: 5,052



View Profile WWW Give some DonationCredits to this forum member
« Reply #19 on: March 11, 2009, 12:14:20 PM »

Is this all you wanted the application to do?  If so, we'll call it done.  =]

Works for me. You can copy the total to the clipboard so I don't see anything lacking afaic. smiley

Edit:  If I could make one small suggestion.. could you use an icon for the exe instead of default ahk icon? If one has a few ahk apps it's hover & hunt with the mouse to find what's what.

Other than that works great.  Drop a folder zips right through all the media files and ignores other flotsam in the folder.  Very cool. smiley

« Last Edit: March 11, 2009, 12:19:04 PM by MilesAhead » Logged

"It's only called research if you didn't find it the first time."
-- MilesAhead
skwire
Global Moderator
*****
Posts: 4,158



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #20 on: March 11, 2009, 01:01:47 PM »

Yes, I plan to clean it up...new icon, basic File, Edit, and Help menus, etc.  I was thinking about renaming it to MediaTotalTimer unless anybody else has a better idea.
Logged

MilesAhead
Member
**
Posts: 5,052



View Profile WWW Give some DonationCredits to this forum member
« Reply #21 on: March 11, 2009, 01:41:21 PM »

Yes, I plan to clean it up...new icon, basic File, Edit, and Help menus, etc.  I was thinking about renaming it to MediaTotalTimer unless anybody else has a better idea.

Cool.  How about PlayTime for a moniker?
Logged

"It's only called research if you didn't find it the first time."
-- MilesAhead
skwire
Global Moderator
*****
Posts: 4,158



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #22 on: March 11, 2009, 01:48:18 PM »

Even better.  Thanks.
Logged

skwire
Global Moderator
*****
Posts: 4,158



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #23 on: March 13, 2009, 04:26:56 AM »

Download: PlayTime

New additions:

  • Merged all necessary files into one executable.
  • New program icon.
  • Double-clicking a row will run/play that file.
  • In addition to the total time for everything in the list, the total time for the highlighted selection is now shown in the statusbar.
  • Context/right-click menu for the listview (mimics the Edit menu).

Let me know what you think.  Thanks.

« Last Edit: July 20, 2009, 09:02:14 PM by skwire » Logged

MilesAhead
Member
**
Posts: 5,052



View Profile WWW Give some DonationCredits to this forum member
« Reply #24 on: March 13, 2009, 11:45:02 AM »

It looks good on Vista 32 and 64 bit.  Thmbsup
Logged

"It's only called research if you didn't find it the first time."
-- MilesAhead
Pages: [1] 2 3 4 5 6 7 Next   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.044s | Server load: 0.05 ]