Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (96)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

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

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

Sur d’autres sites (12688)

  • How to decode a video at a certain fps using ffmpeg

    1er juin 2018, par Mohammed_BEY

    I am working on video decoding using FFmpeg.
    When I try to decode a video which is encoded with h265 at a certain fps (ex : fps=25), the result is a decoded video but at a different fps.
    How can I decode a video at exactly fps=25, even if I have a high miss rate or dropped frames ?
    I use this command to decode :
    ffmpeg -benchmark -i -f null /dev/null

    I am running the above command on Odroid-XU3 board that contains 8 cores. The OS is Ubuntu 14.04 LTS.

    Please, any help is welcome.
    Thank you in advance.

  • script ubuntu lucid : x264

    4 mars 2012

    Dans le log du script d’installation j’ai cette erreur :

    Téléchargement, compilation et installation de x264

    1. Initialized empty Git repository in /usr/local/src/x264/.git/
    2. Package x264 was not found in the pkg-config search path.
    3. Perhaps you should add the directory containing `x264.pc
    4. to the PKG_CONFIG_PATH environment variable
    5. No package ’x264’ found

    si je tape "echo $PKG_CONFIG_PATH" j’ai une ligne vide

    je suppose que la suite est en rapport :

    1. Makefile :3 : config.mak : Aucun fichier ou dossier de ce type
    2. cat : config.h : Aucun fichier ou dossier de ce type
    3. ./configure
    4. Found yasm 0.8.0.2194
    5. Minimum version is yasm-1.0.0
    6. If you really want to compile without asm, configure with —disable-asm.
    7. make : *** [config.mak] Erreur 1
    8. Found yasm 0.8.0.2194
    9. Minimum version is yasm-1.0.0
    10. If you really want to compile without asm, configure with —disable-asm.
  • FFmpeg streaming UDP

    2 octobre 2020, par xKedar

    I'm trying to stream, using FFmpeg, my webcam and audio to a PC in another LAN that connects to mine.

    &#xA;

    I basically wait for incoming connection in order to acquire IP and port of the other side

    &#xA;

        import socket&#xA;&#xA;    localPort   = 1234&#xA;    bufferSize  = 1024&#xA;&#xA;    UDPServerSocket = socket.socket(family=socket.AF_INET, type=socket.SOCK_DGRAM)&#xA;    UDPServerSocket.bind(("", localPort)) # Bind to address and port&#xA;&#xA;    while(True):&#xA;        bytesAddressPair = UDPServerSocket.recvfrom(bufferSize)&#xA;        message = bytesAddressPair[0].decode("utf-8")&#xA;        address = bytesAddressPair[1]&#xA;        # Sending a reply to client&#xA;        UDPServerSocket.sendto(str.encode("Hello"), address)&#xA;        break&#xA;&#xA;    UDPServerSocket.close()&#xA;

    &#xA;

    Then I try to send the stream with FFmpeg using the same port number both for server(localPort) and client(the one I acquired from address)

    &#xA;

        import re&#xA;    from threading import Thread&#xA;    from subprocess import Popen, PIPE&#xA;&#xA;    def detect_devices():&#xA;            list_cmd = &#x27;ffmpeg -list_devices true -f dshow -i dummy&#x27;.split()&#xA;            p = Popen(list_cmd, stderr=PIPE)&#xA;            flagcam = flagmic = False&#xA;            for line in iter(p.stderr.readline,&#x27;&#x27;):&#xA;                if flagcam:&#xA;                    cam = re.search(&#x27;".*"&#x27;,line.decode(encoding=&#x27;UTF-8&#x27;)).group(0)&#xA;                    cam = cam if cam else &#x27;&#x27;&#xA;                    flagcam = False&#xA;                if flagmic:&#xA;                    mic = re.search(&#x27;".*"&#x27;,line.decode(encoding=&#x27;UTF-8&#x27;)).group(0)&#xA;                    mic = mic if mic else &#x27;&#x27;&#xA;                    flagmic = False&#xA;                elif &#x27;DirectShow video devices&#x27;.encode(encoding=&#x27;UTF-8&#x27;) in line:&#xA;                    flagcam = True&#xA;                elif &#x27;DirectShow audio devices&#x27;.encode(encoding=&#x27;UTF-8&#x27;) in line:&#xA;                    flagmic = True&#xA;                elif &#x27;Immediate exit requested&#x27;.encode(encoding=&#x27;UTF-8&#x27;) in line:&#xA;                    break&#xA;            return cam, mic   &#xA;&#xA;&#xA;    class ffmpegThread (Thread):&#xA;        def __init__(self, address):&#xA;            Thread.__init__(self)&#xA;            self.address = address&#xA;&#xA;        def run(self):&#xA;            cam, mic = detect_devices()&#xA;            command = &#x27;ffmpeg -f dshow -i video=&#x27;&#x2B;cam&#x2B;&#x27;:audio=&#x27;&#x2B;mic&#x2B;&#x27; -profile:v high -pix_fmt yuvj420p -level:v 4.1 -preset ultrafast -tune zerolatency -vcodec libx264 -r 10 -b:v 512k -s 240x160 -acodec aac -ac 2 -ab 32k -ar 44100 -f mpegts -flush_packets 0 -t 40 udp://&#x27;&#x2B;self.address&#x2B;&#x27;?pkt_size=1316?localport=&#x27;&#x2B;str(localPort)&#xA;            p = Popen(command , stderr=PIPE)&#xA;            for line in iter(p.stderr.readline,&#x27;&#x27;):&#xA;                if len(line) &lt;5: break&#xA;            p.terminate()&#xA;&#xA;    thread1 = ffmpegThread(address[0]&#x2B;":"&#x2B;str(address[1]))&#xA;    thread1.start()&#xA;

    &#xA;

    While on the other side I have :

    &#xA;

        from threading import Thread&#xA;    import tkinter as tk&#xA;    import vlc&#xA;&#xA;    class myframe(tk.Frame):&#xA;        def __init__(self, width=240, height=160):&#xA;            self.root = tk.Tk()&#xA;            super(myframe, self).__init__(self.root)&#xA;            self.root.geometry("%dx%d" % (width, height))&#xA;            self.root.wm_attributes("-topmost", 1)&#xA;            self.grid()&#xA;            self.frame = tk.Frame(self, width=240, height=160)&#xA;            self.frame.configure(bg="black")&#xA;            self.frame.grid(row=0, column=0, columnspan=2)&#xA;            self.play()&#xA;            self.root.mainloop()&#xA;&#xA;        def play(self):&#xA;            self.player = vlc.Instance().media_player_new()&#xA;            self.player.set_mrl(&#x27;udp://@0.0.0.0:5000&#x27;)&#xA;            self.player.set_hwnd(self.frame.winfo_id())&#xA;            self.player.play()&#xA;&#xA;    class guiThread (Thread):&#xA;        def __init__(self, nome):&#xA;            Thread.__init__(self)&#xA;            self.nome = nome&#xA;&#xA;        def run(self):&#xA;            app = myframe()&#xA;

    &#xA;

    and :

    &#xA;

        import socket&#xA;&#xA;    msgFromClient       = "Hello UDP Server"&#xA;    bytesToSend         = str.encode(msgFromClient)&#xA;    serverAddressPort   = ("MYglobal_IPaddress", 1234)&#xA;    bufferSize          = 1024&#xA;    localPort   = 5000&#xA;&#xA;    # Create a UDP socket at client side&#xA;    UDPClientSocket = socket.socket(family=socket.AF_INET, type=socket.SOCK_DGRAM) &#xA;    UDPClientSocket.bind(("", localPort))&#xA;&#xA;    UDPClientSocket.sendto(bytesToSend, serverAddressPort)&#xA;&#xA;    msgFromServer = UDPClientSocket.recvfrom(bufferSize)&#xA;    msg = msgFromServer[0].decode("utf-8")&#xA;    print(msg)&#xA;    UDPClientSocket.close()&#xA;    gui = guiThread("ThreadGUI")&#xA;    gui.start()&#xA;

    &#xA;

    I'm not able to reach the client with the stream. I tested everything else so the problem should be in the way I try to reach the client

    &#xA;