Subcommands

Subcommands are programs that have their own options, separate from the main auto-editor program. They typically serve an auxiliary function.

Examples:

auto-editor info example.mp4
auto-editor grep "pattern" file_with_subtitles.mp4

Subcommands can also be called by themselves with the ae prefix:

aeinfo example.mp4
aegrep "pattern" file_with_subtitles.mp4

Info

The info subcommand accepts filenames and outputs basic media info like duration, fps, etc.

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

You can also check for additional information with options.

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

Grep

The grep subcommand searches and displays regex matches in media subtitles.

# search for the pattern "the" in the Movie.mkv subtitles.
auto-editor grep the_movie.mkv

List of all subcommands currently available: