title: FFMPEG corrupting audio data when trying to edit metadata
body: <p>I'm trying to use FFMPEG to edit some metadata in Powershell. My problem is that FFMPEG simply outputs an audio file with the correct metadata, but the audio does not play. The length of the track is reduced to a fraction of a second. Here is the command I'm using in Powershell:</p>
  
  <pre><code>&amp; $ffmpeg -y -i $flac.fullname -c copy -metadata track="$tracknumber" $flac.fullname
  </code></pre>
  
  <p>Previously, I tried having <code>-map 0:0</code> in there too, but it didn't make a difference. Thanks for any help.</p>
  
  <p>Edit: I'm not sure if this is intentional behavior or not, but if I change the output path to be a new destination (rather than saving over the old destination) it does work correctly. So as a workaround, I'm just using a temp folder as an output then moving the files back to where I want them.</p>