Skip to content

v1.7.0

Latest
Compare
Choose a tag to compare
@mmguero mmguero released this 16 Sep 17:36
· 1 commit to main since this release
797b688

Address #36 by adding options for --audio-stream-list and --audio-stream-index index. For example:

  • list the audio streams
$ cleanvid -i Princess.Mononoke.mkv --audio-stream-list
1: aac, 48000 Hz, stereo, jpn
2: aac, 48000 Hz, stereo, eng
  • clean the selected audio stream
$ cleanvid -i Princess.Mononoke.mkv --audio-stream-index 2
  • attempting to clean a multi-audio-stream file without selecting which one you want raises an exception:
$cleanvid -i Princess.Mononoke.mkv
Traceback (most recent call last):
  File "cleanvid", line 8, in <module>
    sys.exit(RunCleanvid())
             ^^^^^^^^^^^^^
  File "cleanvid.py", line 834, in RunCleanvid
    cleaner.MultiplexCleanVideo()
  File "cleanvid.py", line 565, in MultiplexCleanVideo
    raise ValueError(
ValueError: Multiple audio streams, specify audio stream index with --audio-stream-index

The other, non-selected audio streams should go straight into the output video file as-is, completely untouched. The selected audio stream should be the only audio stream that's affected by the filter.