diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-23 20:01:25 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-23 20:01:25 -0500 |
| commit | 34181c70d37cc5bf44050fc42c7495258be0ce7a (patch) | |
| tree | d04eeb7c9e7007950cad783c013c72e617b8e383 /tests/test-cj-cache-lib.el | |
| parent | 4dc17e8e74a09daca9a4d71d32b9a2dcac673507 (diff) | |
| download | dotemacs-34181c70d37cc5bf44050fc42c7495258be0ce7a.tar.gz dotemacs-34181c70d37cc5bf44050fc42c7495258be0ce7a.zip | |
fix(dwim-shell): build video-concat filelist in elisp
cj/dwim-shell-commands-concatenate-videos built the ffmpeg concat list with echo '<<*>>' | tr ' ' '\n' | sed 's/^/file /'. That splits on spaces, so any video whose name contains a space produced a broken list, and a name with a quote broke the echo outright.
I extracted cj/dwim-shell--build-concat-filelist, which renders each path as an escaped file '...' line. I write that list to a temp file and run ffmpeg against the quoted listfile, with a trailing rm to clean up after the process exits. The <<*>> token stays only as an inert shell comment, since dwim-shell needs it to run one command over all marked files instead of once per file.
Diffstat (limited to 'tests/test-cj-cache-lib.el')
0 files changed, 0 insertions, 0 deletions
