Recherche avancée

Médias (91)

Autres articles (94)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    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 (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (6330)

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

  • How to make ffmpeg delete the original file after changing containers ? (using a send to bat file)

    12 mars 2020, par Bloggy

    I’m currently using a bat file in my shell:sendto folder that allows me to right click MKV files and open a cmd window that uses ffmpeg to change containers and produces an mp4 in the same directory as the source file. It works great, but I’d like to automate the process of deleting the original MKVs after (successfully) changing containers, and skipping the recycle bin if possible.

    Right now my .bat file is like follows :

    "C:\ffmpeg\bin\ffmpeg.exe" -i %1 -codec copy "%~n1.mp4"

    I’ve looked it up already but could only find a similar question about batch processing an entire folder and without the sendto part, and I wasn’t sure how to make that work for me.
    So if someone could point me towards what to append to it to make it happpen, I’d appreciate it.

    Thanks ! :)

  • Mixing audio stream into video stream using ffmpeg while retaining original audio from the video stream as background [duplicate]

    18 mars 2020, par Core7s

    I have a live video stream and a live audio stream. The audio stream has to get mixed into the video stream and the resulting stream is pushed to YouTube. I have this working ffmpeg -i videostream -i audiostream -map 0:1 -map 1:0 -shortest -c:a copy -c:v copy -f flv streamout-youtube;
    However I am losing the original audio in the videostream. I want to have the original audio playing at maybe 20% of the original volume.
    I looked around a lot and found maybe I can modify the above command to use -filter_complex to get ffmpeg -i videostream -i audiostream -filter_complex "volume=0.2" -map 0:1 -map 1:0 -shortest -c:a copy -c:v copy -f flv streamout-youtube;

    However, when I add the -filter_complex option, the stream goes dead meaning it doesn’t get pushed to youtube anymore. I have verified the stream keys are correct. This seems to be a rather simple thing but I can’t put my finger on what’s wrong.

    I am using rtmp module of nginx to receive, mix and push out streams.