Author Topic: Video & Sound Sync  (Read 3727 times)

Offline ronp

  • Newbie
  • *
  • Posts: 36
    • View Profile
Video & Sound Sync
« on: September 05, 2016, 04:11:45 PM »
I have a 128x96 matrix that I am playing a video. The video is 25.1 seconds along with the sound file, however toward the end of the file the sound and display get out of sync. Has anyone else had this issue?


Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Video & Sound Sync
« Reply #1 on: September 05, 2016, 04:24:38 PM »
Only had a problem when I made a mistake.  You need to provide a lot more info if you need help.  No idea how you are playing everything and what created your sequence or whether it's off by 15 seconds or 200ms.

Offline Phrog30

  • Hero Member
  • *****
  • Posts: 1234
    • View Profile
Re: Video & Sound Sync
« Reply #2 on: September 05, 2016, 04:24:58 PM »
I assume this is a p10 matrix? How are you playing, bridge mode? I've had similar issues with bridge mode, but nothing like that when using fpp.

Sent from my SM-G900V using Tapatalk


Offline ronp

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Video & Sound Sync
« Reply #3 on: September 05, 2016, 07:13:38 PM »
So I have enclosed the video file, it plays fine.

The video is 320x240 at 29.9 frames a second. It plays wrong in xlights in the preview, in xlights using the Ethernet output, and on my PI2 quad using Ethernet. So I figure I am doing something wrong in the software, 40 frames a second or 25mS timing. My Ethernet to panel controller (Using P5).
« Last Edit: September 05, 2016, 07:16:39 PM by ronp »

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Video & Sound Sync
« Reply #4 on: September 05, 2016, 09:37:13 PM »
I created a new 25ms sequence using that minions AVI file for the audio track and used it for a Video effect on a 24x50 matrix and it played fine in the preview.

Offline ronp

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Video & Sound Sync
« Reply #5 on: September 05, 2016, 09:43:39 PM »
How did you pull in the audio for the video, or does xlights take care of that?




Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Video & Sound Sync
« Reply #6 on: September 05, 2016, 09:50:15 PM »
You can select the AVI as your audio file.  Just change the file type to xLights Audio files.  AVI's don't show up in the default list because I guess they must not be supported by FPP.  That's what the first file filter is supposed to show is FPP supported formats.

Offline CaptainMurdoch

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: Video & Sound Sync
« Reply #7 on: September 06, 2016, 06:38:31 PM »
I have experimented with using libavcodec in FPP to support the same formats as allowed by xLights but it won't make it into FPP this year and is lower priority than some other features since files can always be converted prior to sequencing.

Offline ronp

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Video & Sound Sync
« Reply #8 on: September 06, 2016, 08:47:11 PM »
Tried using the AVI as the audio and had the same results. Made a fresh sequence and it still is off at the end of the video. There are not many settings in the video, so I don't know what else to try. Using version 2016.45.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Video & Sound Sync
« Reply #9 on: September 07, 2016, 07:26:41 AM »
Is it out of sync in the xLights preview? or just the real hardware?

Offline ronp

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Video & Sound Sync
« Reply #10 on: September 07, 2016, 09:49:52 PM »
Out of sync both in simulation and when playing out computer Ethernet port.


Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Video & Sound Sync
« Reply #11 on: September 08, 2016, 11:00:56 AM »
If its out of sync in simulation I'm gonna say its a problem with the PC.  Is it a laptop?  Would it run Call of Duty with high res graphics turned on or would it cry please upgrade me?

Offline ronp

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Video & Sound Sync
« Reply #12 on: September 08, 2016, 08:14:26 PM »
So, yes my computer is pathetic, but it has a solid state hard drive.

I also ran my show on my PI 2 (quad core), with the same results. While I was running the PI, I checked the output rate and found that it was running at other than 25mS. I don't understand the reason for the running faster at 20mS, I would expect a slower rate when having issues. My show is only 47,031 channels spread across 152 universes.

See enclosed picture. I am still a fan of an universal hardware output to drive the shows.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Video & Sound Sync
« Reply #13 on: September 08, 2016, 09:28:23 PM »
Ok if its happening with Pi playback then its not the PC performance.  I don't know why it would be playing at 20ms.

Have you tried using a 50ms sequence just to test it?

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Video & Sound Sync
« Reply #14 on: September 08, 2016, 09:47:10 PM »
For the Pi playback rate issue you might need to get help on the Falcon forum.  For now all I can offer is I made a video showing me setting up everything from scratch and running that video in a sequence so maybe you can pick up on something I'm doing different than you.

https://youtu.be/BEweN7yrJlw