NetGroup multicast: delay, a/v out of sync

Hello,
I've tested multicast example Michael provided us with (viewer.mxml/provider.mxml) and found that after viewer is connected there is a significant delay between publisher and viewer (around few secs) that is being reduced till realtime in some time, but even after delay is reduced we have audio/video out of sync, sound came later than video (or maybe video came later than audio... don't remember exactly).
Do you have any ideas why this happens - maybe because of beta?

Hi Mike,
I'm back with more details. I tried publishing with a Mac instead of a Windows but still having the same problem. I tried out  VideoPhoneLabs live sample to test 1-1 communication and observe A/V  sync. Everything is working fine (but VideoPhoneLabs isn't using NetGroups multicast). I tried out publishing/subscribing on the same computer but doesn't make any difference. Still getting the same problem with audio so I tried out creating an application using only audio stream. Here are the details of my application:
- I created a conference call application (uses only audio streaming) where all participants are allowed to speak and hear other participants.
- Here is how it works:
     - First I create a NetConnection and connect to Stratus with "rtmfp://stratus.adobe.com/" and my developer key (Connection without out any problems).
     - Once connected to the server, I create my GroupSpec with the following options:
                _groupSpecifier = new GroupSpecifier( GROUP_NAME );
                _groupSpecifier.multicastEnabled = true;
                _groupSpecifier.objectReplicationEnabled = true;
                _groupSpecifier.postingEnabled = true;
                _groupSpecifier.routingEnabled = true;
                 _groupSpecifier.serverChannelEnabled = true;
                _groupSpec = _groupSpecifier.groupspecWithoutAuthorizations();
     - Then I join the NetGroup and initialize my outgoingStream at the same time.
     - Once "NetStream.Connect.Success" is dispatched, I start my outgoingStream:
               - I attach the audio to the stream (I use "mic.codec = SoundCodec.SPEEX")
               - I publish it using "_outgoingStream.publish( _netGroup.convertPeerIDToGroupAddress(_nearID) )"
     - To listen to other participants stream, I listen to the event "NetGroup.MulticastStream.PublishNotify". Once this event is dispatched, I create as many incoming streams as participants joining the same group. If you need more details on how I create these incoming streams, I'll be happy to communicate them to you.
     - Everything goes fine, I can see all participants connected to the group and hear them all BUT here is my big problem. When participants are speaking there is an audio latency of 2-3 seconds before I can hear them (test based on "OK" written in SKYPE when a participant starts speaking). All participants have to wait about 20-30 seconds before a complete synchronization, meaning no latency on audio. Participants speak and are heard straight away. After these 20-30 seconds synchronization, communication is just amazing. Everything is perfect.
     - I tried this application on the following environment: every participants are publishing/subscribing using either Mac, Windows Vista, Windows 7 on either FireFox, Google Chrome or Safari. I tried it out as well just on my Windows 7 (publisher and subscriber) using several different browsers (to simulate other participants) but still getting the same problem (audio latency of 2-3 seconds and after 20-30 seconds, synchronization is perfect). Did the same again but just on one Mac but still the same problem.
I hope my explainations are understandable. My goal is to reduce these 20-30 seconds before synchronization is good (no latency).
I think the problem is comming for the audio, because video is usually working great. It maybe comes from the fact I'm using NetGroup because 1-1 communication using VideoPhoneLabs (which is not using NetGroup... tell me if I'm wrong) and other application I've created before based on VideoPhoneLabs are working greate (no latency).
I really can't get over this problem. Hope to hear from you soon.
Sincerely
-suiss

Similar Messages

  • DMP-4310G Multicast video out of sync issues

    Hi!
    Currently I have following problem with DMS:
    I have couple of DMPs connected to the same L2 switch with the identical configuration (same startup url, same buffers config etc.) and a multicast streaming server which streams (by UDP multicast) some live video to the DMPs.
    Video codec is h264 (1920p,high [email protected], bw 6000kbps,29,97fps).
    The problem is that after some time (6-15 hours) the video on the screens become out of sync (i.e. screens show the same video but with some delay (1 to 5 sec) between the same frames on 2 different screens for example).
    DMM and DMPs - 5.2.2.
    Can you advise me on that problem?

    Hi again
    I actually think my problems is very much similar to this one:
    http://forums.adobe.com/message/2598909#2598909
    Could it be related to H.264 and mainconecpt not doing things right?
    When I try export the excact same project using Windows Media HDTV 720 - jsut setting the FPS to 50 instead of 25 it comes out nice. Looks a bit more blured to me, but might just adjust some parameters to get it right?
    So i guess this issues with some periodic and ad hoc sync-issues is related to the H.264 mainconcept codec? Is there any other and better codecs for H.264 and how do one get them installed to use them inside PPro CS4?

  • Audio/video out of sync (audio delay) with PowerBeats wireless earphones.

    I am having a problem with audio/video sync between my  PowerBeats Wireless earphones with my MacPro and MacBookPro. I have tried pairing, playing the video, pausing the video, turning off the PowerBeats, tuning the PowerBeats on, then starting the video playback again. I have the same audio delay so this not working for me. Anyone have an update as to how to fix this audio/video sync problem?

    I am playing MPEG-4 movie files. I did open MPlayerX from my dock, then pulled down File to select Open which then did show the folder where these movie files are stored.  Then I was able to select a movie file, open it, and use "Decrease Audio Delay" to closely sync the audio with the video. I say closely because it is not perfect. Rather than stepping each increase or decrease in one tenth of a second, perhaps a finer adjustment would have been in milliseconds. This is the adjustment that I have with my AVR to sync the audio with the video, so I know this is a possible increment adjustment. The perfect adjustment was in between -0.4 and -0.5 second,however, this was not possible in one tenth second adjustments. The closest adjustment was with -0.4 second rather than with -0.5 second. So, adjustments in milliseconds could have been very near a perfect sync. Perhaps later versions of MPlayer will offer the adjustment selection in milliseconds. Nevertheless, this is working much, much better than before. Thank you so much. I have spent most of this day researching this problem and you have come up with by far the best solution. This problem goes all the way back to 2010 and possibly beyond for Apple products. There are hundreds of reports documenting out of sync audio/video issues with no solution that works as well as MPlayerX. Even the Beats support staff have no idea of how to resolve the audio/video out of sync.

  • Video out of sync

    We have now 5 Final Cut pro machines that have replaced old media 100s. We are using the AJA Kona Cards and Sony Beta Cam Decks. UVW1800's I think. We are running component out to the deck and then composite out of the Deck to the Monitors. The video is in sync to the deck but not to the monitors. It will playback in sync once recorded. But the signal from the kona card going through the deck to the monitor is out of sync. I have tried lots of things including using sync generators (black bursts) but nothing seems to keep it in sync. Even once in sync the video will roll. It is I realize more an issue for the editor as the final product is in sync but does anyone have any clue as to why I am having this problem?
    G5   Mac OS X (10.4.4)   Final Cut Pro HD

    Are you playing the audio thru the card too, or monitoring it out from the computer directly? Because if you monitor it from the computer then there will be a delay. But from the card or deck, there shouldn't be.
    Also try posting this at www.creativecow.org in the AJA forum. That place if full of AJA users.
    Shane

  • Audio is Out of Sync on NTSC Preview Monitor

    Hello FCP Gurus,
    I recently was hired by a local Broadcast TV Affiliate and I am looking at their FCP systems. I noticed that one of the suites has a big problem with the NTSC Preview Monitoring, the audio is way out of sync.
    Here's the set up:
    G5 Dual 2GHZ
    3GB RAM
    1 Internal Western Digital SATA 160GB (System Drive)
    1 Internal Maxtor SATA 300GB (Media Drive and back up system drive)
    2 Monitors
    MAC OSX 10.4.3
    FINAL CUT PRO 4.5
    AJA IO LA
    So when I play back anything in the timeline the audio on the external NTSC monitor is way off, not just a little bit but a ton. I am not sure why. I know that usually there is some delay but not this much. Is there a way to configure it without any delay? The computer monitor with the FCP canvas and viewer are dead on but the NTSC is way off, it is ahead of the video.
    Also, when I am editing in the timeline I have to switch the AV setting from ProIO to Built In and then I can here it. When I insert back to BetacamSP through the AJA box I have to switch it back to ProIO to lay it to tape. While it is laying to tape I cannot hear the audio or even see the FCP meters. But when I play back what I just put down on the Beta deck, the aduio is fine. The decks are in the operations rooms almost on the other side of the building.
    This maybe OK for 30 sec promos but for 30 minute shows this will drive me crazy. I am responsible for all elements, including audio.
    Thanks in advance.
    Alex

    make sure the audio is following the video.
    if you are viewing video on an external monitor, make sure the audio is routed [i[the exact same path to the audio monitors. If you have the video going out through the AJA and the audio out directly from the computer, there will be a processing differential that you will hear as lag.
    Also, make sure you have the most recent AJA drivers.
    good luck.
    x

  • VLC out of sync (audio)

    Hello, brand new installation of Arch + Gnome 3 (pulseaudio)
    When I was using Mint, I hadn't any problem, same software, same videos.
    My Setup is enough for videos (i7 2600+, ssd, 8gb ram and 570GTX using propietary drivers and I install vdpau, just installed).
    I installed VLC 2.0.1, I checked the experimental GPU support, but even typical 150MB~ anime videos are out of sync. The sound came like 1-2 sec after.
    Same videos on totem, no problem at all.
    Pulseaudio problem? I used it on mint too and perfect.
    I don't know what is totem using (the options are kinda simple), but I bet for pulseaudio too.
    I tried a command I saw searching in google to disable pulseaudio in vlc:
    $ pasuspender vlc -s alsa
    No help.
    I'm sure that I need some package or something.
    Any idea?
    Thanks.

    I have the exact same problem. I have only tried it with 720p mkv files. But no matter what, audio is always delayed in vlc but plays perfectly using totem.

  • Video out of sync with audio when using airphoil

    Hey I was wondering if it was possible for me to use airfoil with a movie. It's just that there is a time delay in the sound there for the video and sound go completely out of sync.
    Note: Airphoil is like using airtunes speakers.Airphoil is an app that allows someone to transmit sounds from any app to a bass station instead of just from iTunes.

    Saad Attieh wrote:
    It's just that there is a time delay in the sound there for the video and sound go completely out of sync.
    yes, many users reported having made that same observation. seems like the app still needs some improvement. on the other hand, it may be a limitation of airtunes ...
    JGG

  • A/V stream out of sync with when playing audio on SourceDataLine

    Hi,
    I'm receiving a video and an audio stream via RTP and try to play them synchronized (audio synchron with lip movement).
    I'm using a DataSourceReader in order to read from a datasource and play on a JavaSound SourceDataLine. This works pretty good but unfortunately the audio is played with a delay of approx 1 second.
    else if (evt instanceof NewReceiveStreamEvent) {               
         try {
              stream = ((NewReceiveStreamEvent)evt).getReceiveStream();
              DataSource ds = stream.getDataSource();
              Format format = null;
              // Find out the formats.
              RTPControl ctl = (RTPControl)ds.getControl("javax.media.rtp.RTPControl");
              if (ctl != null) {
                   format = ctl.getFormat();
                   log.info("Received new RTP stream: " + format);
              else
                   log.info("Received new RTP stream");
              if (format != null && format instanceof VideoFormat) {
                   Player video = javax.media.Manager.createRealizedPlayer(ds);
                   video.start();
                   this.video_player = video;                         
              else if (format != null && format instanceof AudioFormat) {
                   JavaSoundDataSourceReader dsr = new JavaSoundDataSourceReader();
                   Player audio = dsr.open(ds);
                   audio.start();
                   this.audio_player = audio;
              }          I already tried to synchronize them with
    videoPlayer.addController(audio_player);
    audio_player.start();but this is throwing an Exception:
    javax.media.IncompatibleTimeBaseException
         at com.sun.media.multiplexer.RawBufferMux.setTimeBase(RawBufferMux.java:377)
         at com.sun.media.BasicSinkModule.setTimeBase(BasicSinkModule.java:52)
         at com.sun.media.PlaybackEngine.setTimeBase(PlaybackEngine.java:1672)
         at com.sun.media.BasicPlayer.setTimeBase(BasicPlayer.java:272)
         at com.sun.media.BasicPlayer.addController(BasicPlayer.java:1043)
         at VideoPlayback.update(VideoPlayback.java:281)Line 281 of VidePlayback.java is the "videoPlayer.addController(audio_player);" line.
    My guess is that it should rather use RawSyncBufferMux instead of RawBufferMux but I don't know how to change this. Maybe directly as a processor option?
    Please help as I've no clue how to improve this.

    chummer wrote:
    it should also be synchronized with the video :-)The problem with getting it synchronized is that Javasound & your sound card have internal buffering, so there is some delay between writing to them and hearing the sound come out...
    Normally, JMF handles this internally somehow by aligning things to a timebase, which can be syncronized, and allowing Processors to fill up their internal buffers ahead of time during the prefetching phase so that everything that needs to play together can have an instant start time. As it goes along, presumably adjustments are made as things get out of sync.
    My best advise to you would be to implement your Javasound stuff inside of a Renderer class, instead of a DataSink class. DataSinks are designed to take in data and write it out as fast as they can... whereas Renderers are given data at "real-time" intervals and are designed to be played.
    When implementing your Renderer class, JMF should handle the syncronization for you. IE, it'll give you data as it should be played by calling the Process function, so you'll just need to write the data to your TDL as it comes in. I believe that "Process" may be called before "Start" to allow you to prebuffer some information, but you'll need to test that as I've never actually tried it.

  • 10.6.8: audio goes out of sync in Netflix streaming and *.avi files

    Hello,
    This began happening a couple of weeks ago and it's maddening!  There haven't been any software changes or anything recently.
    At first I thought it was just a Netflix problem, or perhaps an internet connection problem.  Audio will at some point during play, 'skip', and play the same audio over again (i.e., "Hello, Ja-Hello, Jack!"), and from that point on, the audio is lagged behind the video just a bit. 
    Then I began watching some *.avi files on my HDD today, and the same thing is happening with them, too!  If I reload the browser or close and reopen the *.avi file, the audio will start out in sync again, but at some random point during playback, it will happen again.
    Hope someone knows what's going on!  Thanks!
    Mid-2010 Macbook Pro 10.6.8

    For anyone who's interested, I found a solution to this problem. Once imported into Encore, the leader in on the video and audio files cannot be trimmed at all. (I had been trimming the beginning of the video and matching audio file to eliminate the 8 seconds of dead space at the start of the clips.) Although the trim took effect immediately in the Encore timeline and I could also watch it in preview in sync, exporting was another story. The audio track seems to retain the trim when exporting but the video track does not, hence the 6-7 second delay between audio and video.
    I reimported the files to my project and left in the 8 seconds of dead space at the start and voila! The video and audio match up when exported.
    Ideally the trim tool would just work as its supposed to through export and all, but at least I found a solution I can work with.
    (As a note, the trim works just fine in export on Encore CS5. I only had this problem with Encore CS6.)

  • Exported Audio out of sync on one clip only - everything else is fine.

    Hi all,
    I am under a deadline and really appreciate any help on this. I've been working in 30 fps, Apple Prores 422. I've been outputting various cuts of a documentary. I had no issues at all until this morning.
    One series of clips at the end of one sequence is now quite mysteriously out of sync. When I play in FCP there are no issues. Only when I output, and only in one small section of one sequence.
    Again, this sequence gave me no issues for months. Just today.
    The whole film is fine when outputted. It's just that one series of clips is out of sync by about a second. And in FCP there is no sync problem or delay.
    Thanks!!

    Hi there,
    The clips in the sequence are from different source tapes. Other clips from the same source tape work correctly. Everything in my documentary is Apple Prores 422, same settings across the board. I did a massive convert of all the footage I am working with before I started the project.
    I "solved" the issue by starting a new sequence at the point where the audio went funky. That sequence, which has the same settings as all my others works fine and nests into the final output sequence just fine. But I still don't know what happened.
    Any thoughts? Since the issue is somewhat resolved (via this workaround) I don't want to take any of your time. But I am curious...
    Thanks,
    Sanjay

  • How to delay the audio to lip sync? (of the entire system)

    I`m using a LED 32" LG screen via hdmi, but the audio is outputing directly via usb to my Mbox Mini, and the image have a small delay (5 frames) but the audio not, so the result is out of sync videos.
    Of course there`s tons of apps that can solve the problem by compensating, like VLC and MPlayer X, but the problem is that i`m a video editor and use FCP and Motion all the time. For playbacking with these apps (after making the 5 frames compensation) turns into a perfect results, but during video editing it`s a pain to lip sync.
    Of course as i know that the delay is 5 frames, when i output i could delay the entire audio, but it would be a pain making this everytime and for internet streaming the videos would still off sync.
    There`s anyway i can delay the audio of the entire system?
    PS: I`m using Lion 10.7,

    > I wonder if there is any way to delay the opening of a
    MIAW. In particular i
    > have the following
    If you want other activity to take place, you could use a
    timeout object:
    dialogue = window().new("D_XML_Test (Greek2)")
    dialogue.filename = "path to file"
    t = timeout().new("mOpenWindow", 60000, #mOpenWindow,
    dialogue)
    -- #movie script:
    on mOpenWindow aWindow, aTimeout
    if ilk(aTimeout, #timeout) then aTimeout.forget()
    if ilk(aWindow, #window) then aWindow.open()
    end
    If you don't mind locking out activity, you could use the
    delay()
    function, but I wouldn't recommend that approach

  • All of my audio is out of sync:(

    Hey,
    Everything was fine now all my audio is out of sync. Anyone know why? The delay is about 1.2 second or so but is quite noticeable. Can this be fixed in Soundtrack?
    Chris

    thanks for the follow up. Anyone searchinf for iMac and FCP issues will find your thread. It's important and helpful because I don't know anyone around here who could have even GUESSED to change an iMac to AV mode. Never used FCP on such a machine.
    bogiesan

  • Audio out of sync h.264 file. Premiere CS5.5

    After building a new machine with Premiere CS5.5, using NVIDIA Q4000 card, I'm having troubles wioth my audio being out of sync. I am exporting DSLR footage which the same sequence was previously fine on export on my old computer. Now, when I export, the audio is a few frames out of sync. There's something really funny going on. When I play the same video file in Windows media player, it seems to be in sync. When I play it in Quicktime, it's clearly out of sync. Also, when I upload it to Vimeo, it's out of sync as well.
    If you'd like to see the specs of my computer, you will find them in this post:
    http://forums.adobe.com/message/4211881#4211881
    When I export the same file to Mpeg DVD, it seems in sync. Does this issue sound familiar to anyone?

    Cripes, what I've seen looks in order. I don't think it is a hardware issue.
    Is the audio consistent, or does it drift?
    The Audio in the sequence is wav extracted from raw footage, no? Was the audio recorded in camera? Was it a multicamera shoot? Was the original audio\video file the same sampling frequency? Same fps as the sequence?
    And, if the audio was doctored outside of premiere, is there a chance that the time was altered?
    Are the audio and video locked together on the timeline? Was it locked throughout the process?
    Do you monitor the audio through the Blackmagic Decklink Intensity Pro while editing? Does the windows media player also use the card? I only ask because I had a matrox card that did this. If the Card's audio is looped back through the system, it could cause the delay in playback monitoring.
    The source sequence is 50fps and the output is 25 fps. Have you tried outputing a 50fps file? Is the source footage 50fps?
    If you export an un-edited source clip from the project, do you still get the issue?
    All those questions aside, it seems really strange that it plays fine on the timeline, WMP, and VLC, but QT and Vimeo don't work for you. Are you getting the exact sme delay in QT and Vimeo? Could you post a link to the vimeo page? Have you tried test a youtube upload. Have you tried a HD WMV, mpeg2 or DVD of the project?

  • XMPSES file extension and Out of Sync issues

    I captured a VHS tape to an AVI. If I watch this file using Windows Media player, the audio and video are in sync. I then imported the AVI into PE11 and created a video project. I selected the MPEG option for Computer under Publish+Share. I did not change any settings. The preset is NTSC DVD Standard. When the project was complete, I now have two files
    FILENAME.MPG
    FILENAME.MPG.XMPSES
    Also, when I play the .MPG file using Windows Media player, the audio and video are out of sync. The audio is delayed by a couple seconds.
    I am using Windows 8.1
    Does anyone know why PE11 creates the two files? Is this related to the sync issues?
    thanks,

    uberjaeger
    That .xmpses is an informational file attributed to Adobe and described as a Premiere Elements DVD Marker File (has information about DVD marker project, chapters, titles and scenes). I can confirm its existance. I do not suspect that as the source of your out of sync audio in your Publish+Share/Computer/MPEG with NTSC DVD Standard export.
    How did you capture the VHS tape to AVI and what type of AVI did put on the Premiere Elements 11 Timeline....DV AVI? If DV AVI, was it type 1 or type 2?
    What were the properties of this import into Premiere Elements 11 - 720 x 480 4:3 @ 29.97 interlaced frames per second or something else? What did you use for Add Media?
    What was the project preset of this Premiere Elements 11 project? Did you set the project preset to NTSC DV Standard manually before the Add Media or did you let the program automatically set the project preset based on the first video drag to the project's Timeline? If the program took charge, what did it set? Please see Edit Menu/Project Settings/General and the readings for Editing Mode, Timebase, Frame Size, and Pixel Aspect Ratio (even if grayed out).
    If you take your Timeline directly to Publish+Share/Disc/DVD disc, does the DVD-VIDEO standard on DVD disc play back with out of sync audio?
    By the way, do you have the VLC Player and does your mpg play back with audio out of sync there?
    Let us start here and then decide what next.
    Thank you.
    ATR

  • Adobe Encore Blu-Ray audio out of sync

    Hey,
    So I'm trying to make a compiliation Blu-ray disc that has 3 seperate movies on it.  Each method I've tried as resulted in the audio being out of sync with the video.
    I used dvd shrink to rip a dvd to include just the movie by itself.  I played that.  No out of sync audio issues.
    I then used pgcdemux to demux the dvd files into seperate .m2v and .wav streams.  I played those, and again no audio sync issues.
    I tried importing the seperate .m2v and .wav streams directly into Encore and it seemed to work until I created a timeline and when previewing the disc, the audio was out of sync.  So I went ahead and burned a copy to my blu-ray disc and sure enough the audio sync issues were on there too.
    Then I went through adobe media encoder and tried to re-encode the .m2v file thinking it just wasn't done correctly the first time.  Still the audio is out of sync after importing to Encore.
    I even demuxed the streams, then remuxed them together into an mpg file.  I played that without Encore and no audio issues.  But as soon as I import it and attach it to a timeline, and then preview it, audio is out of sync.
    So I am completely lost here.  I don't quite know what else to do to get rid of the delay in audio.
    Suggestions?  Fixes?

    Well it certainly has been a while!
    So I finally got this to work.  It would seem that I spent so much time trying to rip and convert the dvd to their elementary source files: .m2v and .wav and since I was working with dvds, the files were quite large.
    I actually loaded up a program called DVDFab and ripped each dvd into m2ts fomat.  Those files were, still, quite a few gigabytes a piece, as they are essentially rips of the dvds in a special blu-ray container format.
    They loaded directly into Encore and I didnt even have to use Adobe Media Encoder before loading them.  And this time when I actually built my blu-ray, I received no errors.  So everything output fine.
    thanks for the help!

Maybe you are looking for