Author Topic: Playing a movie clip on P10 panels  (Read 3643 times)

Offline gerry

  • Hero Member
  • *****
  • Posts: 695
    • View Profile
Playing a movie clip on P10 panels
« on: July 20, 2015, 07:31:47 PM »

As part of a sequence , I propose to  play a short video clip on the FP/BBB driven P10 panels.
(now that I finally got multi synch to work today across the PI and BBB)

Looking through previous posts , I found the option of using ffmpeg to break a clip into individual  jpegs starting from x-1 etc and using the picture effect.

After doing that , when the fseq file is created for the seq,  is everything  that is required embedded in the .fseq file so that that is the only file I need to upload to the BBB FP or do I also need to upload all the jpgs as well ?

I guess I am asking as to whether the individual jpgs created are loaded into the fseq or just references and the actual image pulled in at run time.

And finally , so that I have some reference to start from , my panels are 64 * 64 pixels wide , so would I specify 64 * 64 for the ffmpeg option eg

ffmpeg -i movie.mp4 -s 64x64 f-%d.jpg

Gerry

Offline flyinverted

  • Administrator
  • Hero Member
  • *****
  • Posts: 756
    • View Profile
Re: Playing a movie clip on P10 panels
« Reply #1 on: July 20, 2015, 07:58:59 PM »
You put all the jpg files in the same folder. Just point to the first file and NC will know all the rest are in the same folder.  The size looks right to me.
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: Playing a movie clip on P10 panels
« Reply #2 on: July 20, 2015, 08:12:53 PM »
You put all the jpg files in the same folder. Just point to the first file and NC will know all the rest are in the same folder.  The size looks right to me.

Thanks Steve,

But then after saving the sequence and the fseq is created , do I upload only  the fseq file to the FP ?
Gerry

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Playing a movie clip on P10 panels
« Reply #3 on: July 20, 2015, 08:35:37 PM »
I thought you can just upload the MP4 to the BBB and then when it's triggered it will natively play the video in sync with the master that triggered it.  I believe the caveat is the MP4 must have the same name as the sequence.

Offline gerry

  • Hero Member
  • *****
  • Posts: 695
    • View Profile
Re: Playing a movie clip on P10 panels
« Reply #4 on: July 20, 2015, 09:05:27 PM »
I thought you can just upload the MP4 to the BBB and then when it's triggered it will natively play the video in sync with the master that triggered it.  I believe the caveat is the MP4 must have the same name as the sequence.

That is if you are playing the whole video from the beginning I assume.

Lets say using the infamous frozen movie example  when the chorus starts , I wish to play 10 seconds of one of the scenes  . What I understand I should do is take 10 secs of the scene , use ffmpeg to break that into how many individual files it will create and then add a picture effect on the matrix model at the start of the chorus pointing to the first 'x-1' file and it will then pick the next file one by one.
It will look okay on the preview.

When I upload the fseq , do all the pictures go in the fseq as well ?

(or is this not the way to do it )

I can try and see what will happen. But have spent the last many days looking at blank panels whilst I tried to get multisynch to work with my setup and just got it to work this morn after captain and Dave suggested some simplifications to test , so I thought Id find out what is expected to occur before trying it out and seeing some more blank screens :)

Edit:
Gils video as below describes the process I am referring to except that I want the clip to start later in the sequence, not at the beginning.
https://www.youtube.com/watch?v=j9IAfYdYzwU

P.S - And I remembered to put the URL tags !


 
« Last Edit: July 20, 2015, 09:16:34 PM by gerry »
Gerry

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Playing a movie clip on P10 panels
« Reply #5 on: July 20, 2015, 10:31:32 PM »
I would ask the Captain.  I gathered at the Expo that you could do some pretty cool triggering where you told it to play just a piece of a video.

Offline gerry

  • Hero Member
  • *****
  • Posts: 695
    • View Profile
Re: Playing a movie clip on P10 panels
« Reply #6 on: July 21, 2015, 12:02:36 AM »
I would ask the Captain.  I gathered at the Expo that you could do some pretty cool triggering where you told it to play just a piece of a video.

Oh ! Okay. they said that they would post the videos of the classes of expo, so I will wait a bit. I thought it was all done within xl , other than the overlay stuff.
 
Gerry

Offline JonB256

  • Hero Member
  • *****
  • Posts: 832
    • View Profile
    • My Christmas Website
Re: Playing a movie clip on P10 panels
« Reply #7 on: July 21, 2015, 06:08:45 AM »
Part of the answer is, Yes, the jpegs from ffmpeg conversion become part of the Fseq file. You don't copy the jpegs to the FPP.

Offline gerry

  • Hero Member
  • *****
  • Posts: 695
    • View Profile
Re: Playing a movie clip on P10 panels
« Reply #8 on: July 21, 2015, 04:33:18 PM »
Thanks Jon !
Gerry

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Playing a movie clip on P10 panels
« Reply #9 on: July 21, 2015, 04:58:37 PM »
Ok I know I confused things a little.  If you're going to P10 panels then that is like going to a pixel model so yes you need to use the picture effect.  I asked the Captain if they would be able to automatically render video to a pixel display element and he said it's something they would like to accomplish in the future.  But if you are using a projector then you can do like I was saying and use an MP4 in place of an MP3 and then the audio comes from the MP4 and video goes out the Pi's HDMI port to the projector or monitor or any HDMI device.  I think someone already did this but what would be cool is you build a little board that takes HDMI input and sends output to the P10 panels in realtime.  An FPGA based device should be able to do that.