Recherche avancée

Médias (91)

Autres articles (70)

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (11184)

  • FFmpeg process finishes writing the file only after closing the program

    20 juin 2024, par The Engineer

    My JavaFX application uses FFmpeg to extract the first frame from a video file in a separate thread and the process ends with a wait. The image is saved to a temporary directory (temp/video_preview.jpg) but becomes available only after the forced termination of the entire program. I need the image for display in ImageView immediately after the FFmpeg process is completed.

    


    @FXML&#xA;private void onDragOver(DragEvent event) {&#xA;    if (event.getDragboard().hasFiles()) {&#xA;        event.acceptTransferModes(TransferMode.ANY);&#xA;    }&#xA;}&#xA;&#xA;@FXML&#xA;private void onDragDropped(DragEvent event) {&#xA;    Dragboard db = event.getDragboard();&#xA;    boolean success = false;&#xA;    if (db.hasFiles()) {&#xA;        List<file> files = db.getFiles();&#xA;        File videoFile = files.get(0);&#xA;        Image image = extractFirstFrameFromVideo(videoFile.getAbsolutePath());&#xA;        mainImage.setImage(image);&#xA;        success = true;&#xA;    }&#xA;    event.setDropCompleted(success);&#xA;    event.consume();&#xA;}&#xA;</file>

    &#xA;

    private Image extractFirstFrameFromVideo(String pathToVideo) {&#xA;    try {&#xA;        ProcessBuilder processBuilder = new ProcessBuilder(&#xA;                ffmpegPath,&#xA;                "-y",&#xA;                "-ss", "00:00:00",&#xA;                "-i", pathToVideo,&#xA;                "-frames:v", "1",&#xA;                outputFilePath  // "temp/video_preview.jpg"&#xA;        );&#xA;&#xA;        Process process = processBuilder.start();&#xA;&#xA;        int exitCode = process.exitValue();&#xA;        if (exitCode != 0) {&#xA;            throw new IOException("ffmpeg process exited with error code: " &#x2B; exitCode);&#xA;        }&#xA;&#xA;        return new Image(new File(outputFilePath).toURI().toString());&#xA;&#xA;    } catch (IOException e) {&#xA;        throw new RuntimeException(e);&#xA;    }&#xA;}&#xA;

    &#xA;

  • Cannot stop and (re-play) a rtsp stream with FFMediaElement

    5 mars 2024, par CactusJack

    I have a problem using stop and play on a rtsp stream using the FFMediaElement.

    &#xA;

    I am initializing an instance of the MediaElement once by doing m_MediaPlayer = new MediaPlayer();&#xA;This instance should live the whole application lifetime.

    &#xA;

    After this, I open the rtsp stream : await m_MediaPlayer.Open(new Uri(rtspAdress));&#xA;The media opens, and when I do m_MediaPlayer.Play(); the stream is displayed in the MediaElement.

    &#xA;

    Now I want to stop the stream with m_MediaPlayer.Stop(); and play it again. After calling play again, the stream is not diplayed anymore. The log says :

    &#xA;

    Direct Command 'Close' accepted. Perparing execution.&#xA;OnStreamReadInterrupt was requested an immediate read exit.&#xA;EVENT START : BufferingEnded&#xA;EVENT DONE : BufferingEnded&#xA;V BLK : 14.388 | CLK : 14.417 | DFT : 29 | IX : 4 | RNG : 48.897% | PQ : 0.0k | TQ : 0.0k&#xA;Direct Command 'Close' entered&#xA;MediaState changed : + Close&#xA;Media closed.&#xA;OnStreamReadInterrupt was requested an immediate read exit.&#xA;EVENT START : MediaStateChanged&#xA;EVENT START : MediaClosed&#xA;EVENT DONE : MediaStateChanged&#xA;Direct Command 'Close' completed. Result : True&#xA;EVENT DONE : MediaClosed&#xA;Dispose Entered. Waiting for Command Manager processor to stop.&#xA;Dispose is waiting for pending direct commands.&#xA;Dispose is closing media.&#xA;EVENT START : MediaClosed&#xA;Media closed.&#xA;EVENT DONE : MediaClosed&#xA;Dispose completed.

    &#xA;

    So why is Stop disposing the media ?&#xA;When I create a new player before re-playing and open the stream again, it works. But this takes a moment, so I just wat to stop and start again. Is that possible ?

    &#xA;

  • BlueImp Fileupload - do action after single file upload when uploading multiple files ?

    11 juillet 2014, par Mr Pablo

    Is there anyway to get the event after a single file has finished uploading, when adding multiple files to the uploader ?

    I want to do some processing (converting video files with FFMPEG) after each file is uploaded.

    Currently, when uploading multiple files, with my conversion script fired in the "done" event, only one file is being converted, despite the script being fired in a $.each() loop.

    I can’t seem to find the event for finding out when a single file has finished uploading, in the documentation.