WyattBlue / auto-editor

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

Error! Unable to parse option value "bt470bg" #417

Closed tchansun closed 6 months ago

tchansun commented 6 months ago

Bug description

This is the error I get with a simple auto-editor filename.mp4 command

What's your platform?

Python Version: 3.12.1 64-bit
Platform: Windows 11 amd64
FFmpeg Version: N-110322-g0c25da5a28-g1440bf15e2+1
FFmpeg Path: C:\Users\fred\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\ae_ffmpeg\Windows\ffmpeg.exe
Auto-Editor Version: 23w51a

What command did you use

auto-editor filename.mp4

What properties does your input video have?

.\Short1.mp4:

.\Short1.mp4:

Comments

I tried with another ffmpeg (--ffmpeg-location) but same error.

with --show-ffmpeg-output :

[NULL @ 00000170a7a4ad80] [Eval @ 00000023a5ffe218] Undefined constant or missing '(' in 'bt470bg' [NULL @ 00000170a7a4ad80] Unable to parse option value "bt470bg" [NULL @ 00000170a7a4ad80] Error setting option color_trc to value bt470bg. [vost#0:0/copy @ 00000170a7a4aa80] Error setting up codec context options.

Thank you!

Drive4Code commented 6 months ago

I've found a workaround that helped me:

Add

--extras "-color_primaries bt470bg -color_trc gamma28 -colorspace bt470bg"

to to the auto-editor command

tchansun commented 6 months ago

Thank you, it works !

Drive4Code commented 6 months ago

No problem. I still think its an issue worth leaving open and investigating though because it shouldn't happen in the first place