title: FFMPEG Growing Input files
body: <p>I'm having issues with piping the ffmpeg out to the ffmpeg input. I have tried as below</p>
  <pre><code>ffmpeg -i &quot;y:\3000012936-TXMHD.mxf&quot; -vcodec copy -acodec copy -f mpegts pipe:1 | ffmpeg -re -i pipe:0 -pix_fmt yuv420p -vsync 1 -map 0:v:0 -map 0:a:0 -c:a aac -c:v libx264 -use_template 1 -use_timeline 1 -init_seg_name  &quot;init-stream$RepresentationID$-$Bandwidth$.mp4&quot; -media_seg_name &quot;chunk-stream$RepresentationID$-$Number%05d$.$ext$&quot; -b:v 1500k -b:a 128k -ac 2 -profile:v main -level:v 3.0  -s 1920x1080 -r 25 -vsync passthrough -increment_tc 1 -adaptation_sets &quot;id=0,streams=v id=1,streams=a&quot; -g 100 -keyint_min 100 -seg_duration 5 -frag_duration 5  -dash_segment_type auto -f dash  &quot;stream.mpd&quot;
  </code></pre>
  <p>But I'm getting an error:</p>
  <blockquote>
  <p>Conversion failed! av_interleaved_write_frame(): Broken pipe Error
  writing trailer of pipe:1: Broken pipe</p>
  </blockquote>
  <p>The input file is MXF, and output is going to be MPEG DASH. The reason to do the piping is because the input file is a growing mxf file. If i do it without piping the ffmpeg just closes before the mxf file is written completely.</p>