Comments (6)
To effectively address this issue, I need the full traceback with line numbers and everything. Only putting the error message in the title is not enough.
Also, can you post the output of auto-editor info path-to-your-file.mp4
? This information will help narrow down causes.
from auto-editor.
C:\Users\CFS>auto-editor "C:\Users\CFS\Downloads\com.AnotherAxiom.GorillaTag-20230221-165636.mp4"
Traceback (most recent call last): | 0% ETA 03:43 PM
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\CFS\AppData\Local\Programs\Python\Python311\Scripts\auto-editor.exe\__main__.py", line 7, in <module>
File "C:\Users\CFS\AppData\Local\Programs\Python\Python311\Lib\site-packages\auto_editor\__main__.py", line 338, in main
edit_media(paths, ffmpeg, args, temp, log)
File "C:\Users\CFS\AppData\Local\Programs\Python\Python311\Lib\site-packages\auto_editor\edit.py", line 247, in edit_media
tl = make_timeline(
^^^^^^^^^^^^^^
File "C:\Users\CFS\AppData\Local\Programs\Python\Python311\Lib\site-packages\auto_editor\make_layers.py", line 138, in make_timeline
chunks, vclips, aclips = make_layers(
^^^^^^^^^^^^
File "C:\Users\CFS\AppData\Local\Programs\Python\Python311\Lib\site-packages\auto_editor\make_layers.py", line 277, in make_layers
has_loud = run_interpreter(method, filesetup, log)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\CFS\AppData\Local\Programs\Python\Python311\Lib\site-packages\auto_editor\make_layers.py", line 104, in run_interpreter
results = interpret(env, parser)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\CFS\AppData\Local\Programs\Python\Python311\Lib\site-packages\auto_editor\interpreter.py", line 1663, in interpret
result.append(my_eval(env, parser.expr()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\CFS\AppData\Local\Programs\Python\Python311\Lib\site-packages\auto_editor\interpreter.py", line 1403, in my_eval
return edit_method(node.val, env["@filesetup"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\CFS\AppData\Local\Programs\Python\Python311\Lib\site-packages\auto_editor\analyze.py", line 484, in edit_method
stream_data = to_threshold(levels.audio(s), obj["threshold"])
^^^^^^^^^^^^^^^
File "C:\Users\CFS\AppData\Local\Programs\Python\Python311\Lib\site-packages\auto_editor\analyze.py", line 237, in audio
threshold_list[i] = get_max_volume(samples[start:end]) / max_volume
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\CFS\AppData\Local\Programs\Python\Python311\Lib\site-packages\auto_editor\analyze.py", line 210, in get_max_volume
return max(float(np.max(s)), -float(np.min(s)))
^^^^^^^^^
File "<__array_function__ internals>", line 200, in amax
File "C:\Users\CFS\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\core\fromnumeric.py", line 2820, in amax
return _wrapreduction(a, np.maximum, 'max', axis, None, out,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\CFS\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\core\fromnumeric.py", line 86, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: zero-size array to reduction operation maximum which has no identity
from auto-editor.
my bad, also here's what I got from doing info:
C:\Users\CFS\Downloads\com.AnotherAxiom.GorillaTag-20230221-165636.mp4:
- video:
- track 0:
- codec: h264
- fps: 90000
- resolution: 1920x1080
- aspect ratio: 16:9
- pixel aspect ratio: 1:1
- duration: 1149.846344
- pix fmt: yuv420p
- color range: tv
- color space: smpte170m
- color primaries: bt470bg
- color transfer: smpte170m
- timebase: 1/90000
- bitrate: 4996982
- lang: eng
- audio:
- track 0:
- codec: aac
- samplerate: 48000
- channels: 1
- duration: 1149.807583
- bitrate: 64001
- lang: eng
- container:
- duration: 1149.861000
- bitrate: 5065173
from auto-editor.
Oops just realized that I should've probably sent them in the code format. I can send them again if you need me too
from auto-editor.
So your video is 19 minutes long and the fps is 90000
!??? That is an obscenely high fps. Is that intentional?
from auto-editor.
I think you can get your video working by simply adding the option '-fps 30'. This makes auto-editor output the video at a standard 30 frames per second, instead of its original, excessively high frame rate.
I'll also check for this in code and output an error message that tells exactly what's wrong.
from auto-editor.
Related Issues (20)
- ModuleNotFoundError: No module named 'auto_editor' HOT 3
- mp3 output broken after Python 3.12 HOT 1
- Remove No movement but keep those with audio
- Timeline export to resove on mac work not correctly HOT 1
- WavError("Data exceeds wave file size limit") with 8 hour video HOT 1
- Error! Unknown encoder 'hevc' HOT 1
- Broken Link For Nvidia ffmpeg Compiling HOT 1
- Suggestion: API For this Library HOT 2
- Add check to not crash while opening and processing cache file HOT 2
- Lossless Cutting (with Speedchange!) HOT 6
- 20min > 1sec - 59.999024 HOT 1
- Dosen't work for me when I use the --export option HOT 1
- Add the function of supporting clipping, and join the gui interface. HOT 1
- WinError 6: The handle is invalid, when running auto-editor from another process HOT 2
- Make output available while rendering
- Minimum Length Exclusion HOT 5
- Speed drops after extended clip-sequence export HOT 2
- Output FΔ°le Size HOT 1
- Severe Audio Degradation Issues HOT 2
- Error! Unable to parse option value "bt470bg" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto-editor.