我的問題是,FFMpeg和Mencoder是非常足智多謀的,即使一個進程運行它使HTTPd減速,但多進程(FFMPEG/Mencoder)完全掛上它(HTTPd)。例如,我希望我的轉換能夠用Beanstalk進行處理。FFMpeg + Beanstalk:如何將進程傳遞給它或不使用Beanstalk達到相同的結果
我的具體問題是:如何將我目前的工作轉移到Beanstalk?
我有一個簡單PHP代碼觸發轉換:
RunInBackground('convert.php', array($upload, $video_id), $log_path);
現在會有什麼魔豆正確的代碼看起來像這樣這些過程,如果多個視頻上傳不會啓動所有在同一時間?
如果您認爲我的需求最好是使用Beanstalk以外的其他產品,並且您知道如何實施它,我仍然很樂意看到它!
由於提前,
伊利亞
你認爲這是更好地使用DB隊列,而不是魔豆或Resque? – 2012-07-13 17:26:26
因爲它聽起來像你的問題的一部分是控制多少個Beanstalk/etc的實例正在運行..這就是爲什麼我建議一個單獨的機制進行轉換,將維護一個實例。我不知道BeanStalk或Resque,但它聽起來像你是資源有限。 – ethrbunny 2012-07-13 20:12:47