Recherche avancée

Médias (0)

Mot : - Tags -/albums

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

Autres articles (74)

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

Sur d’autres sites (9016)

  • Core : remove pending class from fields with an aborted request (#2436)

    17 juillet 2022, par bidord
    Core : remove pending class from fields with an aborted request (#2436)
    

    Ref #2434
    Ref #2435

    Co-authored-by : Sylvain Monné <sylvain@monne.me>

  • unable to access a class function from its object instance

    23 mars 2021, par Alp4x

    I'm unable to access a class function from its object instance - the object is being initialized properly and the constructor runs perfectly as well - just not able to explicitly call a function from that class

    &#xA;

    Code for my FFmpeg class :

    &#xA;

    module.exports = class FFmpeg {&#xA;  constructor(rtpParameters) {&#xA;    this._rtpParameters = rtpParameters;&#xA;    this._process = undefined;&#xA;    this._observer = new EventEmitter();&#xA;    this._createProcess();&#xA;  }&#xA;&#xA;  _createProcess() {&#xA;    const sdpString = createSdpText(this._rtpParameters);&#xA;    const sdpStream = convertStringToStream(sdpString);&#xA;&#xA;    console.log("createProcess() [sdpString:%s]", sdpString);&#xA;&#xA;    this._process = child_process.spawn("ffmpeg", this._commandArgs);&#xA;&#xA;    if (this._process.stderr) {&#xA;      this._process.stderr.setEncoding("utf-8");&#xA;&#xA;      this._process.stderr.on("data", (data) =>&#xA;        console.log("ffmpeg::process::data [data:%o]", data)&#xA;      );&#xA;    }&#xA;&#xA;    if (this._process.stdout) {&#xA;      this._process.stdout.setEncoding("utf-8");&#xA;&#xA;      this._process.stdout.on("data", (data) =>&#xA;        console.log("ffmpeg::process::data [data:%o]", data)&#xA;      );&#xA;    }&#xA;&#xA;    this._process.on("message", (message) =>&#xA;      console.log("ffmpeg::process::message [message:%o]", message)&#xA;    );&#xA;&#xA;    this._process.on("error", (error) =>&#xA;      console.error("ffmpeg::process::error [error:%o]", error)&#xA;    );&#xA;&#xA;    this._process.once("close", () => {&#xA;      console.log("ffmpeg::process::close");&#xA;      this._observer.emit("process-close");&#xA;    });&#xA;&#xA;    sdpStream.on("error", (error) =>&#xA;      console.error("sdpStream::error [error:%o]", error)&#xA;    );&#xA;&#xA;    // Pipe sdp stream to the ffmpeg process&#xA;    sdpStream.resume();&#xA;    sdpStream.pipe(this._process.stdin);&#xA;  }&#xA;&#xA;  kill() {&#xA;    console.log("kill() [pid:%d]", this._process.pid);&#xA;    this._process.kill("SIGINT");&#xA;  }&#xA;&#xA;  get _commandArgs() {&#xA;    let commandArgs = [&#xA;      "-loglevel",&#xA;      "debug",&#xA;      "-protocol_whitelist",&#xA;      "pipe,udp,rtp",&#xA;      "-fflags",&#xA;      "&#x2B;genpts",&#xA;      "-f",&#xA;      "sdp",&#xA;      "-i",&#xA;      "pipe:0",&#xA;    ];&#xA;&#xA;    commandArgs = commandArgs.concat(this._videoArgs);&#xA;    commandArgs = commandArgs.concat(this._audioArgs);&#xA;&#xA;    commandArgs = commandArgs.concat([&#xA;      "-flags",&#xA;      "&#x2B;global_header",&#xA;      `${RECORD_FILE_LOCATION_PATH}/${this._rtpParameters.fileName}.webm`,&#xA;    ]);&#xA;&#xA;    console.log("commandArgs:%o", commandArgs);&#xA;&#xA;    return commandArgs;&#xA;  }&#xA;&#xA;  get _videoArgs() {&#xA;    return ["-map", "0:v:0", "-c:v", "copy"];&#xA;  }&#xA;&#xA;  get _audioArgs() {&#xA;    return [&#xA;      "-map",&#xA;      "0:a:0",&#xA;      "-strict", // libvorbis is experimental&#xA;      "-2",&#xA;      "-c:a",&#xA;      "copy",&#xA;    ];&#xA;  }&#xA;};&#xA;

    &#xA;

    My implementation of creation of this class' instance :

    &#xA;

    async startRecord() {&#xA;    if (this._isRecording) return;&#xA;&#xA;    this._isRecording = true;&#xA;    let recordInfo = {};&#xA;    const joinedPeers = this._getJoinedPeers();&#xA;    for (const peer of joinedPeers) {&#xA;      for (const producer of peer.data.producers.values()) {&#xA;        recordInfo[producer.kind] = await this.publishProducerRtpStream(&#xA;          peer,&#xA;          producer&#xA;        );&#xA;        recordInfo.fileName = Date.now().toString();&#xA;&#xA;        peer.data.process = this.getProcess(recordInfo);&#xA;        setTimeout(async () => {&#xA;          console.log(peer.data.process);&#xA;          // I want to call peer.data.process.kill() HERE!&#xA;        }, 4000);&#xA;      }&#xA;    }&#xA;  }&#xA;  async getProcess(recordInfo) {&#xA;    return new FFmpeg(recordInfo);&#xA;  }&#xA;

    &#xA;

    I want to call the kill() function in FFmpeg and it shows undefined. Really don't understand how.

    &#xA;

    Here's the log of the object instance (which doesn't have the "kill" function mentioned anywhere and maybe hence shows that .kill() is undefined)

    &#xA;

    console logging the object created from the class FFmpeg (new FFmpeg)

    &#xA;

    Would greatly appreciate any help.&#xA;Thanks !

    &#xA;

  • Duplicate class I'm already using ffmpeg_kit_flutter_audio in my code : 5.1.0-LTS for audio conversion video_editor : ^2.1.0

    21 août 2024, par Rafael Dos Santos Coladelo

    I'm already using in my code : ffmpeg_kit_flutter_audio-5.1.0-LTS&#xA;for audio conversion, when you put the&#xA;video_editor : ^2.1.0&#xA;general the error, is there any way to solve it ?

    &#xA;

    FAILURE : Build failed with an exception.

    &#xA;

      &#xA;
    • What went wrong :&#xA;Execution failed for task ':app:checkDebugDuplicateClasses'.
    • &#xA;

    &#xA;

    &#xA;

    A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable&#xA;Duplicate class com.arthenica.ffmpegkit.Abi found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.AbiDetect found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.AbstractSession found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.AsyncFFmpegExecuteTask found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.AsyncFFprobeExecuteTask found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.AsyncGetMediaInformationTask found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.BuildConfig found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.CameraSupport found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.Chapter found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.FFmpegKit found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.FFmpegKitConfig found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.FFmpegKitConfig$1 found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.FFmpegKitConfig$2 found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.FFmpegKitConfig$SAFProtocolUrl found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.FFmpegSession found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.FFmpegSessionCompleteCallback found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.FFprobeKit found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.FFprobeSession found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.FFprobeSessionCompleteCallback found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.Level found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.Log found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.LogCallback found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.LogRedirectionStrategy found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.MediaInformation found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.MediaInformationJsonParser found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.MediaInformationSession found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.MediaInformationSessionCompleteCallback found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.NativeLoader found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.Packages found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.ReturnCode found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.Session found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.SessionState found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.Signal found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.Statistics found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.StatisticsCallback found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)&#xA;Duplicate class com.arthenica.ffmpegkit.StreamInformation found in modules jetified-ffmpeg-kit-audio-5.1.LTS-runtime (com.arthenica:ffmpeg-kit-audio:5.1.LTS) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)

    &#xA;

    &#xA;

     Go to the documentation to learn how to <a href="http://stackoverflow.com/feeds/tag/d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.&#xA;

    &#xA;

      &#xA;
    • Try :
    • &#xA;

    &#xA;

    &#xA;

    Run with —stacktrace option to get the stack trace.&#xA;Run with —info or —debug option to get more log output.&#xA;Run with —scan to get full insights.

    &#xA;

    &#xA;

    &#xA;

    BUILD FAILED in 6s&#xA;Exception : Gradle task assembleDebug failed with exit code 1

    &#xA;

    &#xA;