WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.22k stars 177 forks source link

Using H264 to generate .mp4 file #201

Open p0mad opened 1 year ago

p0mad commented 1 year ago

Hi, I was wondering how can i generate .mp4 files using H264 codec in the Create Video from Path?

I have changed the config.json but got the following error! OpenCV: FFMPEG: tag 0x34363268/'h264' is not supported with codec id 27 and format 'mp4 / MP4 (MPEG-4 Part 14)' OpenCV: FFMPEG: fallback to use tag 0x31637661/'avc1'

WASasquatch commented 1 year ago

Did you follow the directions on setup and get the code ?

p0mad commented 1 year ago

yes but it always fallbacks into avc1!

WASasquatch commented 1 year ago

And codec is in root of ConfyUI or explicitly given path in config (though that's only windows I think)?

They did just update the ffmpeg repo, they may have removed or changed support. Most the codecs didn't work as per the documentation. For example some wrappers they said you have to use would just error saying it's the wrong wrapper and I got no help on their repo.