Ffmpeg, PDG, create video from PNG sequence in Houdini
Ffmpeg, PDG, create video from PNG sequence
installing ffmpeg (on windows 10)
download and copy to C/program files C:\Program Files\ffmpeg\ffmpeg.exe right click on THIS PC -> properties -> advanced system settings advanced tab -> Environment Variables then Double click the Path Variable click new then paste this: C:\Program Files\ffmpeg\
converting exr to PNGs and overlay frame numbers
add file pattern node pattern: $HIP/render/shot2/* add rop composite output node output picture: $HIP/comp/PNG_shot2/`@filename`.png and dive inside inside add font node text: `@filename` add over node and feed both set output flags go back one up and cook node (select node, hit shift d and shift v)
pdg workflow to create ffmpeg video
add file pattern node pattern: $HIP\comp\PNG_shot2\* add wait for all node add ffmpeg encode video node cache mode: write files frame list file: $HIP/pdg/`@pdgname`framelist.txt output file path: $HIP/comp/shot2.mp4 options -> check ALL!!!!!!!!!! frames per second: 30 format: concat -safe 0 resolution: 1920x1080 video codec: libx264 MOV muxer flags: faststart pixel format: yuv420p additional arg: -b:v 8000k (this is bitrate/quality!) colorspace -> quick color setups: Rec.709 (sRGB caused blown out whites!) ffmpeg binary: system path (uncheck command) select node, hit shift d and shift v
src
help file for ffmpeg encode video https://www.rendorama.com/de/houdini-tips/create-video-with-ffmpeg/