{{ comp.header "Auto-Editor - Subcommands" }}
<body>
{{ comp.nav }}
<section class="section">
<div class="container">
<h1>Subcommands</h1>
<p>Subcommands are programs that have their own options, separate from the main auto-editor program. They typically serve an auxiliary function.</p>
<p>Examples:</p>
<pre><code>auto-editor info example.mp4
auto-editor grep "pattern" file_with_subtitles.mp4
</code></pre>
<p>Subcommands can also be called by themselves with the ae prefix:</p>
<pre><code>aeinfo example.mp4
aegrep "pattern" file_with_subtitles.mp4
</code></pre>
<h2>Info</h2>
<p>The <code>info</code> subcommand accepts filenames and outputs basic media info like duration, fps, etc.</p>
<pre><code>auto-editor info example.mp4 resources/man_on_green_screen.gif

file: example.mp4
 - video tracks: 1
   - Track #0
     - codec: h264
     - pix_fmt: yuv420p
     - time_base: 1/30000
     - fps: 30
     - resolution: 1280x720 (16:9)
     - bitrate: 240 kb/s
 - audio tracks: 1
   - Track #0
     - codec: aac
     - samplerate: 48000
     - bitrate: 317 kb/s
 - container:
   - duration: 00:00:42.45
   - bitrate: 569 kb/s

file: resources/man_on_green_screen.gif
 - video tracks: 1
   - Track #0
     - codec: gif
     - pix_fmt: bgra
     - time_base: 1/100
     - fps: 30
     - resolution: 1280x720 (16:9)
 - container:
   - duration: 00:00:24.41
   - bitrate: 1649 kb/s
</code></pre>
<p>You can also check for additional information with options.</p>
<pre><code>auto-editor info example.mp4 --has-vfr

file: example.mp4
 - video tracks: 1
   - Track #0
     - codec: h264
     - pix_fmt: yuv420p
     - time_base: 1/30000
     - fps: 30
     - resolution: 1280x720 (16:9)
     - bitrate: 240 kb/s
 - audio tracks: 1
   - Track #0
     - codec: aac
     - samplerate: 48000
     - bitrate: 317 kb/s
 - container:
   - duration: 00:00:42.45
   - bitrate: 569 kb/s
</code></pre>
<h2>Grep</h2>
<p>The <code>grep</code> subcommand searches and displays regex matches in media subtitles.</p>
<pre><code># search for the pattern "the" in the Movie.mkv subtitles.
auto-editor grep the_movie.mkv</code></pre>
<p>List of all subcommands currently available:</p>
<ul>
  <li>info</li>
  <li>grep</li>
  <li>levels</li>
  <li>subdump</li>
  <li>test (for devs, cannot be called with an ae prefix)</li>
</ul>
</div>
</section>
</body>
</html>
