filepattern

FFMPEG multiple file pattern not working in single command

≯℡__Kan透↙ 提交于 2020-01-06 08:06:41
问题 I want to add multiple file sequences in single ffmpeg command, below is my code, video is getting created but only first image sequence is getting used, second is getting ignored ffmpeg -y -i input.mp4 -start_number 0000001 -i 1/%07d.png -i 2/%07d.png -filter_complex "[0][1]overlay=x=10:y=10:enable='between(t,0,3)'[v1];[v1][2]overlay=x=10:y=10:enable='between(t,3.8561422222222,6.9761777777778)'[v2]" -map "[v2]" -map 0:a out.mp4 Now the problem is FFMPEG wants continous images, which i don't

FFMPEG multiple file pattern not working in single command

风格不统一 提交于 2020-01-06 08:04:28
问题 I want to add multiple file sequences in single ffmpeg command, below is my code, video is getting created but only first image sequence is getting used, second is getting ignored ffmpeg -y -i input.mp4 -start_number 0000001 -i 1/%07d.png -i 2/%07d.png -filter_complex "[0][1]overlay=x=10:y=10:enable='between(t,0,3)'[v1];[v1][2]overlay=x=10:y=10:enable='between(t,3.8561422222222,6.9761777777778)'[v2]" -map "[v2]" -map 0:a out.mp4 Now the problem is FFMPEG wants continous images, which i don't

IntelliJ File mask not working on simple excluding file pattern! Why?

放肆的年华 提交于 2020-01-02 03:24:05
问题 Follows this page https://www.jetbrains.com/help/pycharm/2016.1/find-and-replace-in-path.html?origin=old_help#mask , it should be able to exclude many files using "!" symbol in front of the regular pattern like: *.java, when doing text search inside IntelliJ projects. On my project, when I fired Ctrl + Shift + F to do text search for string xyz. There's over 100+ results return in both *.ftl and *.java files. I tried to reduce the results on only ftl files by changing the "File mask(s)"

GIT: I want to unstage all files matching a certain pattern

强颜欢笑 提交于 2019-12-30 06:06:50
问题 I would like to run git reset *.foo but this errors out. I think I need to use a pipe, but I'm not sure how to do this. Thanks! 回答1: for i in `git status --porcelain | grep '^D.*\.foo$' | sed 's/^D \+//'`; do git reset HEAD "$i" git checkout "$i" done 回答2: If you are using Powershell the following will work. gci -re -in *foo | %{ git reset $_ } 回答3: This should work in cygwin and unix env git reset $(git diff --name-only --cached | grep *.foo) 回答4: In a Git GUI application like SmartGit I

How do I get mocha to execute tests in all subfolders recursively?

≡放荡痞女 提交于 2019-12-24 19:31:54
问题 I have my tests grouped in folders, like this: test/ ├── unit/ ├── integration/ └── acceptance/ In each of the above folders, there are a number of test files (e.g. test.js ) I execute my different test suites with the following commands: mocha test/unit/**/*.js mocha test/integration/**/*.js mocha test/acceptance/**/*.js I recently decided to add a subfolder to test/unit , to organise things a bit: test/ └── unit/ ├── subfolder/ │ └── new.test.js ├── foo.test.js └── bar.test.js But now mocha

GIT: I want to unstage all files matching a certain pattern

耗尽温柔 提交于 2019-12-01 03:37:48
I would like to run git reset *.foo but this errors out. I think I need to use a pipe, but I'm not sure how to do this. Thanks! for i in `git status --porcelain | grep '^D.*\.foo$' | sed 's/^D \+//'`; do git reset HEAD "$i" git checkout "$i" done If you are using Powershell the following will work. gci -re -in *foo | %{ git reset $_ } This should work in cygwin and unix env git reset $(git diff --name-only --cached | grep *.foo) In a Git GUI application like SmartGit I would filter the displayed files by the pattern *.foo , press Ctrl+A to select all the filtered files and invoke the Unstage

Recursively add files by pattern

前提是你 提交于 2019-11-26 23:34:12
How do I recursively add files by a pattern (or glob) located in different directories? For example, I'd like to add A/B/C/foo.java and D/E/F/bar.java (and several other java files) with one command: git add '*.java' Unfortunately, that doesn't work as expected. Sergio Acosta's answer is probably your best bet if some of the files to be added may not already be tracked. If you want to limit yourself to files git already knows about, you could combine git-ls-files with a filter: git ls-files [path] | grep '\.java$' | xargs git add Git doesn't provide any fancy mechanisms for doing this itself,

Recursively add files by pattern

痴心易碎 提交于 2019-11-26 09:15:01
问题 How do I recursively add files by a pattern (or glob) located in different directories? For example, I\'d like to add A/B/C/foo.java and D/E/F/bar.java (and several other java files) with one command: git add \'*.java\' Unfortunately, that doesn\'t work as expected. 回答1: Sergio Acosta's answer is probably your best bet if some of the files to be added may not already be tracked. If you want to limit yourself to files git already knows about, you could combine git-ls-files with a filter: git