<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    What BS1770GAIN does is best approximated by the following FFmpeg
    command (copying the video stream, transcoding the audio stream into
    FLAC and muxing both into a MKV container):<br>
    <blockquote>
      <pre>$ ffmpeg -i sample/20030213-cvs.mpeg -vcodec copy -acodec flac -y ffmpeg/20030213-cvs.mkv</pre>
    </blockquote>
    FFmpeg aborts with the following error message:<br>
    <blockquote>
      <pre>[matroska @ 02a9ae00] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument</pre>
    </blockquote>
    Google for that error. You will see that it is known for a long
    time.<br>
    <br>
    It's not the aim of BS1770GAIN to work around FFmpeg's bugs (it is
    impossible anyway). We hope that some day the bugs in FFmpeg will be
    fixed (a lot of them are meanwhile gone, some fixes I've provided
    myself.)<br>
    <br>
    The best way for organizing your workflow is as a first step before
    running BS1770gain is to remux all your files into a proper MKV
    using "mkvmerge".<br>
    <br>
    In my opinion, choosing MKV as the intermediate container while
    working with multimedia files is the best choice anyway.<br>
    <br>
    Best regards,<br>
    <br>
    Peter<br>
  </body>
</html>