topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday December 15, 2024, 2:41 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: IDEA: Shell extension to show total play time of media clips  (Read 220486 times)

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
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 AM by mouser »

Coeluh

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
  • Family Guy ^^
    • View Profile
    • Jeroen Coelen
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #1 on: March 08, 2009, 06:02 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 PM by Coeluh »

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #2 on: March 08, 2009, 06:21 PM »
I'm not familiar with xfire, but I'm not into gaming so my ignorance is infinite there. :)  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.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #3 on: March 09, 2009, 05:14 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 :)

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #4 on: March 09, 2009, 06:20 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?

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #5 on: March 09, 2009, 07:06 PM »
skwire that would be most excellent.  Anything to avoid data entry into a "time calculator" thingy. :)

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #6 on: March 10, 2009, 01:34 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 AM by skwire »

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #7 on: March 10, 2009, 05:38 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.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #8 on: March 10, 2009, 06:36 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?

ws-crash-1.png

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #9 on: March 10, 2009, 06:40 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?

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #10 on: March 10, 2009, 06:54 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.

ws-crash-2.png

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #11 on: March 10, 2009, 06:59 AM »
Hellllll...completely my fault.  Please re-download and try.   :-[ :-[ :-[

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #12 on: March 10, 2009, 07:27 AM »
it works now! :up:

Coeluh

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
  • Family Guy ^^
    • View Profile
    • Jeroen Coelen
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #13 on: March 10, 2009, 08:16 AM »
Lol, I've watched some tv show for more than 200 hours.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #14 on: March 10, 2009, 05:35 PM »

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

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #15 on: March 10, 2009, 05:48 PM »
Is this all you wanted the application to do?  If so, we'll call it done.  =]

gonwk

  • Participant
  • Joined in 2009
  • *
  • Posts: 3
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #16 on: March 10, 2009, 08:04 PM »
Hi SKWire,

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

Thanks!

G!:)

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,885
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #17 on: March 10, 2009, 08:08 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!   ;D

https://www.donation...ex.php?topic=16157.0

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #18 on: March 11, 2009, 02:57 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!   ;D

https://www.donation...ex.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.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #19 on: March 11, 2009, 12:14 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. :)

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. :)

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

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #20 on: March 11, 2009, 01:01 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.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #21 on: March 11, 2009, 01:41 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?

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #22 on: March 11, 2009, 01:48 PM »
Even better.  Thanks.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #23 on: March 13, 2009, 04:26 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.

2009-07-18_184001.pngIDEA: Shell extension to show total play time of media clips
« Last Edit: July 20, 2009, 09:02 PM by skwire »

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: IDEA: Shell extension to show total play time of media clips
« Reply #24 on: March 13, 2009, 11:45 AM »
It looks good on Vista 32 and 64 bit.  :Thmbsup: