Recherche avancée

Médias (91)

Autres articles (86)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (10333)

  • Play RTMP video stream on Android using JavaCV+FFmpeg

    6 février 2014, par 0_ll_0

    I know I can use FFmpeg+JavaCV for live rtmp streaming from Android to Wowza or Red5 server. Now I want to do the opposite.
    I found out that I can grab video from file using FFmpeg like this

    FFmpegFrameGrabber frameGrabber =
               new FFmpegFrameGrabber(file.getAbsolutePath());

       IplImage captured_frame = null;

       FrameRecorder recorder = null;
       recorder = new FFmpegFrameRecorder("/mnt/sdcard/external_sd/videosteste/primeiroteste.mp4", 300, 300);
       recorder.setVideoCodec(13);
       recorder.setFrameRate(30);
       recorder.setFormat("mp4");
       try {
           recorder.start();
           frameGrabber.start();
           while (true) {
               try {
                   captured_frame = frameGrabber.grab();

                   if (captured_frame == null) {
                       System.out.println("!!! Failed cvQueryFrame");
                       break;
                   }
                   recorder.record(captured_frame);
               } catch (Exception e) {
               }
           }
           recorder.stop();
           recorder.release();
       } catch (Exception e) {
           e.printStackTrace();
       }

    My aim is to play a video from live rtmp stream ("rtmp ://.../live/channelname/broadcast") on Android using FFmpeg, VideoView and also with audio output. Is it possible ? I found solution like this but I do not want to use webview. Also I found a lot of other questions here, at stackoverflow, but they are mostly unanswered and I still do not have clear solution.
    Code samples are preferable. Thanks !

  • doc/examples/decode_audio : print message about how to play the output file

    21 août 2019, par Steven Liu
    doc/examples/decode_audio : print message about how to play the output file
    

    Signed-off-by : Steven Liu <lq@chinaffmpeg.org>

    • [DH] doc/examples/decode_audio.c
  • FFmpeg doesn't play audio, yet no error shown

    4 août 2023, par Kristupas

    So i'm learning Python and don't know much about FFmpeg. I am following a tutorial, which explains everything very clearly. Everything is working, with one exception. Whenever I try to get it to play a sound, it won't.. Here's what it is saying :

    &#xA;

    INFO     discord.player ffmpeg process 2540 successfully terminated with return code of 1.

    &#xA;

    And here's my code (forgive me for all of the childish things in there, i'm just trying out different features) :

    &#xA;

    &#xA;import discord&#xA;import discord.ext&#xA;from discord import FFmpegPCMAudio&#xA;from discord.ext import commands&#xA;import random&#xA;&#xA;&#xA;Token = "No token for you :)"&#xA;client = commands.Bot(command_prefix = &#x27;!&#x27;, intents=discord.Intents.all())&#xA;&#xA;&#xA;@client.event&#xA;async def on_ready():&#xA;    print(f"we&#x27;re rolling as {client.user} \n")&#xA;    channel = client.get_channel(1022535885851459727)&#xA;    await channel.send("Tremble before my might hoomans&#128548;&#128548;")&#xA;&#xA;#Member events:&#xA;&#xA;@client.event&#xA;async def on_member_join(member):&#xA;    await member.send("Ok comrade, welcome to bot lab, pls not leave. Anways here rules \n1. No swearing \n2. No cursing \n3. No bullying, the owner is a crybaby \n4. No following the rules (u get banned if this one is broken)")&#xA;    channel = client.get_channel(1136658873688801302)&#xA;    jokes = [f"A failure known as {member} has joined this chat!", &#xA;             f"Another {member} has joined the channel", &#xA;             f"A {member} spawned", &#xA;             f&#x27;cout &lt;&lt; "{member} has joined teh chat" &lt;&lt; endl;&#x27;, &#xA;             f"OUR great {member} has come to save us" ]&#xA;    await channel.send(jokes[random.randint(0,len(jokes))])&#xA;&#xA;@client.event &#xA;async def on_member_remove(member):&#xA;    await member.send("Bye our dear comrade")&#xA;    channel = client.get_channel(1136663317738442752)&#xA;    await channel.send(f"{member} has left the chat :(.)")&#xA;&#xA;#Client commands:&#xA;    &#xA;@client.command()&#xA;async def hello(ctx):&#xA;    await ctx.send("Hello, I am pro bot")&#xA;&#xA;@client.command()&#xA;async def byelol(ctx):&#xA;    await ctx.send("Bye, I am pro bot")&#xA;@client.command()&#xA;async def ping(ctx):&#xA;    await ctx.send(f"**pong** {ctx.message.author.mention}")&#xA;&#xA;&#xA;@client.event&#xA;async def on_message(message):&#xA;    message.content = message.content.lower()&#xA;    await client.process_commands(message)&#xA;&#xA;&#xA;#voice channel commands:&#xA;&#xA;@client.command(pass_context = True)&#xA;async def micup(ctx):&#xA;    if (ctx.author.voice):&#xA;        await ctx.send(f"Joining on {ctx.message.author}&#x27;s command")&#xA;        channel = ctx.message.author.voice.channel&#xA;        voice = await channel.connect()&#xA;        source = FFmpegPCMAudio(&#x27;Bluetooth.wav&#x27;)&#xA;        player = voice.play(source)&#xA;        &#xA;        &#xA;        &#xA;    else:&#xA;        await ctx.send("No.")&#xA;&#xA;&#xA;&#xA;@client.command(pass_Context = True)&#xA;async def leave(ctx):&#xA;    if (ctx.voice_client):&#xA;        await ctx.send(f"Leaving on {ctx.message.author}&#x27;s command")&#xA;        await ctx.guild.voice_client.disconnect()&#xA;    else:&#xA;        await ctx.send("Nyet. Im not in voice chat u stoopid hooman")&#xA;&#xA;&#xA;@client.command(pass_Context = True)&#xA;async def pause(ctx):&#xA;    voice = discord.utils.get(client.voice_clients, guild = ctx.guild)&#xA;    if voice.is_playing():&#xA;        await ctx.send("Pausing..⏸")&#xA;        voice.pause()&#xA;    else:&#xA;        await ctx.send("I don&#x27;t think I will.")&#xA;&#xA;@client.command(pass_Context = True)&#xA;async def resume(ctx):&#xA;    voice = discord.utils.get(client.voice_clients, guild = ctx.guild)&#xA;    if voice.is_paused():&#xA;        await ctx.send("My ears are bleeding")&#xA;        voice.resume()&#xA;    else:&#xA;        await ctx.send("ALREADY BLASTING MUSIC")&#xA;&#xA;@client.command(pass_Context = True)&#xA;async def stop(ctx):&#xA;    voice = discord.utils.get(client.voice_clients, guild = ctx.guild)&#xA;    await ctx.send("You can stop the song, but you can&#x27;t stop me!")&#xA;    voice.stop()&#xA;&#xA;@client.command(pass_Context = True)&#xA;async def play(ctx, arg):&#xA;    await ctx.send("Playing..")&#xA;    voice = ctx.guild.voice_client&#xA;    source = FFmpegPCMAudio(arg)&#xA;    player = voice.play(source)&#xA;&#xA;if &#x27;__main__&#x27; == __name__:&#xA;    client.run(Token)&#xA;

    &#xA;

    I tried installing different versions of ffmpeg, still nothing. I tried to run the code outside of my venv, but still nothing (i doubt that it's the problem). I changed the path to it to different folders, still nothing.&#xA;The only time it DID work is when i entered a full path, but then when you want to play something, you wouldn't want to say " !play D:_Python\DiscordBot\Bluetooth.wav". From what i've seen, it's possible to play it by just saying " !play Bluetooth.wav".

    &#xA;

    So long story short : I want to make it so that the path i have to specify is just the file name. And when I do, it doesn't play the sound.&#xA;(sorry if this is a dupe question, i just couldn't find anything understandable for my amateur brain)

    &#xA;