Recherche avancée

Médias (0)

Mot : - Tags -/alertes

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

Autres articles (54)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (8692)

  • Revision d30f6b3ef8 : rename README.webm -> README.libvpx matches the project name and doesn't share

    11 avril 2014, par James Zern

    Changed Paths :
     Add /third_party/googletest/README.libvpx
    (from /third_party/googletest/README.webm
    :dc89e9b0b6a668ca4082e20463eb767f655b6909)
     Delete /third_party/googletest/README.webm


     Add /third_party/libwebm/README.libvpx
    (from /third_party/libwebm/README.webm
    :dc89e9b0b6a668ca4082e20463eb767f655b6909)
     Delete /third_party/libwebm/README.webm


     Add /third_party/libyuv/README.libvpx
    (from /third_party/libyuv/README.webm
    :dc89e9b0b6a668ca4082e20463eb767f655b6909)
     Delete /third_party/libyuv/README.webm


     Add /third_party/nestegg/README.libvpx
    (from /third_party/nestegg/README.webm
    :dc89e9b0b6a668ca4082e20463eb767f655b6909)
     Delete /third_party/nestegg/README.webm


     Add /third_party/x86inc/README.libvpx
    (from /third_party/x86inc/README.webm
    :dc89e9b0b6a668ca4082e20463eb767f655b6909)
     Delete /third_party/x86inc/README.webm



    rename README.webm -> README.libvpx

    matches the project name and doesn't share a media file extension

    Change-Id : I9ad6c0a180e36c41f8fc49120615a070ea792a30

  • Why can't my python project find ffmpeg even though it's installed in the Python library ?

    20 octobre 2024, par Jieyu Zhang

    I am encountering an issue where my project cannot find ffmpeg, even though it is installed in the Python library. Here are the details :

    


    When running the script, I get the following error message:

D:\Python\Lib\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
  warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
Additionally, I receive this error message when trying to prepare the dataset:



from pydub import AudioSegment
import os


# Specify the path to ffmpeg
ffmpeg_path = "D:\\Python-code\\ffmpeg-master-latest-win64-gpl\\bin\\ffmpeg.exe"
AudioSegment.ffmpeg = ffmpeg_path

def convert_flac_to_wav(flac_file, wav_file):
    sound = AudioSegment.from_file(flac_file, format="flac")
    sound.export(wav_file, format="wav")

if __name__ == "__main__":
    # Get the current working directory
    current_dir = os.getcwd()
    print(f"Current directory: {current_dir}")

    # Get the parent directory of the current working directory
    root_dir = os.path.dirname(current_dir)
    print(f"Root directory: {root_dir}")

    # Construct the path
    voice_wavs = os.path.join(root_dir, 'data', 'voice', 'wav')
    print(f"Voice WAVs directory: {voice_wavs}")

    # Ensure the directory exists
    if not os.path.exists(voice_wavs):
        os.makedirs(voice_wavs)
        print(f"Created directory: {voice_wavs}")
    else:
        print(f"Directory exists: {voice_wavs}")

    # Get all .flac files
    # Ensure .flac files are located in the current working directory
    flac_files = [f for f in os.listdir(current_dir) if f.endswith('.flac')]
    print(f"FLAC files found: {flac_files}")

    # Convert each .flac file
    for flac_file in flac_files:
        input_flac = os.path.join(current_dir, flac_file)
        output_wav = os.path.join(current_dir, flac_file.replace('.flac', '.wav'))
        convert_flac_to_wav(input_flac, output_wav)



    


    Despite these steps, the project continues to report that ffmpeg cannot be found. Could someone help me identify what might be causing this issue and how to resolve it ?

    


  • No module named 'skvideo.io.ffmpeg' in the project

    12 juillet 2024, par kyobo

    Even though I have installed the scikit-video and installed ffmpeg, I still meet this problem :
    
No module named 'skvideo.io.ffmpeg

    


    Output :

    


    (sd) huishi@huishi:~/workspace/projectsideo_python$ **pip install scikit-video**&#xA;Requirement already satisfied: scikit-video in /home/huishi/anaconda3/envs/sdb/python3.8/site-packages (1.1.11)&#xA;Requirement already satisfied: scipy in /home/huishi/anaconda3/envs/sdb/python3.8/site-packages (from scikit-video) (1.8.1)&#xA;Requirement already satisfied: pillow in /home/huishi/anaconda3/envs/sdb/python3.8/site-packages (from scikit-video) (9.2.0)&#xA;Requirement already satisfied: numpy in /home/huishi/anaconda3/envs/sdb/python3.8/site-packages (from scikit-video) (1.23.0)&#xA;(sd) huishi@huishi:~/workspace/projectsideo_python$ **sudo apt-get install ffmpeg**&#xA;正在读取软件包列表... 完成&#xA;正在分析软件包的依赖关系树       &#xA;正在读取状态信息... 完成       &#xA;ffmpeg 已经是最新版 (7:3.4.11-0ubuntu0.1)。&#xA;下列软件包是自动安装的并且现在不需要了:&#xA;  docker-scan-plugin gir1.2-goa-1.0 gir1.2-snapd-1&#xA;使用&#x27;sudo apt autoremove&#x27;来卸载它(它们)。&#xA;升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 20 个软件包未被升级。&#xA;(sd) huishi@huishi:~/workspace/projectsideo_python$ python RabbitMqUtils.py &#xA;The license has expired.&#xA;/home/huishi/workspace/projectsideo_python/train_resource/train_split.py:12: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.&#xA;  tr_configs = yaml.load(f)&#xA;INFO: Created TensorFlow Lite XNNPACK delegate for CPU.&#xA;/home/huishi/anaconda3/envs/sdb/python3.8/site-packages/skvideo/__init__.py:306: UserWarning: ffmpeg/ffprobe not found in path: /usr/local/bin&#xA;  warnings.warn("ffmpeg/ffprobe not found in path: " &#x2B; str(path), UserWarning)&#xA;Traceback (most recent call last):&#xA;  File "RabbitMqUtils.py", line 17, in <module>&#xA;    from video_postprocess import post_Process&#xA;  File "/home/huishi/workspace/projectsideo_pythonideo_postprocess/post_Process.py", line 12, in <module>&#xA;    import skvideo.io&#xA;  File "/home/huishi/anaconda3/envs/sdb/python3.8/site-packages/skvideo/io/__init__.py", line 8, in <module>&#xA;    from .ffmpeg import *&#xA;ModuleNotFoundError: **No module named &#x27;skvideo.io.ffmpeg&#x27;**&#xA;(sd) huishi@huishi:~/workspace/projectsideo_python$&#xA;</module></module></module>

    &#xA;

    I have tried to upgrade pip and skvideo but it doesn't work.

    &#xA;

    How can I solve this problem ?

    &#xA;