mp4の解析になにか足りないと。
Command :: file -b --mime '/tmp/8d777f385d3dfec8815d20f7496026dc20170523-16-2afx37.mp4'
[AV] Running command: if command -v avprobe 2>/dev/null; then echo "true"; else echo "false"; fi
[AV] Running command: if command -v ffmpeg 2>/dev/null; then echo "true"; else echo "false"; fi
16 TID-or562cy3c WARN: Av::UnableToDetect: Unable to detect any supported library
mp4ファイルをラップトップのDownloadsにダウンロードしたので余裕があればあとでみてみること
$ heroku run bash
~ $ ffmpeg
bash: ffmpeg: command not found
~ $ avprobe
bash: avprobe: command not found
そゆことw
動画を投稿しようとしたら500ですってよ、奥さん
method=POST path=/api/v1/media format=html controller=Api::V1::MediaController action=create status=500 error='Av::UnableToDetect: Unable to detect any supported library' duration=153.48 view=0.00 db=12.28
ffmpegパッケージ入れてみた
method=POST path=/api/v1/media format=html controller=Api::V1::MediaController action=create status=500 error='Cocaine::CommandNotFoundError: Cocaine::CommandNotFoundError' duration=94.89 view=0.00 db=12.84
~ $ ffmpeg
ffmpeg: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
先はながい
LD_LIBRARYPATHに少なくとも/app/.apt/lib/x86_64-linux-gnuと/app/.apt/usr/lib/x86_64-linux-gnu/mesaを追加して、libxdamage1パッケージも入れる必要がある。
Slugは311.3MBにw