Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (79)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (7886)

  • Reading images from AXIS ip camera using OpenCV

    14 juin 2016, par batuman

    I am trying to access AXIS IP camera from my program using OpenCV.
    My OpenCV version is 3.1. I follow this tutorial link.

    I have all libraries installed.
    My following program can load mp4 video successfully. That means ffmpeg and necessary libraries are working fine.

    #include <iostream>
    #include <opencv2></opencv2>opencv.hpp>

    using namespace std;
    int main() {
       cv::VideoCapture vcap("test.mp4");
       cv::Mat image;
    //    const string address = "rtsp://root:pass@192.168.0.90/axis-media/media.amp?camera=1";
    //    if(!vcap.open(address)){
    //      std::cout &lt;&lt; "Error opening video stream or file " &lt;&lt; std::endl;
    //      return -1;
    //    }
       for(;;){
           if(!vcap.read(image)){
               std::cout &lt;&lt; "No frame" &lt;&lt; std::endl;
               cv::waitKey(0);
           }
           cv::imshow("Display", image);
           cv::waitKey(1);
       }
       return 0;
    }
    </iostream>

    When I tried to access the IP Camera as follow

    cv::VideoCapture vcap("rtsp://root:pass@192.168.0.90/axis-media/media.amp?camera=1");

    I have the following error

    GStreamer Plugin: Embedded video playback halted; module source reported: Could
    not open resource for reading and writing.
    OpenCV Error: Unspecified error (GStreamer: unable to start pipeline
    ) in cvCaptureFromCAM_GStreamer, file /home/Softwares/opencv/opencv/modules
    /videoio/src/cap_gstreamer.cpp, line 818
    terminate called after throwing an instance of 'cv::Exception'
     what():  /home/Softwares/opencv/opencv/modules/videoio/src/cap_gstreamer.
    cpp:818: error: (-2) GStreamer: unable to start pipeline
    in function cvCaptureFromCAM_GStreamer

    User is root and password is pass and ip 192.168.0.90 are all defaults.

    My if config gave me

    ifconfig
    eth0      Link encap:Ethernet  HWaddr b8:2a:72:c6:b8:13  
             inet6 addr: fe80::ba2a:72ff:fec6:b813/64 Scope:Link
             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
             RX packets:723959 errors:0 dropped:0 overruns:0 frame:0
             TX packets:116637 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0 txqueuelen:1000
             RX bytes:199422245 (199.4 MB)  TX bytes:13701699 (13.7 MB)

    lo        Link encap:Local Loopback  
             inet addr:127.0.0.1  Mask:255.0.0.0
             inet6 addr: ::1/128 Scope:Host
             UP LOOPBACK RUNNING  MTU:65536  Metric:1
             RX packets:24829 errors:0 dropped:0 overruns:0 frame:0
             TX packets:24829 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0 txqueuelen:0
             RX bytes:2502903 (2.5 MB)  TX bytes:2502903 (2.5 MB)

    wlan0     Link encap:Ethernet  HWaddr a0:a8:cd:99:92:60  
             UP BROADCAST MULTICAST  MTU:1500  Metric:1
             RX packets:0 errors:0 dropped:0 overruns:0 frame:0
             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0 txqueuelen:1000
             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    What could be the problem for this access to the camera ?

    Thanks

  • FFmpeg doesn't produce a 'progress' event when converting to videos of certain file types

    10 décembre 2023, par Alteria

    I am writing an app in electron, and one of the functionalities is that you can create a copy of the currently selected file with a different type. I do this by having a dropdown in the html that allows you to select the type. I then use a function in preload.js that calls an ffmpeg function in main.js

    &#xA;

    Preload :

    &#xA;

    const { contextBridge, ipcRenderer } = require(&#x27;electron&#x27;)&#xA;&#xA;contextBridge.exposeInMainWorld(&#x27;changeFiles&#x27;, {&#xA;    //This is the function that is called&#xA;    convert: (filePath, newFormat) => ipcRenderer.send(&#x27;change:file:convert-format&#x27;, filePath, newFormat)&#xA;})&#xA;

    &#xA;

    Main :

    &#xA;

    //electron&#xA;const { app, BrowserWindow, ipcMain} = require(&#x27;electron&#x27;)&#xA;&#xA;//node&#xA;const path = require(&#x27;path&#x27;)&#xA;&#xA;&#xA;//ffmpeg setup&#xA;const ffmpegStatic = require(&#x27;ffmpeg-static&#x27;)&#xA;const ffmpeg = require(&#x27;fluent-ffmpeg&#x27;)&#xA;ffmpeg.setFfmpegPath(ffmpegStatic)&#xA;&#xA;//imports an array that has video formats [&#x27;.mp4&#x27;, &#x27;.webm&#x27;, &#x27;.avi&#x27;] and so on&#xA;const { videoFormat } = require(&#x27;./file formats.js&#x27;)&#xA;&#xA;//Preload sends to this&#xA;ipcMain.on(&#x27;change:file:convert-format&#x27;, (_event, filePath, newFormat) => {&#xA;    //There is an if statement to another function because I want to be able to convert images in the future&#xA;    if(videoFormats.includes(newFormat)) {&#xA;        videoConvert(filePath, newFormat, _event)&#xA;        return&#xA;    }&#xA;})&#xA;&#xA;const videoConvert = (file, newFormat, _event) => {&#xA;    //file is the filepath for the file you want to change&#xA;&#xA;    ffmpeg()&#xA;        .input(file)&#xA;        .saveToFile(`${path.resolve(path.dirname(file), path.parse(file).name &#x2B; newFormat)}`)&#xA;        .on(&#x27;progress&#x27;, (progress) => {&#xA;             console.log(progress)&#xA;        })&#xA;        .on(&#x27;error&#x27;, (error) => {&#xA;            console.log(error)&#xA;        })&#xA;}&#xA;&#xA;

    &#xA;

    For some reason, when the format for the video is '.mp4', the .on('progress') fires, but if the format is '.webm' or '.avi' then it is not fired. There are also some issues I have noticed, where if these formats are chosen, then the files may partially be copied over to the new file.

    &#xA;

    I don't know if this is because of how I am handling this, a mistake I have made in the .saveToFile(), or something else. No part of this code produces any errors anywhere, the only errors being that the progress doesn't fire and that the files are not always copied over correctly into the new format.

    &#xA;

    What should I do ?

    &#xA;

  • ffmpeg Image generation output results

    25 juillet 2020, par Joel Holmes

    I'm using FFMPEG to generate images from a video. I'd like to know the output names when the images are generated as a stream so I can upload them to s3 as they are generated.

    &#xA;&#xA;

    ffmpeg -i video.mp4 -vf scale=800:-1 -vsync 0 output/thumbnail-%06d.png&#xA;

    &#xA;&#xA;

    The standard out is a bunch of video information but I'd like to know the generated file names if possible.

    &#xA;