Recherche avancée

Médias (1)

Mot : - Tags -/belgique

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 (9563)

  • Anomalie #3914 (Nouveau) : Saisie de date : PAs d’erreur si 31 février (prive/formulaire/dater.php)

    27 février 2017, par Timothée Garnaud

    Bonjour à tous,

    Il ne s’agit pas d’un grand problème à priori, juste du fait qu’un message d’erreur serait peut-être plus appréciable.

    La vérification des dates sur les articles (date de publication, date de rédaction antérieur). Utilise la fonction mktime pour vérifier la validité d’une date.
    Le problème c’est que la fonction mktime accepte une date comme ’31/02/2017’, qu’elle corrige automatiquement en 03/03/2017. Mais n’est-il pas mieux d’avertir l’utilisateur - qui ici voudrait prévoir une publication pour fin février - de son erreur ?

    Voici la fonction en cause (prive/formulaires/dater.php - ligne 217 sur SPIP 3.0)

    function dater_recuperer_date_saisie($post, $quoi="date") 
        if (!preg_match(’#^(? :(? :([0-9]1,2)[/-]) ?([0-9]1,2)[/-]) ?([0-9]4|[0-9]1,2)#’, $post, $regs))
            return ’’ ;
        if ($quoi=="date_redac") 
            if ($regs[3]<>’’ AND $regs[3] < 1001)
                $regs[3] += 9000 ;
    

    return array($regs[3],$regs[2],$regs[1]) ;

    else
    $t = mktime(0,0,0,$regs[2],$regs[1],$regs[3]) ;
    // si la date n’est pas valide selon mktime, la refuser
    if (!$t) return ’’ ;
    return array(date(’Y’,$t),date(’m’,$t),date(’d’,$t)) ;

    Je propose d’ajouter un appel à checkdate() dans la fonction ci-dessus (qui vérifie aussi les année bisextiles)

    function dater_recuperer_date_saisie($post, $quoi="date") 
        if (!preg_match(’#^(? :(? :([0-9]1,2)[/-]) ?([0-9]1,2)[/-]) ?([0-9]4|[0-9]1,2)#’, $post, $regs))
            return ’’ ;
        if ($quoi=="date_redac") 
            if ($regs[3]<>’’ AND $regs[3] < 1001)
                $regs[3] += 9000 ;
    

    return array($regs[3],$regs[2],$regs[1]) ;

    else
    if ( checkdate($regs[2],$regs[1],$regs[3]) )
    $t = mktime(0,0,0,$regs[2],$regs[1],$regs[3]) ;
    // si la date n’est pas valide selon mktime, la refuser
    if (!$t) return ’’ ;
    /* Le ligne ci-dessus ne servirait plus à rien du coup ? */
    return array(date(’Y’,$t),date(’m’,$t),date(’d’,$t)) ;

    else
    return ’’ ;


  • Error importing VideoFileClip from moviepy : AttributeError : 'PermissionError' object has no attribute 'message'

    11 mars 2017, par Tahlil

    I’m using jupyter notebook. I have also tried from anaconda console as well.

    Tried importing with both the ways shown below

    from moviepy.editor import VideoFileClip

    from moviepy.video.io.VideoFileClip import VideoFileClip

    Both of them gave me same error. Full trace is below

    AttributeError                            Traceback (most recent call last)
    in <module>()
         6 import glob
         7 import math
    ----> 8 from moviepy.editor import VideoFileClip
         9 from moviepy.video.io.VideoFileClip import VideoFileClip

    C:\Program Files\Anaconda3\lib\site-packages\moviepy\editor.py in <module>()
        20 # Clips
        21
    ---> 22 from .video.io.VideoFileClip import VideoFileClip
        23 from .video.io.ImageSequenceClip import ImageSequenceClip
        24 from .video.io.downloader import download_webfile

    C:\Program Files\Anaconda3\lib\site-packages\moviepy\video\io\VideoFileClip.py in <module>()
         1 import os
         2
    ----> 3 from moviepy.video.VideoClip import VideoClip
         4 from moviepy.audio.io.AudioFileClip import AudioFileClip
         5 from moviepy.Clip import Clip

    C:\Program Files\Anaconda3\lib\site-packages\moviepy\video\VideoClip.py in <module>()
        18
        19 import moviepy.audio.io as aio
    ---> 20 from .io.ffmpeg_writer import ffmpeg_write_image, ffmpeg_write_video
        21 from .io.ffmpeg_tools import ffmpeg_merge_video_audio
        22 from .io.gif_writers import (write_gif,

    C:\Program Files\Anaconda3\lib\site-packages\moviepy\video\io\ffmpeg_writer.py in <module>()
        13     DEVNULL = open(os.devnull, 'wb')
        14
    ---> 15 from moviepy.config import get_setting
        16 from moviepy.tools import verbose_print
        17

    C:\Program Files\Anaconda3\lib\site-packages\moviepy\config.py in <module>()
        49     success, err = try_cmd([FFMPEG_BINARY])
        50     if not success:
    ---> 51         raise IOError(err.message +
        52                  "The path specified for the ffmpeg binary might be wrong")
        53

    AttributeError: 'PermissionError' object has no attribute 'message'
    </module></module></module></module></module></module>

    Python version info

    Python 3.5.2 |Anaconda custom (64-bit)| (default, Jul  5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.

    Running ffmpeg -version in a console gives me

    ffmpeg version N-83507-g8fa18e0 Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 5.4.0 (GCC)
    configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
    libavutil      55. 47.100 / 55. 47.100
    libavcodec     57. 80.100 / 57. 80.100
    libavformat    57. 66.102 / 57. 66.102
    libavdevice    57.  2.100 / 57.  2.100
    libavfilter     6. 73.100 /  6. 73.100
    libswscale      4.  3.101 /  4.  3.101
    libswresample   2.  4.100 /  2.  4.100
    libpostproc    54.  2.100 / 54.  2.100

    I’m running 64 bit version of Windows 10.

    I can’t find any solution anywhere and its driving me crazy ! Seems like its not finding the ffmpeg binary but I have put it in C :\ffmpeg\bin and added this to path environment variable. Followed the instruction from here.

  • Recapping WebM’s First Week

    25 mai 2010, par noreply@blogger.com (John Luther) — webm, vp8, vorbis

    The WebM project launched last Wednesday with broad industry backing (watch video of the announcement). The list of supporters keeps growing with new additions such as the popular VLC media player, Miro Video Converter, HeyWatch cloud encoding platform, and videantis programmable processor platform. We’re also happy to see that future versions of IE will support playback of VP8 when the user has installed the codec.

    Our announcement sparked discussions in the community around the design and quality of our developer release. We’ve done extensive testing of VP8 and know that the codec can match or exceed the quality of other leading codecs. Starting this week, the engineers behind WebM will post frequently to this blog with details on how to make optimal use of its VP8 video codec and Vorbis audio codec. We are confident that the open development model will bring additional improvements that will further optimize WebM. In fact, the power of open development is already visible, with developers submitting patches and the folks at Flumotion enabling live streaming support in their product just three days after the project was launched.

    Keep an eye on this blog for regular updates on the adoption and development of WebM. To participate in the conversation or to ask questions of the WebM team, please join our discussion group.

    John Luther
    Product Manager, Google