Recherche avancée

Médias (91)

Autres articles (33)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

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

  • MPEG DASH (MPD) to MP4 in Node.js ?

    28 janvier 2024, par Hello World

    I am trying to convert streams to .mp4 files. I have successfully converted an HLS to MP4 using fluent-ffmpeg package on version 2.1.2. I did so with with the following code :

    


    var ffmpegCommand = ffmpeg();
            ffmpegCommand
            .input(HLS FILE HERE)
            .inputOptions('-protocol_whitelist file,http,https,tcp,tls,crypto,data')
            .on("error", (err, stdout, stderr) => {
                console.log(err)
                let error = new Error(err.message)
                error.code = err.code || 'FILE_CONVERSION_M3U8_TO_MP3/UNKNOWN_ERROR';
                error.status = err.status || 500;

                console.log('An error occurred: ' + err.message, err, stderr);
                reject(error)
            })
            .on("end", () => {
                console.log(temporaryFilePath2)
                resolve(temporaryFilePath2);
            })
            .on('progress', function(progress) {
                console.log('progress: ' + (progress.percent || 0).toFixed(2) + '%。');
                progressGathering.push((progress.percent || 0).toFixed(2))

                if(progressGathering.length == 10 && progressGathering[9] == 0.00){
                    let error = new Error("File is a live stream.")
                    error.code = 'FILE_CONVERSION_M3U8_TO_MP3/LIVESTREAM_SUPPORT'
                    error.status = 501

                    ffmpegCommand.kill()
                    reject(error)
                }
            })
            .inputOptions('-allowed_extensions ALL')
            .outputOptions("-c copy")
            .output(temporaryFilePath2)
            .run();

            setTimeout(() => {
                ffmpegCommand.kill();
                let error = new Error("The file selected was too large or the network was hanging. Conversion timeout.")
                error.code = 'FILE_CONVERSION_M3U8_TO_MP3/TIMEOUT'
                error.status = 599;
                reject(error)
            }, 300000) // 5 minutes


    


    However, when I attempt something similar with a mpd file url in the input, I get several errors that are all the same :

    


    ffmpeg exited with code 1: https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd: Invalid data found when processing input

    


    Is this something fluent-ffmpeg can't handle ? If so, I would like to know another package that can accomplish this.

    


  • avformat/Makefile : Remove false dependency of WebM DASH manifest muxer

    7 avril 2020, par Andreas Rheinhardt
    avformat/Makefile : Remove false dependency of WebM DASH manifest muxer
    

    It does not use anything from libavformat/matroska.c.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavformat/Makefile
  • How to record a dash live stream in an encrypted mp4 format

    8 février 2021, par Vikral

    I want to record/download a live video. It's in a .mpd format. The video is protected with DRM, but I don't want to decrypt the video, instead of how to get an encrypted mp4 ? I have tried FFMPEG, youtube-dl, and streamlink,

    &#xA;

    FFMPEG

    &#xA;

    ffmpeg -i https://example.com/streaming/hds/live/master.mpd -codec copy encrypted_media.mp4

    &#xA;

    Error : Error when loading first fragment, playlist 0.

    &#xA;

    Tried youtube-dl

    &#xA;

    youtube-dl https://example.com/streaming/hds/live/master.mpd

    &#xA;

    Error : No Video Formats Found

    &#xA;

    And I also tried streamlink&#xA;streamlink https://example.com/streaming/hds/live/master.mpd best

    &#xA;

    Error : Video is protected by DRM.

    &#xA;

    But Nothing worked. How can I record a dash live stream in encrypted mp4 format ?

    &#xA;