Page 1 of 5

Video Node 3.2 [MM2+3]

Posted: Thu Nov 10, 2005 9:23 am
by trixmoto
As requested by someone, somewhere: This script adds a top level node which shows your videos.

An installer for this script can be downloaded from my website.

You will need the following plugin to add video formats to MM: here or here

Code: Select all

'
' MediaMonkey Script
'
' NAME: VideoNode 3.2
'
' AUTHOR: trixmoto (http://trixmoto.net)
' DATE : 20/04/2008
'
' INSTALL: Copy to Scripts\Auto directory
'          Edit list of formats below to match those you wish to appear
'
' FIXES: Fixed errors for some users in MM3 (thanks to Bex)
'

Option Explicit 

Dim formats : formats = "('MPG','WMV','AVI')" 	'add as many as you like!

Sub onStartUp
  Dim Root : Set Root = SDB.Objects("VideoNodeRoot")
  If Root Is Nothing Then
    Dim Tree : Set Tree = SDB.MainTree
    Set Root = Tree.CreateNode
    Root.Caption = "Video"
    Root.IconIndex = 8
    Root.UseScript = Script.ScriptPath
    Root.onFillTracksFunct = "FillVideos"
    Tree.AddNode Tree.Node_Library, Root, 1  
    Set SDB.Objects("VideoNodeRoot") = Root
  End If
End Sub
  
Sub FillVideos(Node)
  Node.HasChildren = False
  Dim Tracks : Set Tracks = SDB.MainTracksWindow
  Dim Query ': Query = "SELECT Songs.Id FROM Songs WHERE "
  If SDB.VersionHi > 2 Then
    Query = "WHERE CASE WHEN SUBSTR(Songpath,-3,1)='.' THEN SUBSTR(Songpath,-2,2) WHEN SUBSTR(Songpath,-4,1)='.' THEN SUBSTR(Songpath,-3,3) WHEN SUBSTR(Songpath,-5,1)='.' THEN SUBSTR(Songpath,-4,4) END COLLATE IUNICODE IN "&formats
    Tracks.AddTracksFromQuery(Query)
  Else
    Query = "AND IIf(Left(Right(Songpath,3),1)='.',Right(Songpath,2),IIf(Left(Right(Songpath,4),1)='.',Right(Songpath,3),Right(Songpath,4))) IN "&formats
    Tracks.AddTracksFromQuery(Query)
  End If
  Tracks.FinishAdding  
End Sub

Posted: Wed Dec 07, 2005 11:01 am
by wallstreetwalker
this works!, i also use the vid4wa plugin to play videos,

but i can't play quicktime movies.
Is there a way to do this, or just add them to the video list and open them in another external player (and stop MM from playing),. :-?

Posted: Wed Dec 07, 2005 11:32 am
by trixmoto
Quicktime movies (.mov) are more tricky because they are not as free with their codecs. Personally I converted any I had into .avi, but I didn't have very many so this didn't take long. If I find a plugin for this, I will let you know. If you find one, please post here for others. :)

how to convert

Posted: Wed Dec 07, 2005 12:10 pm
by wallstreetwalker
how can you convert the mov files to avi or mpeg ? (video files)
do you use a program for it, and if so which?

i tried a program called rad tools, but it gave errors for all mov files :cry:

Posted: Wed Dec 07, 2005 5:08 pm
by trixmoto
I use TMpgEnc with a Quicktime plugin: http://www.tmpgenc.net

Posted: Thu Dec 08, 2005 1:17 am
by pah68
Very very cool. I've wanted to be able to convert my *.MOV files for awhile. What plugin though? I can't seem to find one.

Posted: Thu Dec 08, 2005 1:58 am
by pah68
It doesn't actually need a plugin to convert from MOV to MPG.
Woo hoo.




Anyone know of a good mpg repairer? I've got a stack of MPG music vids that have never worked. They cam off some subscribed to DJ cd's with about 10 music vids per disc. For some reason there was always one vid that was corrupted.

Posted: Thu Dec 08, 2005 5:13 am
by trixmoto
The new version must have the plugin integrated, I'll have to update! :)

I use TMpgEnc for fixing mpgs - maybe you've heard of it! :) You can run mpg->mpg conversion and I've found it fixes quite a few problems if you play with some of the input/output settings, or sometimes miss the first second of the video. You could give that a try.

trying

Posted: Thu Dec 08, 2005 4:17 pm
by wallstreetwalker
i'm trying it now, ...
well it works, but the files become twice to trice as big,
is this necesarry to maintain the original quality ?

ok now one file 17 mb turned became a 175 mb file (settings ??),
just a .mov plugin would be easier i think, or a way to open the files from withing MM in another player (while interrupting currently playing)

isn't it possible to automize the following (i already have a node for adding video to the library):
stop or pause the current playing song, open the movie with the player that is set standard for it, play the movie in the player, and close the player and start playing from within MM again ??, that would be fine as well

Posted: Thu Dec 08, 2005 6:52 pm
by trixmoto
Well you could certainly have a script which stops MM play and opens the file in another program, but closing it and continuing are very difficult. Well, continuing isn't, but knowing when to is difficult. I'm having this issues with my Previewer script. Once that has been stabalised and working well, I will try to create a version which works the same way, but for videos (obviously playing in an external player).

great

Posted: Fri Dec 09, 2005 7:56 am
by wallstreetwalker
that would be perfect,

a true improvement for MM :lol:

Posted: Fri Dec 09, 2005 8:43 am
by Balinsky
Ok trying to use you script. Works beatuifully but I stupid question: How do you add/make your movies visable?

maybe try ...

Posted: Fri Dec 09, 2005 9:07 am
by wallstreetwalker
do you see the video node in the browsing window (at the left) ?, just click on it to display all movies,
ofcourse you have to scan the folders where these movies are in first, and when doing so select the formats of those movie files
(check the boxes with avi mpeg ... )
If this doesn't work, i don't know either, but it works fine for me.

Posted: Fri Dec 09, 2005 9:26 am
by trixmoto
You also have to edit the list variable "formats" at the top of the script, to include the extension of your video files (if it's not already in there).

Posted: Fri Dec 09, 2005 9:34 am
by Balinsky
here is what my tree looks like:
Image
When I tried to scan I looked for said check boxes but they are not there

Edit: and trix all of tmy files are .avi so they should work