Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (44)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • 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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (6895)

  • Concatenate mp4 files in Android using halfninja ffmpeg

    21 février 2015, par Budius

    I’ve manage to compile halfninja ffmpeg scripts for Android NDK using NDK version r5c. (Unfortunately any attempt to compile with earlier NDK generated some error), also I’m not very knowledgeable on the whole NDK process, so it’s a bit hit-n-miss for me.

    His scripts are compiling ffmpeg version N-30996-gf925b24 (the specific commit he did the scripts for)

    Moving forward to my actual app.
    I manage to trim videos without problems, now I need to join/concatenate them but any attemp at using any and several combinations of the commands found on those 3 links (link1, link2, link3) generate errors such as cat is not valid, > is undefinined, unknown option filter_complex or trying to override some of the input files.

    Does anyone know if it’s possible and (how to do it), to join/concatenate mp4 videos (all same codec, size, quality, etc) using half-ninja compile of ffmpeg on Android, or how to compile/get a ffmpeg for Android using latest source codes ?

    I’ve also gave a quick try on the mp4Parser without much success.

    ultimately I was trying to get this pseudo-method to work :

    public static File concatenate(String[] inputPaths, String outputPath){

       // ... do stuff do generate ffmpeg commands....
       VideoKit v = new VideoKit();
       v.run(cmds);

       File f = new File(outputPath);
       return f;
    }
  • Streaming raw sound with FFMPEG

    30 juin 2020, par Dr_Click

    I'm using the ffmpeg library to decode / encode audio in JAVA, using the Process objets. The aim is to got the raw datas decoded by ffmpeg in my JAVA code and then, to send them back to ffmpeg to generate a stream or create a file.

    



    As JAVA sounds only allow wav audio datas, I made a first try with this command line :

    



    ffmpeg -i http://199.180.75.118:80 -acodec pcm_s16le -ar 44100 -ac 2 "/home/dr_click/montest.wav"


    



    It works. But, my goal is to get the frames on the fly and not a file. I thought about using a pipe but it seems it will work only with Linux and not with Windows (and no idea for MacOS)
So, I'd prefer to stream locally a wav file and to catch it with JAVA into a AudioInputStream.

    



    I wrote this command :

    



    ffmpeg -re -i http://199.180.75.118:80 -acodec pcm_s16le -ar 44100 -ac 2 -f rtp rtp://127.0.0.1:1234


    



    It semms to work on the server side. But, when I enter the below command line on the server side :

    



    ffplay rtp://127.0.0.1:1234


    



    It doesn't work at all. I got this error :

    



      

    • [rtp @ 0x7f29c8000b80] Unable to receive RTP payload type 97 without an SDP file describing it
    • 


    



    If I try the couple :

    



    ffmpeg -i http://199.180.75.118:80 -acodec pcm_s16le -ar 44100 -ac 2 -f rtp -sdp_file /home/dr_click/audio.sdp rtp://127.0.1.1:1234


    



    and

    



    ffplay /home/dr_click/audio.sdp


    



    I got the following error :

    



      

    • [rtp @ 0x7f7d00008040] Protocol 'rtp' not on whitelist 'file,crypto' ! if
    • 


    



    And if I finally try :

    



    fmpeg -protocol_whitelist file,http,rtp,tcp -i http://199.180.75.118:80 -acodec pcm_s16le -ar 44100 -ac 2 -f rtp -sdp_file /home/dr_click/audio.sdp rtp://127.0.1.1:1234


    



    I still get the same error.

    



    Which point do I miss to stream locally some raw datas and catch them back in the AudioInputStream ?

    



    Thank you for all your replies.

    


  • Discord Bot Not Playing Audio discord.js v13

    17 avril 2023, par ChronoAero

    I'm trying to make a discord bot that can play mp3 files in a voice channel.. but it doesn't seem to work as intended

    


    
            connection = joinVoiceChannel({
                channelId: voice.channelId,
                guildId: interaction.guildId,
                adapterCreator: voice.channel.guild.voiceAdapterCreator,
            });
            
            
            let resource = createAudioResource(createReadStream(join(__dirname, 'resources/try.mp3')), {
                inlineVolume : true
            });

            resource.volume.setVolume(0.2);

            console.log(join(__dirname, 'resources/try.mp3'));
            
            const player = createAudioPlayer();

            connection.subscribe(player);
            player.play(resource)
            console.log("done");

            await interaction.reply('I have joined the voice channel!');


    


    It successfully joined the voice channel, but it does not play any sound at all

    


    The bot joined the voice channel

    


    I have made sure that the directory name is correct by console.logging join(__dirname, 'resources/try.mp3')

    


    I have also tried to check the required dependency for playing audios in discord.js v13

    


    const { generateDependencyReport } = require('@discordjs/voice');

console.log(generateDependencyReport());


    


    here's the output :

    


    --------------------------------------------------
Core Dependencies
- @discordjs/voice: 0.6.0
- prism-media: 1.3.2

Opus Libraries
- @discordjs/opus: 0.5.3
- opusscript: not found

Encryption Libraries
- sodium: not found
- libsodium-wrappers: 0.7.9
- tweetnacl: not found

FFmpeg
- version: 4.4-essentials_build-www.gyan.dev
- libopus: yes
--------------------------------------------------


    


    I think the discord.js v13 docs said that it only requires any one of each Core , Opus, Encryption, and FFmpeg Dependencies (Correct me if I'm wrong)

    


    Did I miss anything ?

    


    Thank you in advance