Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (65)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (9192)

  • ffmpeg slideshow piping input and output for image stream [migrated]

    21 avril 2013, par charly

    I am trying to make from a list of images a video and then I will directly upload it.
    I have managed so far to create a video for the images with :

    cat *.jpg | ffmpeg -r 1 -f image2pipe -vcodec mjpeg -i - foo.mp4

    It works well and I'm happy with it. However, now I would like to pipe the output and I can't really manage to do this. I've tried a couple of like :

    cat *.jpg | ffmpeg -f image2pipe -r 1/5 -vcodec mjpeg -i - pipe:1 | cat > p.mpeg

    (for the moment I would just like to pipe back in a file just to test and then I'll had the direct upload).

    I've read in another thread that I should specify the output format which makes sense as the error returned by ffmpeg is "Unable to find a suitable output format for 'pipe:1'". However, all I can find in the doc is :

    -f fmt (input/output)
    Force input or output file format. The format is normally auto detected
    for input files and guessed from the file extension for output files,
    so this option is not needed in most cases.

    How can I specify the output format and the input format ?

  • Discord Bot // Voice Client Returns NoneType

    1er mai 2022, par DimKewl

    Experimenting with Discord and Python followed a couple of guides and created a bot that could play music from streaming URLs.

    


    However, now for the same code, I get Attribute Error : 'NoneType' object exceptions.

    


    Exception snippet
Console Snapshot

    


    The actual method goes like this :

    


    .
.
    FFMPEG_OPTIONS = {
    "before_options": "-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5",
    "options": "-vn -sn -dn"
}

@commands.command()
async def radio(self,ctx,url):
    await self.join(ctx)
    await self.playStreamUrlLogic(ctx,url);

async def playStreamUrlLogic(self, ctx, url):
    source = await discord.FFmpegOpusAudio.from_probe(url, **self.FFMPEG_OPTIONS)
    await ctx.voice_client.play(source)
.
.


    


    Even though everything points to a non instantiated class when I debug I can see that there is a voice_client object with info
Snapshot from Debbuger property viewer

    


    I already tried to use FFMPegPCMAudio as well but with no results.
Any insights would be helpful.

    


  • Get MP3 content in C ? ffmpeg or mpg123lib ?

    20 novembre 2014, par Nicolás Múnera

    I’m trying for a personal project of mine to mix two mp3 files into one. I’ve been investigating for a couple of days how to read an mp3 with C and i’ve come up with two libraries, ffmpeg and mpg3lib, unfortunately the documentation is a little bit confusing.

    For now I’m trying to get the content of one MP3 file, I just want to understand which parts are valuable and which parts of the data I get are the ones i’m supposed to mix together. This is what i’ve got so far :

    int cont = 0;
    fprintf(stderr, "Starting decode...\n");
    while(1)
    {
            len = fread(buf, sizeof(unsigned char), INBUFF, in);
            if(len <= 0)
                    break;
            inc += len;
            ret = mpg123_feed(m, buf, len);

            while(ret != MPG123_ERR && ret != MPG123_NEED_MORE)
            {
                    ret = mpg123_decode_frame(m, &num, &audio, &bytes);
                    if(ret == MPG123_NEW_FORMAT)
                    {
                        mpg123_getformat(m, &rate, &channels, &enc);
                        initwavformat();
                        initwav();
                        fprintf(stderr, "New format: %li Hz, %i channels, encoding value %i\n", rate, channels, enc);
                    }

                    printf("Frame # %d: %s\n",cont,audio);          
                    fwrite(audio, sizeof(unsigned char), bytes, out);
                    outc += bytes;
            }
        if(ret == MPG123_ERR){
                fprintf(stderr, "Error: %s", mpg123_strerror(m));
                break;
        }
    cont++;
    }

    With this code, I think i’m getting the content of the MP3, but when I print it I just get some weird characters, so I don’t know which strategy i should take.

    Could you guys give me a little bit of advice with this ?

    Thank you !