Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (111)

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (14063)

  • 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;