Author Topic: procedure to import a movie as an effect  (Read 4171 times)

Offline Steve Gase

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
    • WinterLightShow in Georgetown, TX
procedure to import a movie as an effect
« on: July 29, 2015, 12:12:57 AM »
I believe that this feature exists, but after looking through the xl4 interface I'm lost looking for it.
I'd like to use a mp4 file that I captured from a music visualizer (winamp) and apply that movie to my whole house model.

similarly, i have a video file that I want to play on my P10 panel...

i recall sean talking about ffmpeg or a program to extract frames from a video file that could be used in xl...  is this capability now integrated in xl?   

is the procedure described anywhere?

thanks!
http://WinterLightShow.com  |  110K channels, 50K lights  |  Nutcracker, Falcon, DLA, HolidayCoro

Offline flyinverted

  • Administrator
  • Hero Member
  • *****
  • Posts: 756
    • View Profile
Steve Giron
Maricopa County, AZ
xLights user with a boat-load of channels.

Do not ask to know all the answers, but ask to understand the question.

Offline gerry

  • Hero Member
  • *****
  • Posts: 695
    • View Profile
Re: procedure to import a movie as an effect
« Reply #2 on: July 29, 2015, 12:21:19 AM »
Hi,

Create a temporary directory , and copy the movie file there .
then use the ffmpeg utility to break it up into frames. Example:

ffmpeg -s 30x50 yourmovie.mp4 f-%d.png

This will create frames f-1.png, f-2.png .etc. Your original movie has been resized to 30x50 pixels. (so u need to change this value based on your matrix size)

Note: ffmpeg is run from the DOS command line .
Example:

C:\
cd \tempdir

ffmpeg -i yourmovie.mp4 -s 30x50 f-%d.png

This will create a number of files 'f1-' onwards

now , drop the picture effect and browse and point to the first file ie
"f-1.png", using the pictures effect

The picture effect will then pick all the frames.

Try with a small movie segment ie 10 secs long

Note: Only 'something-1' will work ie the application looks for the '-1' and then only picks the others.


Gerry

Offline RGBNoob

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: procedure to import a movie as an effect
« Reply #3 on: July 29, 2015, 12:30:48 PM »
Gerry,

I just tried this today and wanted to test it on my megatree.  Is there anything special I need to do in Xlights as my megatree is not showing anything on it?

I have verified that I have all of the jpg files starting from 1.  The first hundred or so are blank as was the case of the source video.  I made sure to put no movement in the Picture effect but still no output to the megatree.  I have hit Render a million times.

Is there a limit to the number of frames Xlights can handle or could I be missing any obvious settings?

Offline JonB256

  • Hero Member
  • *****
  • Posts: 832
    • View Profile
    • My Christmas Website
Re: procedure to import a movie as an effect
« Reply #4 on: July 29, 2015, 01:13:05 PM »
Gerry,

I just tried this today and wanted to test it on my megatree.  Is there anything special I need to do in Xlights as my megatree is not showing anything on it?

I have verified that I have all of the jpg files starting from 1.  The first hundred or so are blank as was the case of the source video.  I made sure to put no movement in the Picture effect but still no output to the megatree.  I have hit Render a million times.

Is there a limit to the number of frames Xlights can handle or could I be missing any obvious settings?

I'll assume you are sending this from the Sequencing window by clicking Play?
What does your Setup screen have?  (E1.31 - what range of Universes?)
Have you clicked the "Light Bulb" icon at the top of the screen to actually "output" data?

Seriously, there are a lot of little steps that you could be missing. Screen shots or setup descriptions will go a long way for help.

Offline RGBNoob

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: procedure to import a movie as an effect
« Reply #5 on: July 29, 2015, 02:38:16 PM »
Gerry,

I just tried this today and wanted to test it on my megatree.  Is there anything special I need to do in Xlights as my megatree is not showing anything on it?

I have verified that I have all of the jpg files starting from 1.  The first hundred or so are blank as was the case of the source video.  I made sure to put no movement in the Picture effect but still no output to the megatree.  I have hit Render a million times.

Is there a limit to the number of frames Xlights can handle or could I be missing any obvious settings?

I'll assume you are sending this from the Sequencing window by clicking Play?
What does your Setup screen have?  (E1.31 - what range of Universes?)
Have you clicked the "Light Bulb" icon at the top of the screen to actually "output" data?

Seriously, there are a lot of little steps that you could be missing. Screen shots or setup descriptions will go a long way for help.

Sorry if this was confusing, I'm not trying to physically send to the megatree at this time, just view it in the sequencer.  All other effects I have applied to my megatree in this and other sequences have worked so I'm pretty sure it's not a setup issue.  I have clicked play to play the sequence and see the other elements playing, just not this specific effect.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: procedure to import a movie as an effect
« Reply #6 on: July 29, 2015, 03:15:58 PM »
Why did you use an "_1" format when we said to use a "-1" format?

Offline RGBNoob

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: procedure to import a movie as an effect
« Reply #7 on: July 29, 2015, 03:40:20 PM »
Why did you use an "_1" format when we said to use a "-1" format?
Because I didn't pay close attention to the instructions! I think I was glancing at a screenshot of one of Sean's videos and didn't look close enough. Thanks Gil.