Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (103)

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

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

Sur d’autres sites (10482)

  • 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;

  • how to explain this C language code from ffmpeg remuxing

    20 avril 2017, par Fidona

    can someone help me what the meaning of this code ? this is a code from ffmpeg remuxing code.

    static void log_packet(const AVFormatContext *fmt_ctx, const AVPacket *pkt, const char *tag, int hours, int mins, int secs, int us, int *time )
    {
       AVRational *time_base = &amp;fmt_ctx->streams[pkt->stream_index]->time_base;
       total = total + pkt->duration;
     //  printf( "%d:%d:%d.%d \n", hours,  mins,  secs, us );
       *time = av_q2d(*time_base) * pkt->pts ;
    }

    I’m kind of new to C language. thank you !

  • FFMPEG Windows : need to add mix audio to this code

    28 mai 2020, par a4n6c

    I have this and now I wish to add a background sound from mp3 in the area where I am removing audio.

    &#xA;&#xA;

    ffmpeg -i "demo.mp4" -vcodec copy -af "volume=enable=&#x27;between(t,67,69)&#x27;:volume=0" -y "output1.mp4"&#xA;

    &#xA;&#xA;

    this is just one simple example shown the list of (between) can be larger than 1 line. an example will help me progress further thank you.

    &#xA;