I am new to all of this, and trying to build my system from the ground up. (using a rpi as a director, talking to arduinos as controllers).
Let's say you develop a sequence in Vixen 3. My understanding is that you export this as a FPP (fseq) file. And then say use FPP on a rpi to play the light show. My question is how does the fpp player on the pi ensure that the lights (i.e the playback of the fseq file) is in sync with the music. I am assuming that there is no actual real-time sync method in place to ensure that the playback of the fseq file is in sync with (a timestamp?) in the mp3 file? i.e. you start both the mpe3 file and the play back of the fseq file at the same time, and assume that the mp3 file will be played at exactly a 1.0 playback rate?
I am wrong to assume this? is there an actual way that the (say 50 msec samples) are kept in sync with some sort of timestamp in the mp3? What am I missing?
Thanks - as this is probably one of many questions I will have in the coming weeks.
Shawn
For an absolute answer, visit FalconChristmas.com. That is the home for the Falcon Player. The brains that built the program hang out there for sure. They also stop in here from time to time, but their home is at FalconChristmas.com.
From experience, the FPP (Falcon Player) asked during setup for the name of the sequence and the audio file. I believe the frame rate of the sequence is in the .fseq file. By playing the media at the rate it is recorded (and you used to sequence the file), and playing the sequence at the rate it was intended to be - they should stay in sync. After 3 years using the FPP on a rpi, I can say I have never personally had one go out of sync.
Other's mileage may vary.
ALG
If the master is playing a media file then the master adjusts its sequence playback speed slightly once per second if necessary to stay in sync with the media file's playback position.
If the master is not playing a media file then it plays the sequence at the speed defined in the fseq file without any speed adjustments.
The remotes try to stay in sync with the master's position.
Thank CaptainMurdoch!!! That actually lead me straight to the answer I was looking for (I hope atleast)
Disclaimer: I know FPP is a product. If I asked a question that impedes on FPP proprietary information, I am sorry.
I am trying to build a light show from the ground up (it would not be any fun to just use already developed products such as controllers and FPP, lol), using a rpi as the "director" and Arduino based controllers (this year just zero-crossing SSRs). But from the start, I am designing with future added expandability.
I was having a couple of sync issues (one being the timer in a Arduino just is not very good), but also making sure the playback of the *.fseq file is in sync with the playback of the media file (*.mp3, etc).
I am using pygame on the rpi to play the audio file. Your comment made me go look at the pygame library a little closer and found the pygame.mixer.music.get_pos() function, which provides time in msec. Perfect!!! with a few modifications to my code tonight, I hopefully will have the sync problems worked out.
Thanks again.
Shawn
CaptainMurdoch wrote:If the master is playing a media file then the master adjusts its sequence playback speed slightly once per second if necessary to stay in sync with the media file's playback position.If the master is not playing a media file then it plays the sequence at the speed defined in the fseq file without any speed adjustments.
The remotes try to stay in sync with the master's position.
Thanks CaptainMurdoch. This is very good information to know.
