Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (46)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

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

Sur d’autres sites (2061)

  • avcodec/movtextdec : Simplify finding default font

    17 octobre 2020, par Andreas Rheinhardt
    avcodec/movtextdec : Simplify finding default font
    

    There is no need to walk through the list of fonts twice.

    Reviewed-by : Philip Langdale <philipl@overt.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavcodec/movtextdec.c
  • avformat/argo_asf : don't check file version

    10 août 2020, par Zane van Iperen
    avformat/argo_asf : don't check file version
    

    It has no bearing on structure. Determined by looking at the ASF
    files from several Argonaut games :
    - FX Fighter,
    - Croc,
    - Croc 2,
    - The Emperor's New Groove, and
    - Disney's Aladdin in Nasira's Revenge

    The only versions that appear are 1.1, 1.2, and 2.1, and their
    structure is identical.

    Reviewed-by : Alexander Strasser <eclipse7@gmx.net>
    Signed-off-by : Zane van Iperen <zane@zanevaniperen.com>

    • [DH] libavformat/argo_asf.c
  • Convert multible files with threading ffmpeg in Python

    21 mars 2020, par Florian

    I’m trying to convert mp3 files to m4a. The files are in different folders like MainFolder(folder1, folder2,...)

    It works already but is very slow because it is converting file by file.

    import os
    import sys

    path = "/Users/flo/Desktop/test"

    for root, dir, files in os.walk(path):
       dir.sort()
       files.sort()

       for file in files:
           if file.find('.mp3') != -1:
               os.system('ffmpeg -i ' +'"' +root +'/' +file +'" ' +'-c:v copy -c:a libfdk_aac -b:a 300k '  +'"' +root +'/' +file[:-4] +'.m4b' +'"')

    Now I would like to implement multitasking.

    import os
    import sys
    import threading
    import queue

    path = "/Users/flo/Desktop/test"
    def convert(file):
       if file.find('.mp3') != -1:
           os.system('ffmpeg -i ' +'"' +root +'/' +file +'" ' +'-c:v copy -c:a libfdk_aac -b:a 300k '  +'"' +root +'/' +file[:-4] +'.m4b' +'"')

    for root, dir, files in os.walk(path):
       dir.sort()
       files.sort()

       q = queue.Queue
       threads = [threading.Thread(target=convert(file)) for file in files]
       for t in threads:
           t.start()

       for file in files:
           q.put(file)

       for file in files:
           q.put('stop')

       q.join()

       for t in threads:
           t.join()

    But I got the error message :

    File "/var/folders/r6/z5f_jcf139b8fh2n8m4lznlm0000gn/T/atom_script_tempfiles/30127c90-6b13-11ea-af8a-432a34b059ac", line 31
       threads = [threading.Thread(target=convert(file)) for file in files]
       ^
    IndentationError: unexpected indent
    [Finished in 0.028s]