Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (55)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (10258)

  • Anomalie #4226 (Fermé) : Le lien "changer" n’a aucun effet pour la restauration d’une base

    16 novembre 2018, par Franck D

    Hello :-)
    Un SPIP 3.3.0-dev [24147] tout neuf sans plug,
    Prefix des tables "test1" installation en MySQL
    En php 7.2 chez ovh
    Environement : stable
    Moteur : phpcgi
    Mode développement

    Je sauvegarde 2 fois à la suite la base pour le test, puis je vais sur .../ecrire/ ?exec=restaurer
    Je fais le choix de l’une des deux base, je clique sur "restaurer la base" et j’arrive à la copie d’écran ou normalement, le bouton "changer" devrait permettre de revenir en arrière ou en tout cas de choisir une autre base.
    Le problème est que, ce bouton n’a aucun effet !

  • Anomalie #3418 : Les tables des plugins ne s’installent pas

    5 avril 2015, par Franck Dalot

    SPIP 3.1.0-alpha [21970]
    Installation en MySQL
    Aucun prefix de table particulier, ils sont donc sous la forme : spip_xxx
    Essai d’installation du plugin "agenda" 3.14.7
    L’installation est faite via SVP

    Quand je parle tables, je parle des tables du plug :
    spip_evenements
    spip_evenements_participants

    5.6.6 en mode prod = tables absente
    5.5.22 en mode prod = tables absente
    5.4.38 en mode prod = ok
    5.3.29 en mode prod = tables absente

    5.6.6 en mode dev = tables absente
    5.5.22 en mode dev = tables absente
    5.4.38 en mode dev = ok
    5.3.29 en mode dev = tables absente

    Pour une raison que j’ignore, les tables ne sont présente qu’en php 5.4 chez ovh

  • Java CV 1.0 Webcam video capture :Frame cannot be converted to IplImage

    4 décembre 2015, par user17795

    I am not able to record webcam video (i.e. Capture and Save .avi or .mp4 File) using JavaCV / OpenCV / FFMPEG, what am I doing wrong ?

    Version used (all 64-bit)

    Win 7 , NetBeans8.0.2 , jdk1.7.0_10 , JavaCV 1.0 , OpenCV 3.0.0 , ffmpeg-2.1.1-win64-shared .

    My system variables are set to

    C :\Program Files\Java\jdk1.7.0_10 ;%SystemRoot%\system32 ;%SystemRoot% ;%SystemRoot%\System32\Wbem ;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0~;C :\Program Files\Intel\WiFi\bin~;C :\Program Files\Common Files\Intel\WirelessCommon~;C :\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86 ;C :\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64 ;C :\Program Files (x86)\MySQL\MySQL Fabric 1.5.4 & MySQL Utilities 1.5.4 1.5~;C :\Program Files (x86)\MySQL\MySQL Fabric 1.5.4 & MySQL Utilities 1.5.4 1.5\Doctrine extensions for PHP~;C :\opencv\build\x64\vc11\bin ;C :\ffmpeg\bin

    After downloading and setting path variables I added jar files to Netbeans project

    C :\opencv\build\java\opencv-300.jar
    C :\javacv-1.0-bin\javacv-bin\videoinput.jar
    C :\javacv-1.0-bin\javacv-bin\videoinput-windows-x86_64.jar
    C :\javacv-1.0-bin\javacv-bin\videoinput-windows-x86.jar
    C :\javacv-1.0-bin\javacv-bin\opencv.jar
    C :\javacv-1.0-bin\javacv-bin\opencv-windows-x86_64.jar
    C :\javacv-1.0-bin\javacv-bin\opencv-windows-x86.jar
    C :\javacv-1.0-bin\javacv-bin\libfreenect.jar
    C :\javacv-1.0-bin\javacv-bin\libfreenect-windows-x86_64.jar
    C :\javacv-1.0-bin\javacv-bin\libfreenect-windows-x86.jar
    C :\javacv-1.0-bin\javacv-bin\libdc1394.jar
    C :\javacv-1.0-bin\javacv-bin\junit.jar
    C :\javacv-1.0-bin\javacv-bin\javacv.jar
    C :\javacv-1.0-bin\javacv-bin\javacpp.jar
    C :\javacv-1.0-bin\javacv-bin\hamcrest-core.jar
    C :\javacv-1.0-bin\javacv-bin\flycapture.jar
    C :\javacv-1.0-bin\javacv-bin\flycapture-windows-x86_64.jar
    C :\javacv-1.0-bin\javacv-bin\flycapture-windows-x86.jar
    C :\javacv-1.0-bin\javacv-bin\flandmark.jar
    C :\javacv-1.0-bin\javacv-bin\flandmark-windows-x86_64.jar
    C :\javacv-1.0-bin\javacv-bin\flandmark-windows-x86.jar
    C :\javacv-1.0-bin\javacv-bin\ffmpeg.jar
    C :\javacv-1.0-bin\javacv-bin\ffmpeg-windows-x86_64.jar
    C :\javacv-1.0-bin\javacv-bin\ffmpeg-windows-x86.jar
    C :\javacv-1.0-bin\javacv-bin\artoolkitplus.jar
    C :\javacv-1.0-bin\javacv-bin\artoolkitplus-windows-x86_64.jar
    C :\javacv-1.0-bin\javacv-bin\artoolkitplus-windows-x86.jar

    Problem 1 :
    First program to capture webcam video (display and save to output.avi file) is as given below.

    It displays webcam and creates output.avi. But after terminating program when I open file output.avi in Media Player it doesn’t display anything :)

    It doesn’t work

    import java.io.File;
    import java.net.URL;
    import org.bytedeco.javacv.*;
    import org.bytedeco.javacpp.*;
    import org.bytedeco.javacpp.indexer.*;
    import static org.bytedeco.javacpp.opencv_core.*;
    import static org.bytedeco.javacpp.opencv_imgproc.*;
    import static org.bytedeco.javacpp.opencv_calib3d.*;
    import static org.bytedeco.javacpp.opencv_objdetect.*;

    public class JCVdemo3 {
       public static void main(String[] args) throws Exception {

           // Preload the opencv_objdetect module to work around a known bug.
           Loader.load(opencv_objdetect.class);

           // The available FrameGrabber classes include OpenCVFrameGrabber (opencv_videoio),
           // DC1394FrameGrabber, FlyCaptureFrameGrabber, OpenKinectFrameGrabber,
           // PS3EyeFrameGrabber, VideoInputFrameGrabber, and FFmpegFrameGrabber.
           FrameGrabber grabber = FrameGrabber.createDefault(0);
           grabber.start();

           // CanvasFrame, FrameGrabber, and FrameRecorder use Frame objects to communicate image data.
           // We need a FrameConverter to interface with other APIs (Android, Java 2D, or OpenCV).
           OpenCVFrameConverter.ToIplImage converter = new OpenCVFrameConverter.ToIplImage();


           IplImage grabbedImage = converter.convert(grabber.grab());
           int width  = grabbedImage.width();
           int height = grabbedImage.height();


           FrameRecorder recorder = FrameRecorder.createDefault("output.avi", width, height);
           recorder.start();


           CanvasFrame frame = new CanvasFrame("Some Title");

           while (frame.isVisible() && (grabbedImage = converter.convert(grabber.grab())) != null) {
              // cvWarpPerspective(grabbedImage, rotatedImage, randomR);

               Frame rotatedFrame = converter.convert(grabbedImage);

               //opencv_core.IplImage grabbedImage = grabber.grab();
               frame.showImage(rotatedFrame);
               recorder.record(rotatedFrame);
           }
           frame.dispose();
           recorder.stop();
           grabber.stop();
       }
    }

    Problem 2 : When I run following code

    opencv_core.IplImage grabbedImage = grabber.grab();  

    incompatible types : Frame cannot be converted to IplImage message appears

    import java.io.File;
    import java.net.URL;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import org.bytedeco.javacv.*;
    import org.bytedeco.javacpp.*;
    import org.bytedeco.javacpp.indexer.*;
    import static org.bytedeco.javacpp.opencv_core.*;
    import static org.bytedeco.javacpp.opencv_imgproc.*;
    import static org.bytedeco.javacpp.opencv_calib3d.*;
    import static org.bytedeco.javacpp.opencv_objdetect.*;

    public class Demo {
       public static void main(String[] args) {  
        try {  
          OpenCVFrameGrabber grabber = new OpenCVFrameGrabber(0);  
          grabber.start();  
          opencv_core.IplImage grabbedImage = grabber.grab();  
          CanvasFrame canvasFrame = new CanvasFrame("Video with JavaCV");  
          canvasFrame.setCanvasSize(grabbedImage.width(), grabbedImage.height());  
          grabber.setFrameRate(grabber.getFrameRate());  

          FFmpegFrameRecorder recorder = new FFmpegFrameRecorder("mytestvideo.mp4", grabber.getImageWidth(), grabber.getImageHeight());
          recorder.setFormat("mp4");  
          recorder.setFrameRate(30);  
          recorder.setVideoBitrate(10 * 1024 * 1024);  


          recorder.start();  
          while (canvasFrame.isVisible() && (grabbedImage = grabber.grab()) != null) {  
            canvasFrame.showImage(grabbedImage);  
            recorder.record(grabbedImage);  
          }  
          recorder.stop();  
          grabber.stop();  
          canvasFrame.dispose();  

        } catch (FrameGrabber.Exception ex) {  
          Logger.getLogger(JCVdemo.class.getName()).log(Level.SEVERE, null, ex);  
        } catch (FrameRecorder.Exception ex) {  
          Logger.getLogger(JCVdemo.class.getName()).log(Level.SEVERE, null, ex);  
        }  
      }
    }  

    Question is : what am i doing wrong ?

    I am not able to record any sort of video ; no matter what version of JavaCV/OPenCv I use.

    Please tell me working example to record video from webcam and also the working JavaCV/OpenCV /FFmpeg compatible versions.