Recherche avancée

Médias (91)

Autres articles (64)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (10479)

  • permission is denied using Android Q ffmpeg" : error=13, Permission denied

    27 juillet 2022, par v teja

    I want to get the frames from the RTSP video using ffmpeg. But for android 10 above I am getting error as below.

    



     E/FFmpeg: Exception while trying to run: [Ljava.lang.String;@55e447f&#xA;java.io.IOException: Cannot run program "/data/user/0/com.example.downloadimagefromurl/files/ffmpeg": error=13, Permission denied&#xA;    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)&#xA;    at java.lang.Runtime.exec(Runtime.java:698)&#xA;    at java.lang.Runtime.exec(Runtime.java:563)&#xA;    at com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10)&#xA;    at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38)&#xA;    at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10)&#xA;    at android.os.AsyncTask$3.call(AsyncTask.java:378)&#xA;    at java.util.concurrent.FutureTask.run(FutureTask.java:266)&#xA;    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)&#xA;    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)&#xA;    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)&#xA;    at java.lang.Thread.run(Thread.java:919)&#xA; Caused by: java.io.IOException: error=13, Permission denied&#xA;    at java.lang.UNIXProcess.forkAndExec(Native Method)&#xA;    at java.lang.UNIXProcess.<init>(UNIXProcess.java:133)&#xA;</init>

    &#xA;&#xA;

    As the answer provided by @Saurabh Thorat, Google doesn't allow apps to run binary files from /data/user directory.

    &#xA;&#xA;

    One bad solution that I know is to change compileSdkVersion and targetSdkVersion to 28 or below and re-release my application which is not recommended.

    &#xA;&#xA;

    Hence, I am looking for more viable solutions for future releases as well.

    &#xA;&#xA;

    Any hint, links or suggestion would be highly appreciated. Thanks in advance.

    &#xA;

  • Discord.js Music bot "TypeError" when playing audio with dispatcher

    21 février 2020, par Cole Perry

    I’m new to Discord.js and I’m trying to have the bot join a voice channel and play an audio file on my computer. I have been following this guide : https://discord.js.org/#/docs/main/stable/topics/voice . Here is the Index.js page :

    Colesbot.on('message', message=>{
       if (message.content === '/join') {
           // Only try to join the sender's voice channel if they are in one themselves
           if (message.member.voiceChannel) {
               message.member.voiceChannel.join().then(connection => {
                   message.reply('I have successfully connected to the channel!');

                   // To play a file, we need to give an absolute path to it
                   const dispatcher = connection.playFile('C:\Users\bobal\Documents\GitHub\Spotify-Playlist-Discord-bot\Assets\Glory.mp3');

                   dispatcher.on('end', () => {
                       // The song has finished
                       console.log('Finished playing!');
                     });

                   dispatcher.on('error', e => {
                       // Catch any errors that may arise
                       console.log(e);
                     });

                     dispatcher.setVolume(0.5); // Set the volume to 50%
               }).catch(console.log);
       } else {
           message.reply('You need to join a voice channel first!');
         }
       }
    });
    exports.run = (client, message, args) => {
       let user = message.mentions.users.first || message.author;
    }

    FFMPEG is installed and I have set the environment path for it. When I type FFMPEG in the command line I get the proper response.

    Some have said I need to install the ffmpeg binaries but when I run npm install ffmpeg-binaries I get an error message that is here

    So then I tried installing an older version and I’m now using ffmpeg-binaries@3.2.2-3 but when I type /join I get the error

    [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type object
  • Ffmpeg "no directory found" when passing in a path to the mp3 file

    21 février 2020, par Eugene Levinson

    How my code should work :

    Join the voice channel with the user who sent the command

    Download the video using the link

    Save it as random 16 digit number .mp3

    Then pass the path to the FFmpeg player to play

    My code :

    The random 16 digit number

    def get_digits(amount):
       st = ""
       for i in range(amount):
           n = random.randint(0,9)
           st = st + str(n)

       return int(st)

    Downloading the file

    def get_path(url):

       #checking if the directory exists
       os.makedirs('Music', exist_ok=True)

       title = YouTube(url).streams.get_highest_resolution().title
       current_directory = pathlib.Path(__file__).parent.absolute()

       print(str(current_directory))

       #name for the music
       name = str(get_digits(16))

       YouTube(url).streams.filter(only_audio=True).order_by("bitrate").desc().first().download("Music",name )
       return str(str(current_directory) + "/Music/" + name + ".mp3")

    This gets called on command play

    #function to connect to a voice chat
    async def join_auth(ctx):
       try:
           channel = ctx.author.voice.channel
           vc = await channel.connect()
           return vc
       except Exception as e:
           logg("Exception occured when joining a voice channel: " + str(e),"error",str(ctx.guild.name), str(ctx.guild.id))

    The error I get :
    C:\Users\Eugene\Desktop\Discord bot/Music/4343941300524002.mp3: No such file or directory
    But the directory C:\Users\Eugene\Desktop\Discord bot\Music exists and it does contain the 4343941300524002.mp3 file. Does anyone know why do I get the error ?