Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (57)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (8981)

  • Trim video length in Android with javacv and ffmpeg

    11 juillet 2017, par Morya Yaroslav

    I’m trying to trim video length with ffmpeg implementation of FrameGrabber and FrameRecorder, but getting corrupted file of smaller size then it’s going to be. Maybe there is other way to trim video from start time to end time, also updating trim progress. Seems like it’s not recording changes between frames. Maybe there are some other ways to trim videos of different formats like mp4, flv and others. Here is code snippet :

           FrameGrabber grabber = new FFmpegFrameGrabber(mClip.getPath());
           grabber.start();
           grabber.setTimestamp(mClip.getClipStartMs()); // Write from specific moment

           File out = new File(mClip.getOutPutPath(params[0])); // Set destination to write
           FrameRecorder recorder = new FFmpegFrameRecorder(out, grabber.getImageWidth(), grabber.getImageHeight());


           recorder.setFormat(grabber.getFormat());
           recorder.setFrameRate(grabber.getFrameRate());
           recorder.setSampleRate(grabber.getSampleRate());
           recorder.setAspectRatio(grabber.getAspectRatio());
           recorder.setSampleFormat(grabber.getSampleFormat());

           recorder.setAudioCodec(grabber.getAudioCodec());
           recorder.setAudioBitrate(grabber.getAudioBitrate());
           recorder.setAudioChannels(grabber.getAudioChannels());

           recorder.setVideoCodec(grabber.getVideoCodec());
           recorder.setVideoBitrate(grabber.getVideoBitrate());

           recorder.start();

           Frame frame;
           Long timestamp;
           Long fullLength = mClip.getClipEndMs() - mClip.getClipStartMs();
           double percent = 0d, oldPercent = 0d;

           while ((frame = grabber.grabFrame()) != null && (timestamp = grabber.getTimestamp()) <= mClip.getClipEndMs()) {
               Log.d(ASYNC_SAVE_TAG, "Started command : ffmpeg " + mClip.toString());

               if (timestamp != 0d) {
                   oldPercent = percent;
                   percent = timestamp.doubleValue() / fullLength.doubleValue();
                   if (MathUtil.compare(percent, oldPercent) != 0) {
                       publishProgress(percent);
                   }
               }

               recorder.setTimestamp(grabber.getTimestamp() - mClip.getClipStartMs());
               recorder.record(frame);
           }

           grabber.close();
           recorder.close();
  • Knitr Plot Animation - disappearing output files ?

    20 avril 2015, par tcs

    I downloaded the latest ffmpeg (exe version), unzipped the files, renamed the directory to ffmpeg, copied the directory into c :\Program Files. I appended my PATH variable to include c :\Program Files\ffmpeg\bin. Finally, I restarted Rstudio.

    While attempting to run the following code chunk :

    ```{r perf_plot, fig.width=7, fig.height=6, fig.show='animate'}
    library(corrplot)
    corrplot(m, method = "circle")
    m<-sequence_2_matrix(perf_list[[1]])
    corrplot(m)
    for (i in 2:length(perf_list)) {
     m<-(m*(i-1)+sequence_2_matrix(perf_list[[i]]))/i
     corrplot(m,method = "circle")

    }

    I see within the output in in my RMarkdown window that the ffmpeg call seems to be successfully run, but while watching the directory where my code is located the png that is attempted to be created can often disappear, or not appear at all. Strangeness.

    processing file: MarkovRoutinesSim.rmd
     |........                                                         |  13%
     ordinary text without R code

     |...........                                                      |  17%
    label: unnamed-chunk-2
     |..............                                                   |  22%
     ordinary text without R code

     |.................                                                |  26%
    label: unnamed-chunk-3
     |....................                                             |  30%
     ordinary text without R code

     |.......................                                          |  35%
    label: unnamed-chunk-4
     |.........................                                        |  39%
     ordinary text without R code

     |............................                                     |  43%
    label: unnamed-chunk-5
     |...............................                                  |  48%
     ordinary text without R code

     |..................................                               |  52%
    label: unnamed-chunk-6
     |.....................................                            |  57%
     ordinary text without R code

     |........................................                         |  61%
    label: unnamed-chunk-7
     |..........................................                       |  65%
     ordinary text without R code

     |.............................................                    |  70%
    label: perf_plot (with options)
    List of 3
    $ fig.width : num 7
    $ fig.height: num 6
    $ fig.show  : chr "animate"

    executing: ffmpeg -y -r 1 -i MarkovRoutinesSim_files/figure-html/perf_plot-%d.png MarkovRoutinesSim_files/figure-html/perf_plot-.webm
    ffmpeg version N-71515-ga40cee0 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.9.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
     libavutil      54. 22.101 / 54. 22.101
     libavcodec     56. 34.100 / 56. 34.100
     libavformat    56. 30.100 / 56. 30.100
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 14.100 /  5. 14.100
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, image2, from 'MarkovRoutinesSim_files/figure-html/perf_plot-%d.png':
     Duration: 00:00:00.44, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: png, pal8, 1344x1152 [SAR 7559:7559 DAR 7:6], 25 fps, 25 tbr, 25 tbn, 25 tbc
    [libvpx @ 000000000310e720] v1.4.0
    Output #0, webm, to 'MarkovRoutinesSim_files/figure-html/perf_plot-.webm':
     Metadata:
       encoder         : Lavf56.30.100
       Stream #0:0: Video: vp8 (libvpx), yuv420p, 1344x1152 [SAR 1:1 DAR 7:6], q=-1--1, 200 kb/s, 1 fps, 1k tbn, 1 tbc
       Metadata:
         encoder         : Lavc56.34.100 libvpx
    Stream mapping:
     Stream #0:0 -> #0:0 (png (native) -> vp8 (libvpx))
    Press [q] to stop, [?] for help
     |................................................                 |  74%
     ordinary text without R code

     |...................................................              |  78%
    label: unnamed-chunk-8
     |......................................................           |  83%
     ordinary text without R code

     |.........................................................        |  87%
    label: unnamed-chunk-9
    frame=   11 fps=0.0 q=0.0 Lsize=     108kB time=00:00:11.00 bitrate=  80.8kbits/s    
    video:108kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.524176%
     |...........................................................      |  91%
     ordinary text without R code

     |..............................................................   |  96%
    label: unnamed-chunk-10
     |.................................................................| 100%
     ordinary text without R code


    "C:/Program Files/RStudio/bin/pandoc/pandoc" MarkovRoutinesSim.utf8.md --to html --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --output MarkovRoutinesSim.html --smart --email-obfuscation none --self-contained --standalone --section-divs --template "C:\Users\Tim\Documents\R\win-library\3.2\rmarkdown\rmd\h\default.html" --variable "theme:bootstrap" --include-in-header "C:\Users\Tim\AppData\Local\Temp\Rtmpkrtekd\rmarkdown-str7d43d7d5475.html" --mathjax --variable "mathjax-url:https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" --no-highlight --variable "highlightjs=C:\Users\Tim\Documents\R\win-library\3.2\rmarkdown\rmd\h\highlight"
    output file: MarkovRoutinesSim.knit.md


    Output created: MarkovRoutinesSim.html

    Any ideas on what might be happening ? I’ve tried adding in other graphs, and I see this random behavior of the file folder appearing disappearing, sometimes the file is created, other times not.

  • Anomalie #3351 (Nouveau) : Le header ’link’ est affiché dans la page généré au lieu d’être envoyé ...

    21 novembre 2014, par marcimat ☺☮☯♫

    La modification http://zone.spip.org/trac/spip-zone/changeset/86161/_core_/plugins/compresseur introduit un problème dans certains cas.
    Effectivement, le < ?php n’est pas toujours exécuté, mais renvoyé comme du texte au navigateur qui ne sait pas trop quoi en faire.

    Le problème vient de la fonction analyse_resultat_skel() http://core.spip.org/projects/spip/repository/entry/spip/ecrire/public/composer.php#L173 :
    elle calcule le process_ins (html ou php) avant le passage des filtres. Cependant, comme celui-ci, l’un d’eux peut ajouter un < ?php dans le code
    et du coup le process_ins devient erroné.