Closed PacoH closed 8 months ago
Hey thanks for the reminder and your code. The repo was quite outdated so I refactored it and added Python 3 support :)
Thanks. This is a valuable resource for those of us who don't have PhotoShop but want to use GIMP curves
files with ffmpeg
's curves=psfile='curves.acv'
.
I just tried it and got error:
gimp2acv.py", line 25, in <module>
outputFile = options.outputFile
^^^^^^^^^^^^^^^^^^
AttributeError: 'Values' object has no attribute 'outputFile'
OK, I found the problem in line 25:
outputFile = options.outputFile
should be outputFile = options.output
.
File had to be opened with a hex editor and all it contained was 00040000 in hex. uploads for issues.zip
UPDATE I found what I did wrong. I converted only
gimp2acv.py
. This time I converted the entire 'gimp2acv-master' directory.I still got errors when I ran the converted version.
Both these errors are due to the input text object,
GIMPcurves.gcv
, being opened in byte format on line 98:with open(input, 'rb') as f
The simple fix is to open the input as text:
with open(input, 'r') as f
Now it works 100% and the output
acv
file is completely valid.python3 ./gimp2acv.py -i GIMPcurves.gcv -o GIMPcurves.acv
I tested it with
ffmpeg -i "input.jpg" -vf "curves=psfile=GIMPcurves.acv" "output.jpg"
and got the expected output.I uploaded the converted version:
gimp2acv-master - python3.zip