daybrush / scenejs-render

🎬 Make a movie of CSS animation through scenejs.
https://daybrush.com/scenejs-render/
166 stars 17 forks source link

solution to ffmpegPath not working #18

Open vesper8 opened 2 years ago

vesper8 commented 2 years ago

I'm sure --ffmpeg-path %s works in some use cases.. but I just spent 2 hours pulling my hair out because in my case it just wouldn't work no matter what path I gave it.. whether it was an absolute path, a relative path, or whether I put ffmpeg in the local folder.

After much debugging and trial and error, I looked up the documentation of fluent-ffmpeg and found a solution that worked for me. Posting it here in case anyone else stumbles on the same issue.

What worked for me was setting the path like this before calling the render command:


FFMPEG_PATH=/opt/homebrew/bin/ffmpeg render ...
daybrush commented 2 years ago

@vesper8

Thank you. Let's see why ffmpegPath doesn't work.