EriKWDev / nanim

Nanim is an easy-to-use framework to create smooth GPU-accelerated animations that can be previewed live inside a glfw window and, when ready, rendered to videos at an arbitrary resolution and framerate.
MIT License
119 stars 3 forks source link

FFMPeg Issue on MacOS (others too?) #4

Closed EriKWDev closed 3 years ago

EriKWDev commented 3 years ago

When --render-ing a scene, I get the following output on my mac:

[Info]: Loading fonts from: /Users/erik/Documents/GitHub/nanim/examples/fonts
[Info]: Launching FFMpeg subprocess with ffmpeg -y -f rawvideo -pix_fmt rgba -s 1920x1080 -r 60 -i - -vf vflip -an -c:v libx264 -preset medium -crf 18 -tune animation -pix_fmt yuv444p /Users/erik/Documents/GitHub/nanim/examples/renders/parts/scene_0.mp4
[Info]: Launching FFMpeg subprocess with ffmpeg -y -f rawvideo -pix_fmt rgba -s 1920x1080 -r 60 -i - -vf vflip -an -c:v libx264 -preset medium -crf 18 -tune animation -pix_fmt yuv444p /Users/erik/Documents/GitHub/nanim/examples/renders/parts/scene_483.mp4
[Info]: Stitching parts together with ffmpeg -y -f concat -safe 0 -loglevel warning -i /Users/erik/Documents/GitHub/nanim/examples/renders/parts/parts.txt -c copy /Users/erik/Documents/GitHub/nanim/examples/renders/final.mp4

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fca3f815a00] moov atom not found
[concat @ 0x7fca40009400] Impossible to open '/Users/erik/Documents/GitHub/nanim/examples/renders/parts/scene_483.mp4'
/Users/erik/Documents/GitHub/nanim/examples/renders/parts/parts.txt: Invalid data found when processing input

All the individual parts files can be played in VLC without problem, but some of the parts are not added to the final.ml4 render. Also, when executing the command manually, no errors and the final.mp4 render works as expected. ffmpeg -y -f concat -safe 0 -loglevel warning -i /Users/erik/Documents/GitHub/nanim/examples/renders/parts/parts.txt -c copy /Users/erik/Documents/GitHub/nanim/examples/renders/final.mp4