Sunday, July 23, 2023

154: ffmpeg

 Today I wrote some code to create an Express server running services with ffmpeg. The server takes an HTTP POST request and condenses a video to a smaller resolution. When I began testing the server, I had a consistent error that I could not resolve. I added more complete error logging to the code by passing a logger object to ffmpeg. Using the data from the logger object I managed to find the source of my unsolvable error: the video I was trying to compress had an odd number of pixels in its width and could not be properly condensed to the required resolution. 

No comments:

Post a Comment

190: Sablier

 The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...