LoginSignup
3
2

More than 5 years have passed since last update.

cronでffmpeg

Posted at

cronでffmpegを動かそうと下記の様な感じにした。

ffmpegの引数が多いので、シェルスクリプトにffmpegの必要なコマンドを書き込み

crontabで下記のように設定

10 10 12 03 sh ffmpeg.sh

時間になっても動いた気配が無い。。

whichコマンドでffmpegのインストール先を調べると/usr/local/binになっていた

これが原因かなと、ln -s /usr/local/bin/ffmpeg /usr/bin/ffmpegやって
シンボリックリンク作ってみたところうまく出来た。

たぶん、ユーザーの権限とかうまく設定すればもっとうまく出来ると思うのだけど。。

3
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2