Sean Meighan
Welcome => Do You Need Help? Post it here => Topic started by: ronp 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?
-
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.
-
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
-
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).
-
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.
-
How did you pull in the audio for the video, or does xlights take care of that?
-
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.
-
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.
-
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.
-
Is it out of sync in the xLights preview? or just the real hardware?
-
Out of sync both in simulation and when playing out computer Ethernet port.
-
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?
-
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.
-
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?
-
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 (https://youtu.be/BEweN7yrJlw)
-
Can we see your log file. The video and audio process does do some logging. Maybe it can tell us what is going on.
-
Gil, yours plays just like mine. Maybe I am being too picky, but at the end of the video when the red bulb breaks you hear the sound before the bulb is actually dropped. The sound is out of sequence. If you play just the video it is timed correctly.
-
The frames should never be more than 1 out of sequence. It can't be perfect because the video frame rate does not match the sequence frame rate so we have to be slightly early or late but never more than your frame interval. At 40 fps this is 25ms out. No one watching your show will notice.
-
Ok that was finally some specific information to let me know what you were seeing that you didn't like. Yes I see that its not lining up right. So I did a test. I went to YouTube and found the same video. I found a YouTube to MP4 online converter and created an MP4. Then I created the same sequence as before but used the MP4 instead of an AVI. It worked perfect. So you need to ditch the AVI. Apparently the ffmpeg converter doesn't work perfect for AVI files. Checkout how the MP4 performed.
https://youtu.be/c6dpNbz_a54 (https://youtu.be/c6dpNbz_a54)
-
Perfect, converted the AVI to MP4 using hand break and the timing is great. Thanks for your help.