Recherche avancée

Médias (91)

Autres articles (94)

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

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (6598)

  • Bash process substitution in Python with Popen

    2 juin 2015, par moorej

    I’m attempting to create a looped video file by calling ffmpeg from the python subprocess library. Here’s the part that’s giving me problems :

    import subprocess as sp
    sp.Popen(['ffmpeg', '-f', 'concat', '-i', "<(for f in ~/Desktop/*.mp4; do echo \"file \'$f\'\"; done)", "-c", "copy", "~/Desktop/sample3.mp4"])

    With the above code I’m getting the following error :

    <(for f in /home/delta/Desktop/*.mp4; do echo "file '$f'"; done): No such file or directory

    I did find a similarly phrased question here. But I’m not sure how the solution might apply to solving my issue.

    Edit :
    Thanks for the help everyone ! Following the advice in the comments and looking elsewhere I ended up changing the code to this :

    sp.Popen("ffmpeg -f concat -i <(for f in ~/Desktop/*.mp4; do echo \"file \'$f\'\"; done) -c copy ~/Desktop/sample3.mp4", shell=True, executable="/bin/bash")

    —which works fine.

  • ffmpeg memory leak with recording from IP-cameras

    27 octobre 2014, par Xuch

    I’ve got a program that recording video from IP-cameras. Because to cameras quantity is quite many I using pthreads. Also video from cameras splitting to fragments with some length (for ex., 300 seconds).

    But I have got a big problem : memory definitely leaks after each time cycle.

    For debug purposes I create simplified prototype project. Full code for it can be found this GIT repository.

    I can’t insert Memory increasing diagram because not enough reputation((

    The main cycle :

    if (PWriter->TimerCounter >= REC_TIMEOUT)
    {
       uint64_t mem = PWriter->GetMemoryConsumption();
       sprintf(str, "DEBUG: Timeout callback. Memory: %lld. Delta: %lld\n", mem, mem - Memory);
       AppendLog(str, "MAIN");
       Memory = mem;
       PWriter->TimerCounter = 0;
       PWriter->Continue();
    }

    Start recording called from this function :

    int FfPipeline::ThInitiateRecording()
    {
     const char *class_name = "FfPipeline::ThInitiateRecording";
     pthread_t ptid;

     sprintf(str, "DEBUG: Pipeline slot '%d'. Try to starting thread with stopping...\n", Slot);
     AppendLog(str, class_name);

     pthread_create(&ptid, NULL, &ThRecording, (void *) this);

     pthread_detach(ptid);

     sprintf(str, "DEBUG: Pipeline slot '%d'. Starting thread ended!\n", Slot);
     AppendLog(str, class_name);

     return 0;
    }

    Please help me any ideas !
    Thanks a lot !

  • Revision 8fd3f9a2fb : Enable non-rd mode coding on key frame, for speed 6. For key frame at speed 6 :

    12 novembre 2014, par Marco

    Changed Paths :
     Modify /test/vp9_avg_test.cc


     Modify /vp9/common/vp9_rtcd_defs.pl


     Modify /vp9/encoder/vp9_avg.c


     Modify /vp9/encoder/vp9_encodeframe.c


     Modify /vp9/encoder/vp9_speed_features.c


     Modify /vp9/encoder/x86/vp9_avg_intrin_sse2.c



    Enable non-rd mode coding on key frame, for speed 6.

    For key frame at speed 6 : enable the non-rd mode selection in speed setting
    and use the (non-rd) variance_based partition.

    Adjust some logic/thresholds in variance partition selection for key frame only
    (no change to delta frames),
    mainly to bias to selecting smaller prediction blocks, and also set max tx size
    of 16x16.

    Loss in key frame quality ( 0.6-0.7dB) compared to rd coding,
    but speeds up key frame encoding by at least 6x.
    Average PNSR/SSIM metrics over RTC clips go down by 1-2% for speed 6.

    Change-Id : Ie4845e0127e876337b9c105aa37e93b286193405