Recherche avancée

Médias (1)

Mot : - Tags -/publier

Autres articles (47)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (7305)

  • pydub no ffprobe found

    21 septembre 2019, par Virgil Sisoe

    I have an app for MacOS that is compiled with py2app. The app uses the pydub module and the latter uses ffmpeg family package.

    The problem is that once I compile the app and move it to a different OS, the subprocess call from pydub fails to find any of the ffmpeg packages even though they are installed in /usr/local/bin.

    If I launch the app from terminal ./Nameapp.app/Contents/MacOs/Nameapp then it runs no problem, but if I launch it with double click then pydub complains not finding the packages and the app hangs where ffmpeg/ffprobe should do the work.

    I can see that pydub searches in the /usr/local/bin only if launched from terminal, otherwise no. If I add /usr/local/bin to PATH, pydub doesnt complain anymore that it doesnt find ffmpeg/ffprobe, but it still gives me an error for both ffmpeg and ffprobe : [Errno 2] No such file or directory:.

    If I hardcode the path pydub.AudioSegment.converter = "/usr/local/bin/ffmpeg", the app gives me only ffprobe error [Errno 2] No such file or directory:'ffprobe': 'ffprobe'.

    On some other posts i’ve seen pydub.AudioSegment.ffprobe = "/path/to/ffprobe" but it doesnt seem to work in my case ?

    So my two questions are :

    How to hardcode the ffprobe path in pydub ?
    How to solve this without hardcoding path ?

  • 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])
  • FFmpeg with eclipse

    16 août 2020, par Cristian Jorge A. Kusch

    I'm having problems with eclipse and ffmpeg, there are false errors being detected by the IDE. I was able to compile without problems with the terminal, and no erros were detected, i'm using the last version of Ubuntu. I can also build it with eclipse, but i get a lot of false errors.&#xA;I cloned the repository from github and then selected makefile project with existing files, and i selected the gnu autotools toolchain for the indexer settings.&#xA;I was able to get it to build, but i had to run the ./configure command from the terminal first, otherwise i got this error makefile:167 : /tests/makefile : no such file or directory&#xA;So the issue i have is that even though it builds properly i get a huge ammount of errors like these :

    &#xA;

    Field &#x27;border_glyph&#x27; could not be resolved  vf_drawtext.c   /ffmpeg/libavfilter line 347    Semantic Error&#xA;Field &#x27;border_glyph&#x27; could not be resolved  vf_drawtext.c   /ffmpeg/libavfilter line 797    Semantic Error&#xA;Field &#x27;buffer&#x27; could not be resolved    vf_drawtext.c   /ffmpeg/libavfilter line 1252   Semantic Error&#xA;Field &#x27;BufferId&#x27; could not be resolved  vf_deinterlace_qsv.c    /ffmpeg/libavfilter line 232    Semantic Error&#xA;Field &#x27;BufferId&#x27; could not be resolved  vf_deinterlace_qsv.c    /ffmpeg/libavfilter line 253    Semantic Error&#xA;Field &#x27;BufferSz&#x27; could not be resolved  vf_deinterlace_qsv.c    /ffmpeg/libavfilter line 233    Semantic Error&#xA;

    &#xA;

    any help ? thanks

    &#xA;