DVD Scripting

5 views
Skip to first unread message

Rollerfeet, Johnny

unread,
Jan 9, 2010, 7:51:57 PM1/9/10
to atxcrea...@googlegroups.com
Anyone on the list familiar with DVD scripting?  I'm creating a random play button for a DVD of music videos, and I'd like to bounce my script design off someone else.

p.s.  Looking forward to the next meetup, too.

weevil

unread,
Jan 10, 2010, 11:57:30 AM1/10/10
to Austin Creative Code
I was tech support for DVD Studio Pro for like 3 years. What are you
doing your scripting in?

On Jan 9, 6:51 pm, "Rollerfeet, Johnny" <spama...@rollerfeet.com>
wrote:

Johnny Rollerfeet

unread,
Jan 10, 2010, 6:02:37 PM1/10/10
to atxcrea...@googlegroups.com
I'm working in DVD Studio Pro.  My goal is to have a "shuffle play" button that will (1) randomly play all the tracks, while (2) minimizing repetition.  (I googled and found a few discussions about how to approach it, but no one had any specific scripting.)

For the sake of simplification, pretend there are 16 tracks to play.  Divide GPRM 1 into 16 partitions, each one representing whether a track has been played before (1) or not (0).  Before the main script, 0-out all of the 16 partitions in GPRM1, and the other GPRM's in use.

  1. The beginning of the "shuffle play" script uses GPRM 0 to set a random number from 1 to 16 -- the next random track to queue up.
  2. Each track has a pre-script that checks its partition in GPRM 1.  If it hasn't been played then it sets its partition in GPRM1 to 1, indicating it's been played, and does an exit script (playing the track) and end jumps back to the beginning (1.
  3. If it has been played, it sets GPRM 2 to it's own track number and goes to the next track. (2.
  4. Each "played" track will continue to cycle to the next track, looping from track 16 back to 1 until it hits an unplayed track, or the track number in GPRM 2 gets selected again -- indicating that we've looped through all the tracks and they've all been played.  If that happens then it jumps to a script that 0's all the partitions in GPRM 1, and jumps back to the beginning (1.)
(For 3. it only sets GPRM 2 if GPRM 2 is still 0, meaning it hasn't been set before.  Otherwise the loop would never end.)

I appreciate you looking at this.  It helps to try to describe the scripting narratively, and hopefully you can make heads/tails of it.  If you can think of a better approach, I'm open to something different.

-jro

weevil

unread,
Jan 11, 2010, 7:27:36 PM1/11/10
to Austin Creative Code
I'm going to have to make a new project at home and make a script to
see if this is right. I'll try it when I get home from work.
http://benderydt.com/tech/DVD_Studio_Pro/random_play


On Jan 10, 5:02 pm, Johnny Rollerfeet <jaire...@gmail.com> wrote:
> I'm working in DVD Studio Pro.  My goal is to have a "shuffle play" button
> that will (1) randomly play all the tracks, while (2) minimizing
> repetition.  (I googled and found a few discussions about how to approach
> it, but no one had any specific scripting.)
>
> For the sake of simplification, pretend there are 16 tracks to play.  Divide
> GPRM 1 into 16 partitions, each one representing whether a track has been
> played before (1) or not (0).  Before the main script, 0-out all of the 16
> partitions in GPRM1, and the other GPRM's in use.
>

>    1. The beginning of the "shuffle play" script uses GPRM 0 to set a random


>    number from 1 to 16 -- the next random track to queue up.

>    2. Each track has a pre-script that checks its partition in GPRM 1.  If


>    it hasn't been played then it sets its partition in GPRM1 to 1, indicating
>    it's been played, and does an exit script (playing the track) and end jumps

>    back to the beginning (*1.*)
>    3. If it has been played, it sets GPRM 2 to it's own track number and
>    goes to the next track. (*2.*)
>    4. Each "played" track will continue to cycle to the next track, looping


>    from track 16 back to 1 until it hits an unplayed track, or the track number
>    in GPRM 2 gets selected again -- indicating that we've looped through all
>    the tracks and they've all been played.  If that happens then it jumps to a
>    script that 0's all the partitions in GPRM 1, and jumps back to the

>    beginning (*1.*)
>
> (For *3.* it only sets GPRM 2 if GPRM 2 is still 0, meaning it hasn't been

Johnny Rollerfeet

unread,
Jan 11, 2010, 10:35:48 PM1/11/10
to atxcrea...@googlegroups.com
I'm a little weirded out that you found a page with exactly what I'm looking to do, yet I couldn't find anything.  :)  I'm going to digest this and see how it compares to the spaghetti code I was writing.

I do see that he'd benefit from the newest DVD Studio Pro, since it offers partitioning for GPRMs.

Thanks!

-jro

--
You received this message because you are subscribed to the Google Groups "Austin Creative Code" group.
To post to this group, send email to atxcrea...@googlegroups.com.
To unsubscribe from this group, send email to atxcreativeco...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/atxcreativecode?hl=en.




weevil

unread,
Jan 12, 2010, 10:12:43 AM1/12/10
to Austin Creative Code
Yeah, I've got studio 3 now, so I dunno if we are going to get the
same results.
Part of that Apple job was being able to look stuff up fast :)

> > atxcreativeco...@googlegroups.com<atxcreativecode%2Bunsubscribe@ googlegroups.com>

weevil

unread,
Jan 12, 2010, 10:13:03 AM1/12/10
to Austin Creative Code
final cut studio 3, not dvd studio pro 3.
Reply all
Reply to author
Forward
0 new messages