Recherche avancée

Médias (91)

Autres articles (72)

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

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (8605)

  • Why does my Blink based browser play hide and seek ?

    21 janvier 2016, par Caius Jard

    We have a C# tool (that I wrote) that records online broadcasts taking place a custom written (that we wrote) flash app. (There are no DRM or copyright issues here.)

    We’ve coded up a system whereby this tool is installed on a Windows Server 2012 R2 Amazon AWS instance. After we boot the instance, the tool loads, waits for the right time to start recording, launches a browser and passes the command line argument of the URL to access the broadcast. The browser will then load the flash app and the interview audio and video will start arriving at the browser instance on AWS

    By way of a virtual audio cable driver, screen / audio capture directshow filters and ffmpeg a screen recording is taken. The C# tool calls ffmpeg and ffmpeg will record the screen reliably for the entire interview, then the tool shuts the whole thing down

    The problem I’m having is that both Chrome and Electron browser sometimes simply don’t draw themselves on the screen so all ffmpeg ends up recording is a blank desktop and the audio of the broadcast (hence, the browser IS running)

    We found this out when recordings started turning up with X hours of merely recording the windows desktop and the tool’s main window with a countdown timer.

    A screenshotting facility was built into the tool and added to its web control interface, and this way we can test whether the browser is visible - a human looks at the screenshot of every broadcast, just after recording has started (the browser is supposed to be on show by this time)

    We notice that 50% of the time, the browser isn’t drawing itself on screen. By 50% I mean that every other recording that the AWS instance carries out, will be blank : AWS starts, records ok, shuts down. AWS starts again an hour later for a different broadcast, recording is blank, shuts down.. Starts/ok/shutdown. Starts/blank/shutdown. Repeat ad infinitum

    What’s even more strange is that if I run VNCviewer on my dev machine and connect up to an instance that is having a problem, the instant that the VNC connection is up and the remote desktop is showing on my screen, the browser suddenly appears as if nothing was ever wrong. A screenshot from before the VNC connect shows blank desktop, connect VNC, take another screenshot and the browser is there. All through it the audio is fine - the browser connected to the boadcast is fine, for sure

    It’s as though Chrome/Electron thinks "you know what, noone is looking at me so I’m not going to bother drawing myself". No screen saver is set, though the power plan has the setting "turn off the display after 15 minutes".

    Perhaps Chrome/Electron have a test amounts to "if the display is off, don’t draw". I can’t explain the inconsistency though - the recorder launches at least 1 hour before it’s needed, and sits there idle until it’s time to start the browser. You’d hence imagine that the "power off the monitor after 15 mins" setting would reliably have ensured the "monitor" is "off" by the time every recording start comes around

    This behaviour doesn’t happen with any of the other browsers (but unfortunately the app doesn’t and cannot work in them because it uses some weird chrome-only technology/API).

    Can anyone suggest anything to look at to help debug this, or anything I can build into the C# tool to overcome the problem ? Coding it up to connect to itself via VNC for a few seconds after it has launched the browser.. Well that just tastes nasty.

    Naturally, as soon as I connect to the machine via VNC (rather than RDP - RDP isn’t usable because the recording context is in a logged on session for a particular user) the problem goes away, which makes it frustratingly hard to debug.

  • building ffmpeg with openh264 configure results in h264 decoder DISabled ?

    7 juillet 2018, par hal497

    I’ve got openh264, built from source, installed locally,

    pkg-config --libs --cflags openh264
           -I/usr/local/include -L/usr/local/lib64 -lopenh264

    Building ffmpeg from src

    cd ffmpeg-git
       git checkout origin/release/4.0
       git clean -xfd
       git reset --hard
       git pull
       git log | head
           commit b5106c5aa2ddd00f0c0452432ba8e683a9a06b6f
           Author: Aman Gupta <aman@tmm1.net>
           Date:   Mon Jun 11 00:43:31 2018 -0700

               avformat/mpegts: parse large PMTs with multiple tables

               In 9152c1e4955, the mpegts parser was taught how to parse
               PMT sections which contained multiple tables. That commit
               fixed parsing of PMT packets from some cable providers,
               which included a special SCTE table (0xc0) before the

    with a simple config to ENABLE libopenh264 use

    ./configure --enable-ffmpeg \
    --prefix=/usr/local --libdir=/usr/local/lib64 \
    --enable-shared --disable-static --enable-rpath \
    --enable-libopenh264 --disable-libx264
    make

    checking the build

    ldd ./ffmpeg | egrep "h264|x264"
       (empty)

    there are mixed references to libopenh264 and libx264 (despite my config),

    for l in lib*/*so; do echo $l; ldd $l | egrep "264"; done
       libavcodec/libavcodec.so
               libopenh264.so.4 => /usr/local/lib64/libopenh264.so.4 (0x00007f82dd74d000)
       libavdevice/libavdevice.so
               libx264.so.152 => /usr/lib64/libx264.so.152 (0x00007f0575c6f000)
       libavfilter/libavfilter.so
               libx264.so.152 => /usr/lib64/libx264.so.152 (0x00007f85bae41000)
       libavformat/libavformat.so
               libx264.so.152 => /usr/lib64/libx264.so.152 (0x00007ff105701000)
       libavutil/libavutil.so
       libswresample/libswresample.so
       libswscale/libswscale.so

    and

    ./ffmpeg -decoders | grep h264

    shows h264 as a disabled decoder, (... —enable-libx264 —disable-libopenh264 ...)

    ffmpeg version n4.0.1-5-gb5106c5aa2 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 8 (SUSE Linux)
     configuration: --enable-ffmpeg --prefix=/usr/local --libdir=/usr/local/lib64 --enable-shared --disable-static --enable-optimizations --enable-rpath --disable-doc --enable-nonfree --enable-libopenh264 --disable-libx264
     WARNING: library configuration mismatch
     avutil      configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --extra-cflags='-grecord-gcc-switches -g -fPIC -I/usr/include/gsm' --disable-static --enable-shared --disable-stripping --enable-optimizations --disable-debug --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-devices --disable-htmlpages --disable-doc --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --disable-libopenh264 --enable-libfdk-aac --enable-libmp3lame --enable-runtime-cpudetect --enable-postproc --enable-bzlib --enable-swresample --disable-avresample --enable-ladspa --enable-muxers --enable-demuxers --enable-encoders --disable-encoder= --enable-decoders --disable-decoder= --enable-protocol=http --disable-libpulse --enable-pthreads --enable-pic --enable-zlib --disable-mipsdsp --disable-mipsdspr2 --disable-openssl --enable-gnutls --disable-cuda --enable-vaapi --enable-vdpau --enable-libcdio --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-inline-asm --enable-x86asm
     avcodec     configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --extra-cflags='-grecord-gcc-switches -g -fPIC -I/usr/include/gsm' --disable-static --enable-shared --disable-stripping --enable-optimizations --disable-debug --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-devices --disable-htmlpages --disable-doc --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --disable-libopenh264 --enable-libfdk-aac --enable-libmp3lame --enable-runtime-cpudetect --enable-postproc --enable-bzlib --enable-swresample --disable-avresample --enable-ladspa --enable-muxers --enable-demuxers --enable-encoders --disable-encoder= --enable-decoders --disable-decoder= --enable-protocol=http --disable-libpulse --enable-pthreads --enable-pic --enable-zlib --disable-mipsdsp --disable-mipsdspr2 --disable-openssl --enable-gnutls --disable-cuda --enable-vaapi --enable-vdpau --enable-libcdio --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-inline-asm --enable-x86asm
     avformat    configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --extra-cflags='-grecord-gcc-switches -g -fPIC -I/usr/include/gsm' --disable-static --enable-shared --disable-stripping --enable-optimizations --disable-debug --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-devices --disable-htmlpages --disable-doc --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --disable-libopenh264 --enable-libfdk-aac --enable-libmp3lame --enable-runtime-cpudetect --enable-postproc --enable-bzlib --enable-swresample --disable-avresample --enable-ladspa --enable-muxers --enable-demuxers --enable-encoders --disable-encoder= --enable-decoders --disable-decoder= --enable-protocol=http --disable-libpulse --enable-pthreads --enable-pic --enable-zlib --disable-mipsdsp --disable-mipsdspr2 --disable-openssl --enable-gnutls --disable-cuda --enable-vaapi --enable-vdpau --enable-libcdio --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-inline-asm --enable-x86asm
     avdevice    configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --extra-cflags='-grecord-gcc-switches -g -fPIC -I/usr/include/gsm' --disable-static --enable-shared --disable-stripping --enable-optimizations --disable-debug --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-devices --disable-htmlpages --disable-doc --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --disable-libopenh264 --enable-libfdk-aac --enable-libmp3lame --enable-runtime-cpudetect --enable-postproc --enable-bzlib --enable-swresample --disable-avresample --enable-ladspa --enable-muxers --enable-demuxers --enable-encoders --disable-encoder= --enable-decoders --disable-decoder= --enable-protocol=http --disable-libpulse --enable-pthreads --enable-pic --enable-zlib --disable-mipsdsp --disable-mipsdspr2 --disable-openssl --enable-gnutls --disable-cuda --enable-vaapi --enable-vdpau --enable-libcdio --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-inline-asm --enable-x86asm
     avfilter    configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --extra-cflags='-grecord-gcc-switches -g -fPIC -I/usr/include/gsm' --disable-static --enable-shared --disable-stripping --enable-optimizations --disable-debug --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-devices --disable-htmlpages --disable-doc --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --disable-libopenh264 --enable-libfdk-aac --enable-libmp3lame --enable-runtime-cpudetect --enable-postproc --enable-bzlib --enable-swresample --disable-avresample --enable-ladspa --enable-muxers --enable-demuxers --enable-encoders --disable-encoder= --enable-decoders --disable-decoder= --enable-protocol=http --disable-libpulse --enable-pthreads --enable-pic --enable-zlib --disable-mipsdsp --disable-mipsdspr2 --disable-openssl --enable-gnutls --disable-cuda --enable-vaapi --enable-vdpau --enable-libcdio --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-inline-asm --enable-x86asm
     swscale     configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --extra-cflags='-grecord-gcc-switches -g -fPIC -I/usr/include/gsm' --disable-static --enable-shared --disable-stripping --enable-optimizations --disable-debug --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-devices --disable-htmlpages --disable-doc --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --disable-libopenh264 --enable-libfdk-aac --enable-libmp3lame --enable-runtime-cpudetect --enable-postproc --enable-bzlib --enable-swresample --disable-avresample --enable-ladspa --enable-muxers --enable-demuxers --enable-encoders --disable-encoder= --enable-decoders --disable-decoder= --enable-protocol=http --disable-libpulse --enable-pthreads --enable-pic --enable-zlib --disable-mipsdsp --disable-mipsdspr2 --disable-openssl --enable-gnutls --disable-cuda --enable-vaapi --enable-vdpau --enable-libcdio --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-inline-asm --enable-x86asm
     swresample  configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --extra-cflags='-grecord-gcc-switches -g -fPIC -I/usr/include/gsm' --disable-static --enable-shared --disable-stripping --enable-optimizations --disable-debug --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-devices --disable-htmlpages --disable-doc --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --disable-libopenh264 --enable-libfdk-aac --enable-libmp3lame --enable-runtime-cpudetect --enable-postproc --enable-bzlib --enable-swresample --disable-avresample --enable-ladspa --enable-muxers --enable-demuxers --enable-encoders --disable-encoder= --enable-decoders --disable-decoder= --enable-protocol=http --disable-libpulse --enable-pthreads --enable-pic --enable-zlib --disable-mipsdsp --disable-mipsdspr2 --disable-openssl --enable-gnutls --disable-cuda --enable-vaapi --enable-vdpau --enable-libcdio --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-inline-asm --enable-x86asm
     libavutil      56. 14.100 / 56. 14.100
     libavcodec     58. 18.100 / 58. 18.100
     libavformat    58. 12.100 / 58. 12.100
     libavdevice    58.  3.100 / 58.  3.100
     libavfilter     7. 16.100 /  7. 16.100
     libswscale      5.  1.100 /  5.  1.100
     libswresample   3.  1.100 /  3.  1.100
    VFS..D h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
    V..... h264_v4l2m2m         V4L2 mem2mem H.264 decoder wrapper (codec h264)

    The question is — why ? And what needs to change so that libopenh264 is consistently & correctly used ?

  • Revision 120902 : Constructeur de formulaire : ne pas passer les afficher_si à ...

    31 janvier 2020, par root — Log

    Constructeur de formulaire : ne pas passer les afficher_si à l’affichage des saisies.
    - De toute facon on n’en pas besoin
    - Le transformateur de condition va peter un cable et produire des
    conditions invalide du style data-afficher-si="||" lorsque la saisie est
    configurée avec un afficher_si de type ’&lt ;test&gt ; || &lt ;test2&gt ;’
    - et du coup si jamais on a un afficher_si dans la description yaml
    d’un type de saisie/de verification, elle ne marchera pas (ex. avec la
    verification des types mimes de fichier)