Recherche avancée

Médias (0)

Mot : - Tags -/protocoles

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (78)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

Sur d’autres sites (3821)

  • subprocess.call can't find file/shutil.which failed in pycharm

    4 décembre 2022, par Percy Yang

    I am trying to transform a mp3 to a wav file in pycharm using subprocess

    


    import subprocess
subprocess.call(['ffmpeg', '-i','test.mp3','test.wav'])


    


    It returns error of not finding file, so I change the 'ffmpeg' to its path on my pc and it work.

    


    The problem is that I am making an app and others might install ffpmeg on other's location (since it is download with zip and can be unzip at any place), but I don't know how to get its full path.

    


    I tried using os module

    


    import os
print(os.path('ffmpeg.exe'))


    


    but it seems like it is not able to get the path of exe

    


    Traceback (most recent call last):&#xA;  File "C:\Users\Percy\PycharmProjects\APP\test3.py", line 8, in <module>&#xA;    print(os.path(&#x27;ffmpeg.exe&#x27;))&#xA;TypeError: &#x27;module&#x27; object is not callable&#xA;</module>

    &#xA;

    I also tried shutil module

    &#xA;

    import shutil&#xA;print(shutil.which(&#x27;ffmpeg&#x27;))&#xA;print(shutil.which(&#x27;ffmpeg.exe&#x27;))&#xA;

    &#xA;

    but it returns 2 None (prob wrong cause I am 100% sure I have installed ffmpeg)

    &#xA;

    None&#xA;None&#xA;

    &#xA;

    I want to ask if there is any way to get the full path of ffmpeg in pycharm or any method that I can make ffmpeg install in designated path with the app when it is downloaded by users

    &#xA;

  • Redefinition of 'Picture'. isysroot is including Quickdraw.h into the build. Previous definition

    1er février 2019, par bruce

    Trying to build ffmpeg in Xcode 10.1. Getting

    Redefinition of ’Picture’

    Picture is defined in mpegpicture.h and in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/Headers/Quickdraw.h.

    I think the problem is -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk.

    How can I tell Xcode not to use the SDK frameworks ?

  • avcodec/vvc_mvs : remove an unnecessary AV_ZERO64() call

    24 janvier 2024, par James Almer
    avcodec/vvc_mvs : remove an unnecessary AV_ZERO64() call
    

    Should fix "member access within misaligned address 0xf00 for type 'const union
    av_alias64', which requires 8 byte alignment" errors as reported by GCC ubsan.

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/vvc/vvc_mvs.c