Announcement

Collapse
No announcement yet.

What scripting language should I use

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What scripting language should I use

    Hi Guys,

    in the midst of my jukebox, I now have all my songs (mp3's) tagged and sorted, now I need to "move" my music vids, I'll explain below.

    The structure

    Artist / Album / song1.mp3

    I now need to have
    Artist / Album / song1.mp3
    Artist / Album / song1.mpg


    I have got all my music vids like the following
    Artist / vids / song1.mpg


    e.g.

    from
    ACDC / Back in black/back in black.mp3

    ACDC / greastest hits/back in black.mp3

    ACDC / vids/back in black.mpg

    to
    ACDC / Back in black/back in black.mp3
    ACDC / Back in black/back in black.mpg

    ACDC / greastest hits/back in black.mp3
    ACDC / greastest hits/back in black.mpg

    ACDC / vids/

    What I need to do is write a script to perform something like the following algorithm.

    N.B I have been on the dark side for 5 yrs so haven't written anything for a while (the 5 yrs before that was all embedded so no files, no OS, etc..).

    What do people think will be the best for wrting this script Python, Perl, CScript, un*x (find, regex, sh etc..)

    foreach vids folder in mymusic
    gotOne :=false;

    foreach vid in folder

    foreach albumFolder in artistAlbumFolder

    foreach mp3 in albumfolder

    if vid = mp3 then
    gotOne := True
    copy(file=>vid, to albumfolder)
    end if

    end foreach mp3

    end foreach alumfolder

    if gotOne
    delete vid
    end if
    end foreach vid

    end find vids
    Why do programmers get Christmas and Hallowe'en mixed up?
    A: Because Oct(31) = Dec(25)

  • #2
    How many vids do you have? I have about 800 and I did it by hand LOL!

    For what your doing I'd just write a batch file.

    With the music videos I just created a folder for Artist and dumped all the relevant vids into it. Separate parent folder to my music:

    D:\Music\Artist\Album\song-title.mp3
    D:\Musicvideo\Artist\song-title.avi

    Cheers,
    Brad
    My Projects - Space Invaders Bartop, Williams A-Go-Go, Galaxian Bartop, Jukebox Kiosk 1&2, Jukebox Kiosk 3, Virtual Minipin, Generic Upright, MultiCab, Rampage,

    Comment


    • #3
      Hey Brad,

      I think it's a could of thousand, I need the structure I mentioned as I think it satisfies my juke s/w setup best, I display the albums you select your song and if there is a vid file there (same name) it will play that else it will play the mp3. I think I have a couple thousand vids ?

      Matt
      Why do programmers get Christmas and Hallowe'en mixed up?
      A: Because Oct(31) = Dec(25)

      Comment


      • #4
        What software are you using for your jukebox? Also how does it handle playing a video and at the same time allowing you to view the menu interface?

        Cheers,
        Brad
        My Projects - Space Invaders Bartop, Williams A-Go-Go, Galaxian Bartop, Jukebox Kiosk 1&2, Jukebox Kiosk 3, Virtual Minipin, Generic Upright, MultiCab, Rampage,

        Comment


        • #5
          I am using this one
          Webpage =>
          http://unclet.arcadecontrols.com/Jukebox/index.html

          you can access the menus while playing a vid, the vid can be on another screen or the one screen
          Why do programmers get Christmas and Hallowe'en mixed up?
          A: Because Oct(31) = Dec(25)

          Comment


          • #6
            Ahh okay. I looked at that when it was first released and didn't like the look. I should look again.

            I'm using freejuke and love it but by default your best outputting music videos to a 2nd display which also makes sense for me as my display is angled down and you could barely see the music video unless your standing in front of it.

            cheers,
            Brad
            My Projects - Space Invaders Bartop, Williams A-Go-Go, Galaxian Bartop, Jukebox Kiosk 1&2, Jukebox Kiosk 3, Virtual Minipin, Generic Upright, MultiCab, Rampage,

            Comment


            • #7
              this is mine (in progress) on 1 screen

              http://www.youtube.com/watch?v=XfzXR...layer_embedded

              forgot to mentino after a <configurable> amount of idle time it will revert back to the "media" screen.
              Last edited by mxd; 2nd April 2009, 02:18 PM. Reason: Auto Merged Double Post.
              Why do programmers get Christmas and Hallowe'en mixed up?
              A: Because Oct(31) = Dec(25)

              Comment


              • #8
                I'm using tag&rename, whicg can add tags to mpg files, so I just renamed the .avi to .mpg, created tags (from filename mask) and then moved (through tag&rename) the files to the appropriate position.

                When I have all the vids in the "correct" location I plan on going to each album, that has vids, then copying the other tag info (year, genre, album) from one of the songs to all of the vids. That way f I need to move and rename all again it will do it automagically for me.
                Why do programmers get Christmas and Hallowe'en mixed up?
                A: Because Oct(31) = Dec(25)

                Comment


                • #9
                  Originally posted by mxd View Post
                  When I have all the vids in the "correct" location I plan on going to each album, that has vids, then copying the other tag info (year, genre, album) from one of the songs to all of the vids.
                  Can you really add tags to an mpg file? (or did I misunderstand the above?)
                  "Everyone's always in favour of saving Hitler's brain. But when you put it in the body of a great white shark, ooohh! Suddenly you've gone too far!"

                  Comment


                  • #10
                    I can ? it still plays, not too sure if any other tager can read it though ?
                    see picy
                    Last edited by mxd; 28th June 2010, 09:12 AM.
                    Why do programmers get Christmas and Hallowe'en mixed up?
                    A: Because Oct(31) = Dec(25)

                    Comment


                    • #11
                      Originally posted by mxd View Post
                      I can ? it still plays, not too sure if any other tager can read it though ?
                      see picy
                      Hmmm. I'll have to try that!
                      "Everyone's always in favour of saving Hitler's brain. But when you put it in the body of a great white shark, ooohh! Suddenly you've gone too far!"

                      Comment


                      • #12
                        freejuke has an auto tag facility for videos. It doesn't really tag them but creates a small tag file that the fe uses.

                        Brad
                        My Projects - Space Invaders Bartop, Williams A-Go-Go, Galaxian Bartop, Jukebox Kiosk 1&2, Jukebox Kiosk 3, Virtual Minipin, Generic Upright, MultiCab, Rampage,

                        Comment

                        Users Viewing Topic: 0 members and 1 (guests)
                        Working...
                        X