Recherche avancée

Médias (0)

Mot : - Tags -/médias

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (43)

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

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

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

Sur d’autres sites (3243)

  • Python FFmpeg query rtsp too slow

    6 février 2020, par CDY

    Currently, I am trying to use python with FFmpeg to query rtsp data which the original format is h264.

    The information of the live stream video is, fps:29 ; resolution : 1280*720.

    I wish that I can query the data as the same format "h264" and put into a python queue in order to the future use.

    Here is my code :

    class CCTVReader(threading.Thread):
    def __init__(self, queue, URL, fps=29):
       super().__init__()
       self.queue = queue
       self.command = ["ffmpeg",  "-y",
                       "-hwaccel",  "nvdec",
                       "-c:v",  "h264_cuvid",
                       "-vsync", "0",
                       "-max_delay", "500000",
                       "-reorder_queue_size", "10000",
                       "-i",  "rtsp://xxx.xxx.xxx.xxx:xxx/Streaming/Channels/101?transportmode=multicast",
                       "-pix_fmt", "yuv420p",
                       "-preset", "slow",
                       "-an", "-sn",
                       "-vf", "fps=29",
                       "-"]
    def run(self):
       pipe = sp.Popen(self.command, stdout = sp.PIPE, bufsize=1024**3, shell=True)
       timer = time.time()
       counter = 0
       while True:
           self.queue.put(pipe.stdout.read(int(1280*720*6//4)))

    However, after I run this program about 10 second, my console shows the warning message :

    [rtsp @ 0000020be0fbb9c0] max delay reached. need to consume packet
    [rtsp @ 0000020be0fbb9c0] RTP: missed 127 packets

    It seems like my command doesn’t type appropriately.

    Could you kindly give me some suggestion about how to deal with this problem ?

    Thank you very much

  • How can I transform a sequence of images into a playable video using LibVLCSharp ?

    9 février 2021, par adamasan

    I have a sequence of images that I was able to extract from a video using LibVLCSharp. This sample to be more specific. I'm creating a small video library manager for learning purposes, and I would like to extract frames and create thumbnails to play when the user hovers the mouse over the previewer.

    


    Using the aforementioned sample I was able to create a WPF UI around the same loging and extract the frames from a video file. However what I want now is to convert these extracted frames into a video file, using them as preview for the video, just like happens on YouTube.

    


    I wasn't able, however, to find out how to achieve this using LibVLCSharp or just LibVLC. Using this answer on Super User I was able to achieve my goal and put those frames together into a video using ffmpeg.

    


    I haven't taken the time yet to study FFmpeg.Autogen, so I don't know if I would be able to extract the frames from the video files in the same way I can do with LibVLCSharp, but I don't see with good eyes using both libraries on my application, one to export the frames and one to generate these frames into a video.

    


    So, is there a way to get the output frames and convert them into a playable video using LibVLCSharp (or libvlc) itself ?

    


  • how to locate the voice chat that the discord bot is connected to

    10 mars 2019, par SwaggZ ReYan

    I am making a discord bot that is being activated by voice recognition, im at the very beginning right now im making him join a voice channel (which is working), and im trying to make a command to make him leave.

    const commando = require('discord.js-commando');

    class LeaveChannelCommand extends commando.Command
    {
       constructor(client){!
           super(client,{
               name: 'leave',
               group: 'music',
               memberName: 'leave',
               description: 'leaves a voice channel'
           });
       }
       async run(message, args)
       {
           if(message.guild.voiceConnection)
           {
               message.guild.voiceConnection.disconnect();
           }
           else
           {
               message.channel.sendMessage("seccessfully left")
           }
       }
    }

    module.exports = LeaveChannelCommand;

    right now you can type !leave from anywhere in the server and the bot leaves,
    i want to make it possible to control him only from the same voice channel,
    what should i do