GithubHelp home page GithubHelp logo

Comments (6)

WyattBlue avatar WyattBlue commented on July 20, 2024

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.

xBackward avatar xBackward commented on July 20, 2024
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.

xBackward avatar xBackward commented on July 20, 2024

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.

xBackward avatar xBackward commented on July 20, 2024

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.

WyattBlue avatar WyattBlue commented on July 20, 2024

So your video is 19 minutes long and the fps is 90000!??? That is an obscenely high fps. Is that intentional?

from auto-editor.

WyattBlue avatar WyattBlue commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.