
Recherche avancée
Autres articles (45)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (6796)
-
Dealing with long conversion times on nginx, ffmpeg and Ruby on Rails
19 avril 2013, par GraemeI have developed a Ruby on Rails-based app which allows users to upload videos to one of our local servers (Ubunto 10.04 LTS). The server uses nginx.
Through the paperclip-ffmpeg gem, videos are converted to mp4 format using the ffmpeg library.
Everything appears to be working fine in production, except Rails' own 500 page (not the customised version I have provided - but that's a different issue) is displayed whenever certain videos are uploaded. Otherwise, videos are being converted as expected.
Having done a bit of investigation, I think the default 500 page is being displayed because a 502 error has occurred. I think what is happening, having uploaded the videos locally, is that some videos are taking an extensive amount of time to convert, and that an interruption is occurring on the server (I'm not a server expert by any means).
Using the excellent Railscasts episode on deployment, I use Capistrano to deploy the app. Here's the
unicorn.rb
file :root = "XXXXXXX"
working_directory root
pid "#{root}/tmp/pids/unicorn.pid"
stderr_path "#{root}/log/unicorn.log"
stdout_path "#{root}/log/unicorn.log"
listen "/tmp/unicorn.XXXXXXXXX.sock"
worker_processes 2
timeout 200And here's the
nginx.conf
file. Note thatclient_max_body_size
has been set to a fairly hefty 4Gb ! :upstream unicorn {
server unix:/tmp/unicorn.XXXXXXXXX.sock fail_timeout=0;
}
server {
listen 80 default deferred;
root XXXXXXXXX;
location ^~ /assets/ {
gzip_static on;
expires max;
add_header Cache-Control public;
}
try_files $uri/index.html $uri @unicorn;
location @unicorn {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_read_timeout 600;
proxy_redirect off;
proxy_pass http://unicorn;
}
error_page 500 502 503 504 /500.html;
client_max_body_size 4G;
keepalive_timeout 10;
}So, my question is...how could I edit (either of) the above two files to deal with the extensive time that certain videos take to convert through ffmpeg - possibly up to an hour, 2 hours or even more ?
Should I extend
timeout
in the former and/orkeepalive_timeout
in the latter - or is there a more efficient way (given that I've no idea how long certain videos will take to convert) ?Or, is there possibly a more significant issue I should consider - e.g. the amount of memory in the server ?
I'm not an nginx/server expert, so any advice would be useful (particularly where to put extra lines of code) - however, as the rest of the app just "works", I'm not keen to make a huge amount of changes !
-
Revision c53a95ad1d : Avoid calling vp9_is_scaled two times in a function. Use a local variable to ho
25 septembre 2014, par hkuangChanged Paths :
Modify /vp9/common/vp9_reconinter.c
Avoid calling vp9_is_scaled two times in a function.Use a local variable to hold the result of vp9_is_scaled.
Change-Id : I5e203909805923e20eefef596bc84424da47dbe2
-
Revision c94b17f4b2 : Pruned subpel search for speed 3. Adds code to return an integer cost list for
23 septembre 2014, par Deb MukherjeeChanged Paths :
Modify /vp9/encoder/vp9_mcomp.c
Modify /vp9/encoder/vp9_mcomp.h
Modify /vp9/encoder/vp9_speed_features.c
Pruned subpel search for speed 3.Adds code to return an integer cost list for NSTEP search. Then
uses it for pruned subpel search in speed 3.derf : -0.06%
Speed on mobcal 720p increaes from 10.28 fps to 10.65 fps.
[Subject to further testing].Change-Id : Ib591382d25b2c11bcaba9d3a27a93a9d1ab27a96