ffmpeg high packet loss with UDP outputffmpeg: Converting MKV to MP4 losslessUbuntu Screencasting:...

Doing something right before you need it - expression for this?

Was any UN Security Council vote triple-vetoed?

Paid for article while in US on F-1 visa?

Can a Cauchy sequence converge for one metric while not converging for another?

"You are your self first supporter", a more proper way to say it

Why does Kotter return in Welcome Back Kotter?

Are the number of citations and number of published articles the most important criteria for a tenure promotion?

High voltage LED indicator 40-1000 VDC without additional power supply

Important Resources for Dark Age Civilizations?

What's the point of deactivating Num Lock on login screens?

Is it legal for company to use my work email to pretend I still work there?

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?

Why can't I see bouncing of a switch on an oscilloscope?

Roll the carpet

What typically incentivizes a professor to change jobs to a lower ranking university?

Codimension of non-flat locus

Client team has low performances and low technical skills: we always fix their work and now they stop collaborate with us. How to solve?

How does one intimidate enemies without having the capacity for violence?

How to format long polynomial?

What are these boxed doors outside store fronts in New York?

Are astronomers waiting to see something in an image from a gravitational lens that they've already seen in an adjacent image?

Can you really stack all of this on an Opportunity Attack?

Why doesn't H₄O²⁺ exist?

Has there ever been an airliner design involving reducing generator load by installing solar panels?



ffmpeg high packet loss with UDP output


ffmpeg: Converting MKV to MP4 losslessUbuntu Screencasting: Libavdevice segmentation faultRe-stream (forward) UDP-Live-Video-Stream (using winsock) reduce video quality?How to save udp stream to .ts files whith ffmpeg while keeping timestamp?FFmpeg - Cut video into segments, transcode them individually, then concatenate & output to .tsFFMPEG realtime streaming using a remote m3u8NGINX / RTMP / HLS live stream on Raspberry pi (Debian 8.4)RTSP -> HLS using FFMPEGFfmpeg Random access indicator bitFFMPEG HLS - Create playlist only or predict segment times before encoding






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







2















I'm trying to transcode our hls streams into UDP multicast stream using ffmpeg, and I'm getting too many lost packets.



I'm using following command to transcode



ffmpeg 
-loglevel warning
-nostats
-re
-max_reload 2
-i "http://hls-server/stream/playlist.m3u8"
-c:v copy
-c:a copy
-f mpegts
-flush_packets 0
"udp://remote-ip:40001?pkt_size=1316&buffer_size=8388608"


on the remote host I'm running client that checks mpegts headers continuity counter, and I'm getting an errors few times a minute.



I've tested the link between servers using iperf - 100 mb/s for half a hour without single packet lost.



I had this test running in parallel with ffmpeg and there was aforementioned packet loss for ffmpeg stream, but no packet loss for iperf.



I've already tried tweaking net.core.rmem_max and net.core.wmem_max with no success. I've tried increasing nic buffers using ethtool -G tx xxx also with no success. And I've already tried multiple versions of ffmpeg 3.3.9, 3.4.5, 4.0.3, and 4.1.



Do anyone have idea what could case this issue and how to fix it?










share|improve this question































    2















    I'm trying to transcode our hls streams into UDP multicast stream using ffmpeg, and I'm getting too many lost packets.



    I'm using following command to transcode



    ffmpeg 
    -loglevel warning
    -nostats
    -re
    -max_reload 2
    -i "http://hls-server/stream/playlist.m3u8"
    -c:v copy
    -c:a copy
    -f mpegts
    -flush_packets 0
    "udp://remote-ip:40001?pkt_size=1316&buffer_size=8388608"


    on the remote host I'm running client that checks mpegts headers continuity counter, and I'm getting an errors few times a minute.



    I've tested the link between servers using iperf - 100 mb/s for half a hour without single packet lost.



    I had this test running in parallel with ffmpeg and there was aforementioned packet loss for ffmpeg stream, but no packet loss for iperf.



    I've already tried tweaking net.core.rmem_max and net.core.wmem_max with no success. I've tried increasing nic buffers using ethtool -G tx xxx also with no success. And I've already tried multiple versions of ffmpeg 3.3.9, 3.4.5, 4.0.3, and 4.1.



    Do anyone have idea what could case this issue and how to fix it?










    share|improve this question



























      2












      2








      2








      I'm trying to transcode our hls streams into UDP multicast stream using ffmpeg, and I'm getting too many lost packets.



      I'm using following command to transcode



      ffmpeg 
      -loglevel warning
      -nostats
      -re
      -max_reload 2
      -i "http://hls-server/stream/playlist.m3u8"
      -c:v copy
      -c:a copy
      -f mpegts
      -flush_packets 0
      "udp://remote-ip:40001?pkt_size=1316&buffer_size=8388608"


      on the remote host I'm running client that checks mpegts headers continuity counter, and I'm getting an errors few times a minute.



      I've tested the link between servers using iperf - 100 mb/s for half a hour without single packet lost.



      I had this test running in parallel with ffmpeg and there was aforementioned packet loss for ffmpeg stream, but no packet loss for iperf.



      I've already tried tweaking net.core.rmem_max and net.core.wmem_max with no success. I've tried increasing nic buffers using ethtool -G tx xxx also with no success. And I've already tried multiple versions of ffmpeg 3.3.9, 3.4.5, 4.0.3, and 4.1.



      Do anyone have idea what could case this issue and how to fix it?










      share|improve this question
















      I'm trying to transcode our hls streams into UDP multicast stream using ffmpeg, and I'm getting too many lost packets.



      I'm using following command to transcode



      ffmpeg 
      -loglevel warning
      -nostats
      -re
      -max_reload 2
      -i "http://hls-server/stream/playlist.m3u8"
      -c:v copy
      -c:a copy
      -f mpegts
      -flush_packets 0
      "udp://remote-ip:40001?pkt_size=1316&buffer_size=8388608"


      on the remote host I'm running client that checks mpegts headers continuity counter, and I'm getting an errors few times a minute.



      I've tested the link between servers using iperf - 100 mb/s for half a hour without single packet lost.



      I had this test running in parallel with ffmpeg and there was aforementioned packet loss for ffmpeg stream, but no packet loss for iperf.



      I've already tried tweaking net.core.rmem_max and net.core.wmem_max with no success. I've tried increasing nic buffers using ethtool -G tx xxx also with no success. And I've already tried multiple versions of ffmpeg 3.3.9, 3.4.5, 4.0.3, and 4.1.



      Do anyone have idea what could case this issue and how to fix it?







      linux ffmpeg streaming udp






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 27 '18 at 20:36









      zx485

      1,3691914




      1,3691914










      asked Dec 27 '18 at 19:24









      Tomáš HavlasTomáš Havlas

      111




      111






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1388213%2fffmpeg-high-packet-loss-with-udp-output%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1388213%2fffmpeg-high-packet-loss-with-udp-output%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...