Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (101)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    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 (...)

Sur d’autres sites (7174)

  • Using ffmpeg to display a static image if an RTMP input source is missing

    19 mars 2016, par iameli

    Here is what I would like ffmpeg to output :

    • If I am streaming from my iPhone to my RTMP server, ffmpeg should output the live video from my iPhone.
    • If not, ffmpeg should output a blank red screen.

    Here’s what I have so far. It sort of works.

    ffmpeg \
     -f lavfi \
     -re \
     -i 'color=s=320x240:r=30:c=red' \
     -thread_queue_size 512 \
     -i 'rtmp://localhost/stream/iphone' \
     -c:v libx264 \
     -f flv \
     -filter_complex "\
       [1:v]scale=320:240[stream]; \
       [0:v][stream]overlay=0:0:eof_action=pass[output] \
     "\
     -map '[output]' \
     -tune zerolatency \
     'rtmp://localhost/stream/output'

    What happens : it boots up and starts streaming my iPhone’s output no problem. When I disconnect, it hangs for a long time, perhaps 20 seconds. Then it starts outputting red, okay. But then if I reconnect my phone, it doesn’t resume. It’s still red. Two questions :

    • Is there a way to configure the buffering so that it starts outputting red as soon as it stops getting data from the RTMP stream ?
    • Is there a way to have it auto-retry, so after the RTMP stream returns, it will switch back ?

    Full verbose output, if that’s helpful. I’m using the latest git version of ffmpeg as of 2016-03-18 on Ubuntu Wily. The RTMP server is nginx-rtmp.

  • OpenGLES glReadPixels exc_bad_access

    29 novembre 2011, par Yanny

    I'm trying to create video from images using OpenGLES and ffmpeg, but on iPad(4.3) I have a crash on glReadPixels

    -(NSData *) glToUIImage {

       int numberOfComponents = NUMBER_OF_COMPONENTS; //4
       int width = PICTURE_WIDTH;
       int height = PICTURE_HEIGHT;

       NSInteger myDataLength = width * height * numberOfComponents;  

       NSMutableData * buffer= [NSMutableData dataWithLength :myDataLength];    

       [self checkForGLError];

       GLenum type = NUMBER_OF_COMPONENTS == 3 ? GL_RGB : GL_RGBA; //RGBA
       glReadPixels(0, 0, width, height, type, GL_UNSIGNED_BYTE, [buffer mutableBytes]);   //EXC_BAD_ACCESS here

       return buffer;
    }

    It is working on iPhone 4 (4.3) and iPod Touch, but have problems on iPhone 3G(3.0) and iPad(4.3). Can you help me with this issue ?

    Also on iPhone 3G(3.0) and iPad(4.3) I have problems with Video - first 5-20 video frames have trash. Maybe issue with optimization ? Or architecture ?

  • Using openCV library with Java works well on Linux but not on Windows

    6 août 2016, par user3586330

    I have a method that takes screenshots on absolute intervals (25%, 50%, 75% and 100%) from a video-file and save each of them to a separate .png-file. I use openCV with the JavaCV-Wrapper library to do that. The class/method of interest is :

    package de.stal.videoreporter;

    import org.bytedeco.javacpp.opencv_core;
    import static org.bytedeco.javacpp.opencv_imgcodecs.cvSaveImage;
    import org.bytedeco.javacv.FFmpegFrameGrabber;
    import org.bytedeco.javacv.Frame;
    import org.bytedeco.javacv.FrameGrabber;
    import org.bytedeco.javacv.OpenCVFrameConverter;

    class VideoThumbnailer {
    public void createThumbnails(String videoname) throws FrameGrabber.Exception {

       FFmpegFrameGrabber g = new FFmpegFrameGrabber("videos/" + videoname);
       g.start();
       OpenCVFrameConverter.ToIplImage converterToIplImage = new OpenCVFrameConverter.ToIplImage();
       int length = g.getLengthInFrames();
       int fifty = length / 2;
       int twentyfive = fifty / 2;
       int seventyfive = fifty + twentyfive;
       int hundred = length - 1;

       //each frame of video
       for (int j = 0; j < length; j++) {

           if (j == twentyfive || j == fifty || j == seventyfive || j == hundred) {
               String ss = "";
               if (j == twentyfive) {
                   ss = "25";
               } else if (j == fifty) {
                   ss = "50";
               } else if (j == seventyfive) {
                   ss = "75";
               } else if (j == hundred) {
                   ss = "100";
               }

               g.setFrameNumber(j);

               Frame f = g.grabImage();

               opencv_core.IplImage image = converterToIplImage.convert(f);
               String img_path = "thumbnails/" + videoname + "." + ss + ".png";
               cvSaveImage(img_path, image);
           }

       }
       g.stop();
    }
    }

    That works fine on environment : Ubuntu 15.10 x64, Java v.1.7.0_101 and Netbeans 8.0.2 with Maven. So I exported the project to a runnable jar-file(with all dependencies included) and tried to start it on Windows 10 x64 via :

    java -jar VideoReporter-1.0-SNAPSHOT-jar-with-dependencies.jar

    On Windows an exception will be thrown when executing the .jar-file :

    Error putting member offsets for class org/bytedeco/javacpp/avutil$Pool_free_Pointer.
    Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.avutil
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Unknown Source)
       at org.bytedeco.javacpp.Loader.load(Loader.java:472)
       at org.bytedeco.javacpp.Loader.load(Loader.java:417)
       at org.bytedeco.javacpp.avformat$AVFormatContext.<clinit>(avformat.java:2719)
       at org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe(FFmpegFrameGrabber.java:391)
       at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:385)
       at de.stal.videoreporter.VideoThumbnailer.createThumbnails(VideoThumbnailer.java:15)
       at de.stal.videoreporter.MetaReader.slurpMetadata(MetaReader.java:67)
       at de.stal.videoreporter.VideoReporter.main(VideoReporter.java:19)
    </clinit>

    My pom.xml is :

    &lt;?xml version="1.0" encoding="UTF-8"?>
    <project xmlns="http://maven.apache.org/POM/4.0.0">
    <modelversion>4.0.0</modelversion>
    <groupid>de.stal</groupid>
    <artifactid>VideoReporter</artifactid>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>
    <properties>
       UTF-8
       1.7
       1.7
    </properties>
    <build>
       <plugins>
           <plugin>
               <artifactid>maven-assembly-plugin</artifactid>
               <configuration>
                   <archive>
                       <manifest>
                           <mainclass>de.stal.videoreporter.VideoReporter</mainclass>
                       </manifest>
                   </archive>
                   <descriptorrefs>
                       <descriptorref>jar-with-dependencies</descriptorref>
                   </descriptorrefs>
               </configuration>
               <executions>
                   <execution>
                       <id>make-assembly</id>
                       <phase>package</phase>
                       <goals>
                           <goal>single</goal>
                       </goals>
                   </execution>
               </executions>
           </plugin>
       </plugins>
    </build>
    <dependencies>
       <dependency>
           <groupid>org.apache.commons</groupid>
           <artifactid>commons-csv</artifactid>
           <version>1.1</version>
       </dependency>
       <dependency>
           <groupid>org.bytedeco</groupid>
           <artifactid>javacpp</artifactid>
           <version>1.2.1</version>
       </dependency>
       <dependency>
           <groupid>org.bytedeco</groupid>
           <artifactid>javacv</artifactid>
           <version>1.2</version>
       </dependency>
       <dependency>
           <groupid>com.fasterxml.jackson.dataformat</groupid>
           <artifactid>jackson-dataformat-csv</artifactid>
           <version>2.8.0.rc2</version>
       </dependency>
       <dependency>
           <groupid>javassist</groupid>
           <artifactid>javassist</artifactid>
           <version>3.12.1.GA</version>
       </dependency>
       <dependency>
           <groupid>commons-collections</groupid>
           <artifactid>commons-collections</artifactid>
           <version>3.2.1</version>
       </dependency>
       <dependency>
           <groupid>com.opencsv</groupid>
           <artifactid>opencsv</artifactid>
           <version>3.3</version>
       </dependency>
    </dependencies>
    </project>

    What might be the problem on Windows ? In my opinion there shouldn’t be a problem with access to openCV/FFMPEG-classes because they all have been included the .jar-file ? Is this a problem with the classpath ?

    Thanks, Peter