Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (79)

  • 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

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Les images

    15 mai 2013

Sur d’autres sites (9082)

  • Why is ffmpeg not working in my Python discord bot ?

    27 juillet 2023, par Dantheman1765

    I decided to start learning how to make a discord bot in Python and I have run into an issue with ffmpeg playing audio through my bot. I first wrote the code on my laptop and it worked fine but when I transferred it to my computer I ran into a problem and ffmpeg does not work. I can get the bot to join but it wont play anything. I am fairly certain I have installed all of the dependencies but I could be mistaken.

    


    Here is the code for the play function I am having trouble with :

    


    @client.command(pass_context=True) 
async def play(ctx, arg): 
    voice = ctx.guild.voice_client 
    source = FFmpegPCMAudio(arg) 
    player = voice.play(source) 


    


    and here are all of my imports :

    


    import discord 
from discord.ext import commands 
from discord import FFmpegPCMAudio 
from discord import Member


    


    I have installed ffmpeg and put it in my path as well.

    


    Whenever I try to use the play function, I get this message :

    


    discord.player ffmpeg process 33068 successfully terminated with return code of 4294967294.


    


    The process number changes but the return code stays the same.

    


    Can anyone help me get to the bottom of this or point me in the right direction ?

    


  • dnn : add openvino as one of dnn backend

    25 mai 2020, par Guo, Yejun
    dnn : add openvino as one of dnn backend
    

    OpenVINO is a Deep Learning Deployment Toolkit at
    https://github.com/openvinotoolkit/openvino, it supports CPU, GPU
    and heterogeneous plugins to accelerate deep learning inferencing.

    Please refer to https://github.com/openvinotoolkit/openvino/blob/master/build-instruction.md
    to build openvino (c library is built at the same time). Please add
    option -DENABLE_MKL_DNN=ON for cmake to enable CPU path. The header
    files and libraries are installed to /usr/local/deployment_tools/inference_engine/
    with default options on my system.

    To build FFmpeg with openvion, take my system as an example, run with :
    $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH :/usr/local/deployment_tools/inference_engine/lib/intel64/ :/usr/local/deployment_tools/inference_engine/external/tbb/lib/
    $ ../ffmpeg/configure —enable-libopenvino —extra-cflags=-I/usr/local/deployment_tools/inference_engine/include/ —extra-ldflags=-L/usr/local/deployment_tools/inference_engine/lib/intel64
    $ make

    Here are the features provided by OpenVINO inference engine :
    - support more DNN model formats
    It supports TensorFlow, Caffe, ONNX, MXNet and Kaldi by converting them
    into OpenVINO format with a python script. And torth model
    can be first converted into ONNX and then to OpenVINO format.

    see the script at https://github.com/openvinotoolkit/openvino/tree/master/model-optimizer/mo.py
    which also does some optimization at model level.

    - optimize at inference stage
    It optimizes for X86 CPUs with SSE, AVX etc.

    It also optimizes based on OpenCL for Intel GPUs.
    (only Intel GPU supported becuase Intel OpenCL extension is used for optimization)

    Signed-off-by : Guo, Yejun <yejun.guo@intel.com>
    Signed-off-by : Pedro Arthur <bygrandao@gmail.com>

    • [DH] configure
    • [DH] libavfilter/dnn/Makefile
    • [DH] libavfilter/dnn/dnn_backend_openvino.c
    • [DH] libavfilter/dnn/dnn_backend_openvino.h
    • [DH] libavfilter/dnn/dnn_interface.c
    • [DH] libavfilter/dnn_interface.h
  • Errno32 during MoviePy-FFMPEG write_videofile

    5 mars 2023, par Krest

    During write_videofile i get Errno32 inside Errno32

    &#xA;

    def creating_video(files, title):&#xA;    fragments = []&#xA;    for file in files:&#xA;        print(file)&#xA;        clip = VideoFileClip(file).subclip()&#xA;        fragments.append(clip)&#xA;    video = moviepy.editor.concatenate_videoclips(fragments)&#xA;    video.write_videofile(f"{title}.mp4")&#xA;    return None&#xA;&#xA;&#xA;video_fragments = preparing_videos(title)&#xA;creating_video(video_fragments[0], video_fragments[1])&#xA;

    &#xA;

    files is list containing paths to mp4 files making up final video

    &#xA;

    Current FFMPEG version - 5.1.2

    &#xA;

    Current MoviePy version - 1.0.3

    &#xA;

    I added FFMPEG to Path instead of using ImageIO-FFMPEG bundled with moviepy.&#xA;Checked different versions of FFMPEG&#xA;Checked app at linux system which generated .mp3 and mp.4 files but at the end after merging them the final file was broken.&#xA;Tried installing moviepy with pipx&#xA;On windows app doesnt even render chunks error :

    &#xA;

    chunk:   0%|          | 0/11098 [00:00&lt;?, ?it/s, now=None]Traceback (most recent call last):&#xA;    self.proc.stdin.write(frames_array.tobytes())&#xA;BrokenPipeError: [Errno 32] Broken pipe&#xA;&#xA;During handling of the above exception, another exception occurred:&#xA;&#xA;OSError: [Errno 32] Broken pipe&#xA;&#xA;MoviePy error: FFMPEG encountered the following error while writing file titleTEMP_MPY_wvf_snd.mp3:&#xA;b&#x27;titleTEMP_MPY_wvf_snd.mp3: Invalid argument\r\n&#x27;&#xA;

    &#xA;