title: FFmpeg error - unspecified pixel format for pipe input
body: <p>I'm trying to convert stream into mp4 file using ffmpeg</p>
  <pre><code>ffmpeg -i pipe:0 -c:v libx264 -crf 20 -an -s 800x600 -q:v 31 output.mp4
  </code></pre>
  <p>Output:</p>
  <pre><code>[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55e63529aec0] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1280x720, 3001 kb/s): unspecified pixel format
  Consider increasing the value for the 'analyzeduration' and 'probesize' options
  Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'pipe:0':
    Metadata:
      major_brand     : isom
      minor_version   : 512
      compatible_brands: isomiso2avc1mp41
      encoder         : Lavf58.45.100   Duration: 00:03:03.15, start: 0.000000, bitrate: N/A
      Stream #0:0(und): Video: h264 (avc1 / 0x31637661), none, 1280x720, 3001 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 24k tbn, 48k tbc (default)
      Metadata:
        handler_name    : VideoHandler
      Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
      Metadata:
        handler_name    : Stereo
  Stream mapping:
    Stream #0:0 -&gt; #0:0 (h264 (native) -&gt; h264 (libx264))
  [mov,mp4,m4a,3gp,3g2,mj2 @0x55e63529aec0] stream 0, offset 0x30: partial file pipe:0: Invalid data found when processing input
  Cannot determine format of input stream 0:0 after EOF Error marking filters as finished
  Conversion failed!
  </code></pre>
  <p><strong>What I've tried:</strong></p>
  <p>to increase <code>analyzeduration</code> and <code>probesize</code> values in the command</p>
  <pre><code>ffmpeg -analyzeduration 100M -probesize 100M -i pipe:0 -c:v libx264 -crf 20 -an -s 800x600 -q:v 31 output.mp4
  </code></pre>
  <p>but I still have the same error.</p>
  <p>Update:</p>
  <pre><code>ffmpeg -f mp4 -i pipe:0 -c:v libx264 -f mp4 output.mp4
  </code></pre>
  <p>this command with formmating stream as mp4 actually works with smaller files. I still have issues with bigger files. <a href="https://stackoverflow.com/questions/71082725/dockerfile-install-newer-version-of-the-ffmpeg-package">I'm suspecting on dockerfile with specfic ffmpeg package</a></p>