Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (83)

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

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (8396)

  • FFMpeg : CUDA_ERROR_NOT_SUPPORTED on ubuntu20.04

    22 décembre 2020, par Superminaren

    I've been trying to get CUDA working on Ubuntu 20.04 for a while now.

    


    ffmpeg -vsync 0 -hwaccel cuvid -c:v h264_cuvid -i input.mp4 -c:a copy -c:v h264_nvenc -b:v 5M output.mp4


    


    Running the sample command linked above, I get the following error :

    


    


    [AVHWDeviceContext @ 0x5618466f7f80] cu->cuCtxCreate(&hwctx->cuda_ctx, desired_flags, hwctx->internal->cuda_device) failed -> CUDA_ERROR_NOT_SUPPORTED : operation not supported
Device creation failed : -1313558101.
[h264_cuvid @ 0x561846731940] No device available for decoder : device type cuda needed for codec h264_cuvid.

    


    


    I am not sure what causes this.

    


    All relevant environment parameters look like this.

    


    CUDADIR=/usr/local/cuda-11.2/   LD_LIBRARY_PATH=/usr/local/cuda-11.2/lib64   CUDA_HOME=/usr/local/cuda-11.2/   PATH=/usr/local/cuda-11.2/bin:/opt/ffmpeg/bin/

    


    Running 'nvidia-smi' gives this response :

    


    This looks rather normal afaik too.

    


    If someone with more experience could help me that'd be greatly appreciated.

    


  • Play playlist of audio on website using node to create a jukebox / radio app

    1er juillet 2022, par neff

    So I have some time on my hands and thought I would make myself a little jukebox / radio type app.

    



    It would be fairly simple, just a collection of MP3's on the server, one is chosen at random, it plays, on completion, the next one is chosen and plays. The front of this would just be a super simple page that has a player and displays the metadata.

    



    I don't really have any experience with server programming but I'm going to look in to Node, seems like it would be good for this. I've already written a little script in Python that chooses a song from a selection and plays it (using VLC at the moment) so it should be simple to port it to Node / js.

    



    Just wondering if someone could point me in the right direction for how to link the "player" with the "playlist".

    



    Looking in to it, I can only find solutions involving a client and server using shoutCast or ICEcast or similar - so the playlist streams audio to a shoutcast server, and the website is just a player looking at the shoutCast URL - that seems unnecessary for me, as the streaming and the site would be the same thing.

    



    New to a lot of this :) but I have time at the moment so happy to get stuck in !

    



    Thanks in advance

    


  • Executing ffmpeg commands from a PHP script

    30 janvier 2013, par Derrick Tucker

    My problem is pretty simple : I can run ffmpeg commands perfectly fine on my server from the command line, but some of these commands experience trouble when I try to execute them from a PHP script.

    For example, the following works in the command line :

    ffmpeg -i cat.mpeg cat.avi

    When in my PHP script, it also works as :

    exec("/usr/local/bin/ffmpeg -i cat.mpeg cat.avi", $output);

    This, as I said, works fine. However, this line works from the command line, but not in a PHP script :

    ffmpeg -i cat.mpeg -vf scale=480:360 cat2.mpeg

    Trying to put that into an exec() produces nothing. I've tried with/without quotes around the dimensions, different formats, etc. From the dozens of different commands I have tried, it seems that any will work from PHP as long as they don't contain the -vf flag. Clearly it works on the server, as executing from the command line proceeds with no issue ; is there something silly I am missing here ?