Recherche avancée

Médias (0)

Mot : - Tags -/alertes

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

Autres articles (63)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (14181)

  • ffmpeg :how to apply animation in multiple images

    2 mars 2023, par Pavan Ghanate

    I am trying to merge number of selected images from gallery to a video template in order to make video status or short video in a android app, I am able to merge the selected images in the video using below cammand now i want to add animation

    


     ArrayList<string> cmd2 = new ArrayList&lt;>();&#xA;    cmd2.add("-y");&#xA;    cmd2.add("-i");&#xA;    if (video_temp_path!= null){&#xA;        cmd2.add(video_temp_path);&#xA;    }else {&#xA;        cmd2.add(Environment.getExternalStorageDirectory().getPath()&#xA;                &#x2B; "/Download/happy.mp4");&#xA;    }&#xA;&#xA;&#xA;    for (int no = 0; no &lt; paths.length; no&#x2B;&#x2B;) {&#xA;        cmd2.add("-i");&#xA;&#xA;        cmd2.add(paths[no]);&#xA;&#xA;    }&#xA;&#xA;    cmd2.add("-filter_complex");&#xA;&#xA;&#xA;&#xA;    cmd2.add("[0][1]overlay=x=100:y=200:enable=&#x27;between(t,3,8)&#x27;[v1];" &#x2B;&#xA;            "[v1][2]overlay=x=100:y=200:enable=&#x27;between(t,10,15)&#x27;[v2];" &#x2B;&#xA;            "[v2][3]overlay=x=100:y=200:enable=&#x27;gt(t,17)&#x27;[v3]");&#xA;    cmd2.add("-map");&#xA;    cmd2.add("[v3]");&#xA;    cmd2.add("-map");&#xA;    cmd2.add( "0:a");&#xA;    cmd2.add(Environment.getExternalStorageDirectory().getPath()&#xA;            &#x2B; "/Download/output.mp4");&#xA;</string>

    &#xA;

    but now i want to add fade in out animation to images so I am using this cammand generated by chatgpt but its giving me error

    &#xA;

      ArrayList<string> cmd2 = new ArrayList&lt;>();&#xA;   cmd2.add("-y");&#xA;   cmd2.add("-i");&#xA;&#xA;   if (video_temp_path != null) {&#xA;    cmd2.add(video_temp_path);&#xA;  } else {&#xA;    cmd2.add(Environment.getExternalStorageDirectory().getPath() &#x2B;&#xA;            "/Download/happy.mp4");&#xA;}&#xA;&#xA;for (int no = 0; no &lt; paths.length; no&#x2B;&#x2B;) {&#xA;    cmd2.add("-loop");&#xA;    cmd2.add("1"); // loop the image&#xA;&#xA;    cmd2.add("-t");&#xA;    cmd2.add("5"); // duration of the image&#xA;&#xA;    cmd2.add("-i");&#xA;    cmd2.add(paths[no]);&#xA;&#xA;    cmd2.add("-filter_complex");&#xA;    cmd2.add("[1:v]fade=in:st=0:d=1[tin];" &#x2B;&#xA;            "[1:v]fade=out:st=4:d=1[tout];" &#x2B;&#xA;            "[0:v][tin]overlay=x=100:y=200" &#x2B;&#xA;            "[v1];" &#x2B;&#xA;            "[v1][tout]overlay=x=100:y=200:enable=&#x27;between(t,10,15)&#x27;[v2];" &#x2B;&#xA;            "[v2][2:v]overlay=x=100:y=200:enable=&#x27;gt(t,17)&#x27;[v3]");&#xA;&#xA;    cmd2.add("-map");&#xA;    cmd2.add("[v3]");&#xA;    cmd2.add("-map");&#xA;    cmd2.add("0:a");&#xA;}&#xA;&#xA;cmd2.add(Environment.getExternalStorageDirectory().getPath() &#x2B;&#xA;        "/Download/output.mp4");&#xA;</string>

    &#xA;

    error is

    &#xA;

     Option map (set input stream mapping) cannot be applied to input url /storage/emulated/0/Pictures/temp/1677570327312.jpg -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.&#xA;

    &#xA;

    2023-03-01 12:50:50.707 5950-6326/com.android.mergevideo E/mobile-ffmpeg : Error parsing options for input file /storage/emulated/0/Pictures/temp/1677570327312.jpg.&#xA;2023-03-01 12:50:50.707 5950-6326/com.android.mergevideo E/mobile-ffmpeg : Error opening input files :&#xA;2023-03-01 12:50:50.707 5950-6326/com.android.mergevideo E/mobile-ffmpeg : Invalid argument

    &#xA;

  • PHP-FFMPEG Waveform is not clean, is it a bug ?

    6 février 2024, par Maxi

    I made a waveform through sample code :

    &#xA;

    $waveform = $audio->waveform(2000, 500, array(&#x27;#FFA500&#x27;));&#xA;$waveform->save(&#x27;waveform.png&#x27;);&#xA;

    &#xA;

    But result has some noise in top & bottom of edges.&#xA;How can make it better ?

    &#xA;

    PHP-FFMpeg : 23 | FFMpeg : 2023-02-27-git-891ed24f77 (Win X64) | PHP : 8.3

    &#xA;

  • why ffmpeg process successfully terminated with return code of 1 without play anything

    24 juillet 2023, par Exc

    `I tried replacing youtube_dl with yt_dlp and replaced some of the code, the code worked fine but when using the command, the bot doesn't play music but immediately ffmpeg process 15076 successfully terminated with return code of 1

    &#xA;

    Is there a problem with my code or the ffmpg option or ytdlp option that doesn't support the yt_dlp library ?`

    &#xA;

     self.YTDL_OPTIONS = {&#xA;        &#x27;format&#x27;: &#x27;bestaudio/best&#x27;,&#xA;        &#x27;outtmpl&#x27;: &#x27;F:/DISCORD BOT/Ex/music/%(extractor)s-%(id)s-%(title)s.%(ext)s&#x27;,&#xA;        &#x27;restrictfilenames&#x27;: True,&#xA;        &#x27;retry_max&#x27;: &#x27;auto&#x27;,&#xA;        &#x27;noplaylist&#x27;: True,&#xA;        &#x27;nocheckcertificate&#x27;: True,&#xA;        &#x27;ignoreerrors&#x27;: True,&#xA;        &#x27;logtostderr&#x27;: False,&#xA;        &#x27;quiet&#x27;: True,&#xA;        &#x27;no_warnings&#x27;: True,&#xA;        &#x27;default_search&#x27;: &#x27;auto&#x27;,&#xA;        &#x27;source_address&#x27;: &#x27;0.0.0.0&#x27;,&#xA;        &#x27;postprocessors&#x27;: [{&#xA;            &#x27;key&#x27;: &#x27;FFmpegExtractAudio&#x27;,&#xA;            &#x27;preferredcodec&#x27;: &#x27;mp3&#x27;,&#xA;            &#x27;preferredquality&#x27;: &#x27;192&#x27;,&#xA;        }],&#xA;        &#x27;youtube_api_key&#x27;: &#x27;api&#x27;&#xA;    }&#xA;self.FFMPEG_OPTIONS = {&#xA;         &#x27;before_options&#x27;: &#x27;-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5&#x27;,&#xA;         &#x27;options&#x27;: &#x27;-vn&#x27;,&#xA;         &#x27;executable&#x27;:r&#x27;F:\DISCORD BOT\Ex\ffmpeg\bin\ffmpeg.exe&#x27;&#xA;         }&#xA;&#xA;    &#xA;    @commands.hybrid_command(&#xA;        name="play",&#xA;        aliases=["p"],&#xA;        usage="",&#xA;        description="KARAUKENAN.",&#xA;         &#xA;    )&#xA;    @app_commands.describe(&#xA;        judul_lagu="link ato judul lagunya"&#xA;    )&#xA;    async def play(self, ctx, judul_lagu:str):&#xA;        await ctx.defer()&#xA;        voice_channel = ctx.author.voice&#xA;        if not voice_channel or not voice_channel.channel:&#xA;            await ctx.send("Join voice channel dulu gblk!")&#xA;            return&#xA;&#xA;        voice_channel = voice_channel.channel&#xA;        song = self.search_song(judul_lagu)&#xA;        if not song:&#xA;            await ctx.send("Lagnya tdk ditemukan, coba keword lain.")&#xA;            return&#xA;&#xA;        if not self.bot.voice_clients:&#xA;            voice_client = await voice_channel.connect()&#xA;        else:&#xA;            voice_client = self.bot.voice_clients[0]&#xA;            if voice_client.channel != voice_channel:&#xA;                await voice_client.move_to(voice_channel)&#xA;&#xA;        self.music_queue.append([song, voice_client])&#xA;        if not self.is_playing:&#xA;            await self.play_music(ctx)&#xA;    &#xA;    async def play_music(self, ctx):&#xA;        self.is_playing = True&#xA;        while len(self.music_queue) > 0:&#xA;            song = self.music_queue[0][0]&#xA;            voice_client = self.music_queue[0][1]&#xA;            await ctx.send(f"Playing {song[&#x27;title&#x27;]}")&#xA;&#xA;            voice_client.play(discord.FFmpegPCMAudio(song[&#x27;source&#x27;], **self.FFMPEG_OPTIONS), after=lambda e: self.play_next())&#xA;            voice_client.is_playing()&#xA;&#xA;            while voice_client.is_playing():&#xA;                await asyncio.sleep(1)&#xA;&#xA;            self.music_queue.pop(0)&#xA;            self.is_playing = False&#xA;&#xA;        await ctx.send("Queue is empty.")&#xA;        voice_client.stop()&#xA;&#xA;    def play_next(self):&#xA;        if len(self.music_queue) > 0:&#xA;            self.is_playing = False&#xA;&#xA;    def search_song(self, judul_lagu):&#xA;        ydl = yt_dlp.YoutubeDL(self.YTDL_OPTIONS)&#xA;        with ydl:&#xA;            try:&#xA;                info = ydl.extract_info(f"ytsearch:{judul_lagu}", download=False)[&#x27;entries&#x27;][0]&#xA;                return {&#x27;source&#x27;: info[&#x27;formats&#x27;][0][&#x27;url&#x27;], &#x27;title&#x27;: info[&#x27;title&#x27;]}&#xA;            except Exception:&#xA;                return None&#xA;&#xA;&#xA;

    &#xA;

    when i use /play the bot sucess serch song but immediately terminate does not play any music

    &#xA;

    2023-04-10 13:06:45 INFO     discord.voice_client Connecting to voice...&#xA;2023-04-10 13:06:45 INFO     discord.voice_client Starting voice handshake... (connection attempt 1)&#xA;2023-04-10 13:06:46 INFO     discord.voice_client Voice handshake complete. Endpoint found singapore11075.discord.media&#xA;2023-04-10 13:06:50 INFO     discord.player ffmpeg process 15076 successfully terminated with return code of 1.&#xA;

    &#xA;

    this image whe i use /play

    &#xA;