Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (9)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

Sur d’autres sites (4233)

  • "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

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

    


  • Im getting error "deprecated pixel format used, make sure you did set range correctly using ffmpeg".. can someone check my code below ?

    6 avril 2021, par Mavs Mavs

    This is my code using ffmpeg I want to have video thumbnail but I'm not familiar in ffmpeg can someone know the error I got.

    


    [swscaler @ 0x7ff8da028c00] deprecated pixel format used, make sure you did set range correctly
Output #0, mjpeg, to 'image.jpg':
Metadata:
major_brand     : mp42
minor_version   : 0
compatible_brands: isommp42
encoder         : Lavf56.36.100
Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 320x240 [SAR 4:3 DAR 16:9], q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc (default)
Metadata:
  creation_time   : 2016-11-06 09:40:22
  handler_name    : ISO Media file produced by Google Inc.
  encoder         : Lavc56.41.100 mjpeg
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=4.8 Lsize=      16kB time=00:00:01.00 bitrate= 129.5kbits/s    
video:16kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%


    


    Also This is my code :

    


    $video_url ='https://URL/upload/4b8acab123563649f19e07450d810df6.mp4';

$ffmpeg = '/opt/local/bin/ffmpeg';
$image = 'image.jpg';
$interval = 5;
$size = '320x240';
shell_exec($tmp = "$ffmpeg -i $video_url -deinterlace -an -ss $interval -f mjpeg -t 1 -r 1 -y -s $size $image 2>&1");