MovieNight.ps1

Movies & Sex

Moderators: Ice Cream Jonsey, AArdvark

Post Reply
User avatar
Flack
Posts: 6196
Joined: Tue Nov 18, 2008 3:02 pm
Location: Oklahoma
Contact:

MovieNight.ps1

Post by Flack » Sun Nov 24, 2019 10:46 am

As construction continues on my shop/home theater, I'm preparing some of the other pieces. One idea I've had for a while is coming up a way to simulate the theater experience. I'm not talking about people talking and kicking the back of my chair throughout the film (maybe in version 2.0...) but instead what I want to do is generate short playlists based on the movie I plan to watch.

Here's the concept: before watching a film, I would run a script that would prepare a playlist. The playlist should include commercials/teasers for theaters, a random number of movie trailers, and then the movie. I want to build a lot of randomness into the script so that I am surprised by the results when I start the playlist.

To prepare for this, I have downloaded 50 or so theater/drive-in commercials, and nearly a thousand movie trailers. It's almost 2020, folks. Hard drive space is no longer a thing.

Here's a bit of pseudo code to explain what I'm thinking.

01. Run script, point script to movie. (ex: "Meatballs (1979).mkv")
02. Extract the year of the movie from the filename ("1979")
03. Randomly pick 1-3 commercials from /commercials
04. Randomly pick 2-4 movie trailers from the same year as the movie ("1979")
05. Generate an m3u playlist with: random commercials, random trailers, and the movie.

The idea being before I go out to the theater to watch Meatballs, I would run the script and it would generate the playlist. By the time I got to the movie theater, I would instead run the playlist and be treated to a few commercials, some random trailers, and then the movie. It's no fun if I build the playlist manually, because I'll know what the trailers are going to be. I think it'll be way more fun this way.

Here are the random variables I want to build in: number of commercials (randomly selected from a given range, like 1-3), and number of trailers to add (randomly selected from a given range, like 2-4). Another thing I'm considering is adding a +/- to the trailer year -- for example, a value of 1 in this instance would pick trailers from 1978 (-1), 1979 (0), and 1980 (+1).

I haven't decided if the end product will be command line driven or be GUI based. If it's command line, I'll have a separate file with all the variables set there so that changing things like the number of trailers picked or the year variance are easily changed without going into the script itself.

I'm really posting this as a place to track the progress, and also to commit to writing it.

Admins: if this works better in a different sub, feel free to move it.

Here's an example of one of the "commercials" I found. There are hundreds of these online. Most of them are drive-in related ("let's all go to the loooooby..."). Snack Canyon: https://www.youtube.com/watch?v=VYUKt2zfBlk

EDIT: One other thing... there are more than just commercials and trailers -- for example, there are theater policy trailers and those "Dolby Digital" (or thx, or whatever) bumpers. So in theory all of those could be listed as separate categories and added to the list as such. That being said, the idea is to make it fun, not add 20 minutes to the beginning of each movie I watch.

Example Theater policy: https://www.youtube.com/watch?v=7AHK4QOuzmY
"Jack Flack always escapes." -Davey Osborne

User avatar
AArdvark
Posts: 8171
Joined: Tue May 14, 2002 6:12 pm
Location: Rochester, NY

Re: MovieNight.ps1

Post by AArdvark » Sun Nov 24, 2019 2:13 pm

Will you use Timmy the trash can? He's my favorite



User avatar
Ice Cream Jonsey
Posts: 22001
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: MovieNight.ps1

Post by Ice Cream Jonsey » Sun Nov 24, 2019 2:25 pm

Man, this sounds like a ton of fun. I can visually how it might be scripted in bash, so if you have questions there just let us know. A GUI would also be cool! Pinback turned me on to some software that sets up an Angular (JavaScript) project for things like this. And of course I can't remember what it was called. I think it had Blitz in the title maybe.
the dark and gritty...Ice Cream Jonsey!

User avatar
Flack
Posts: 6196
Joined: Tue Nov 18, 2008 3:02 pm
Location: Oklahoma
Contact:

Re: MovieNight.ps1

Post by Flack » Sun Nov 24, 2019 4:16 pm

AArdvark wrote:
Sun Nov 24, 2019 2:13 pm
Will you use Timmy the trash can? He's my favorite
I would love to add that one (and probably will) but that brings up one of my frustrations with this project... people taking old videos like that and putting a watermark for their shitty website across the bottom. I'm sure film-tech.com is real proud that they uploaded something to YouTube, but it sucks when you're trying to build that theater experience and all the videos have other people's websites plastered across the screen.
"Jack Flack always escapes." -Davey Osborne

User avatar
Flack
Posts: 6196
Joined: Tue Nov 18, 2008 3:02 pm
Location: Oklahoma
Contact:

Re: MovieNight.ps1

Post by Flack » Sun Nov 24, 2019 4:21 pm

Ice Cream Jonsey wrote:
Sun Nov 24, 2019 2:25 pm
Man, this sounds like a ton of fun. I can visually how it might be scripted in bash, so if you have questions there just let us know. A GUI would also be cool! Pinback turned me on to some software that sets up an Angular (JavaScript) project for things like this. And of course I can't remember what it was called. I think it had Blitz in the title maybe.
There's a website called PoSHGUI that helps you convert command line PowerShell scripts into gui-driven apps. Once you have the command line version done, all you have to do is upload your script and then change it to pull all your variables from text boxes or whatever. I'll bang out the PS version first (importing all the variables from a text file) and then convert it to a GUI and just populate all the boxes with the values from the text file.

Another side project is, there are lots of YouTube videos with tons of drive-in intermission clips which I'm planning on downloading and then slicing back up into the original files so they can be called one at a time.

ex: https://www.youtube.com/watch?v=orTy-IqN9_I
"Jack Flack always escapes." -Davey Osborne

User avatar
AArdvark
Posts: 8171
Joined: Tue May 14, 2002 6:12 pm
Location: Rochester, NY

Re: MovieNight.ps1

Post by AArdvark » Sun Nov 24, 2019 4:26 pm

I see the Internet Archive has a lot of these with no websites, no timmy the trash can tho.

edit: I just saw a No Boning warning from the management during one of these intermissions HEHEHEHEHEHEHEEEEE


THE
INCONCEIVABLE
AARDVARK

User avatar
Flack
Posts: 6196
Joined: Tue Nov 18, 2008 3:02 pm
Location: Oklahoma
Contact:

Re: MovieNight.ps1

Post by Flack » Sun Nov 24, 2019 4:39 pm

That brings up another point, something I just discovered. I may need to create a separate folder for (or something in the filename to flag) the R-rated ones. I forgot how quickly the tops came off in the Andy Sidaris trailers, for example.

https://www.youtube.com/watch?v=HfWvSaroaX0
"Jack Flack always escapes." -Davey Osborne

User avatar
Flack
Posts: 6196
Joined: Tue Nov 18, 2008 3:02 pm
Location: Oklahoma
Contact:

Re: MovieNight.ps1

Post by Flack » Sun Nov 24, 2019 7:41 pm

I've got it pulling random trailers in random order and appending them to a playlist. I also added a couple of "mandatory" files. I want this one to play between the trailers and the movie.

https://www.youtube.com/watch?v=ojSJGMZ7W6Q
"Jack Flack always escapes." -Davey Osborne

User avatar
Flack
Posts: 6196
Joined: Tue Nov 18, 2008 3:02 pm
Location: Oklahoma
Contact:

Re: MovieNight.ps1

Post by Flack » Sun Dec 01, 2019 6:18 pm

Well it's done, or at least as far as I'm taking it at the moment. I traded some of the random generation for the ability to create your own structure. Here is MovieNight.txt:

Code: Select all

YearVariance=2

MoviePath=S:\Movies
CommercialPath=S:\Movies\Movies_3-MISC\Trailers\Commercials
PolicyPath=S:\Movies\Movies_3-MISC\Trailers\Policy_Trailers
TrailerPath=S:\Movies\Movies_3-MISC\Trailers\Trailers
FeaturePath=S:\Movies\Movies_3-MISC\Trailers\Feature_Presentation
Required1=S:\Movies\Movies_3-MISC\Trailers\OHara_Cinemas.mp4
# Required2=

# Build Your Playlist Here

Add-Required1
Add-Commercial
Add-Commercial
Add-Trailer
Add-Trailer
Add-Trailer
Add-Policy
Add-Feature
The playlists are built by using the add commands. In the above example, the script will add a required file at the beginning of your playlist, followed by two commercials, three trailers, a theater policy, a "and now a feature presentation" clip, and then append the movie. The year variance adds and subtracts that many years to pull trailers from, so if you were to generate a list for the original Ghostbusters (1984), it would pull from a random list of trailers from 1982-1986. There are some years that I don't have a ton of trailers for, so that helps randomize things a bit.

I also added the ability to search for a movie, because typing in my long-ass paths and filenames to each movie is a real pain in the rear. It takes longer to run this way (about 30 seconds to find the movie and generate the list) but it's about the same amount of time to go find the actual path and cut/paste it into the command line.

Anyway, here's the output generated from the above input:

Code: Select all

MovieNight.ps1 1.0 / Robbo

Search Mode Activated. Searching S:\Movies for *ghostbusters 1*.???...
Movie = S:\Movies\Movies_1-MOVIES\!Movies - F-J\Ghostbusters 1 (1984)\Ghostbusters 1 (1984).mkv
Year = 1984

Final Playlist
--------------

S:\Movies\Movies_3-MISC\Trailers\OHara_Cinemas.mp4
S:\Movies\Movies_3-MISC\Trailers\Commercials\Food and Drink\Hot Chocolate (1960s).mp4
S:\Movies\Movies_3-MISC\Trailers\Commercials\Intermission\Drive In Short Film Intermission Promo 12.mpg
S:\Movies\Movies_3-MISC\Trailers\Trailers\1982 - The Toy Trailer.mp4
S:\Movies\Movies_3-MISC\Trailers\Trailers\1985 - Rocky IV Trailer.m4v
S:\Movies\Movies_3-MISC\Trailers\Trailers\1984 - Gremlins Reissue Trailer.m4v
S:\Movies\Movies_3-MISC\Trailers\Policy_Trailers\Marcus Theatres Policy Trailer.m4v
S:\Movies\Movies_3-MISC\Trailers\Feature_Presentation\AMC Theatres Feature Presentation (1996 - 2002).mp4
S:\Movies\Movies_1-MOVIES\!Movies - F-J\Ghostbusters 1 (1984)\Ghostbusters 1 (1984).mkv

MovieNight.m3u has been generated. Happy movie night!

PS C:\Temp> 
These playlists work in VLC, but I'll have to change them from absolute paths to share paths to work with Kodi. I may add a variable at the beginning so I can generate either one.
"Jack Flack always escapes." -Davey Osborne

Casual Observer
Posts: 1349
Joined: Wed Oct 01, 2003 10:23 pm
Location: San Francisco

Re: MovieNight.ps1

Post by Casual Observer » Mon Dec 02, 2019 6:56 am

Wow, how do you have kids and have time for wicked cool shit like this. I don't even have a cat anymore and I cant find time to play RDR2 with any regularity.

User avatar
Jizaboz
Posts: 1367
Joined: Tue Jan 31, 2012 2:00 pm
Location: USA
Contact:

Re: MovieNight.ps1

Post by Jizaboz » Mon Dec 02, 2019 9:10 pm

This is really cool stuff! Something Weird has like 2 hour volume collections of intermission films: https://www.somethingweird.com/product_ ... s_id=58069

User avatar
Flack
Posts: 6196
Joined: Tue Nov 18, 2008 3:02 pm
Location: Oklahoma
Contact:

Re: MovieNight.ps1

Post by Flack » Mon Dec 02, 2019 10:53 pm

That looks pretty good. And from what I found, there are three volumes of them now. I have a lot of those clips, but those might be in better condition.

Ugh. I need a Kickstarter to buy all these clips.
"Jack Flack always escapes." -Davey Osborne

Casual Observer
Posts: 1349
Joined: Wed Oct 01, 2003 10:23 pm
Location: San Francisco

Re: MovieNight.ps1

Post by Casual Observer » Mon Dec 02, 2019 11:25 pm

Flack wrote:
Mon Dec 02, 2019 10:53 pm
Ugh. I need a Kickstarter to buy all these clips.
You should package this into an app and sell it. I bet lots of people would love the idea.

User avatar
Tdarcos
Posts: 5630
Joined: Fri May 16, 2008 9:25 am
Location: Arlington, Virginia
Contact:

Re: MovieNight.ps1

Post by Tdarcos » Tue Dec 03, 2019 5:26 am

Flack wrote:
Sun Nov 24, 2019 10:46 am
The idea being before I go out to the theater to watch Meatballs, I wou
Here's an example of one of the "commercials" I found. There are hundreds of these online. Most of them are drive-in related ("let's all go to the loooooby..."). `````
As soon as I read this, I spotted the error immediately. And as educated as you are, Flack, I'm really surprised you made this mistake. See, drive-in theaters do not have lobbies; only indoor theaters have them. What drive-ins do have is a single building (that also includes the projection room) which is usually called a concession stand or snack bar. I don't think any drive-in would seriously run a video telling people to go out to the nonexistent lobby. At least not without looking stupid.

I've been to the Bengie's Drive-In Theater in Essex, MD near Baltimore, several times, both before and after I lost the ability to walk (interesting story I'll save for later) and I watched the in-between ads and announcements (including one where it warned customers the speed limit is 15 mph, and the theater's owner, D. Edward Vogel, was announcing over the PSA that at the Bengie's the speed limit is 5). Not once did any of these ads or PSAs use the word "lobby."
"Come my restoration… Wash my body clean."
⁠— Martin Page, In the House of Stone and Light

User avatar
Flack
Posts: 6196
Joined: Tue Nov 18, 2008 3:02 pm
Location: Oklahoma
Contact:

Re: MovieNight.ps1

Post by Flack » Tue Dec 03, 2019 8:02 am

Tdarcos wrote:
Tue Dec 03, 2019 5:26 am
I've been to the Bengie's Drive-In Theater in Essex, MD near Baltimore, several times, both before and after I lost the ability to walk (interesting story I'll save for later) and I watched the in-between ads and announcements (including one where it warned customers the speed limit is 15 mph, and the theater's owner, D. Edward Vogel, was announcing over the PSA that at the Bengie's the speed limit is 5). Not once did any of these ads or PSAs use the word "lobby."
Generally speaking, the word "lobby" refers to a snack bar or concession stand you can enter -- which literally thousands of drive-in theaters have. Almost every drive-in refers to their snack bar or concession stand as a lobby. I searched Google and one of the first drive-ins that appears is the Stardust Drive-In. From their FAQ page:

"Animals are not allowed in the snack bar lobby or restrooms."
"There is NO SMOKING allowed in the concession stand lobby or the restrooms."

As for Bengie's Drive-In, they literally have the characters from "Let's All Go to the Lobby" posted right on their website under the "snack bar" heading.

Image

Also, this Yelp review for Bengie's says that the drive-in shows "all sorts of lobby animations for snacks."
"Jack Flack always escapes." -Davey Osborne

User avatar
pinback
Posts: 13418
Joined: Sat Apr 27, 2002 3:00 pm
Contact:

Re: MovieNight.ps1

Post by pinback » Tue Dec 03, 2019 8:42 am

As educated as you are, Paul, I'm really surprised you made this mistake.
Above all else... We shall go on... And continue!

User avatar
Ice Cream Jonsey
Posts: 22001
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: MovieNight.ps1

Post by Ice Cream Jonsey » Tue Dec 03, 2019 6:20 pm

Geez, Paul.
the dark and gritty...Ice Cream Jonsey!

Post Reply