Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • 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 (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (11485)

  • C# (discord music bot) Youtube to mp3 api with ffmpeg

    4 octobre 2017, par Greg Varadi

    Ok, so i have made a discord music bot before with youtube-dl in C#. But I don’t like it because it’s very slow. It has to download the song and then stream it using ffmpeg to discord. I don’t know but I think there is a quicker way.

    So, i decided to use a youtube to mp3 api to get a mp3 as quick as possible, but it won’t work. I mean I found an api that worked, but it’s the worst api I ever seen. This is the api : http://www.convertmp3.io/api/ . Sometimes doesn’t give the mp3, just a link to a download page that doesn’t work.

    I’m still searching for an api. Last time I found this :
    http://www.yt-mp3.com/fetch?v=VIDEO-ID&apikey=1234567
    This is for me the best. But ffmpeg doesn’t recognize the mp3. And I don’t know why because I can’t see any difference beetween them. Of course it’s probably something different but I can’t see what. And I don’t even know that ffmpeg will recognize any of these api’s mp3 files, but it’s working with this convertmp3.io api.

    So, my question is, is there someone who did something like this or someone who can give me advice ?

    By the way, I want something that is as quick as oxyl- or hime bot. And I know that using apis for getting mp3 from youtube videos is not by all means the most legal thing, because the copyright and stuff, but yeah... This is the only way, I think.

  • Node.js ffmetadata incorrect codec parameters

    21 juillet 2015, par Ahmed Hamdy

    I’m making a song downloader app in Node.js. I managed to get everything to work, the app downloads the song and downloads its artwork (image). So I have the mp3 file and jpg file. The only problem is attaching the jpg file to the mp3 file.

    I’m using the ffmetadata node.js module. I downloaded and installed its dependency "ffmpeg" cli.

    Now when I try to write the metadata to the mp3 file and attach the artwork it spits this error :

    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument

    My code :

    ffmetadata.write('test.mp3', {}, {attachments: ['test.jpg']}, function(err) {
     if (err) console.error(err);
    });

    The error :

    [Error: ffmpeg version N-73872-g6b96c70 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.9.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
     libavutil      54. 28.100 / 54. 28.100
     libavcodec     56. 50.101 / 56. 50.101
     libavformat    56. 40.101 / 56. 40.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 25.100 /  5. 25.100
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.101 /  1.  2.101
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'songs/Irresistible - Fall Out Boy (Lyrics).mp3':
     Metadata:
       major_brand     : dash
       minor_version   : 0
       compatible_brands: iso6mp41
       creation_time   : 2015-04-03 10:45:25
     Duration: 00:03:26.94, start: 0.000000, bitrate: 128 kb/s
       Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
       Metadata:
         creation_time   : 2015-04-03 10:45:25
         handler_name    : SoundHandler
    Input #1, image2, from 'songs/albumart/Irresistible - Fall Out Boy (Lyrics).jpg':
     Duration: 00:00:00.04, start: 0.000000, bitrate: 24578 kb/s
       Stream #1:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 640x640 [SAR 300:300 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
    [mp3 @ 0000000004865d80] Invalid audio stream. Exactly one MP3 audio stream is required.
    Output #0, mp3, to 'songs\Irresistible - Fall Out Boy (Lyrics).ffmetadata.mp3':
     Metadata:
       major_brand     : dash
       minor_version   : 0
       compatible_brands: iso6mp41
       dryRun          : true
       encoder         : Lavf56.40.101
       Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 125 kb/s (default)
       Metadata:
         creation_time   : 2015-04-03 10:45:25
         handler_name    : SoundHandler
       Stream #0:1: Video: mjpeg, yuvj444p, 640x640 [SAR 300:300 DAR 1:1], q=2-31, 25 tbr, 25 tbn, 25 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #1:0 -> #0:1 (copy)
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
    ]
  • ffmpeg player in discord.py (python) automatically leave

    25 octobre 2018, par Rastasplif

    I have created a discord bot that on certain messages either sends back a message or plays a sound (like a soundboard)

    The crucial line of code is :

            soundboard_player = voice_client.create_ffmpeg_player("doh.mp3")
            soundboard_player.start()
            await client.send_message(message.channel, "Playing DOH...")

    This works absolutely fine but i kept trying to add the line
    after=voice_client.disconnect()
    I put this inside the ("doh.mp3", * I PUT IT HERE *) brackets.
    I wanted the bot to leave after it was done.

    When I run the code with the ’after’ statement included, the bot joins and I get the error message :

    TypeError: disconnect() takes 1 positional argument but 2 were given

    I know you can use soundboard_player.is_done() to check the status of the bot but I couldn’t figure out a way to check the status without trapping the code in a loop

    By trapping the code in the loop I cant execute a STOP command to stop it playing the song (soundbite) half way through.

    Any help with the after=voice_client.disconnect() command for the ffmpeg player
    or a creative way to periodically check the status without getting trapped in the loop ?