Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (75)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La 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 (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (6293)

  • Video upload with carrierwave-video on Rails 4

    15 juin 2017, par MJRLGUE

    it’s been a while I am fighting to play a video in my rails app.

    I am using carrierwave-video, OS : Windows 10 64bits, to stream/show a video in user posts.

    Here is what I did :

    the file video_uploader.rb :

    class VideoUploader < CarrierWave::Uploader::Base

     include CarrierWave::Video
     storage :file
     def store_dir
       "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
     end
    end

    in the file : _post.html.erb :

    with this line of code : <%= video_tag post.video_url :controls =>true %> I get a blank box with the size of the video.
    and I tried this too and still doesn’t work : <%= video_tag post.video.url if post.video? %>

    I tried ffmpeg too, I installed ffmpeg in my pc and I did include : process encode_video: [:mp4, callbacks: { after_transcode: :set_success } ] in video_uploader.rb file and I get this form error message :

    Video Failed to transcode with FFmpeg. Check ffmpeg install and verify
    video is not corrupt or cut short. Original error : ArgumentError

    Any suggestions please ?

  • syncing video thumbnail frames with source video

    12 octobre 2020, par bigless

    We are trying to make video preview for seek bar. One approach is to make tons of images like Youtube does. We chose second one - 160x90(*) preview video without sound with fps limited to max 4 (250ms, based on duration) - one file with native seek sounds good to me.

    


    This is current cmd we use :

    


    ffmpeg -y -i $source$ -vf scale=$width$:$height$ -an -sn -r $fps$ -vcodec libx264 -x264-params keyint=$keyframe_interval$:scenecut=0  


    


    The idea is that browser is able to fetch whole video preview (<10MB) so there is priority to minimize the size. It seems that html5 video player is able to seek to and decode other than keyframes so we set keyframe interval to duration of video with limit of max 384(1920/5px) for best compression ratio.

    &#xA;

    The issue we are facing is frame sync. When I hover seek bar, video preview shows frame that actually lacks 1-2sec behind hovered time. Does anyone got explanation and possibly fix for this ? Is there some time deviation when player decodes frame instead of showing keyframe ?

    &#xA;

  • Convert video from FFMPEG than video is rotated [duplicate]

    25 octobre 2016, par user7050166

    This question already has an answer here :

    I have created one Application API, in this Application API When i have upload video from file manager than video is rotated but when i have capture and direct upload than video is perfect work.

    i have use this command transpose=1 but capture video is rotated 90 degree when upload and if i have remove this command than file manager video is rotated.

    so please give me solutions.

    /usr/bin/ffmpeg -i video.mp4 -i watermark.png -filter_complex 'overlay=10:10' -s 640x1280 -b 512k -vcodec mpeg1video -acodec copy -vcodec h264 -acodec aac -strict -2 output_video.mp4

    file manager upload video is auto rotated on 270 degree, i have not use any rotated command but capture video is work perfect.