Recherche avancée

Médias (91)

Autres articles (102)

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

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

  • Best way to pipe audio and video chunks from within python to ffmpeg

    8 mai 2016, par basilikum

    Problem

    I’m getting audio and video chunks from a third-party server and I would like to pipe those chunks to ffmpeg to create a WebM live stream according to these instructions :

    http://wiki.webmproject.org/adaptive-streaming/instructions-to-do-webm-live-streaming-via-dash

    Here they are using input from webcam and microphone but I need to use the data chunks, so the ffmpeg command would look somehow like this :

       cmd = [
           "ffmpeg",
           "-f", "flv", "-i", "video.fifo",
           "-f", "s16le", "-ar", "16000", "-ac", "1", "-i", "audio.fifo",
           "-map", "0:0",
           "-pix_fmt", "yuv420p",
           "-c:v", "libvpx-vp9",
           "-s", "640x480", "-keyint_min", "40", "-g", "40", "-speed", "6",
           "-tile-columns", "4", "-frame-parallel", "1", "-threads", "8",
           "-static-thresh", "0", "-max-intra-rate", "300",
           "-deadline", "realtime", "-lag-in-frames", "0",
           "-error-resilient", "1",
           "-b:v", "3000k",
           "-f", "webm_chunk",
           "-header", self.video_header,
           "-chunk_start_index", "1",
           "video_360_%d.chk",
           "-map", "1:0",
           "-c:a", "libvorbis",
           "-b:a", "16k", "-ar", "16000",
           "-f", "webm_chunk",
           "-audio_chunk_duration", "2000",
           "-header", self.audio_header,
           "-chunk_start_index", "1",
           "audio_171_%d.chk"
       ]

    As you can see, I am using a "video.fifo" and "audio.fifo" file, because I thought it would be a good idea to pipe the chunks in via a named pipe, but I can’t get it to work. Here is what I’m doing :

    p = subprocess.Popen(cmd)
    fa = os.open("video.fifo", os.O_WRONLY)
    fv = os.open("audio.fifo", os.O_WRONLY)

    So I’m starting the subprocess first, so that it opens the fifo files for reading. After that, I should be able to open them for writing but I am not. More specifically, I am able to open the first one, but not the second one. So maybe that has something to do with how ffmpeg handles its inputs if there are more than one, but I just don’t know.

    Question

    How can I either solve the problem of non openable named pipes or how can I achieve what I wanted to achieve without named pipes.

  • Revision 6eec73a747 : Remove asm offset dependencies The obj_int_extract code is no longer worth main

    31 juillet 2014, par Johann

    Changed Paths :
     Delete /build/arm-msvs/obj_int_extract.bat


     Modify /build/make/Android.mk


     Modify /build/make/Makefile


     Modify /build/make/configure.sh


     Modify /build/make/gen_msvs_proj.sh


     Modify /build/make/gen_msvs_vcxproj.sh


     Modify /build/make/rtcd.pl


     Delete /build/x86-msvs/obj_int_extract.bat


     Modify /configure


     Modify /libs.mk


     Modify /solution.mk


     Modify /test/quantize_test.cc


     Modify /vp8/common/rtcd_defs.pl


     Delete /vp8/encoder/arm/armv5te/boolhuff_armv5te.asm


     Delete /vp8/encoder/arm/armv5te/vp8_packtokens_armv5.asm


     Delete /vp8/encoder/arm/armv5te/vp8_packtokens_mbrow_armv5.asm


     Delete /vp8/encoder/arm/armv5te/vp8_packtokens_partitions_armv5.asm


     Delete /vp8/encoder/arm/armv6/vp8_fast_quantize_b_armv6.asm


     Delete /vp8/encoder/arm/armv6/vp8_subtract_armv6.asm


     Delete /vp8/encoder/arm/boolhuff_arm.c


     Modify /vp8/encoder/bitstream.c


     Modify /vp8/encoder/bitstream.h


     Modify /vp8/encoder/encodeframe.c


     Modify /vp8/encoder/ethreading.c


     Modify /vp8/encoder/vp8_asm_enc_offsets.c


     Modify /vp8/vp8cx.mk


     Modify /vp8/vp8cx_arm.mk


     Modify /vpx_ports/arm_cpudetect.c


     Modify /vpx_scale/vpx_scale.mk


     Modify /vpx_scale/vpx_scale_asm_offsets.c



    Remove asm offset dependencies

    The obj_int_extract code is no longer worth maintaining. It creates
    significant issues when adapting for different build systems and no
    longer offers as significant of a performance benefit due to
    improvements in intrinsics.

    Source files will remain until the various third-party builds are updated.

    The neon fast quantizer has been moved to intrinsics. The armv6 version
    has been removed because so few remaining targets require it.

    Compilers and processors have improved significantly since the
    pack_tokens code was written. The assembly is no longer faster than the
    C code.

    pack_tokens were the only optimizations for the armv5te targets so the targets
    will be removed after the test infrastructure has been updated.

    BUG=710

    Change-Id : Ic785b167cd9f95eeff31c7c76b7b736c07fb30eb

  • Evolution #3426 : enrichir la détection des robots

    1er novembre 2015, par Ben .
    if (!defined(’_IS_BOT’))
        define(’_IS_BOT’,
            isset($_SERVER[’HTTP_USER_AGENT’])
            AND preg_match(
            // mots generiques
            ’,bot|slurp|crawler|spider|webvac|yandex|’
            // MSIE 6.0 est un botnet 99,9% du temps, on traite donc ce USER_AGENT comme un bot
            . ’MSIE 6\.0|’
            // UA plus cibles
            . ’200please|360spider|80legs|a6-indexer|abachobot|aboundex|aboutusbot|accoona|aciorobot|addsearchbot|addthis|adressendeutschland|adsbot-google|ahrefsbot|aihitbot|alexa|altavista|amznkassocbot|analyticsseo|antbot|arabot|archive|askpeterbot|aspseek|backlinkcrawler|baidu|baiduspider|begunadvertising|bingbot|bingpreview|bitlybot|bixocrawler|blekkobot|blexbot|bloglines|brainbrubot|browsershots|bubing|bufferbot|butterfly|careerbot|catchbot|ccbot|changedetection|charlotte|chilkat|china|claritybot|classbot|cliqzbot|coccoc|cococrawler|compspybot|crawler|crawler4j|crowsnest|crystalsemanticsbot|dataminr|daumoa|dlweb|dotbot|dumbot|easouspider|ec2linkfinder|estyle|exabot|ezooms|facebookexternalhit|facebookplatform|fairshare|fast-webcrawler|feedfetcher|feedfetcher-google|feedly|feedlybot|fetch|figleafbot|flipboardproxy|fyberspider|genieo|geonabot|gigabot|google|googlebot|grapeshot|hatena-useragent|head|hosttracker|hubspot|ia_archiver|icc-crawler|ichiro|idbot|iltrovatore-setaccio|immediatenet|ina|infegyatlas|infohelfer|instapaper|ixebot|jabse|james|java|jikespider|jyxobot|kumkie|linkdex|linkfluence|linkwalker|litefinder|loadimpactpageanalyzer|luminate|lycos|lycosa|magpie-crawler|meanpathbot|mediapartners-google|metageneratorcrawler|metajobbot|mj12bot|mojeekbot|msai|msnbot|msnbot-media|msrbot|musobot|najdi|nalezenczbot|nekstbot|netcraftsurveyagent|netestate|netseer|nuhk|obot|omgilibot|openwebspider|panscient|parsijoo|plukkie|proximic|psbot|qihoobot|qirina|qualidator|queryseekerspider|rambler|readability|rogerbot|ru_bot|sbsearch|scooter|scrapy|scrubby|scrubbybloglines|searchbot|searchmetricsbot|semrushbot|seocheckbot|seoengworldbot|seokicks-robot|seznambot|shareaholic|shopwiki|showyoubot|sistrix|sitechecker|siteexplorer|slurp|socialbm_bot|sogou|sosoimagespider|sosospider|spbot|special_archiver|speedy|spider|spiderling|spiderman|spinn3r|spreadtrum|steeler|subscriber|suggybot|suma|superdownloads|surveybot|svenska-webbsido|teoma|thumbshots|tineye|trendiction|turnitinbot|tweetedtimes|tweetmeme|twitterbot|uaslinkchecker|umbot|undrip|unisterbot|unwindfetchor|urlappendbot|vedma|vkshare|vm|voilabot|wbsearchbot|wch|web|webalta|webcookies|webthumbnail|wesee|wise-guys|woko|woobot|woriobot|wotbox|y !j-bri|y !j-bro|y !j-brw|y !j-bsc|yacybot|yahoo|yahoo !|yahooysmcm|yandexbot|yats|yeti|yioopbot|yodaobot|youdaobot|zb-1|zeerch|zing-bottabot|zumbot’
            . ’,i’,(string) $_SERVER[’HTTP_USER_AGENT’])
    ) ;
    

    si le pastebin meurt :)