<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Is it possible with CinGG's Record utility (via FFMPEG) to record a
    stream to file segments of same duration or file size and use
    auto-naming?<br>
    <br>
    Typical example:<br>
    Record a video/audio input stream (i.e from playing a camcorder tape
    cassette) and encode to output file segments of 10 minutes or 10 GB
    each and auto-name file numbers.<br>
    <br>
    Similar example code using an input file instead at<br>
    <a class="moz-txt-link-freetext"
href="https://unix.stackexchange.com/questions/1670/how-can-i-use-ffmpeg-to-split-mpeg-video-into-10-minute-chunks">https://unix.stackexchange.com/questions/1670/how-can-i-use-ffmpeg-to-split-mpeg-video-into-10-minute-chunks</a><br>
    <div class="s-prose js-post-body" itemprop="text">
      <p>Just use what is built into ffmpeg to do exactly this.</p>
      <pre><code><font size="5">ffmpeg -i invid.mp4 -threads 3 \
       -vcodec copy <b>-f segment -segment_time 10:00 \
       -reset_timestamps 1 \
       cam_out_h264_%02d.mp4</b></font>
</code></pre>
      <p>This will split it into roughly 10-minute chunks, split at the
        relevant keyframes, and will output to the files <b><font
            size="4"><code>cam_out_h264_01.mp4</code>, <code>cam_out_h264_02.mp4</code></font></b>,
        etc.</p>
    </div>
    <br>
    Terje J. H<br>
    <br>
    <br>
    <br>
    <br>
  </body>
</html>