Recherche avancée

Médias (91)

Autres articles (67)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (5169)

  • ffmpeg not capturing frames in windows using java

    19 août 2013, par user2320537

    I have to develop a tool in java that will capture frames from webcam, Now what I have done for that is, I have used Runtime class to run ffmpeg and other commands, when it opens web-cam then after sometime my web-cam hangs and it does not capture frames.

    I am using following method for that.

    public class FFMPEGClass {

       private String ffmpegExeLocation;
       private final String FRAME_DIGITS = "010";

       public FFMPEGClass(String capturingDName, String outputImagesLocation, int framesPerSecond) {
           ffmpegExeLocation = System.getProperty("user.dir") + "\\bin\\";
           System.out.println(ffmpegExeLocation);
           try {
               System.out.println(ffmpegExeLocation + "ffplay -f dshow -video_size 640x480 -i video=\"" + capturingDName + "\"");
               Runtime.getRuntime().exec(ffmpegExeLocation + "ffplay -f dshow -video_size 640x480 -i video=\"" + capturingDName + "\"");
               System.out.println(ffmpegExeLocation + "ffmpeg -t 100000 "
                       + "-f vfwcap -s 640x480 -i 0 -r 1/" + framesPerSecond + " -f image2 " + outputImagesLocation + "\\camera%"+FRAME_DIGITS+"d.jpg");
               Runtime.getRuntime().exec(ffmpegExeLocation + "ffmpeg -t 100000 "
                       + "-f vfwcap -s 640x480 -i 0 -r 1/" + framesPerSecond + " -f image2 " + outputImagesLocation + "\\camera%"+FRAME_DIGITS+"d.jpg");
           } catch (Exception ex) {
               ex.printStackTrace();
           }
       }
    }

    In my case capturingDName is USB2.0 UVC VGA WebCam
    outputImagesLocation is d :\frames and
    framesPerSecond is 16

    For a moment if i run these commands in command prompt then also I am unable to capture frames.

    I have already checked many answers from google and stackoverflow but these are not working in my case

  • optimizing ffmpeg in windows platform for processing with web-cam

    22 août 2013, par user2320537

    I have to develop a tool in java that will capture frames from webcam, Now what I have done for that is, I have used Runtime class to run ffmpeg and other commands, when it starts capturing frames from my web-cam,
    I am using following method for that.

    public class FFMPEGClass {

       private String ffmpegExeLocation, line;
       private final String FRAME_DIGITS = "010";

       public FFMPEGClass(String capturingDName, String outputImagesLocation, int framesPerSecond) {
           ffmpegExeLocation = System.getProperty("user.dir") + "\\bin\\";
           System.out.println(ffmpegExeLocation);
           try {            
               System.out.println(ffmpegExeLocation + "ffmpeg -t 100000 "
                       + "-f vfwcap -s 640x480 -i 0 -r 1/" + framesPerSecond + " -f image2 " + outputImagesLocation + "\\camera%"+FRAME_DIGITS+"d.jpg");
               Process pp = Runtime.getRuntime().exec(ffmpegExeLocation + "ffmpeg -t 100000 "
                       + "-f vfwcap -s 640x480 -i 0 -r 1/" + framesPerSecond + " -f image2 " + outputImagesLocation + "\\camera%"+FRAME_DIGITS+"d.jpg");
               BufferedReader br = new BufferedReader(new InputStreamReader(pp.getErrorStream()));
               while((line = br.readLine()) != null){
                    System.out.println(line);
               }
           } catch (Exception ex) {
               ex.printStackTrace();
           }
       }
    }

    In my case capturingDName is USB2.0 UVC VGA WebCam
    outputImagesLocation is e :\myfolder\frames and
    framesPerSecond is 10

    This code works well but it is unable to capture frames efficiently, In other words I want to say that its processing is very slow, can anyone please tell that how can I optimize it so that it can capture frames very fastly.

    I have Intel Core i3 processor with 6 GB of RAM

    I have already checked many answers from google and stackoverflow but these are not working in my case

  • muxing overhead error when converting a video via ffmpeg

    16 décembre 2016, par john smoth

    I’m using ffmpeg to converting videos on my site.
    I’m converting all the videos to flv . if I upload flv , it has not problem but if I upload any other file type except flv , it shows me this error :

    ffmpeg version 0.7.11, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 26 2013 01:58:02 with gcc 4.4.7 20120313 (Red Hat 4.4.7-3)
    configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-libmp3lame --enable-libx264 --enable-libfaac --enable-libvorbis
    --enable-libopencore-amrnb --enable-libopencore-amrwb libavutil 50. 43. 0 / 50. 43. 0 libavcodec 52.123. 0 / 52.123. 0 libavformat 52.111. 0 / 52.111. 0
    libavdevice 52. 5. 0 / 52. 5. 0 libavfilter 1. 80. 0 / 1. 80. 0 libswscale 0. 14. 1 / 0. 14. 1 libpostproc 51. 2. 0 / 51. 2. 0
    Seems stream 0 codec frame rate differs from container frame rate: 2997.00 (2997/1) -> 14.99 (15000/1001)
    Input #0, avi, from 'uploads/v_37.avi':
    Metadata: title : AJ McLean - Teenage Wildlife encoder : Lavf52.16.0
    Duration: 00:04:17.19, start: 0.000000, bitrate: 470 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 14.98 fps, 14.99 tbr, 14.99 tbn, 2997 tbc
    Stream #0.1: Audio: mp3, 22050 Hz, stereo, s16, 128 kb/s
    WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s
    [buffer @ 0x2137ae0] w:640 h:480 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param: [scale @ 0x2139da0] w:640 h:480 fmt:yuv420p -> w:320 h:240 fmt:yuv420p flags:0x4
    Output #0, flv, to 'uploads/aaa.flv': Metadata: title : AJ McLean - Teenage Wildlife encoder : Lavf52.111.0
    Stream #0.0: Video: flv, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 1k tbn, 14.99 tbc Stream #0.1: Audio: libmp3lame, 22050 Hz, stereo, s16, 0 kb/s
    Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1
    Press [q] to stop, [?] for help
    frame= 26 fps= 0 q=2.0 Lsize= 80kB time=00:00:01.73 bitrate= 375.7kbits/s video:64kB audio:14kB global headers:0kB muxing overhead 2.339835%

    last line is : muxing overhead 2.339835%

    the final file is a 1 second video ( it doesn’t make any different how long is the video , all of them become a 1 second video )

    What is the problem ?
    this is the ffmpeg code that convert the video :

    echo passthru("$ffmpegpath -i uploads/$file -ar 22050 -ab 32 -f flv -s 320×240 uploads/aaa.flv 2>&1");

    Thanks

    thanks