And Or statements doesn't use generated cache. #592
Unanswered
MilkAndBanana1
asked this question in
4. Bugs
Replies: 1 comment
-
|
Run your final OR/AND command to generate cache for that specific expression: # First run - generates cache
auto-editor video.mp4 --edit "(or motion:0:02 audio:0.05,mincut=1sec)" --margin 0.02sec,0.5sec --export resolve
# Subsequent runs - uses cache
auto-editor video.mp4 --edit "(or motion:0:02 audio:0.05,mincut=1sec)" --margin 0.02sec,0.5sec --export premiereAlternative: Prevent Re-AnalysisIf you must avoid re-analysis, use individual commands instead of OR/AND: # Option 1: Motion only
auto-editor video.mp4 --edit "motion:0:02" --margin 0.02sec,0.5sec --export resolve
# Option 2: Audio only
auto-editor video.mp4 --edit "audio:0.05,mincut=1sec" --margin 0.02sec,0.5sec --export resolveWhy This HappensThis is expected behavior. The cache system ensures each unique analysis expression is cached separately for integrity. Component caches aren't reused in compound expressions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bug description
I generated the audio and motion cache for a video file and after not being satisfied with the results, planned on using the or statement for applying both methods. It seems that it didn't use the cache generated earlier and is now reanalyzing the motion and audio.
Is this expected behaviour?
What's your platform?
What command did you use
auto-editor video.mp4 --edit "(or motion:0:02 audio:0.05,mincut=1sec)" --margin 0.02sec,0.5sec --export resolveWhat properties does your input video have?
video.mp4:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf60.20.100
Duration: 02:47:10.02, start: 0.000000, bitrate: 6180 kb/s
Stream #0:00x1: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 5999 kb/s, 60 fps, 60 tbr, 90k tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:10x2: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 159 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
At least one output file must be specified
Comments
If this is expected behaviour, close this issue immediately.
Beta Was this translation helpful? Give feedback.
All reactions