Recherche avancée

Médias (0)

Mot : - Tags -/organisation

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

Autres articles (26)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

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

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

Sur d’autres sites (6008)

  • when I filter a frame with "fps=fps=30" my code starts consuming a lot of ram until it crashes, but if I use "scale=250:250" it works fine

    23 août 2021, par Gabriel Ayala

    When I apply the filter "scale=250:250" my code works, it outputs a rescalated video
but when I apply the filter "fps=fps=30000/1000", the code asks for ram until it crashes, I think the problem is in the applyFilter function
PasteBin of complete code https://pastebin.com/tcgwFmTz this part starts at line 257

    


    int applyFilter(filterCtx* filter, AVFrame* inFrame, AVFrame* outFrame)
{
    int ret;
    /* push the decoded frame into the filtergraph */
    if (av_buffersrc_add_frame_flags(filter->buffersrc_ctx, inFrame, AV_BUFFERSRC_FLAG_KEEP_REF) < 0)
    {
        return 0;
    }

    /* pull filtered frames from the filtergraph */
    for (EVER)
    {
        ret = av_buffersink_get_frame(filter->buffersink_ctx, outFrame);
        if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)
        {
            return 3;
        }
        if (ret < 0)
        {
            return -1;
        }
        return 0;
    }
    return 0;
}


    


        char filterDesc = "fps=fps=30000/1000"; // THIS DOESN'T WORK
    //char filterDesc = "scale=1200:1200"; THIS WORKS
    filter = initFilter(filterDesc, params);
    
    for (EVER)
    {
        getFrame(decoder, frame, packet);
        if(decoder->container->streams[packet->stream_index]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO)
        {
            if (filter != NULL)
            {
                response = applyFilter(filter, frame, filterFrame);
                if (response < 0)
                {
                    printf("Error while applying a filter");
                    return -1;
                }
                tmp = frame;
                av_frame_unref(frame);
                frame = filterFrame;
                filterFrame = tmp;
                if(response == 3)
                {
                    continue;
                }
            }
            
        }
        encode(decoder, encoder, frame, packet->stream_index);

    }


    


  • Output a video with "slide up" transition using more than 100 images in FFMPEG ?

    9 juillet 2021, par Joseph Ladera Fugata

    I have more than a hundred images of the same size and format that my company wants to display at the big 9:16 (rotated 16:9) screen outside the front gate. It's supposed to be easy but they required me to have it slide from top to bottom, meaning that it should look like a smooth auto scroll effects. I searched here and there but no luck.

    


    I have tried xfade like this :

    


    ffmpeg -loop 1 -i input.txt -filter_complex
"xfade=transition=slideup:duration=10:offset=0,format=yuv420p" output.mp4


    


    It didn't do anything just a bunch of error referring to the inputs. Which is supposed to be just 2 images in the first place.

    


    The next thing I tried was using Concat from someone named @Gyan at his reply HERE and here's my version of the code :

    


    ffmpeg -y -f concat -safe 0 -i input.txt
-vf tile=1x%img_count%,loop=%_my_loop_count_var%:1:0,
crop=iw:ih/%img_count%:0:clip((t-%_start_time%)/%sec_per_img%*ih/%img_count%\,0\,ih*%img_count_minus_one%/%img_count%)
-r 25 -c:v libx264 -preset ultrafast output.mp4


    


    When I played with it, it gives a different output even do the image are all the same dimensions.

    


    I found someone on youtube used this but it is using bash and I am on windows. Unless someone here can convert it to a batch script would be great. I look into it and it seems like he's just V-stacking them kinda like what I did but there's more. I know I could have gone through win bash but I doubt the script will run on a non-Unix environment just by having bash, and I'm not yet familiar with Cygwin either.

    


    I also did tried other options posted by others here, I just forgot to bookmark them, but non of them works on more than a hundred images.

    


    I love to hear a response if anyone can help.

    


  • "connection reset by peer" error when streaming from ffmpeg to ffserver

    7 juillet 2021, par g Kishore

    I'm trying to stream a static video file using ffmpeg to ffserver in androidv7.1.2 embedded board.

    


      

    1. Started ffserver with command "ffserver -d /etc/ffserver.conf &"
    2. 


    3. ffmpeg command used to stream :
ffmpeg -i ./sample_960x400_ocean_with_audio.3gp -f flv http://192.168.47.174:8090/feed1.ffm
    4. 


    


    ffserver.conf file content

    


    HTTPPort 8090&#xA;HTTPBindAddress 192.168.47.174&#xA;MaxHTTPConnections 2000&#xA;MaxClients 1000&#xA;MaxBandwidth 100000&#xA;&#xA;#NoDaemon&#xA;#UseDefaults&#xA;#NoDefaults&#xA;&#xA;<feed>&#xA;File /data/local/tmp/feed1.ffm&#xA;FileMaxSize 5M&#xA;</feed>&#xA;&#xA;<stream>&#xA;Feed feed1.ffm&#xA;Format flv&#xA;&#xA;VideoCodec libx264&#xA;VideoFrameRate 24&#xA;VideoBufferSize 80000&#xA;VideoBitRate 512&#xA;VideoQMin 1&#xA;VideoQMax 5&#xA;VideoSize 960x418&#xA;PreRoll 0&#xA;Noaudio&#xA;</stream>&#xA;

    &#xA;

    Error :

    &#xA;

    Thu Jan  1 00:20:04 2015 192.168.47.174 - - [POST] "/feed1.ffm HTTP/1.1" 200 415&#xA;av_interleaved_write_frame(): Connection reset by peer&#xA;    Last message repeated 1 times&#xA;[flv @ 0x41be1d40] Failed to update header with correct duration.&#xA;[flv @ 0x41be1d40] Failed to update header with correct filesize.&#xA;Error writing trailer of http://192.168.47.174:8090/feed1.ffm: Connection reset by peer&#xA;frame=    1 fps=0.0 q=1.6 Lsize=       0kB time=00:00:00.09 bitrate=  33.0kbits/s speed=1.68x    &#xA;video:10kB audio:2kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;Conversion failed!&#xA;

    &#xA;

    Any help is greatly appreciated.

    &#xA;