21w24a
What's New
Search for media subtitles with regex with the new grep subcommand.
Usage:
auto-editor grep [PATTERN] [FILE]
Example:
auto-editor grep op resources/subtitle.mp4
grep has a number of options as well.
auto-editor grep -h
--max_count, -m: Stop reading a file after NUM matching lines
--count, -c: Suppress normal output; instead print count of matching lines for
each file.
--ignore_case, -i: Ignore case distinctions for the PATTERN.
--my_ffmpeg: use your ffmpeg and other binaries instead of the ones packaged.
--help, -h: print info about the program or an option and exit.
input: the path to a file you want inspected.
Auto-Editor will now gracefully exit when interrupted.
Before:
[wyattblue] auto-editor % auto-editor example.mp4
^CTraceback (most recent call last):░░░░░░] 23.4% done ETA 22:04
File "/usr/local/bin/auto-editor", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/auto_editor/__main__.py", line 730, in main
makeVideoFile(inp, chunks, newOutput)
File "/usr/local/lib/python3.9/site-packages/auto_editor/__main__.py", line 701, in makeVideoFile
renderAv(ffmpeg, inp, args, chunks, speeds, fps, has_vfr, TEMP, log)
File "/usr/local/lib/python3.9/site-packages/auto_editor/renderVideo.py", line 128, in renderAv
in_bytes = frame.to_ndarray().tobytes()
File "av/video/frame.pyx", line 261, in av.video.frame.VideoFrame.to_ndarray
File "av/video/frame.pyx", line 58, in av.video.frame.useful_array
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 982, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 925, in _find_spec
File "<frozen importlib._bootstrap_external>", line 1414, in find_spec
File "<frozen importlib._bootstrap_external>", line 1386, in _get_spec
File "<frozen importlib._bootstrap_external>", line 1513, in find_spec
File "<frozen importlib._bootstrap_external>", line 142, in _path_stat
KeyboardInterrupt
After
[wyattblue] % auto-editor example.mp4
^C
Error! Keyboard Interrupt
Dev Stuff
Added future statements.
Renamed more camelCase variables to snake_case
Reorganized a lot of files. for example, renderVideo.py to render/av.py and render/opencv.py.
Fixed some minor issues in the Installing article.
Future
all camelCase files will eventually be moved.
vanparse will be rewritten so that it can support Python 2.7
Linking audio-video clips doesn't work in DaVinci Resolve 17, although some steps have been taken, it appears that the problem persists.
Full Changelog: 21w22a...21w24a