Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (38)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (7308)

  • dnn/vf_dnn_detect.c : add tensorflow output parse support

    6 mai 2021, par Ting Fu
    dnn/vf_dnn_detect.c : add tensorflow output parse support
    

    Testing model is tensorflow offical model in github repo, please refer
    https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf2_detection_zoo.md
    to download the detect model as you need.
    For example, local testing was carried on with 'ssd_mobilenet_v2_coco_2018_03_29.tar.gz', and
    used one image of dog in
    https://github.com/tensorflow/models/blob/master/research/object_detection/test_images/image1.jpg

    Testing command is :
    ./ffmpeg -i image1.jpg -vf dnn_detect=dnn_backend=tensorflow:input=image_tensor:output=\
    "num_detections&detection_scores&detection_classes&detection_boxes":model=ssd_mobilenet_v2_coco.pb,\
    showinfo -f null -

    We will see the result similar as below :
    [Parsed_showinfo_1 @ 0x33e65f0] side data - detection bounding boxes :
    [Parsed_showinfo_1 @ 0x33e65f0] source : ssd_mobilenet_v2_coco.pb
    [Parsed_showinfo_1 @ 0x33e65f0] index : 0, region : (382, 60) -> (1005, 593), label : 18, confidence : 9834/10000.
    [Parsed_showinfo_1 @ 0x33e65f0] index : 1, region : (12, 8) -> (328, 549), label : 18, confidence : 8555/10000.
    [Parsed_showinfo_1 @ 0x33e65f0] index : 2, region : (293, 7) -> (682, 458), label : 1, confidence : 8033/10000.
    [Parsed_showinfo_1 @ 0x33e65f0] index : 3, region : (342, 0) -> (690, 325), label : 1, confidence : 5878/10000.

    There are two boxes of dog with cores 94.05% & 93.45% and two boxes of person with scores 80.33% & 58.78%.

    Signed-off-by : Ting Fu <ting.fu@intel.com>
    Signed-off-by : Guo, Yejun <yejun.guo@intel.com>

    • [DH] libavfilter/vf_dnn_detect.c
  • Python - why do I get this ffprobe error ?

    4 juillet 2022, par gasper101

    I am on mac and am working on a project in which my program shoud convert a .mp3 file into a .wav file and than get text from that file (basic speech recognition). For converting a .mp3 file into a .wav file I am using ffmpeg library. I have installed both ffmpeg and ffprobe libraryies using pip and than using homebrew so I have them installed in a folder.

    &#xA;

    This is my code :

    &#xA;

    import speech_recognition&#xA;from pydub import AudioSegment&#xA;from os import path&#xA;&#xA;&#xA;#get text from original voice file------------------------------------------------- &#xA;&#xA;sound = AudioSegment.from_mp3("/path/to/file.mp3")&#xA;sound.export("/output/path/file.wav", format="wav")&#xA;&#xA;file_audio = speech_recognition.AudioFile(&#x27;/output/path/file.wav&#x27;)&#xA;&#xA;r = speech_recognition.Recognizer()&#xA;with file_audio as source:&#xA;    audio_text = r.record(source)&#xA;&#xA;word = r.recognize_google(audio_text)&#xA;

    &#xA;

    And this is the error i get :&#xA;FileNotFoundError : [Errno 2] No such file or directory : 'ffprobe'

    &#xA;

    Full error :&#xA;Warning (from warnings module) :&#xA;File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydub/utils.py", line 170&#xA;warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)&#xA;RuntimeWarning : Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work

    &#xA;

    Warning (from warnings module) :&#xA;File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydub/utils.py", line 198&#xA;warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)

    &#xA;

    RuntimeWarning : Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work&#xA;Traceback (most recent call last) :&#xA;File "/Users/marcus/Downloads/pronaunciation_checker/pronaunciation_check.py", line 12, in &#xA;sound = AudioSegment.from_mp3("/Users/marcus/Desktop/think.mp3")&#xA;File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydub/audio_segment.py", line 796, in from_mp3&#xA;return cls.from_file(file, 'mp3', parameters=parameters)&#xA;File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydub/audio_segment.py", line 728, in from_file&#xA;info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)&#xA;File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydub/utils.py", line 274, in mediainfo_json&#xA;res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)&#xA;File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in init&#xA;self._execute_child(args, executable, preexec_fn, close_fds,&#xA;File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1821, in _execute_child&#xA;raise child_exception_type(errno_num, err_msg, err_filename)&#xA;FileNotFoundError : [Errno 2] No such file or directory : 'ffprobe'

    &#xA;

  • ytdl python "KeyError : formats"

    7 juillet 2022, par Mondumkreisung

    Im trying to make a discord music bot for personal use, since groovy and rythm got shut down.&#xA;It's working okay-ish I guess, but im having a problem with ytdl.&#xA;typing "-play" and an url is working just like intended, but i cant type "-play 'song name'".&#xA;Typing "-play example" gives me this :

    &#xA;

    [download] Downloading playlist: example&#xA;[youtube:search] query "example": Downloading page 1&#xA;[youtube:search] playlist example: Downloading 1 videos&#xA;[download] Downloading video 1 of 1&#xA;[youtube] CLXt3yh2g0s: Downloading webpage&#xA;Ignoring exception in command play:&#xA;[download] Finished downloading playlist: example&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\Dennis\PycharmProjects\groovy&#x27;s true successor\venv\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped&#xA;    ret = await coro(*args, **kwargs)&#xA;  File "C:\Users\Dennis\PycharmProjects\groovy&#x27;s true successor\voice.py", line 53, in play&#xA;    url2 = info[&#x27;formats&#x27;][0][&#x27;url&#x27;]&#xA;KeyError: &#x27;formats&#x27;&#xA;&#xA;The above exception was the direct cause of the following exception:&#xA;&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\Dennis\PycharmProjects\groovy&#x27;s true successor\venv\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke&#xA;    await ctx.command.invoke(ctx)&#xA;  File "C:\Users\Dennis\PycharmProjects\groovy&#x27;s true successor\venv\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke&#xA;    await injected(*ctx.args, **ctx.kwargs)&#xA;  File "C:\Users\Dennis\PycharmProjects\groovy&#x27;s true successor\venv\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped&#xA;    raise CommandInvokeError(exc) from exc&#xA;discord.ext.commands.errors.CommandInvokeError: Command raised an exception: KeyError: &#x27;formats&#x27;&#xA;

    &#xA;

    im fairly new to coding, so im sorry if somethings weird to understand.

    &#xA;

    okay, so : typing -play with an url works fine, but typing -play with the song name doesnt. its only searching for the first word, downloads the first searchresult and then "crashes".

    &#xA;

    so "-play Rick Astley - Never Gonna Give You Up" for example only searches for "Rick" and then it says something about KeyError : 'formats'&#xA;Here is my code :

    &#xA;

    @client.command()&#xA;async def play(ctx, url):&#xA;    channel = ctx.author.voice.channel&#xA;    voice = discord.utils.get(client.voice_clients, guild=ctx.guild)&#xA;    if voice and voice.is_connected():&#xA;        pass&#xA;    else:&#xA;        await channel.connect()&#xA;&#xA;    ffmpeg_opts = {&#x27;before_options&#x27;: &#x27;-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5&#x27;, &#x27;options&#x27;: &#x27;-vn&#x27;}&#xA;    ydl_opts = {&#x27;format&#x27;: "bestaudio/best", &#x27;default_search&#x27;: &#x27;auto&#x27;}&#xA;    vc = ctx.voice_client&#xA;&#xA;    with youtube_dl.YoutubeDL(ydl_opts) as ydl:&#xA;        info = ydl.extract_info(url, download=False)&#xA;        url2 = info[&#x27;formats&#x27;][0][&#x27;url&#x27;]&#xA;        source = await discord.FFmpegOpusAudio.from_probe(url2, **ffmpeg_opts)&#xA;        vc.play(source)&#xA;

    &#xA;