Recherche avancée

Médias (0)

Mot : - Tags -/médias

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

Autres articles (59)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

Sur d’autres sites (7997)

  • subprocess "TypeError : a bytes-like object is required, not 'str'" (Python 2 -> 3 issue maybe ?)

    8 juillet 2017, par chatbottest

    I’m using this code from a previously asked question a few years ago, however I believe this is outdated. Trying to run the code, I receive the error above. I’m still a novice in python, so I could not get much clarification from similar questions. Anyone know why this is happening ?

    import subprocess

    def getLength(filename):
     result = subprocess.Popen(["ffprobe", filename],
       stdout = subprocess.PIPE, stderr = subprocess.STDOUT)
     return [x for x in result.stdout.readlines() if "Duration" in x]

    print(getLength('bell.mp4'))

    Traceback

    Traceback (most recent call last):
     File "B:\Program Files\ffmpeg\bin\test3.py", line 7, in <module>
       print(getLength('bell.mp4'))
     File "B:\Program Files\ffmpeg\bin\test3.py", line 6, in getLength
       return [x for x in result.stdout.readlines() if "Duration" in x]
     File "B:\Program Files\ffmpeg\bin\test3.py", line 6, in <listcomp>
       return [x for x in result.stdout.readlines() if "Duration" in x]
    TypeError: a bytes-like object is required, not 'str'
    </listcomp></module>
  • avfilter/vf_overlay : remove rgb option

    24 juin 2017, par Paul B Mahol
    avfilter/vf_overlay : remove rgb option
    

    Its been deprecated for over 3 years.

    Signed-off-by : Paul B Mahol <onemda@gmail.com>

    • [DH] doc/filters.texi
    • [DH] libavfilter/vf_overlay.c
  • avcodec, avformat : deprecate anything related to side data merging

    16 mars 2017, par wm4
    avcodec, avformat : deprecate anything related to side data merging
    

    This patch deprecates anything that has to do with merging/splitting
    side data. Automatic side data merging (and splitting), as well as all
    API symbols involved in it, are removed completely.

    Two FF_API_ defines are dedicated to deprecating API symbols related to
    this : FF_API_MERGE_SD_API removes av_packet_split/merge_side_data in
    libavcodec, and FF_API_LAVF_KEEPSIDE_FLAG deprecates
    AVFMT_FLAG_KEEP_SIDE_DATA in libavformat.

    Since it was claimed that changing the default from merging side data to
    not doing it is an ABI change, there are two additional FF_API_ defines,
    which stop using the side data merging/splitting by default (and remove
    any code in avformat/avcodec doing this) : FF_API_MERGE_SD in libavcodec,
    and FF_API_LAVF_MERGE_SD in libavformat.

    It is very much intended that FF_API_MERGE_SD and FF_API_LAVF_MERGE_SD
    are quickly defined to 0 in the next ABI bump, while the API symbols are
    retained for a longer time for the sake of compatibility.
    AVFMT_FLAG_KEEP_SIDE_DATA will (very much intentionally) do nothing for
    most of the time it will still be defined. Keep in mind that no code
    exists that actually tries to unset this flag for any reason, nor does
    such code need to exist. Code setting this flag explicitly will work as
    before. Thus it’s ok for AVFMT_FLAG_KEEP_SIDE_DATA to do nothing once
    side data merging has been removed from libavformat.

    In order to avoid that anyone in the future does this incorrectly, here
    is a small guide how to update the internal code on bumps :

    - next ABI bump (probably soon) :
    - define FF_API_LAVF_MERGE_SD to 0, and remove all code covered by it
    - define FF_API_MERGE_SD to 0, and remove all code covered by it
    - next API bump (typically two years in the future or so) :
    - define FF_API_LAVF_KEEPSIDE_FLAG to 0, and remove all code covered
    by it
    - define FF_API_MERGE_SD_API to 0, and remove all code covered by it

    This forces anyone who actually wants packet side data to temporarily
    use deprecated API to get it all. If you ask me, this is batshit fucked
    up crazy, but it’s how we roll. Making AVFMT_FLAG_KEEP_SIDE_DATA to be
    set by default was rejected as an ABI change, so I’m going all the way
    to get rid of this once and for all.

    Reviewed-by : James Almer <jamrial@gmail.com>
    Reviewed-by : Rostislav Pehlivanov <atomnuker@gmail.com>
    Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] doc/APIchanges
    • [DH] libavcodec/avcodec.h
    • [DH] libavcodec/avpacket.c
    • [DH] libavcodec/utils.c
    • [DH] libavcodec/version.h
    • [DH] libavformat/avformat.h
    • [DH] libavformat/mux.c
    • [DH] libavformat/options_table.h
    • [DH] libavformat/utils.c
    • [DH] libavformat/version.h