<div dir="auto"><div><br><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">чт, 29 мая 2025 г., 23:42 Terje J. Hanssen via Cin <<a href="mailto:cin@lists.cinelerra-gg.org">cin@lists.cinelerra-gg.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>

  

    
  
  <div>
    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 href="https://unix.stackexchange.com/questions/1670/how-can-i-use-ffmpeg-to-split-mpeg-video-into-10-minute-chunks" target="_blank" rel="noreferrer">https://unix.stackexchange.com/questions/1670/how-can-i-use-ffmpeg-to-split-mpeg-video-into-10-minute-chunks</a><br>
    <div>
      <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>
    </div></blockquote></div></div><div dir="auto">Very interesting question! Never tried this, did not even know it existed!</div><div dir="auto"><br></div><div dir="auto">As long as this -f just ordinary avformat muxer you probably can copy your favourite ffmpeg video/audio profiles with new .seg name and put "segmented" at very first line there , where "mov" or "matroska" or other format name was, and add rest of options. And add pattern (%02d) into name just as with ffmpeg-based image lists.</div><div dir="auto"><br></div><div dir="auto">I'll try this with termux's version, but I do not have audio here so it will be incomplete.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br>
    Terje J. H<br>
    <br>
    <br>
    <br>
    <br>
  </div>

-- <br>
Cin mailing list<br>
<a href="mailto:Cin@lists.cinelerra-gg.org" target="_blank" rel="noreferrer">Cin@lists.cinelerra-gg.org</a><br>
<a href="https://lists.cinelerra-gg.org/mailman/listinfo/cin" rel="noreferrer noreferrer" target="_blank">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
</blockquote></div></div></div>