Hello all,
I’m using the Hamoid Video Export library. It uses FFMPEG to export a video directly from Processing. I now have the problem that the colours don’t match up. It understand this has probably more to do with FFMPEG than Processing, but I hope someone here can help me.
This is a comparison (left is processing, right is a MP4 rendered from the same sketch):
Now, reading the docs on Github it says you can change the JSON settings file in the library. But whatever I try I just make it stop rendering videos completely. Googling what settings to use doesn’t help me since I understand absolutely reading it. So, is there anyone who can shed some light on this?
These are the (default) settings I’m using:
"encode_video": [
"[ffmpeg]",
"-y",
"-f",
"rawvideo",
"-vcodec",
"rawvideo",
"-s",
"[width]x[height]",
"-pix_fmt",
"rgb24",
"-r",
"[fps]",
"-i",
"-",
"-an",
"-vcodec",
"h264",
"-pix_fmt",
"yuv420p",
"-crf",
"[crf]",
"-metadata",
"comment=[comment]",
"[output]"
],
Thanks!