title: Fix flv files that stop early
body: <p>I downloaded some flv videos some time ago and when watching them they stop at a point. If I skip past that point they continue playing fine up until another point which I can then skip past again (and the cycle goes on until the end of the video)</p>
  
  <p>I already tried</p>
  
  <p><code>avconv -i input.flv -acodec copy -vcodec copy -g 1 output.flv</code></p>
  
  <p><strike>To my understanding from reading alot of mostly useless posts regarding this issue the there isn't any keyframes in my metadata and then stop when there is a bad frame.</strike></p>
  
  <p>I tried setting -g higher but output.flv stops at the same point as where the original file stops for the first time. Is there any tool that can fix this.</p>
  
  <p>I can't remember where the original links are located and re-downloading isn't a option and as you can see my re-encoding attempts has failed.</p>
  
  <p><strike>I am using Linux Ubuntu, so I can't use the Windows tools that are available.</strike></p>
  
  <p><strong>EDIT</strong></p>
  
  <p>After alot of struggle I still haven't been able to fix the file.</p>
  
  <p>I was wrong in my assumption that the MetaData is the problem. After trying an array of tools I found that most of them stopped with End of File (In the middle of the file).</p>
  
  <p>The Metadata is what it should be. (I successfully extracted it). It seems the streams is corrupt. I tried re-muxing,re-encoding injecting MetaData none of them worked they produced file that still stuck at same spot or simply the stream up until the bad spot.</p>
  
  <p>My problem is the exactly the same as listed here : <a href="http://hardforum.com/showthread.php?t=1693374" rel="noreferrer">link</a></p>
  
  <p>Any help would be greatly appreciated. I'll take any solution even if I have to hack out a bit of the file with a hex editor. (I tried removing what I though was the bad bit but that caused it to not play at all)</p>
  
  <p>I have a Windows machine at my disposal now so running windows utilities isn't a problem any more.</p>