Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (51)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (5167)

  • 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])
  • Can i use FFMPEG in a python script to combine mp4 files from a list into one file

    1er novembre 2020, par goldenwallnut

    i was using moviepy but for some reason i could not get it to work ( kept telling me that i did not set up the config correctly). i was wondering if i could combine all .mp4 files in a list but still use python. this is what i got so far. is there any other ways to combine multible video files and do other things like add text to the video ?

    &#xA;

       import subprocess&#xA;   import os&#xA;lists = []&#xA;lists.append(&#x27;E:\1.mp4&#x27;)&#xA;lists.append(&#x27;E:\2.mp4&#x27;)&#xA;subprocess.call(&#x27;ffmpeg.exe -f concat -i &#x27;&#x2B;str(lists)&#x2B;&#x27; -c copy outcome.mp4&#x27;)&#xA;

    &#xA;

  • Calling ffmpeg from a ruby script fails

    26 mai 2015, par Laurie

    So I am trying to turn a series of multiple images into a video. The images are already created.

    At first I wanted to use streamio-ffmpeg, but it only seems to support taking input as video, not multiple picture files.

    I tried to turn the images into a movie by using the system command in ruby, calling the following ffmpeg command.

    system 'ffmpeg -start_number 1 -i image%04d.png -c:v libx264 -r 25 -pix_fmt yuv40p video.mp4'

    If you run this command on the command line it works no problem. When it is called using ruby’s system command it begins to run but the next line of the ruby script runs before the ffmpeg video encoding is finished. If you only have 30 frames or so it manages to complete the video file, but more than that it starts executing the rest of the script before the video.mp4 file has actually be fully created.

    I found this behavior to be rather strange because the system command is supposed to wait until whatever it runs has finished executing. Does anyone have any idea why this is happening and how to fix it ?