
Recherche avancée
Autres articles (59)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)
Sur d’autres sites (7305)
-
Merge pull request #854 from RobLoach/newlines
30 mars 2018, par jackmooreMerge pull request #854 from RobLoach/newlines
Fix CRLF newlines
-
Merge pull request #3506 from alundiak/patch-1
20 mars 2018, par blueimpMerge pull request #3506 from alundiak/patch-1
Small typo fix
-
Post request not processing upload
21 février 2018, par user3799793I am having trouble uploading large videos to my elastic beanstalk rails instance. When I upload small videos, my application works fine. But, when uploading large videos the post request doesn’t seem to process the video. The output of the log only returns :
I, [2018-02-13T19:47:11.947391 #20262] INFO -- : [7f5d6846-c9b4-473d-b1fe-1e94056a6474] Started POST "/movies" for 108.71.214.220 at 2018-02-13 19:47:11 +0000
The post request should look something like this :
I, [2018-02-20T03:01:00.228579 #24802] INFO -- : [174f98cf-d26f-4cc9-987f-021987ead17c] Started POST "/movies" for 108.71.214.220 at 2018-02-20 03:01:00 +0000
I, [2018-02-20T03:01:06.584806 #24802] INFO -- : [174f98cf-d26f-4cc9-987f-021987ead17c] [paperclip] saving /movies/videos/000/000/003/original/SampleVideo_640x360_30mb.flv
D, [2018-02-20T03:01:09.390598 #24802] DEBUG -- : [174f98cf-d26f-4cc9-987f-021987ead17c] ^[[1m^[[35m (0.9ms)^[[0m ^[[1m^[[35mCOMMIT^[[0m
I, [2018-02-20T03:01:09.392579 #24802] INFO -- : [174f98cf-d26f-4cc9-987f-021987ead17c] [ActiveJob] Enqueued DelayedPaperclip::ProcessJob (Job ID: 01373ae4-89cb-486c-9d44-eaa74d9211c5) to Async(paperclip) with arguments: "Movie", 3, "video"
I, [2018-02-20T03:01:09.392707 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] Performing DelayedPaperclip::ProcessJob (Job ID: 01373ae4-89cb-486c-9d44-eaa74d9211c5) from Async(paperclip) with arguments: "Movie", 3, "video"
I, [2018-02-20T03:01:09.396173 #24802] INFO -- : [174f98cf-d26f-4cc9-987f-021987ead17c] Completed 201 Created in 3046ms (Views: 0.4ms | ActiveRecord: 4.5ms)
D, [2018-02-20T03:01:09.409028 #24802] DEBUG -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] ^[[1m^[[36mMovie Load (0.4ms)^[[0m ^[[1m^[[34mSELECT "movies".* FROM "movies" WHERE "movies"."id" = $1 LIMIT $2^[[0m [["id", 3], ["LIMIT", 1]]
I, [2018-02-20T03:01:09.409801 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [paperclip] copying /movies/videos/000/000/003/original/SampleVideo_640x360_30mb.flv to local file /tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl.flv
I, [2018-02-20T03:01:12.383537 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] Command :: file -b --mime '/tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1xdygtx.flv'
I, [2018-02-20T03:01:12.387977 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Running command: if command -v avprobe 2>/dev/null; then echo "true"; else echo "false"; fi
I, [2018-02-20T03:01:12.389194 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Running command: if command -v ffmpeg 2>/dev/null; then echo "true"; else echo "false"; fi
I, [2018-02-20T03:01:12.433230 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Found ["ffmpeg"], using: Ffmpeg
I, [2018-02-20T03:01:12.433323 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Running command: if command -v avprobe 2>/dev/null; then echo "true"; else echo "false"; fi
I, [2018-02-20T03:01:12.434721 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Running command: if command -v ffmpeg 2>/dev/null; then echo "true"; else echo "false"; fi
I, [2018-02-20T03:01:12.436039 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Found ["ffmpeg"], using: Ffmpeg
I, [2018-02-20T03:01:12.436099 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Running command: ffmpeg -i "/tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl.flv" 2>&1
I, [2018-02-20T03:01:12.658521 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [paperclip] [transcoder] Transocding supported file /tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl.flv
I, [2018-02-20T03:01:12.658618 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Adding output parameter ["acodec", "aac"]
I, [2018-02-20T03:01:12.658657 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Adding output parameter ["strict", "experimental"]
I, [2018-02-20T03:01:12.658704 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Adding output parameter [:s, "640x480"]
I, [2018-02-20T03:01:12.658759 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Running command: ffmpeg -i "/tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl.flv" -acodec aac -strict experimental -s 640x480 -y "/tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl20180220-24802-1hl2kvo.mp4"
I, [2018-02-20T03:01:12.434721 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Running command: if command -v ffmpeg 2>/dev/null; then echo "true"; else echo "false"; fi
I, [2018-02-20T03:01:12.436039 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Found ["ffmpeg"], using: Ffmpeg
I, [2018-02-20T03:01:12.436099 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Running command: ffmpeg -i "/tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl.flv" 2>&1
I, [2018-02-20T03:01:12.658521 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [paperclip] [transcoder] Transocding supported file /tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl.flv
I, [2018-02-20T03:01:12.658618 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Adding output parameter ["acodec", "aac"]
I, [2018-02-20T03:01:12.658657 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Adding output parameter ["strict", "experimental"]
I, [2018-02-20T03:01:12.658704 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Adding output parameter [:s, "640x480"]
I, [2018-02-20T03:01:12.658759 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Running command: ffmpeg -i "/tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl.flv" -acodec aac -strict experimental -s 640x480 -y "/tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl20180220-24802-1hl2kvo.mp4"
I, [2018-02-20T03:02:03.194536 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [paperclip] [transcoder] Successfully transcoded 1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl to #
I, [2018-02-20T03:02:03.227408 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [paperclip] saving /movies/videos/000/000/003/original/SampleVideo_640x360_30mb.flv
I, [2018-02-20T03:02:06.164693 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [paperclip] saving /movies/videos/000/000/003/medium/SampleVideo_640x360_30mb.mp4
D, [2018-02-20T03:02:08.467048 #24802] DEBUG -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] ^[[1m^[[35m (0.2ms)^[[0m ^[[1m^[[35mBEGIN^[[0m
D, [2018-02-20T03:02:08.469704 #24802] DEBUG -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] ^[[1m^[[36mMovie Exists (0.4ms)^[[0m ^[[1m^[[34mSELECT 1 AS one FROM "movies" WHERE LOWER("movies"."title") = LOWER($1) AND ("movies"."id" != $2) LIMIT $3^[[0m [["title", "test"], ["id", 3], ["LIMIT", 1]]
D, [2018-02-20T03:02:08.471260 #24802] DEBUG -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] ^[[1m^[[35mSQL (0.3ms)^[[0m ^[[1m^[[33mUPDATE "movies" SET "video_file_name" = $1, "video_updated_at" = $2, "updated_at" = $3 WHERE "movies"."id" = $4^[[0m [["video_file_name", "SampleVideo_640x360_30mb.flv"], ["video_updated_at", "2018-02-20 03:01:12.308214"], ["updated_at", "2018-02-20 03:02:08.470020"], ["id", 3]]
D, [2018-02-20T03:02:08.472524 #24802] DEBUG -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] ^[[1m^[[35m (0.9ms)^[[0m ^[[1m^[[35mCOMMIT^[[0m
I, [2018-02-20T03:02:08.472777 #24802] INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] Performed DelayedPaperclip::ProcessJob (Job ID: 01373ae4-89cb-486c-9d44-eaa74d9211c5) from Async(paperclip) in 59079.31msAfter the initial post request there should be a statements show the processing of the request and the processing of ffmpeg. As you can see i get none of those. There is not even a statement of completion.
Any help will be appreciated.Here’s a copy of my create action
def create
movie = Movie.new(movie_params)
if movie.save
Resque.enqueue(TranscodeVideo, movie.id)
render json: movie, status: 201
else
render json: { errors: movie.errors }, status: 422
end
endHere’s a copy of the worker
class TranscodeVideo
@queue = :movie_queue
def self.perform(movie_id)
movie = Movie.find(movie_id)
Delayed::Worker.new.work_off
movie.reload
end
end