Recherche avancée

Médias (0)

Mot : - Tags -/alertes

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

Autres articles (98)

  • 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 sons

    15 mai 2013, par
  • 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 (...)

Sur d’autres sites (10218)

  • Why does it say error finding module when I already installed it

    13 mai 2020, par MiqhtieLol

    I am trying to code a discord music bot and this is my code :

    



    const config = require('config.json')
const Discord = require('discord.js');
const ffmpeg = require('ffmpeg-extra')
const client = new Discord.Client();

client.once('ready', () => {
    console.log('Ready!');
});
client.on('message', message => {
    if(message.content.toLocaleLowerCase() === "elevator"){
        if(message.member.voice.channel){
            message.channel.send("Thanks to https://www.bensound.com for supplying us with this music.")
            play(message.member.voice.channel)
        }
        else {
            message.channel.send("Yo, please join a VC first.")
        }
    }
});

async function play(voiceChannel) {
    const connection = await voiceChannel.join();
    connection.play('elevator.mp3');
}

client.login(config.token);


    



    For some reason even though I installed ffmpeg via npm install ffmpeg it says :

    



    Error: Cannot find module 'ffmpeg-extra'


    



    EDIT : When I use const ffmpeg = require("ffmpeg") I get this error :

    



    UnhandledPromiseRejectionWarning: Error: FFmpeg/avconv not found!


    


  • ERROR in ./node_modules/fluent-ffmpeg/index.js Module not found : Error : Can't resolve './lib-cov/fluent-ffmpeg'

    3 octobre 2023, par yasgur99

    When I do yarn add fluent-ffmpeg i get this issue :

    



    WARNING in ./node_modules/electron-debug/index.js 96:45-58
Critical dependency: the request of a dependency is an expression
 @ dll renderer

WARNING in ./node_modules/electron-debug/index.js 97:61-74
Critical dependency: the request of a dependency is an expression
 @ dll renderer

WARNING in ./node_modules/fluent-ffmpeg/lib/options/misc.js 27:21-40
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/fluent-ffmpeg/lib/fluent-ffmpeg.js
 @ ./node_modules/fluent-ffmpeg/index.js
 @ dll renderer

ERROR in ./node_modules/fluent-ffmpeg/index.js
Module not found: Error: Can't resolve './lib-cov/fluent-ffmpeg' in '/Users/yasgur99/Documents/desktopapp/node_modules/fluent-ffmpeg'
 @ ./node_modules/fluent-ffmpeg/index.js 1:48-82
 @ dll renderer


    



    They said they fixed it in this GitIssue : here

    



    Anyone have any advice ?

    



    Some notes : Im using babel, I'm building an electron application

    


  • Swift framework project with internal C module - Undefined symbols for architecture arm64

    29 mars 2020, par Phạm Phi Phúc

    I’m creating Swift framework project using FFmpeg module internally.

    Steps are :

    1. Download source of FFmpeg from official website.
    2. Build it by build script here : https://github.com/kewlbear/FFmpeg-iOS-build-script
    3. Copy built file to project
    4. Create file module.modulemap, it’s content is :
    module FFmpeg [system][extern_c] {

       header "include/libavcodec/avcodec.h"
       header "include/libavdevice/avdevice.h"
       header "include/libavfilter/avfilter.h"
       header "include/libavformat/avformat.h"
       header "include/libavutil/avutil.h"
       header "include/libswresample/swresample.h"
       header "include/libswscale/swscale.h"

       export *
    }

    Project tree is :

    enter image description here

    1. Set Import paths for both project settings and target settings to
      $(SRCROOT)/MediaToolkit/Libraries/FFmpeg/**
    2. My source code is :
    import Foundation
    import FFmpeg

    public class MediaToolkit {
       public init(){}

       public func hello() {
           print("AVFMT_NOFILE: \(AVFMT_NOFILE)")
           avformat_network_init()
       }
    }

    When I build it, I received error

    Undefined symbols for architecture arm64:
     "_avformat_network_init", referenced from:
         MediaToolkit.MediaToolkit.hello(Swift.String) -> () in MediaToolkit.o
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    If I remove line avformat_network_init(), it will print AVFMT_NOFILE: 1