Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (56)

  • 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

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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (9754)

  • How do I playback .m4s files. And turn them into a binary stream for a Discord Bot

    30 octobre 2020, par Harvey

    I want to download the BBC radio 2 and stream it to a discord server. Each request is https://as-dash-uk-live.akamaized.net/pool_904/live/uk/bbc_radio_two/bbc_radio_two.isml/dash/bbc_radio_two-audio=320000-250636302.m4s However the Time stamp will change and they regularly delete content. I found a .dash file as well https://as-dash-uk-live.akamaized.net/pool_904/live/uk/bbc_radio_two/bbc_radio_two.isml/dash/bbc_radio_two-audio=320000.dash which is seems to request. However I can't find how to send it through a discord bot to a discord server. My code is

    


    const axios = require('axios')


module.exports = {
    play: async function (guild,message) {
        const serverQueue = {};
        const voiceChannel = message.member.voice.channel
        serverQueue.connection = await voiceChannel.join();
        plays(guild)
        
        async function plays(guild) {
            let data1 = new Date(1353439725);
            let data2 = new Date(Date.now()/1000);
            console.log(`https://as-dash-uk-live.akamaized.net/pool_904/live/uk/bbc_radio_two/bbc_radio_two.isml/dash/bbc_radio_two-audio=320000-${Math.floor((data2 - data1))-4000}.m4s`)
            const dispatcher = serverQueue.connection.play((await axios.get(`https://as-dash-uk-live.akamaized.net/pool_904/live/uk/bbc_radio_two/bbc_radio_two.isml/dash/bbc_radio_two-audio=320000-${Math.floor((data2 - data1))-4000}.m4s`)).data)
                .on('finish', () => {
                    console.log('Music ended!');
                    plays(guild);
                    return
                })
                .on('error', error => {
                    console.error(error);
                    plays(guild);
                    return
                });
            dispatcher.setVolumeLogarithmic(serverQueue.volume / 5);
        }
    }
}


    


    However no audio plays and the audio end event is always being called. Am I being really stupid or is there a way to do this.

    


  • FFMPEG : how i enable -decryption_key instead of -cenc_decryption_key when i do my ffmpeg build ? [closed]

    18 juillet 2024, par nabil mouslim

    i have é different ffmpeg bins , the first one have this option :

    


    dash AVOptions:


    


    -allowed_extensions .D......... List of file extensions that dash is allowed to access (default "aac,m4a,m4s,m4v,mov,mp4,webm,ts")

    


    -cenc_decryption_key .D......... Media decryption key (hex)

    


    and the second one have this option ; dash AVOptions :

    


    dash AVOptions:


    


    -allowed_extensions .D......... List of file extensions that dash is allowed to access (default "aac,m4a,m4s,m4v,mov,mp4,webm,ts")

    


    -decryption_key .D......... Media decryption key (hex)

    


    -http_persistent .D......... Use persistent HTTP connections (default true)

    


    i try all version of ffmpeg but after my build i always have the first options

    


    how i do to have -decryption_ke and -http_persistent options when i build my ffmpeg ??

    


  • const command is not defined using ffmpeg and child_process

    19 avril 2021, par davidf214

    I'm doing a project and I have a problem. Im trying to generate a .mpd file for a VOD web. The problem is that when i upload a video, it gets me into the function but it says "const command is not defined".

    


    exports.encodeDash = (videoFile) => {
    return new Promise((resolve, reject) => {
      const parsedFile = path.parse(videoFile);
      const outputFile = `${parsedFile.name}.mpd`
      const outputFilePath = `/videos/dash/${outputFile}`;
      const outputFilemp4 = `${parsedFile.name}.mp4`;
      const outputFilePathmp4 = `/videos/${outputFilemp4}`

      if (parsedFile.ext == '.mp4'){
        let command=`ffmpeg -i ${videoFile} -c:v libx264 -r 24 -g 24 -b:v 1000k -maxrate 1000k -bufsize 2000k /videos/dash/${parsedFile.name}-1000k.mp4 && bento4/bin/mp4fragment --fragment-duration 2000 /videos/dash/${parsedFile.name}-1000k.mp4 /videos/dash/fragmentado/${parsedFile.name}_1000k-frag.mp4 &&
                     ffmpeg -i ${videoFile} -c:v libx264 -r 24 -g 24 -b:v 500k -maxrate 500k -bufsize 1000k /videos/dash/${parsedFile.name}-500k.mp4 && bento4/bin/mp4fragment --fragment-duration 2000 /videos/dash/${parsedFile.name}-500k.mp4 /videos/dash/fragmentado/${parsedFile.name}_500k-frag.mp4 &&
                     ffmpeg -i  ${videoFile} -c:v libx264 -r 24 -g 24 -b:v 250k -maxrate 250k -bufsize 500k /videos/dash/${parsedFile.name}-250k.mp4 && bento4/bin/mp4fragment --fragment-duration 2000 /videos/dash/${parsedFile.name}-250k.mp4 /videos/dash/fragmentado/${parsedFile.name}_250k-frag.mp4 &&
                    python bento4/utils/mp4-dash.py --use-segment-timeline -o ${outputFilePath} /videos/dash/fragmentado/${parsedFile.name}_1000k-frag.mp4 /videos/dash/fragmentado/${parsedFile.name}_500k-frag.mp4 /videos/dash/fragmentado/${parsedFile.name}_250k-frag.mp4`;
      } else {
        let command=`ffmpeg -y -i ${videoFile} ${outputFilePathmp4} && ffmpeg -i ${outputFilePathmp4} -c:v libx264 -r 24 -g 24 -b:v 1000k -maxrate 1000k -bufsize 2000k /videos/dash/${parsedFile.name}-1000k.mp4 && bento4/bin/mp4fragment --fragment-duration 2000 /videos/dash/${parsedFile.name}-1000k.mp4 /videos/dash/fragmentado/${parsedFile.name}_1000k-frag.mp4 &&
                     ffmpeg -i ${outputFilePathmp4} -c:v libx264 -r 24 -g 24 -b:v 500k -maxrate 500k -bufsize 1000k /videos/dash/${parsedFile.name}-500k.mp4 && bento4/bin/mp4fragment --fragment-duration 2000 /videos/dash/${parsedFile.name}-500k.mp4 /videos/dash/fragmentado/${parsedFile.name}_500k-frag.mp4 &&
                     ffmpeg -i  ${outputFilePathmp4} -c:v libx264 -r 24 -g 24 -b:v 250k -maxrate 250k -bufsize 500k /videos/dash/${parsedFile.name}-250k.mp4 && bento4/bin/mp4fragment --fragment-duration 2000 /videos/dash/${parsedFile.name}-250k.mp4 /videos/dash/fragmentado/${parsedFile.name}_250k-frag.mp4 &&
                    python bento4/utils/mp4-dash.py --use-segment-timeline -o ${outputFilePath} /videos/dash/fragmentado/${parsedFile.name}_1000k-frag.mp4 /videos/dash/fragmentado/${parsedFile.name}_500k-frag.mp4 /videos/dash/fragmentado/${parsedFile.name}_250k-frag.mp4`;
      }    

                    
      // Encode
 
      
      child_process.exec(command, (err, stdout, stderr) => {
        if (err) {
          return reject(new Error(`Encoding error. ${stderr}`));
        }
        resolve(outputFilePath)
       
      });

   
    });
    
}


    


    Just in case, it gives me problems in line child_process.exec(command, (err, stdout, stderr). Thanks !