Recherche avancée

Médias (0)

Mot : - Tags -/flash

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (33)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

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

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

Sur d’autres sites (5571)

  • JavaCV Fetch RTSP Meet "avcodec_open2() error -40 : Could not open audio codec" Error

    6 avril 2019, par Jeremy Lu

    I am trying to use javacv to fetch a rtsp monitoring camera and grabber the frames, but meet "avcodec_open2() error -40 : Could not open audio codec" error when the grabber is prepare to start after setup the parameters.

    Javacv version :

    • org.bytedeco.javacv-platform, 1.4.1
    • org.bytedeco.javacpp-presets.opencv-platform, 3.4.1-1.4.1

    Here is the Jave Exception Infomation :

    org.bytedeco.javacv.FrameGrabber$Exception: avcodec_open2() error -40: Could not open audio codec.  
     at org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe(FFmpegFrameGrabber.java:835) ~[javacv-1.4.1.jar:1.4.1]  
     at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:663) ~[javacv-1.4.1.jar:1.4.1]  

    rtsp infomation :
    For the rtsp source, I also tried to download the FFplay and use command

    .\ffplay.exe -rtsp_transport tcp rtsp://admin:DWUUUP@10.193.8.71

    to show the frames from monitoring camera, and it works, and with following information

    • Input #0, rtsp, from ’rtsp ://admin:DWUUUP@10.193.8.71’ :

      • Metadata :
        • title : Media Presentation
      • Duration : N/A, start : 0.000000, bitrate : N/A
        • Stream #0:0 : Video : h264 (Main), yuvj420p(pc, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 15 fps, 24.17 tbr, 90k tbn, 30 tbc
        • Stream #0:1 : Audio : aac, 16000 Hz, 1 channels, fltp
    • [aac @ 000001fc123be880] Audio object type 0 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.

    And here is the source code :

    FFmpegFrameGrabber grabber = new FFmpegFrameGrabber ("rtsp://admin:DWUUUP@10.193.8.71");
    grabber.setImageHeight(640);
    grabber.setImageWidth(360);
    grabber.setOption("rtsp_transport", "tcp");
    grabber.start(); // Where meet the problem

    Java2DFrameConverter converter = new Java2DFrameConverter();
    BufferedImage bufferedImage = converter.convert( grabber.grab() );
    ByteArrayOutputStream bateArrayOutputStream = new ByteArrayOutputStream();
    ImageIO.write(bufferedImage, "jpeg", bateArrayOutputStream);
    byte[] data = bateArrayOutputStream.toByteArray();
    bateArrayOutputStream.close();

    I have tested to change the rtsp to a mp4 file, the code can work.

    How can I fix this problem ? Thanks very much !

  • How to fix "fatal error : x.264 no such file or directory"

    24 avril 2019, par user11340790

    I wrote a makefile which builds a C program attaching the x.264 header. After trying to execute the makefile in terminal I receive the fatal error :
"example.c line [line of #include ] x264.h no such file or directory". Below you can find the C code and makefile (located in the same folder, the library - containing the x264.pc file- is in the folder libx264 of the parent folder). I would be very grateful if you could help with the linkage.

    



    Makefile :

    



        CC = gcc

    CFLAGS = -c -Wall `export PKG_CONFIG_PATH=../libx264 && pkg-config            --cflags x264`
    LDFLAGS = -static `export PKG_CONFIG_PATH=../libx264 && pkg-config --libs --static libx264`


    all: Release

    Debug: CFLAGS += -g
    Debug: example

    Release: example

    test: example.o
        $(CC) -o example example.o $(LDFLAGS)

    test.o: example.c
        $(CC) $(CFLAGS) example.c -o example.o

    clean:
        rm -f example.o example


    



    example.c code

    



        #include 
    #include 
    int main( int argc, char **argv )
    {
        int width, height;
         return 0;
    }


    


  • How to fix "fatal error : x.264 no such file or directory"

    24 avril 2019, par user11340790

    I wrote a makefile which builds a C program attaching the x.264 header. After trying to execute the makefile in terminal I receive the fatal error :
    "example.c line [line of #include ] x264.h no such file or directory". Below you can find the C code and makefile (located in the same folder, the library - containing the x264.pc file- is in the folder libx264 of the parent folder). I would be very grateful if you could help with the linkage.

    Makefile :

       CC = gcc

       CFLAGS = -c -Wall `export PKG_CONFIG_PATH=../libx264 && pkg-config            --cflags x264`
       LDFLAGS = -static `export PKG_CONFIG_PATH=../libx264 && pkg-config --libs --static libx264`


       all: Release

       Debug: CFLAGS += -g
       Debug: example

       Release: example

       test: example.o
           $(CC) -o example example.o $(LDFLAGS)

       test.o: example.c
           $(CC) $(CFLAGS) example.c -o example.o

       clean:
           rm -f example.o example

    example.c code

       #include
       #include
       int main( int argc, char **argv )
       {
           int width, height;
            return 0;
       }