Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (77)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (6560)

  • Strange error with ffmpeg and unoconv in python script

    27 mai 2015, par Avery Ripoll Crocker

    I am creating a python script that can be used by other people to convert files. However when I use this script I keep getting a weird error when I run the subprocess for unoconv, this error is :

    Traceback (most recent call last):
     File "conversion.py", line 15, in <module>
       check_call(["unoconv", "-f", Fileextension, filename])
     File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
       raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['unoconv', '-f', '.pdf', 'journal.doc']' returned non-zero exit status 1
    </module>

    I have looked through various resources for this, but the one answer I have been receiving is that I must have set up the unoconv line incorrectly. I have checked several times that the code is correct, and it is. The other peculiar thing is that my code for ffmpeg works. Does anybody have an idea as to why this happens.

    Here is my program :

    print "If at any point you wish to quit the program hit Ctrl + C"

    filetype = raw_input("What kind of file would you like to convert? Audio, Image, Video or Document: ")

    if filetype == "Document":
      path = raw_input("Please drag and drop the directory in which the file is stored into the terminal:")
      os.chdir(path[1:-2])
      filename = raw_input("Please enter the name of the file you would like to convert, including the file-type. e.g. test.txt, however please do make sure that the file-name does not have any spaces:")
      Fileextension = raw_input("What filetype would you like the program to convert your file to. E.g. .txt: ")
      from subprocess import check_call
      check_call(["unoconv", "-f", Fileextension, filename])

    elif filetype == "Audio":
      path = raw_input("Please drag and drop the directory in which the file is stored into the terminal:")
      os.chdir(path[1:-2])
      filename = raw_input("Please enter the name of the file you would like to convert, including the file-type. e.g. test.txt, however please do make sure that the file-name does not have any spaces:")
      Fileextension = raw_input("What filetype would you like the program to convert your file to. E.g. .mp3: ")
      body, ext = os.path.splitext("filename")
      from subprocess import check_call
      check_call(["ffmpeg" ,"-i", filename, body + Fileextension])

    elif filetype == "Video":
      path = raw_input("Please drag and drop the directory in which the file is stored into the terminal:")
      os.chdir(path[1:-2])
      filename = raw_input("Please enter the name of the file you would like to convert, including the file-type. e.g. test.txt, however please do make sure that the file-name does not have any spaces:")
      Fileextension = raw_input("What filetype would you like the program to convert your file to. E.g. .mp4: ")
      body, ext = os.path.splitext("filename")
      from subprocess import check_call
      check_call(["ffmpeg" ,"-i", filename, body + Fileextension])

    elif filetype == "Image":
      path = raw_input("Please drag and drop the directory in which the file is stored into the terminal:")
      os.chdir(path[1:-2])
      filename = raw_input("Please enter the name of the file you would like to convert, including the file-type. e.g. test.txt, however please do make sure that the file-name does not have any spaces:")
      Fileextension = raw_input("What filetype would you like the program to convert your file to. E.g. .Jpeg: ")
      body, ext = os.path.splitext("filename")
      from subprocess import check_call    
      check_call(["ffmpeg" ,"-i", filename, body + Fileextension])
  • Batch concation of multiple videos files (Powershell)

    5 janvier 2024, par pops64

    I have clips from multiple different scenes in the same folder I was wondering if any one had a script that groups clips belonging to each scene together than pass them into ffmpeg for a concatenation and transcode. The file name pattern is uniform. And ids are separated by a hyphen with only the scene id being unique. I am currently doing this scene by scene in FFmpeg batch av converter but any help automating this in powershell would be greatly appreciated. I just can't figure out where to start

    &#xA;

    {name_of_scene}-{scene_id}-{clip_id}-{resolution}.{filetype}&#xA;

    &#xA;

  • Error with os.system in python script

    25 mai 2015, par Avery Ripoll Crocker

    I am creating a python script that will convert files using ffmpeg and unoconv. However when I run the program, rather than getting a converted file the program simply displays the text :

    sh: 1: unoconv -f: not found

    Here is the script for my program :

       path = raw_input("Please drag and drop the directory in which the file is stored into the terminal:")
       os.chdir(path[1:-2])
       filename = raw_input("Please enter the name of the file you would like to convert, including the file-type. e.g. test.txt, however please do make sure that the file-name does not have any spaces:")
       Fileextension = raw_input("What filetype would you like the program to convert your file to. E.g. .mp3: ")
       body, ext = os.path.splitext("filename")
       os.system("'ffmpeg -i ' + filename + body + Fileextension ")

    Any ideas as to why this happens ?