Recherche avancée

Médias (91)

Autres articles (20)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

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

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (3150)

  • HTML5 video - frame accurate seeking on Android devices ?

    27 mai 2015, par GFoley83

    I’m working on an app that requires frame accurate seeking on video in the browser, across desktop and mobile devices (including packaged apps with Cordova).

    Desktop browsers work fine as do iOS devices (both as a packaged app and through Safari) but Android devices only seem to show key frames (aka intra frames or i-frames) in the video.

    I’ve setup a test page on jsfiddle to help demo my problem.

    The video has been encoded with ZenCoder. It has a frame rate of 23.976 and key frames every 250 frames. The video itself shows the current frame index so you can easily see that only the frames at 0, 250 and 500 frames are being displayed on Android devices, regardless of where you seek to.

    At this stage I’d be happy with a solution that works in Android browsers or as a packaged app with Cordova (I’ve also tried using the Crosswalk WebView but to no avail).

  • Why does javaFx run converted mp4 but not original ?

    20 février 2020, par brat

    Simply put, I have this issue where I have a mp4 file with a video. If I run it directly in the code posted here, the window opens but its white/blank. No movie showing.
    But if I run the original movie through ffmpeg it works.

    ffmpeg -i original.mp4 -s hd720 converted.mp4

    Note that Im converting from mp4 to mp4, I just change the size to hd720.
    So, the question is, why do I need to do that ?

    My code :

    package mypack;

    import javafx.application.Application;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.media.Media;
    import javafx.scene.media.MediaPlayer;
    import javafx.scene.media.MediaView;
    import javafx.stage.Stage;

    public class MyPlayer extends Application{

       public static void main(String[] args) {
           launch(args);
       }


       public void start(Stage primaryStage) throws Exception {
           BorderPane content = new BorderPane();

            Scene scene = new Scene(content, 540, 209);
            primaryStage.setScene(scene);
            primaryStage.setScene(scene);

            primaryStage.setTitle("Hello Media");

            String source;
            source = "file:///C:/Users/Noob/Desktop/Movies/original.mp4";
    //       source = "file:///C:/Users/Noob/Desktop/Movies/converted.mp4";


            Media media = new Media(source);

            MediaPlayer mediaPlayer = new MediaPlayer(media);
            mediaPlayer.setAutoPlay(true);

            MediaView mediaView = new MediaView(mediaPlayer);
            ((BorderPane) scene.getRoot()).getChildren().add(mediaView);
            primaryStage.show();

       }

    }

    For those audio/video afficionados/ffmpeg pros out there. This is what gets output from the original.

    ffprobe -i original.mp4

    ffprobe version 4.2.2 Copyright (c) 2007-2019 the FFmpeg developers
     built with gcc 9.2.1 (GCC) 20200122
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
     libavutil      56. 31.100 / 56. 31.100
     libavcodec     58. 54.100 / 58. 54.100
     libavformat    58. 29.100 / 58. 29.100
     libavdevice    58.  8.100 / 58.  8.100
     libavfilter     7. 57.100 /  7. 57.100
     libswscale      5.  5.100 /  5.  5.100
     libswresample   3.  5.100 /  3.  5.100
     libpostproc    55.  5.100 / 55.  5.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0000029bc02bc540] st: 0 edit list: 1 Missing key frame while searching for timestamp: 0
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0000029bc02bc540] st: 0 edit list 1 Cannot find an index entry before timestamp: 0.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'original.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42mp41
       creation_time   : 2020-02-18T17:09:21.000000Z
     Duration: 00:00:22.56, start: 0.000000, bitrate: 1631 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 1624 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc (default)
       Metadata:
         creation_time   : 2020-02-18T17:09:21.000000Z
         handler_name    : Mainconcept MP4 Video Media Handler
         encoder         : AVC Coding

    Could it have to do with size ? To big ? Since it sayes 3840x2160 in the original ? And Im making it smaller with hd720 ?
    If so, I would expect at least a corner of the movie showing, instead of a totally blank window.
    Im new at this, so if you also give some good link to ffmpeg (excluding official manpages) and/or a good tutorial/info page on video formatting pointed towards beginners it would be much appreciated. My understanding this far is there are containers which hold streams and each stream can have different codecs depending on the container.

  • Missing reference frame, slice header decode error

    20 juin 2014, par AnilJ

    I split this (http://www.auby.no/files/video_tests/h264_720p_mp_3.1_3mbps_aac_shrinkage.mp4) video using mp4box command "MP4Box -split 1 shrinking.mp4" into slices of 1 second each. I have following questions :

    1. I got different sizes of the video although I sliced it evenly at 1 second. Not sure how this happened ?
    2. When I try to dump the information about the video slice file, I get the below message with an error. Can someone please help me understand what it is, and how possibly I can modify the command above to get rid of it ? This error occurs for every video slide generated. This error comes only on the sliced videos.

    Thanks,
    /anil.

    anilj@desk1:~/workspace/testprogs/shellscripts$ ffmpeg -i invideo/shrinking_01.mp4
    ffmpeg version N-36083-g2501f93-xuggle-5.5 Copyright (c) 2000-2012 the FFmpeg developers
     built on Jun  3 2014 13:43:04 with gcc 4.6.4
     configuration: --prefix=/home/anilj/workspace/xugglehome --extra-version=xuggle-5.5 --extra-cflags=-I/home/anilj/workspace/xuggle-xuggler/build/native/x86_64-unknown-linux-gnu/captive/stage/home/anilj/workspace/xugglehome/include --extra-ldflags=-L/home/anilj/workspace/xuggle-xuggler/build/native/x86_64-unknown-linux-gnu/captive/stage/home/anilj/workspace/xugglehome/lib --disable-shared --enable-pic --enable-gpl --enable-nonfree --enable-libx264 --enable-version3 --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libvo-aacenc --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-openssl --enable-zlib --enable-libvpx
     libavutil      51. 46.100 / 51. 46.100
     libavcodec     54. 14.101 / 54. 14.101
     libavformat    54.  3.100 / 54.  3.100
     libavdevice    53.  4.100 / 53.  4.100
     libavfilter     2. 67.101 /  2. 67.101
     libswscale      2.  1.100 /  2.  1.100
     libswresample   0. 10.100 /  0. 10.100
     libpostproc    52.  0.100 / 52.  0.100
    [h264 @ 0x1ddeac0] Missing reference picture
    [h264 @ 0x1ddeac0] decode_slice_header error
    [h264 @ 0x1ddeac0] Missing reference picture
    [h264 @ 0x1ddeac0] decode_slice_header error
    [h264 @ 0x1ddeac0] Missing reference picture
    [h264 @ 0x1ddeac0] decode_slice_header error
    [h264 @ 0x1ddeac0] Missing reference picture
    [h264 @ 0x1ddeac0] decode_slice_header error
    [h264 @ 0x1ddeac0] concealing 3600 DC, 3600 AC, 3600 MV errors
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'invideo/shrinking_01.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 1
       compatible_brands: isom
       creation_time   : 2014-06-19 20:21:02
     Duration: 00:00:00.90, start: 0.000000, bitrate: 38 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 30 kb/s, 29.96 fps, 29.96 tbr, 29956 tbn, 59.92 tbc
       Metadata:
         creation_time   : 2011-05-05 18:09:35
         handler_name    : ?Apple Video Media Handler
    At least one output file must be specified