title: Ffmpeg stream works from cli but not inside bash script, no errors
body: <p>I'm running an Ffmpeg stream on Ubuntu writing to an rtp address, and it appears to work perfectly from my cli every time but fails to actually write anything from inside a bash script. After running from inside the cli, the bash script works every time I run it for about the next 5 minutes and then starts failing without errors again.</p>
  <p>Here is the command:</p>
  <pre><code>ffmpeg -i video.mp4 -fflags nobuffer -flags low_delay -s 640x480 -c:v libx264 -profile:v baseline -b:v 2M -r 24 -g 60 -an -rtsp_transport tcp -f rtp rtp://CENSOREDCENSORED:0000
  </code></pre>
  <p>Here is the bash script:</p>
  <pre><code>#!/bin/bash
  
  ffmpeg -i video.mp4 -fflags nobuffer -flags low_delay -s 640x480 -c:v libx264 -profile:v baseline -b:v 2M -r 24 -g 60 -an -rtsp_transport tcp -f rtp rtp://CENSOREDCENSORED:0000
  </code></pre>
  <p>And here is the same output to cli for both of them:</p>
  <pre><code>ffmpeg version 3.4.11-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers
    built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
    configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
    libavutil      55. 78.100 / 55. 78.100
    libavcodec     57.107.100 / 57.107.100
    libavformat    57. 83.100 / 57. 83.100
    libavdevice    57. 10.100 / 57. 10.100
    libavfilter     6.107.100 /  6.107.100
    libavresample   3.  7.  0 /  3.  7.  0
    libswscale      4.  8.100 /  4.  8.100
    libswresample   2.  9.100 /  2.  9.100
    libpostproc    54.  7.100 / 54.  7.100
  Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mp4':
    Metadata:
      major_brand     : isom
      minor_version   : 512
      compatible_brands: isomiso2avc1mp41
      encoder         : Lavf58.76.100
    Duration: 00:00:26.00, start: 0.000000, bitrate: 227 kb/s
      Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x480, 226 kb/s, 2.31 fps, 2.31 tbr, 18464 tbn, 4.62 tbc (default)
      Metadata:
        handler_name    : VideoHandler
  Stream mapping:
    Stream #0:0 -&gt; #0:0 (h264 (native) -&gt; h264 (libx264))
  Press [q] to stop, [?] for help
  [libx264 @ 0x5585318623c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
  [libx264 @ 0x5585318623c0] profile Constrained Baseline, level 3.0
  Output #0, rtp, to 'rtp://us.robotics.cognitedata.com:5005':
    Metadata:
      major_brand     : isom
      minor_version   : 512
      compatible_brands: isomiso2avc1mp41
      encoder         : Lavf57.83.100
      Stream #0:0(und): Video: h264 (libx264), yuv420p, 640x480, q=-1--1, 2000 kb/s, 24 fps, 90k tbn, 24 tbc (default)
      Metadata:
        handler_name    : VideoHandler
        encoder         : Lavc57.107.100 libx264
      Side data:
        cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 0 vbv_delay: -1
  SDP:
  v=0
  o=- 0 0 IN IP4 127.0.0.1
  s=No Name
  c=IN IP4 20.232.153.224
  t=0 0
  a=tool:libavformat 57.83.100
  m=video 5005 RTP/AVP 96
  b=AS:2000
  a=rtpmap:96 H264/90000
  a=fmtp:96 packetization-mode=1
  
  frame=  624 fps=194 q=-1.0 Lsize=    6288kB time=00:00:25.95 bitrate=1984.3kbits/s dup=564 drop=0 speed=8.08x
  video:6226kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.992690%
  [libx264 @ 0x5585318623c0] frame I:11    Avg QP: 2.77  size:132437
  [libx264 @ 0x5585318623c0] frame P:613   Avg QP: 4.97  size:  8024
  [libx264 @ 0x5585318623c0] mb I  I16..4: 20.2%  0.0% 79.8%
  [libx264 @ 0x5585318623c0] mb P  I16..4:  0.8%  0.0%  2.0%  P16..4: 12.3%  1.0%  1.2%  0.0%  0.0%    skip:82.6%
  [libx264 @ 0x5585318623c0] final ratefactor: 6.07
  [libx264 @ 0x5585318623c0] coded y,uvDC,uvAC intra: 87.7% 87.0% 68.2% inter: 8.6% 7.0% 6.6%
  [libx264 @ 0x5585318623c0] i16 v,h,dc,p: 34% 15% 41% 10%
  [libx264 @ 0x5585318623c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 43% 24% 13%  3%  3%  3%  4%  3%  4%
  [libx264 @ 0x5585318623c0] i8c dc,h,v,p: 36% 22% 37%  6%
  [libx264 @ 0x5585318623c0] ref P L0: 97.5%  1.9%  0.6%
  [libx264 @ 0x5585318623c0] kb/s:1961.69
  </code></pre>
  <p>The ffmpeg stream also fails from inside of a docker image.</p>