Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

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

Autres articles (25)

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

  • Les thèmes de MediaSpip

    4 juin 2013

    3 thèmes sont proposés à l’origine par MédiaSPIP. L’utilisateur MédiaSPIP peut rajouter des thèmes selon ses besoins.
    Thèmes MediaSPIP
    3 thèmes ont été développés au départ pour MediaSPIP : * SPIPeo : thème par défaut de MédiaSPIP. Il met en avant la présentation du site et les documents média les plus récents ( le type de tri peut être modifié - titre, popularité, date) . * Arscenic : il s’agit du thème utilisé sur le site officiel du projet, constitué notamment d’un bandeau rouge en début de page. La structure (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (4013)

  • Console windows displayed during python script execution [closed]

    15 janvier 2020, par vivitare

    i’m trying to create a Youtube converter with python and Tkinter.
    The problem is during the conversion with ffmpeg encoder, a console appear. But I don’t want to display her.

    Windows console displayed during encoding with ffmpeg

    Is there a parameter or something like that to disable this console ?

    I’m using this code to launch dowlnoad and youtube-dl do the rest :

    ydl_opts = {
       'format': 'bestaudio/best',
       'postprocessors': [{
           'key': 'FFmpegExtractAudio',
           'preferredcodec': 'mp3',
           'preferredquality': '192',
       }],
       'logger': MyLogger(),
       'progress_hooks': [my_hook],
    }
    with youtube_dl.YoutubeDL(ydl_opts) as ydl:
       ydl.download(['https://www.youtube.com/watch?v=BaW_jenozKc'])
  • Seeking by bytes in FFmpeg

    26 juillet 2024, par Yury

    I'am developing a video converter which based on FFmpeg's libavformat, and I need to implement an accurate seeking API. First of all, I developed an indexer of video stream which just saves a presentation timestamps(PTS) of every packet. And then my encoder uses this index to seek the video file. Before this operations, I remux file to mp4 container, for example. Remux is needed for videos which have no correct index inside, or video has no index at all. I need to implement seeking by bytes, of course with previously built index. I tried many ways to implement this, but without any success. Maybe you know how to implement an accurate seeking by bytes in FFmpeg ? Best regards.

    


  • JavaCV Video Player with FFmpeg and JavaFx

    2 juin 2021, par ِِYazdan Naderi

    I want to create a media player using Java CV, but I can not adjust the frame rate
And because of this, some videos play fast and some play slow

    


    Is it possible to read the information of a video through a FFmpegFrameGrraber object and set it in another object to solve the problem ?
Of course, I did this and did not get an answer, but if there is another way, please help

    


    playThread = new Thread(new Runnable() {
            public void run() {
                try {
                    final String videoFilename = "E:\\Java\\s1\\3.mp4";
                    final String videoFilename2 = "E:AudioVideo.mp4";
                    final String videoFilename3 = "E:\\1.mp4";
                    final String videoFilename4 = "E:\\Java\\s1\\3.mp4";


                     FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(videoFilename);



                    grabber.start();

                    grabber.setFrameRate(30.00);


                    primaryStage.setWidth(grabber.getImageWidth());
                    primaryStage.setHeight(grabber.getImageHeight());

                    final AudioFormat audioFormat = new AudioFormat(grabber.getSampleRate(), 16, grabber.getAudioChannels(), true, true);

                    final DataLine.Info info = new DataLine.Info(SourceDataLine.class, audioFormat);
                    final SourceDataLine soundLine = (SourceDataLine) AudioSystem.getLine(info);
                    soundLine.open(audioFormat);
                    soundLine.start();

                    JavaFXFrameConverter converter = new JavaFXFrameConverter();

                    ExecutorService executor = Executors.newSingleThreadExecutor();

                    while (!Thread.interrupted()) {
                        Frame frame = grabber.grab();
                        if (frame == null) {
                            break;
                        }
                        if (frame.image != null) {
                            final Image image = converter.convert(frame);//
                            Platform.runLater(() -> {
                                
                                imageView.setImage(image);

                            });
                        }
                         else if (frame.samples != null) {
                            final ShortBuffer channelSamplesShortBuffer = (ShortBuffer) frame.samples[0];
                            channelSamplesShortBuffer.rewind();

                            final ByteBuffer outBuffer = ByteBuffer.allocate(channelSamplesShortBuffer.capacity() * 2);

                            for (int i = 0; i < channelSamplesShortBuffer.capacity(); i++) {
                                short val = channelSamplesShortBuffer.get(i);
                                outBuffer.putShort(val);
                            }

                            try {



                                executor.execute(() -> {
                                    soundLine.write(outBuffer.array(), 0, outBuffer.capacity());
                                    outBuffer.clear();
                                });
                            } catch (Exception interruptedException) {
                                Thread.currentThread().interrupt();
                            }
                        }

                    }
                    executor.shutdownNow();
                    executor.awaitTermination(10, TimeUnit.SECONDS);

                    soundLine.stop();
                    grabber.stop();
                    grabber.release();
                    Platform.exit();
                } catch (Exception exception) {
                    LOG.log(Level.SEVERE, null, exception);
                    System.exit(1);
                }
            }
        });
        playThread.start();
    }