Recherche avancée

Médias (91)

Autres articles (57)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (4137)

  • Set hls attributes in multiple outputs as seperated piece code

    2 mars 2018, par parsa

    I used this command for create multiple outputs with different qualities in hls format and I mapped the audio for those.

    ffmpeg -i kata.mp4 -filter_complex [0:v]split=4[s0][s1][s2][s3];
    [s0]scale=hd720[v0];[s1]scale=hd480[v1];[s2]scale=nhd[v2];[s3]scale=cga[v3]
    -map [v0] -map [v1] -map [v2] -map [v3] -map 0:a -c:v libx264 -c:a aac -f tee
    -hls_list_size 0 -g 48 "[select=\'v:0,a\':f=hls]out.m3u8| [select=\'v:1,a\':f=hls]out-480.m3u8| [select=\'v:2,a\':f=hls]out-360.m3u8| [select=\'v:3,a\':f=hls]out-200.m3u8"

    in my command -hls_list_size not work.
    I think I must be use this attribute as a seperated piece code for every outputs ,but I don’t know how can I do that,Or what is the syntax code for that.
    Can anyone help me ?

  • Erros in compiling and running FFmpeg C example code

    11 juillet 2019, par Tina J

    I’ve been trying to change an FFmpeg’s example code HERE to call other filters using its C APIs. Say the filter be freezedetect=n=-60dB:d=8 which normally runs like this :

    ffmpeg -i small.mp4 -vf "freezedetect=n=-60dB:d=8" -map 0:v:0 -f null -

    And prints outputs like this :

    [freezedetect @ 0x25b91c0] lavfi.freezedetect.freeze_start: 5.005
    [freezedetect @ 0x25b91c0] lavfi.freezedetect.freeze_duration: 2.03537
    [freezedetect @ 0x25b91c0] lavfi.freezedetect.freeze_end: 7.04037

    However, the original example displays frames, not these metadata information. How can I change the code to print this metadata information (and not the frames) ?

    I’ve been trying to change the display_frame function below into a display_metadata function. Looks like the frame variable has a metadata dictionary which looks promising, but my attempts failed to use it. I’m also new to C language.

    Original display_frame function :

    static void display_frame(const AVFrame *frame, AVRational time_base)
    {
       int x, y;
       uint8_t *p0, *p;
       int64_t delay;

       if (frame->pts != AV_NOPTS_VALUE) {
           if (last_pts != AV_NOPTS_VALUE) {
               /* sleep roughly the right amount of time;
                * usleep is in microseconds, just like AV_TIME_BASE. */
               delay = av_rescale_q(frame->pts - last_pts,
                                    time_base, AV_TIME_BASE_Q);
               if (delay > 0 && delay < 1000000)
                   usleep(delay);
           }
           last_pts = frame->pts;
       }

       /* Trivial ASCII grayscale display. */
       p0 = frame->data[0];
       puts("\033c");
       for (y = 0; y < frame->height; y++) {
           p = p0;
           for (x = 0; x < frame->width; x++)
               putchar(" .-+#"[*(p++) / 52]);
           putchar('\n');
           p0 += frame->linesize[0];
       }
       fflush(stdout);
    }

    My new display_metadata function that needs to be completed :

    static void display_metadata(const AVFrame *frame)
    {

    //    printf("%d\n",frame->height);

       AVDictionary* dic = frame->metadata;

       printf("%d\n",*(dic->count));

    //    fflush(stdout);
    }
  • KeyError : 1 on Python when the code points to a value that exists [closed]

    10 décembre 2020, par oo92

    I am using the following code to traverse a list JSON output. There are about 100 streamers I want to take screens from but the code fails after the first one where I call the ffmpeg. I put a code after the ffmpeg to see if Python is running it at all and it does :

    


    Traceback (most recent call last):&#xA;  File "/home/onur/Desktop/pythonProject/main.py", line 12, in <module>&#xA;    username = streams_now[i][&#x27;channel&#x27;][&#x27;display_name&#x27;]&#xA;KeyError: 1&#xA;auronplay it is &#xA;</module>

    &#xA;

    This is my code :

    &#xA;

    import streamlink, os&#xA;from twitch import TwitchClient&#xA;&#xA;client = TwitchClient(client_id=&#x27;frl3dqgn21bbpp6tajjvg5pdevczac&#x27;)&#xA;&#xA;streams_now = client.streams.get_live_streams(limit=100)&#xA;&#xA;print(streams_now[2][&#x27;channel&#x27;][&#x27;display_name&#x27;])&#xA;&#xA;for i in range(0, 99):&#xA;  username = streams_now[i][&#x27;channel&#x27;][&#x27;display_name&#x27;]&#xA;  streams_now = streamlink.streams(&#x27;http://twitch.tv/&#x27; &#x2B; username)&#xA;  stream = streams_now["best"].url&#xA;  dir_path = os.getcwd() &#x2B; &#x27;/&#x27; &#x2B; username&#xA;  os.mkdir(dir_path)&#xA;  os.system(&#x27;ffmpeg -i &#x27; &#x2B; stream &#x2B; f&#x27; -ss 20 -vframes 10 -r 0.2 -f image2 {dir_path}/&#x27; &#x2B; username &#x2B; &#x27;_output_%09d.jpg&#x27;)&#xA;  print(username &#x2B; &#x27; it is &#x27;)&#xA;

    &#xA;

    The line that throws the error is username = streams_now[i][&#x27;channel&#x27;][&#x27;display_name&#x27;]. However, this line cannot throw an error because I am testing it before the for loop :

    &#xA;

    print(streams_now[2][&#x27;channel&#x27;][&#x27;display_name&#x27;])

    &#xA;

    and I get this : shroud

    &#xA;