Recherche avancée

Médias (91)

Autres articles (93)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

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

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

  • avformat/movenc : fix HEVC fmp4 HLS init segment for Apple playback

    21 juillet, par David McElroy
    avformat/movenc : fix HEVC fmp4 HLS init segment for Apple playback
    

    HEVC fmp4 HLS video produced by ffmpeg is currently unplayable on Apple
    software (Safari, QuickTime, AVFoundation).

    This is caused by an empty sdtp atom being erroneously written to the
    fmp4 init segment. The `has_disposable` flag can be set for a track
    with B-frames, but the init segment contains no actual frames
    (track->entry == 0). Writing an sdtp atom in this case is incorrect
    and causes Apple's parsers to reject the file.

    This patch fixes the issue by ensuring the sdtp atom is only written
    if track->entry is non-zero.

    A similar patch was proposed in November 2023 by Jay Zhang,
    but it was never merged.

    Link : https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2023-November/317173.html
    Co-authored-by : Jay Zhang <wangyoucao577@gmail.com>
    Signed-off-by : David McElroy <david@mcelroy.online>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/movenc.c
  • ffmpeg :how to apply animation in multiple images that will me merged in a video template in android

    1er 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

    &#xA;

     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;

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