Recherche avancée

Médias (0)

Mot : - Tags -/page unique

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

Autres articles (24)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

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

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (4101)

  • how to make the script re-ask for the input again after failure ?

    6 avril 2022, par Rami Magdi

    this some script for ffmpeg that i added to windows context menu
so i just copy paste what i want done
when this .bat fails [wrong argument for instance ] it closes and i have to restart it
how to make the script re-ask for the input again after failure ?

    


    @echo off
echo    -------------------------------------------------------------
echo                             FILTERS
echo    -------------------------------------------------------------
echo,
echo   VERTICAL FLIP=    -lavfi vflip
echo   HORIZONTAL FLIP=  -lavfi hflip
echo   NEGAT COLORS=     -lavfi Enegate
echo   NEGATE LUMINANCE= -lavfi lutyuv=y=negval
echo   GRAYSCALE=        -lavfi hue=s=0
echo   ISOLATE COLOR=    -lavfi colorhold=color="orange":similarity=0.29:blend=0
echo   PS CURVES PRESET= -lavfi curves=psfile='MyCurvesPresets/purple.acv'
echo   VIGNETTE EFFECT=  -lavfi vignette=PI/4
echo   LOOKUP TABLE=     -lavfi lut3d=c\\:/nnn/ggg.cube
echo   SPEED UP OR SLOW DOWN=    -lavfi setpts=PTS/2
echo   SPEED UP VIDEOS, AUDIOS=  -lavfi "[0:v]setpts=PTS/2[v];[0:a]atempo=2.0[a]" -map "[v]" -map "[a]"
echo   REVERSE=     -lavfi reverse
echo   POSTERIZE=   -lavfi elbg=l=8:n=1
echo   MOTION BLUR= -lavfi tmix=frames=20:weights="10 1 1"
echo   HARD SUB=    -lavfi subtitles=s.ass
echo   SOFT SUB=    -scodec mov_text -metadata:s:s:0 language=eng
echo   ONE IMAGE=   -lavfi -frames 1
echo   AN IMAGE EVERY 60 SEC= -lavfi fps=1/60
echo   ONLY IFRAMES= -skip_frame nokey
echo   GIF=    -lavfi "fps=10,scale=320:-2:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0
echo   STACKS= -lavfi "[0:v][1:v][2:v][3:v]xstack=inputs=4:layout=0_0|w0_0|0_h0|w0_h0[v]" -map "[v]"
echo   EMBED THUMBNAIL = -i 1.jpg -map 0:0 -map 0:1 -map 1 -c:0 copy -c:v:1 png -disposition:v:1 attached_pic
ECHO,
echo    -------------------------------------------------------------
echo                             CODEC OPTIONS
echo    -------------------------------------------------------------
echo,
echo   -lavfi "[0:v]scale=-2:720,setpts=PTS/1.5[v];[0:a]atempo=1.5[a]" -map "[v]" -map "[a]" -crf 40 -preset ultrafast
echo   -map 0 -codec copy
echo   -acodec copy -vcodec libx264 -vsync cfr -crf 20 -pix_fmt yuv420p -tune film -preset veryfast -movflags +faststart
echo   -acodec aac -ac 2 -ab 128k -ar 44100 / -acodec libmp3lame -ab 320k -ar 44100 -id3v2_version 3 
echo   -qscale:v 2
echo,


    


    the main part :

    


    set /P extra="ENTER CODEC OPTIONS="

echo,
echo Processing "%~nx1"
echo Output will be "%~n1"_output.mp4"
ffmpeg -v error -stats -y -i "%~1"  %extra%  "%~n1"_output.mp4
pause


    


  • After ffmpeg encode, AVPacket pts and dts is AV_NOPTS_VALUE

    29 novembre 2017, par Li Zehan

    I would like to ask a question about ffmpeg when i use encoder (x264).

    this is my code :

    int
    FFVideoEncoder::init(AVCodecID codecId, int bitrate, int fps, int gopSize,
                        int width, int height, AVPixelFormat format) {
       release();

       const AVCodec *codec = avcodec_find_encoder(codecId);
       m_pCodecCtx = avcodec_alloc_context3(codec);
       m_pCodecCtx->width = width;
       m_pCodecCtx->height = height;
       m_pCodecCtx->pix_fmt = format;
       m_pCodecCtx->bit_rate = bitrate;
       m_pCodecCtx->thread_count = 5;
       m_pCodecCtx->max_b_frames = 0;
       m_pCodecCtx->gop_size = gopSize;

       m_pCodecCtx->time_base.num = 1;
       m_pCodecCtx->time_base.den = fps;

       //H.264
       if (m_pCodecCtx->codec_id == AV_CODEC_ID_H264) {
    //        av_dict_set(&opts, "preset", "slow", 0);
           av_dict_set(&m_pEncoderOpts, "preset", "superfast", 0);
           av_dict_set(&m_pEncoderOpts, "tune", "zerolatency", 0);

           m_pCodecCtx->flags |= CODEC_FLAG_GLOBAL_HEADER;
           m_pCodecCtx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
       }
       int ret = avcodec_open2(m_pCodecCtx, m_pCodecCtx->codec, &m_pEncoderOpts);
       if (ret == 0) {
           LOGI("open avcodec success!");
       } else {
           LOGE("open avcodec error!");
           return -1;
       }
       return ret;
    }

    int FFVideoEncoder::encode(const Frame &inFrame, AVPacket *outPacket) {
       AVFrame *frame = av_frame_alloc();
    //    avpicture_fill((AVPicture *) frame, inFrame.getData(), AV_PIX_FMT_YUV420P, inFrame.getWidth(),
    //                   inFrame.getHeight());
       av_image_fill_arrays(frame->data, frame->linesize, inFrame.getData(), m_pCodecCtx->pix_fmt,
                            inFrame.getWidth(), inFrame.getHeight(), 1);

       int ret = 0;
       ret = avcodec_send_frame(m_pCodecCtx, frame);
       if (ret != 0) {
           LOGE("send frame error! %s", av_err2str(ret));
       } else {
           ret = avcodec_receive_packet(m_pCodecCtx, outPacket);
           LOGI("extract data size = %d", m_pCodecCtx->extradata_size);
           if (ret != 0) {
               LOGE("receive packet error! %s", av_err2str(ret));
           }
       };
       av_frame_free(&frame);
       return ret;
    }

    I expect that the AVPacket will carry the pts and dts about this frame.

    but in fact, i only can get encoded frame data and size.

    //====================================

    except this question, i have another quesiont :

    x264 docs say that "tune" opts can be set like film、animation and others. but i only can get a normal video when i set "zerolatency" params. When i set others opts, video’s bitrate is very low.

    Thanks your answer.

  • My crazy linux.conf.au week

    9 février 2012, par silvia

    In January I attended the annual Australian Linux and Open Source conference (LCA). But since I was sick all of January and had a lot to catch up on, I never got around to sharing all the talks that I gave during that time.

    Drupal Down Under

    It started with a talk at Drupal Down Under, which happened the weekend before LCA. I gave a talk titled “HTML5 video specifications” (video, slides).

    I spoke about the video and audio element in HTML5, how to provide fallback content, how to encode content, how to control them from JavaScript, and briefly about Drupal video modules, though the next presentation provided much more insight into those. I explained how to make the HTML5 media elements accessible, including accessible controls, captions, audio descriptions, and the new WebVTT file format. I ran out of time to introduce the last section of my slides which are on WebRTC.

    Linux.conf.au

    On the first day of LCA I gave a talk both in the Multimedia Miniconf and the Browser Miniconf.

    Browser Miniconf

    In the Browser Miniconf I talked about “Web Standardisation – how browser vendors collaborate, or not” (slides). Maybe the most interesting part about this was that I tried out a new slide “deck” tool called impress.js. I’m not yet sure if I like it but it worked well for this talk, in which I explained how the HTML5 spec is authored and who has input.

    I also sat on a panel of browser developers in the Browser Miniconf (more as a standards than as a browser developer, but that’s close enough). We were asked about all kinds of latest developments in HTML5, CSS3, and media standards in the browser.

    Multimedia Miniconf

    In the Multimedia Miniconf I gave a “HTML5 media accessibility update” (slides). I talked about the accessibility problems of Flash, how native HTML5 video players will be better, about accessible video controls, captions, navigation chapters, audio descriptions, and WebVTT. I also provided a demo of how to synchronize multiple video elements using a polyfill for the multitrack API.

    I also provided an update on HTTP adaptive streaming APIs as a lightning talk in the Multimedia Miniconf. I used an extract of the Drupal conference slides for it.

    Main conference

    Finally, and most importantly, Alice Boxhall and myself gave a talk in the main linux.conf.au titled “Developing Accessible Web Apps – how hard can it be ?” (video, slides). I spoke about a process that you can follow to make your Web applications accessible. I’m writing a separate blog post to explain this in more detail. In her part, Alice dug below the surface of browsers to explain how the accessibility markup that Web developers provide is transformed into data structures that are handed to accessibility technologies.