Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (56)

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

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (11707)

  • How to fix opencv python cv2.VideoCapture rtsp onvif "nonmatching transport in server reply" error ?

    28 juillet 2022, par Projetos Prince Tower

    I am on Windows and using Python 3.6.4. I've installed OpenCV (3.4) via pip. Here is the code I am using :

    


    import numpy as np
import cv2

cap = cv2.VideoCapture('rtsp://192.168.15.116:554/onvif1')

while(cap.isOpened()):
    ret, frame = cap.read()

    gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)

    cv2.imshow('frame',gray)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

cap.release()
cv2.destroyAllWindows()


    


    I am getting the following error :

    


    [rtsp @ 03858a40] Nonmatching transport in server reply
warning: Error opening file (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:808)
warning: rtsp://192.168.15.116:554/onvif1 (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:809)


    


    I can go to cmd and type

    


    ffplay rtsp://192.168.15.116/onvif1


    


    and the video will run as well as in VLC using the same rtsp address. Using

    


    cv2.VideoCapture(0)


    


    also works with my webcam.

    


    I've tried copying the file "opencv_ffmpeg340.dll" into all path folders but to no avail. I've also checked build and all video I/O show up with "YES" except for Gstreamer. Any help would be appreciated.
Thank you.

    


  • "Error : FFMPEG not found" : Error with simple Discord Bot

    23 décembre 2019, par Robin Seerig

    I’m using Windows (64-bit) with Node.js and npm installed.
    In my project file, I have run the following commands :

    npm init
    npm install discord.js --save
    npm install ffmpeg --save

    Now i just created the code for a basic bot here is the main code.
    I list here the important :

    if (message.content === '!play' && message.member.roles.has(message.guild.roles.find("name", config.role_name).id)) {
       if (!message.member.voiceChannel) return log("?");
          message.member.voiceChannel.join().then(function (connection){      
          });
    }

    Then, in Discord, I say the following :

    [1517932146]  Musik bot loaded
       (node:35760) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: FFMPEG not found

    I have already tested the following :

    • reinstallation of everything
    • others of the require names e.t.z.
    • simplify the code

    So if you have any ideas then let me know.

    Solution

    npm i ffmpeg-binaries@3.2.2-3

    link

  • NReco Error : "The specified executable is not a valid application for this OS platform"

    18 juillet 2018, par swabygw

    I’m using the NReco to convert videos. I declare the converter like the following, and add a handler to ConvertProgress.

    Dim vid_Convert As New FFMpegConverter
    AddHandler vid_Convert.ConvertProgress, Sub(sender, e) vidConvertProgress(folder,fname,fext,fverdest,fint,fcount,fhost,e)
    vid_Convert.ConvertMedia(file_temp, Nothing, file_dest, "mp4", cSettings)

    The media is converted fine. The problem is in the handler where I declare a new converter and have it do a GetVideoThumbnail (when the prior conversion is completed), like this :

    Dim vid_Extract As New FFMpegConverter
    vid_Extract.GetVideoThumbnail(inputFile, outputFile, extractposition)

    This produces the error "The specified executable is not a valid application for this OS platform". However, I’ve executed the GetVideoThumbnail method by itself elsewhere in my program with no problem. For some reason, it won’t work if it’s executed within the handler. Is there a way around this ?