title: Convert video to bagfile
body: <p>I am trying to convert a video to bagfile(.bag). I found this question: <a href="https://stackoverflow.com/q/31432870/6938984">How do I convert a video or a sequence of images to a bag file?</a> and implemented the solution <a href="https://stackoverflow.com/a/38093683/6938984">https://stackoverflow.com/a/38093683/6938984</a>. However when I play it with <code>rosrun play bagfile.bag</code> , it gives this error:</p>
  
  <blockquote>
    <p>Error: Index entry for topic camera/image_raw contains invalid time. This message will not be loaded.</p>
  </blockquote>
  
  <p>How can I solve this?</p>
  
  <p>Thank you. </p>