Large delay in FFMPEG stream

I'm attempting to setup a system where my co-hosts of our show can send me their video feeds, without having to use Skype.  I've worked out a system using ffmpeg, nginx, and vlc that works, but has several seconds of delay, which if it can be reduced, would be very helpful.
ffmpeg pulls the video from the webcam, (and I have tested this with merely copying the h264 stream from the webcam, and sending that raw to the server), ffmpeg then sends an rtmp stream to nginx, and finally, vlc connects and displays the stream from nginx.
I'm not sure which component here is introducing delay, or even why.

The combination of both of these reduced latency to a much more managable ~500ms.
Thanks! 

Similar Messages

  • Adding a Delay To A Stream.

    Yes, I want to do the exact opposite of most of you. I want to add a 10-15 minute delay into a stream for PvP.
    I did not see a thread on this so I thought I'd ask what would be the best way to do this? The answer perferably doesn't require another computer, but if that's the only route... I can go that way...

    Another way requires you to write a DirectShow filter that takes data from the device and keep it in it's queue for some duration (the amount of latency you want in stream). If this could be implemented, you can achieve what you want with utmost precision but this approach requires knowledge about writing DirectShow filters.

  • Large delay eprint

    Hello,
    since few days I have large delay after sending page to eprint,
    I have 7 printers connected in different destinations
    I'm using ePrint over 6 months and page was printing after 20-40 sec from sending, since few days it takes even 20 miutes !
    is tere any problem with eprint serwers ?
    I was checking my email server and message goes out to eprint server after 5 seconds so there is no lag on my side
    please check
    Greetings

    Hello grynio,
    Welcome to the HP Support Forums!
    According to this troubleshooting guide: The HP ePrint Print Job Did Not Print, it can somethings take up to 24 hours to print. It has been four days since you posted this, are you still experiencing the delays?
    If so, you can try re-printing the information page under the Web Services menu on the printer. This should force the printer to connect to a more responsive server.
    Regards,
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • Realtime delay of 'live' stream

    Hello,
    I'm speccing a job for a client who wants to use live streams
    and have cutomers phoning in to direct the show as it happens in
    the studio. One consideration is how 'live' is live streaming in
    flash. Does anyone know roughly what the delay from studio camera
    to end users machine is? I intend using a high-spec machine with
    good video card, flash media encoder, and Limelight Networks as the
    server provider.
    Thanks in advance
    Mike

    yes, we too have a very small delay in distributing the
    signal.
    But remember the buffer settings in the client. Typically
    that would be 3 seconds and anything smaller than that may result
    in a jiggly video stream.
    The internet itself was not meant as areal-time delivery
    medium, so delays may vary, opposite to classic media like tv or
    radio, where there were no varying delays (until dvb-t came up (=
    jan

  • IO delay causes buffered streams to hang

    I'm writing an application that uses the network and in order to test under slow conditions I created custom input/output streams that just puts in a delay in the basic read() and write(int b) methods before calling the method for the stream passed in the constructor. This allows me to find problems where the interface hangs under slow conditions etc. very quickly.
    The problem is that on buffered streams (I have specifically had trouble with BufferedReader and BufferedOutputStream) it causes the stream to just hang. It works fine without the stream with the delay but with it something is causing a hang. I think it may have something to do with the network because I don't have the problem with File IO. Does anybody know why a delay would cause a buffered stream to hang?

    Well the I know the socket has not timed out. I usually set the delay about 1 to 3 milliseconds. This will happen everytime a read() or write(int b) occurs so it is enough to slow things down.
    This is a code sample that shows the basic idea for reading in a file:
    import java.io.*;
    public class Example
    static class SlowInputStream extends InputStream
    private InputStream in;
    public SlowInputStream(InputStream i)
    in=i;
    public int read() throws IOException
    try { Thread.sleep(3); }
    catch(InterruptedException e) {}
    return in.read();
    public static void main(String[] args)
    throws IOException
    if(args.length==0)
    System.out.println("Need filename.");
    System.exit(0);
    SlowInputStream sis=new SlowInputStream(
    new FileInputStream(args[0]));
    BufferedReader in=new BufferedReader(
    new InputStreamReader(sis));
    String text;
    StringBuffer temp=new StringBuffer();
    while((text=in.readLine())!=null)
    temp.append(text);
    temp.append("\n");
    System.out.println(temp.toString());
    I would have posted a networking example but I create a subclass of PlainSocketImpl to so I can wrap all the streams networking streams and this requires to set the bootclasspath, but the above shows the basic technique.
    Thanks

  • Delay in music streaming?

    So I have a wireless music streaming set-up in my dorm room. However, I get a delay in terms of when I start playing a song to when its playing. Its not a major delay but enough to be a noticable difference.

    Hello,
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

  • Can I send large data as a stream in request or response

    I have to send a large amount of string data as a part of request to the web service provider. I cant send it as a simple string object as it will lead to OutOfMemory error. Is there any way so that i can send the data as a stream to the web service provider? I couldn't find anything in web service specification where InputStream data type is there.. so is there any alternative to send large amount of data to web service provider?
    Thank you.

    If you can use JAX-WS, I believe you can do it with DataHandlers. See the following for more information: http://forums.java.net/jive/thread.jspa?messageID=224340&#224340

  • Latencies / delay in live streams

    I'm doing some tests with FMS and live streaming, but I observe quite long delays.
    When the stream is first accessed, the latency is around 3-5 seconds, which is acceptable.
    But as we watch the stream for about 30 minutes or more, the latency grows to around 20 seconds, which is just too much.
    What settings should I look at to keep the latency / delay minimal?

    You're going to want to look at the bandwidth that you're pushing into your FMS system and the bandwidth you're getting out.  Usually when you see evolving live latency it's because there's a bandwidth bottleneck somewhere and you're dropping frames and falling behind as FMS attempts to deliver a stream that's too big for the destination.  If not then perhaps it's something else, but you'll want to eliminate that possibility first as it's the most common.
    Asa

  • Is this reasonable: many messages with large delay

    Hello,
    I am wondering if the following use case is reasonable with AQ.
    We want to use AQ as a timer service. Whenever a timer is needed, a message is enqueued with a delay representing the time between now and when the timer needs to fire. There could be up to 500K messages enqueued at all times (enqueue rate is same as dequeue rate). A typical delay would be anything from a few minutes to 3 days. There could also be delays of more than a year. Lastly, timers are cancelled quite often before they fire. This would be a dequeue by correlation id.
    Comments?
    Thanks...
    Roger

    I have never seen AQ utilized in this manner but the application concept is intriguing. Please email me if you go forward with it an have success.
    damorgan @ u.washington.edu
    (remove the spaces)
    Thank you.

  • Streaming large files issue (flash streaming media server)

    We are streaming a one hour F4V from streaming media server 3.5.2 and for some reason it is seeing our one hour video as being 10 hours long. We have tons of other videos and never ran into this problem in any of the other files. This is the only file that exceeds one hour. Any ideas. This occurs in the default player from the streaming server.

    Also before anyone asks we are using RTMP and the file type is F4V not FLV.

  • Delay when applying large, hierarchical type definitions

    Hello,
    I searched around using various terms, but couldn't readily find posts on what I'm experiencing.
    Has anyone else noticed huge delays when applying large, hierarchical type definitions?  I've got about a dozen nested type definitions of clusters, each containing anywhere from 10 to 100 controls, and they're used throughout a large application.  When I open any member of that hierarchy, make a small change, and hit apply, I see the hourglass (spinning ring of death in Vista/7) for a good two to five minutes.
    A short term workaround has been to close all dependent VIs and typedefs, and then make an isolated edit.  Then, if I open the whole application again, I see some compiling taking place, but it seems to take a lot less time than when the whole application is open.
    I could have sworn that I read a discussion by some others commiserating about this at some point, but now I can't find it.
    Has this been addressed, and has anyone heard if there's any development effort to improve this?
    Thanks,
    Jim

    Hi Fred,
    Thanks for getting back to me on this.
    > You could use more specific typedefs and not a massive one to pass data through VIs.
    It's funny, I've actually adopted using larger typdefs in the last year or two for architectural simplicity, and that's when I've noticed this becoming a problem. In fact, for what it's worth, right now I'm using a data reference to store the "data dictionary" (large typedef) but that doesn't really help the issue.
    From an architectural sense, it makes things easier for me because I have much fewer wires to pass around most of my data is in one place.
    > Or you could pass a queue reference to the subVIs and have the queue be made of of elements that are the large type definition.
    Actually, I'm using a data reference right now, which is somewhat analogous to what you're suggesting. (Maybe not? I also use queues and notifiers depending on the situation.) I haven't really seen this technique help the issue; I'm still noticing the large delays, but only when editing the typedefs.
    The only way I've really found relief is to separate the large typedef into smaller ones and pass them around separately. This is kind of a pain because it means I have many more references to data structures to keep track of.
    > If this is causing major problems, let me know, and I'll pass along your concerns to R&D.
    Actually, if I'm to be honest, it really is starting to become a hassle. I hit apply and end up working on something else for a few minutes while the compiler chugs away. I'd be really interested in an improvement in this area. If it makes things easier, I can discuss this via email and upload an application I'm working on as an example. (Multiple large apps I'm working on exhibit this behavior)
    Thanks again for your help.
    Regards,
    Jim

  • Strange, occasional, aborts of html response stream...

    Apex 4.1 with Apache, mod_plsql and gzip compression.
    This application is used by 2000+ users in Netherlands and Belgium.
    We have a few Belgium customers with the following issue (confirmed at one site, but I suspect the others have the same issue).
    Application works fine most of the time, but occasionally the html that is produced by the http-get call of 'f', is:
    a) streamed back to the browser in 'chunks', with large delays (> 60 seconds) in between.
    b) sometimes even never completes (in streaming all html back to the browser).
    We've observed this behavior by monitoring what's going on using Chrome's ctrl-shift-i, monitor network, feature.
    Also used WireShark to see if something unusual was happening: but it was not. No dropped packets, resends, or strange http errors.
    When we, in case this is happening, abort the page-request via the browser, and re-submit the request (by requesting the same Apex url again), it then always executes and completes normally.
    My main question now is: how can we diagnose this issue further?
    (I probably provided way too little information here, so feel free to post further clarification requests.)

    ok,
    I removed the html tags in the jsp-file and now acrobat reader does start.
    but it says the pdf file is damaged and cannot be repaired ...
    any ideas?
    gr
    Steppe

  • DSS problems when publishing large amount of data fast

    Has anyone experienced problems when sending large amounts of data using the DSS. I have approximately 130 to 150 items that I send through the DSS to communicate between different parts of my application.
    There are several loops publishing data. One publishes approximately 50 items in a rate of 50ms, another about 40 items with 100ms publishing rate.
    I send a command to a subprogram (125ms) that reads and publishes the answer on a DSS URL (app 125 ms). So that is one item on DSS for about 250ms. But this data is not seen on my man GUI window that reads the DSS URL.
    My questions are
    1. Is there any limit in speed (frequency) for data publishing in DSS?
    2. Can DSS be unstable if loaded to much?
    3. Can I lose/miss data in any situation?
    4. In the DSS Manager I have doubled the MaxItems and MaxConnections. How will this affect my system?
    5. When I run my full application I have experienced the following error Fatal Internal Error : ”memory.ccp” , line 638. Can this be a result of my large application and the heavy load on DSS? (se attached picture)
    Regards
    Idriz Zogaj
    Idriz "Minnet" Zogaj, M.Sc. Engineering Physics
    Memory Profesional
    direct: +46 (0) - 734 32 00 10
    http://www.zogaj.se

    LuI wrote:
    >
    > Hi all,
    >
    > I am frustrated on VISA serial comm. It looks so neat and its
    > fantastic what it supposes to do for a develloper, but sometimes one
    > runs into trouble very deep.
    > I have an app where I have to read large amounts of data streamed by
    > 13 µCs at 230kBaud. (They do not necessarily need to stream all at the
    > same time.)
    > I use either a Moxa multiport adapter C320 with 16 serial ports or -
    > for test purposes - a Keyspan serial-2-USB adapter with 4 serial
    > ports.
    Does it work better if you use the serial port(s) on your motherboard?
    If so, then get a better serial adapter. If not, look more closely at
    VISA.
    Some programs have some issues on serial adapters but run fine on a
    regular serial port. We've had that problem recent
    ly.
    Best, Mark

  • Upgrading HD for Sample Streaming: Which of these is better?

    Hello everyone,
    I'm in the market for a larger internal SATA drive for sample streaming in Logic. I currently have a Seagate 320GB drive, but NO backup drive! So I'm thinking of using the 320GB as my backup and getting a larger, 500GB sample drive. Should I do this, or do larger drives have problems streaming samples? If yes, which of these would be better suited for sample streaming.
    http://eshop.macsales.com/item/Maxtor/7H500F0/
    http://eshop.macsales.com/item/Seagate/ST3500630AS/
    Thank you very much for any help you can provide!

    Hi Jonathan,
    I recently boght a Seagate Barracuda to try it out, mainly for archiving but found it so fast that I got a second as a new audio drive. I now have two of these in my Mac Pro and it flies.
    One warning, however. In the UK, they're shipped with a jumper on, which restricts the speed to 1.5, not 3.0 Gbps. Just remove it and you'll get the machine flying at full speed. I don't know why Seagate do this but it's even documented on the drive case (check out the schematic above the jumpers bay). May be the same in the States but it's easy to check. It comes with only the one jumper (no master/slave as on old IDE drives) and remove it so there are none. Fixed.
    Buy with confidence.
    Pete

  • Streaming to smart tv

    Hello All,
    Hoping someone can help us out. We recently purchased a Samsung SmartTV (which we love) and got rid of our huge cable bill.
    I also have purchased the adaptor for my 2009 MacBook and the appropriate HDMI cable for the adaptor and the tv.
    I have been attempting to figure out how to stream from my Macbook to the tv, some shows or movies on Netflix, ShowTime Anywhere, etc., and even
    though I have followed instructions from the internet, and reputable sites, to no avail. I have managed to get the HDMI screen to show as an app, and past that the display screen, but no streaming.
    Quite flummoxed and any assistance would be greatly appreciated!!
    Thanks,
    Jane

    Jane,
    If you attach your MacBook via a Mini-Display-Port-to-HDMI adapter and a HDMI cable  to an HDMI input of a Samsung SmartTV, the TV effectively acts as an external display to your MacBook (make sure you switch the input of the TV to the HDMI port you plugged aforementioned HDMI cable into) and as such there ought not be any limitations to what content you can display on it - anything that can play back, stream, or display on your MacBook's built-in display can also do so on this TV.
    To configure what your MacBook displays on the attached TV, load your Displays panel in your System Preferences (in your Apple menu at the upper left hand corner of your screen). If it doesn't look like your TV is receiving a signal from your MacBook even though you've verified that your TV's input has been switched to the HDMI input you plugged the connected cable into, check your physical connections and/or click the "Detect Displays" button in the Displays panel.
    Once it looks like your TV is receiving video from your MacBook, take a look at the "Arrangement" tab that should be visible in the Displays panel whenever there is an active connection to an external display. In the Arrangement tab you can switch  mirroring (showing the same content on the MacBook's built-in display and the external display) on and off with a checkbox at the bottom of the panel.
    Mirroring is the least complicated way to configure your display connection to your TV, but it's got the potential disadvantage of not utilizing the full display resolution of your TV, since when you mirror your MacBook's built-in display, what's showing on the TV screen will essentially be a scaled up version of what you see on your MacBook.
    Then again, if you're watching online streaming content that likely wouldn't take advantage of your TV's full 1920x1080 HD resolution anyway, this might not matter and you might be happier with a mirrored MacBook display than figuring out how to arrange two desktops and move browser windows from your MacBook across to the un-mirrored TV display. Though, honestly, that isn't so hard to figure out - once you've turned off mirroring just play with the little representations of your built-in display (the smaller rectangle with the white bar across the top representing your menu) and your TV (the larger rectangle without a white bar across the top) in the Arrangement tab that will control their relative spatial arrangement to one another.
    Say—in an unmirrored display arrangement—you dragged the larger rectangle representing the TV to sit center atop the smaller rectangle representing your MacBook's screen - with this display arrangement you would move your mouse pointer from the latter to the former by moving it up beyond the menu bar at the top and it'll immediately appear at the bottom edge of the TV (and vice versa - the TV display virtually attaches the to top of the built-in display). In this arrangement you could grab a web browser window and drag it up past the menu bar to appear on the TV screen. Once you dragged a window to the TV screen you ought to be able to switch whatever it is you're playing back to full screen mode and see a seamless image on your TV.
    Once you got the display of content going to the TV configured to your liking, consider clicking on "Show All" on top of the System Preferences window to back out of the Displays panel and open the Sound panel to switch your MacBook's sound output from its built-in speakers to your TV's speakers, which ought to be appear in the list of sound output options with an active HDMI connection to a device capable of sound output (given that HDMI is capable of transferring audio as well).
    All that said - if you bought a brand-new Smart TV, why not do all the streaming you wish to do directly on the TV? A Smart TV is essentially a TV with an integrated set top box, meaning you can use applications installed on the TV directly to stream Netflix and a large host of other streaming providers without the need to tie up your laptop for the purpose. Here is a link to Samsung's overview of their 2013 Smart TV feature set.
    (ulf.)

Maybe you are looking for

  • Cannot download purchases music

    I have been having a problem lately (no change in setup), where I get an error when I try to download music from the ITMS. When I check for purchases, I get the following error: There was an error downloading your purchased music. The disk could not

  • System.out.println () is not working properly

    Hi, Why does this happens: Object temp=null; System.out.println ("temp is null? "+temp==null); just prints: true expected: temp is null? true Why does this happens???? If I do System.out.println ("temp is null? "+(temp==null)); it works bu it should

  • How to send a message to a pager? URGENT

    Hi everybody I wanna know how to send a message (or a caller's number) to a pager from Form.

  • Lightning VGA Adapter with Retina iPad

    I am having trouble getting a Lightning VGA Adapter working with an iOS 7 Retina iPad, although the same adapter/cable/display combo works perfectly with an iPhone 5.   When I attach the cable the display indicates a 1024x768 60 Hz input, but it stay

  • Loadmovie, problem with  (_droptarget ==)

    Hi all I have problem with loadmovie that drive me crazy!. I made a drag and drop quiz (attached) that works perfectly but when I load it in another movie it doesn't work anymore! The code that doesn't work is: if (getProperty("/face1", _droptarget)