Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (35)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

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

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

  • RMarkdown 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 clock, fig.width=7, fig.height=6, fig.show='animate'}
    par(mar = rep(3, 4))
    for (i in seq(pi/2, -4/3 * pi, length = 12)) {
       plot(0, 0, pch = 20, ann = FALSE, axes = FALSE)
       arrows(0, 0, cos(i), sin(i))
       axis(1, 0, "VI"); axis(2, 0, "IX")
       axis(3, 0, "XII"); axis(4, 0, "III"); box()
    }

    ```

    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.

    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.

  • Android ffmpeg unable to merge audio(.wav file) with video(.mp4 file)

    8 avril 2015, par navya

    i am working on FFMPEG library,in which i am merging audio (.wav file) with video (.mp4 file) , for that iam using following command here :

    *String commandStr=    "ffmpeg,-y,-i,mnt/sdcard/Scatta/Scattatemp.mp4,-i,/storage/emulated/0/MicDroid/recordings/video.wav ,-strict,experimental,-map,0:0,-map,1:0,-vcodec,mpeg4,-vb,15496k,-ab,128k,-ac,2,-ar,22050,-shortest,mnt/sdcard/Scatta/mergedFile.mp4";

    for that i am using following code,but my command is not working, i am getting Commandvalidation failed exception

    GeneralUtils.deleteFileUtil(workFolder + "/vk.log");

           PowerManager powerManager = (PowerManager)_act.getSystemService(Activity.POWER_SERVICE);
           WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "VK_LOCK");
           Log.d("Prefs.TAG", "Acquire wake lock");
           wakeLock.acquire();
    String commandStr=  "ffmpeg,-y,-i,mnt/sdcard/Scatta/Scattatemp.mp4,-i,/storage/emulated/0/MicDroid/recordings/video.wav ,-strict,experimental,-map,0:0,-map,1:0,-vcodec,mpeg4,-vb,15496k,-ab,128k,-ac,2,-ar,22050,-shortest,mnt/sdcard/Scatta/mergedFile.mp4"   ;

    LoadJNI vk = new LoadJNI();
           try {

               vk.run(GeneralUtils.utilConvertToComplex(commandStr), workFolder, getApplicationContext());
               GeneralUtils.copyFileToFolder(vkLogPath, demoVideoFolder);

           } catch (CommandValidationException e) {
               Log.e("Prefs.TAG", "vk run exeption.", e);
               commandValidationFailedFlag = true;
           } catch (Throwable e) {
               Log.e("Prefs.TAG", "vk run exeption.", e);
           }
           finally {
               if (wakeLock.isHeld())
                   wakeLock.release();
               else{
                   Log.i("Prefs.TAG", "Wake lock is already released, doing nothing");
               }
           }
           Log.i("Prefs.TAG", "doInBackground finished");
       }
       catch(Exception e){
           e.printStackTrace();
           System.out.println(".exception"+e.toString());
       }

    i am getting following exception

    04-08 10:00:38.891: D/ffmpeg4android(7781): deleteing: /data/data/org.scatta.androidclient/files//vk.log isdeleted: false
    04-08 10:00:38.891: D/Prefs.TAG(7781): Acquire wake lock
    04-08 10:00:38.896: I/System.out(7781): <--- command strffmpeg -i  mnt/sdcard/Scatta/Scattatemp.mp4 -i    /storage/emulated/0/MicDroid/recordings/video.wav -acodec copy mnt/sdcard/Scatta/mergedFile.mp4
    04-08 10:00:38.896: E/ffmpeg4android(7781): Command validation failed.
    04-08 10:00:38.896: E/ffmpeg4android(7781): Check if input file exists: /storage/emulated/0/MicDroid/recordings/video.wav
       04-08 10:00:38.896: E/Prefs.TAG(7781): vk run exeption.
     04-08 10:00:38.896: E/Prefs.TAG(7781): com.netcompss.ffmpeg4android.CommandValidationException
       04-08 10:00:38.896: E/Prefs.TAG(7781):  at com.netcompss.loader.LoadJNI.run(LoadJNI.java:26)
     04-08 10:00:38.896: E/Prefs.TAG(7781):    at com.scatta.androidclient.ui.PlaybackScreen$TranscdingBackground.doInBackground(PlaybackScreen.java:159)
      04-08 10:00:38.896: E/Prefs.TAG(7781):   at com.scatta.androidclient.ui.PlaybackScreen$TranscdingBackground.doInBackground(PlaybackScreen.java:1)
      04-08 10:00:38.896: E/Prefs.TAG(7781):   at android.os.AsyncTask$2.call(AsyncTask.java:287)
       04-08 10:00:38.896: E/Prefs.TAG(7781):  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
       04-08 10:00:38.896: E/Prefs.TAG(7781):  at java.util.concurrent.FutureTask.run(FutureTask.java:137)
     04-08 10:00:38.896: E/Prefs.TAG(7781):    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
      04-08 10:00:38.896: E/Prefs.TAG(7781):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
     04-08 10:00:38.896: E/Prefs.TAG(7781):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
    04-08 10:00:38.896: E/Prefs.TAG(7781):     at java.lang.Thread.run(Thread.java:856)