WyattBlue / auto-editor

Auto-Editor: Efficient media analysis and rendering
https://auto-editor.com
The Unlicense
2.82k stars 413 forks source link

av.error.InvalidDataError: [Errno 1094995529] Invalid data found when processing input #353

Closed Aelerity closed 1 year ago

Aelerity commented 1 year ago

Bug description

Editing doesn't complete, gives error.

File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Users\talkp\AppData\Local\Programs\Python\Python311\Scripts\auto-editor.exe\__main__.py", line 7, in <module> File "C:\Users\talkp\AppData\Local\Programs\Python\Python311\Lib\site-packages\auto_editor\__main__.py", line 347, in main edit_media(paths, ffmpeg, args, temp, log) File "C:\Users\talkp\AppData\Local\Programs\Python\Python311\Lib\site-packages\auto_editor\edit.py", line 378, in edit_media make_media(tl, output) File "C:\Users\talkp\AppData\Local\Programs\Python\Python311\Lib\site-packages\auto_editor\edit.py", line 313, in make_media out_path, apply_later = render_av(ffmpeg, tl, args, bar, ctr, temp, log) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\talkp\AppData\Local\Programs\Python\Python311\Lib\site-packages\auto_editor\render\video.py", line 222, in render_av frame = next(decoders[obj.src]) ^^^^^^^^^^^^^^^^^^^^^^^ File "av\container\input.pyx", line 203, in decode File "av\packet.pyx", line 87, in av.packet.Packet.decode File "av\stream.pyx", line 172, in av.stream.Stream.decode File "av\codec\context.pyx", line 524, in av.codec.context.CodecContext.decode File "av\codec\context.pyx", line 427, in av.codec.context.CodecContext._send_packet_and_recv File "av\error.pyx", line 336, in av.error.err_check av.error.InvalidDataError: [Errno 1094995529] Invalid data found when processing input; last error log: [h264] number of reference frames (0+2) exceeds max (1; probably corrupt input), discarding one

What's your platform?

Python Version: 3.11.2 64-bit
Platform: Windows 10 amd64
FFmpeg Version: N-105325-g7512293cf9
FFmpeg Path: C:\Users\talkp\AppData\Local\Programs\Python\Python311\Lib\site-packages\ae_ffmpeg\Windows\ffmpeg.exe
Auto-Editor Version: 23w21a

What command did you use

auto-editor C:\Users\talkp\OneDrive\Documents\auto_editor_vids\7.mp4 -v 2.5

What properties does your input video have?

` - video:

Comments

I don't get that previous error that I was getting in my last bug report anymore.

WyattBlue commented 1 year ago

Auto-Editor uses PyAV for rendering, and therefore, as a source of truth. If there is indeed invalid data, it doesn't make sense to create a valid output file when the input is already invalid.

I don't think there is any action that auto-editor can take.