)
Libav is treating the input image as a MPEG video (and rejecting it) when called from Phoenix, but as a JPEG image when called from the shell. Infuriating, still trying to figure out what the hell is happening.
edit: it's because the filename is randomized when it's sent to mediastat in the plug upload pipeline, and it worked when I tried locally because libav read the filename