Recherche avancée

Médias (91)

Autres articles (81)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Monitoring de fermes de MediaSPIP (et de SPIP tant qu’à faire)

    31 mai 2013, par

    Lorsque l’on gère plusieurs (voir plusieurs dizaines) de MediaSPIP sur la même installation, il peut être très pratique d’obtenir d’un coup d’oeil certaines informations.
    Cet article a pour but de documenter les scripts de monitoring Munin développés avec l’aide d’Infini.
    Ces scripts sont installés automatiquement par le script d’installation automatique si une installation de munin est détectée.
    Description des scripts
    Trois scripts Munin ont été développés :
    1. mediaspip_medias
    Un script de (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

Sur d’autres sites (13615)

  • add watermark to video and image with input and output array bytes

    7 octobre 2023, par Josivan

    I'm trying to add watermark to images and videos using ffmpeg. My files are stored on AWS S3, so they are byte arrays ([]byte).

    


    I need my input and output to be in a byte array and not saved to disk.

    


    I tried something like the code and it didn't work :

    


        buffFile := bytes.NewBuffer(file)
    out := &bytes.Buffer{}
    overlay := ffmpeg.Input("pipe:", ffmpeg.KwArgs{}).Filter("scale", ffmpeg.Args{"64:-1"}).WithInput(buffWatermark)
    err = ffmpeg.Filter(
        []*ffmpeg.Stream{
            ffmpeg.Input("pipe:", ffmpeg.KwArgs{}).WithInput(buffFile),
            overlay,
        }, "overlay", ffmpeg.Args{"10:10"}, ffmpeg.KwArgs{"enable": "gte(t,1)"}).
        Output("pipe:", ffmpeg.KwArgs{}).WithOutput(out).OverWriteOutput().ErrorToStdOut().Run()


    


  • Can we provide a raw stream of microphone data Unit8List as a Input to ffmpeg and save the output file as .wav or .mp3

    21 juillet 2023, par Uday

    The goal is to listen to a live microphone stream (don't want to store it locally)and try to pass it to the RTSP server or to a .mp3 or .wav file locally.

    


    FFmpeg lib :ffmpeg_kit_flutter

    


    Mic Stream lib : https://pub.dev/packages/mic_stream

    


     stream = await MicStream.microphone(
        audioSource: AudioSource.DEFAULT,
        sampleRate: 44100,
        channelConfig: ChannelConfig.CHANNEL_IN_STEREO,
        audioFormat: AudioFormat.ENCODING_PCM_16BIT);

listener = stream!.listen((recordedData) async {
  await processData(recordedData);
});


    


    And in Process data, I want to convert this raw Unit8List data to .mp3 or transmit it to rtsp server live.

    


    any of the commands i want to execute

    


    Future<void> processData(Uint8List data) async {&#xA;//var command = &#x27;-i "$data" -f rtsp -rtsp_transport tcp -y "$RtspUrl"&#x27;;&#xA;&#xA;&#xA;//var command = &#x27;-i "$data" "/storage/emulated/0/Download/androidvideo.mp3"&#x27;;&#xA;&#xA;FFmpegKit.execute(command).then((session) async {&#xA;  final returnCode = await session.getReturnCode();&#xA;  final logs = await session.getLogs();&#xA;  for (var element in logs) {&#xA;    print(&#x27;logs:${element.getMessage()}&#x27;);&#xA;  }&#xA;  if (ReturnCode.isSuccess(returnCode)) {&#xA;    print(&#x27;Command execution completed successfully.&#x27;);&#xA;  } else if (ReturnCode.isCancel(returnCode)) {&#xA;    print(&#x27;Command execution completed CANCEL.&#x27;);&#xA;    listener.cancel();&#xA;  } else {&#xA;    print(&#x27;Command execution completed ERROR.&#x27;);&#xA;    listener.cancel();&#xA;  }&#xA;});&#xA;}&#xA;</void>

    &#xA;

  • Python : FFmpeg Input/output error using discord.py

    29 mai 2023, par PeeblYweeb

    here is my code :

    &#xA;

       async def direct(self, interaction: discord.Interaction, link: str):&#xA;        voice_client = get(self.bot.voice_clients, guild=interaction.guild)&#xA;        if voice_client is None:&#xA;            return await interaction.response.send_message("❌ Connect to a channel first.")&#xA;&#xA;        await interaction.response.send_message("Using direct link.")&#xA;        voice_client.play(discord.FFmpegPCMAudio(link))&#xA;        return&#xA;

    &#xA;

    here is my error :

    &#xA;

    [tls @ 0x557c73a19d00] Error in the pull function.&#xA;https://cdn.discordapp.com/attachments/1109998398150545410/1112473248505004142/portradio-_1_.ogg: Input/output error&#xA;2023-05-28 13:29:11 INFO     discord.player ffmpeg process 1458408 successfully terminated with return code of 0.&#xA;

    &#xA;

    this happens usually around half-way through whatever im playing consistently

    &#xA;

    i've tried setting arguments like :

    &#xA;

    ffmpeg_options = {&#x27;options&#x27;: &#x27;-vn -dn -sn -ignore_unknown -fflags &#x2B;discardcorrupt&#x27;}&#xA;

    &#xA;

    from this other post&#xA;’corrupt input packet in stream 1’ error in FFMPEG&#xA;which fixed the error corrupt input packet but im still having trouble any ideas ?

    &#xA;

    goal is to get the audio playing to discord without having to store the file locally then playing it from there then discarding it after.

    &#xA;