Recherche avancée

Médias (0)

Mot : - Tags -/formulaire

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (45)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (10502)

  • how can I get the length of an video in order to validate django form before upload can begin ?

    10 juillet 2013, par GetItDone

    I have an app running on heroku that allows users to upload videos, then I use ffmpeg to preform 3 tasks using celery and redis-to-go :

    1) Check the format and if it isn't already mp4, convert it to mp4.
    2) Extract a 3 minute clip, in mp4 format
    3) Grab an image from the video

    The problem is that I want to verify the video length before the video is uploaded and the three tasks are run since I want to make sure all videos are at least 15 minutes, and if not I want to raise a ValidationError. So when validating the form, I want to do something like this :

    def clean(self, *args, **kwargs):        
       data = super(ContentTypeRestrictedVideoField, self).clean(*args, **kwargs)

       file = data.file
       try:
           content_type = file.content_type
           main, extension = content_type.split('/')
           if content_type in self.content_types:
               if file._size > self.max_upload_size:
                   raise forms.ValidationError(_('Please keep filesize under %s. Current filesize %s') % (filesizeformat(self.max_upload_size), filesizeformat(file._size)))
               if VIDEO_LENGTH < MINIMUM_LENGTH:
                   raise forms.ValidationError(_('Please make sure video file is at least %s. Current video length %s') % (MINIMUM_LENGTH, VIDEO_LENGTH)
           else:
               raise forms.ValidationError(_('File type is not supported. File must be mov, flv, avi, mpeg, wmv, or mp4.'))
       except AttributeError:
           pass        

       return data

    What could I do for VIDEO_LENGTH and MINIMUM_LENGTH ? I read that ffprobe could be used for getting the duration, but it isn't available with the buildpack I am using and I am very inexperienced. I can't just validate file size because it can vary greatly depending on numerous factors. Anyone have any solution as to what I could try ? Thanks

  • how can I get the length of an video in order to validate django form before upload can begin ?

    20 juin 2018, par GetItDone

    I have an app running on heroku that allows users to upload videos, then I use ffmpeg to preform 3 tasks using celery and redis-to-go :

    1) Check the format and if it isn't already mp4, convert it to mp4.
    2) Extract a 3 minute clip, in mp4 format
    3) Grab an image from the video

    The problem is that I want to verify the video length before the video is uploaded and the three tasks are run since I want to make sure all videos are at least 15 minutes, and if not I want to raise a ValidationError. So when validating the form, I want to do something like this :

    def clean(self, *args, **kwargs):        
       data = super(ContentTypeRestrictedVideoField, self).clean(*args, **kwargs)

       file = data.file
       try:
           content_type = file.content_type
           main, extension = content_type.split('/')
           if content_type in self.content_types:
               if file._size > self.max_upload_size:
                   raise forms.ValidationError(_('Please keep filesize under %s. Current filesize %s') % (filesizeformat(self.max_upload_size), filesizeformat(file._size)))
               if VIDEO_LENGTH < MINIMUM_LENGTH:
                   raise forms.ValidationError(_('Please make sure video file is at least %s. Current video length %s') % (MINIMUM_LENGTH, VIDEO_LENGTH)
           else:
               raise forms.ValidationError(_('File type is not supported. File must be mov, flv, avi, mpeg, wmv, or mp4.'))
       except AttributeError:
           pass        

       return data

    What could I do for VIDEO_LENGTH and MINIMUM_LENGTH ? I read that ffprobe could be used for getting the duration, but it isn’t available with the buildpack I am using and I am very inexperienced. I can’t just validate file size because it can vary greatly depending on numerous factors. Anyone have any solution as to what I could try ? Thanks

  • Revision 82c32fe1b5 : Use restore_dst_buf in handle_inter_mode There are many places in handle_inter_

    20 novembre 2013, par Jingning Han

    Changed Paths :
     Modify /vp9/encoder/vp9_rdopt.c



    Use restore_dst_buf in handle_inter_mode

    There are many places in handle_inter_mode that need to restore the
    dst buffer pointers, due to buffer pointer swap and early rd search
    breakout. This commit wraps these operations into an inline function
    for clean-up.

    Change-Id : I0462e8c41c8bc3cd8db07395489cac03d8e5be54