Recherche avancée

Médias (0)

Mot : - Tags -/utilisateurs

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

Autres articles (100)

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

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

Sur d’autres sites (10497)

  • Bash, Relative Paths, and Mac Automator Fails

    30 septembre 2015, par grahama

    This script works great in the terminal but fails when I run the shell script in automator (mac). For some reason, automator doesn’t remember the gif’s name and writes the file as *.gif. When run directly in Terminal, the script correctly converts to movie file to Gif and moves it to the correct Dropbox location.
    I’m trying to run this automator Mov2Gif script when Apple Motion 5 finishes rendering a movie.

    Any help is appreciated. Automator is a little touchy.

    #!/bin/sh

    fps=8
    scale=400
    palette="/tmp/palette.png"
    filters="fps=$fps,scale=$scale:-1:flags=lanczos"

    destDIR="/PATH/TO/DROPBOX/DIR"
    curDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
    incomingDIR=$curDIR/_incoming

    ffmpeg=$curDIR/ffmpeg/ffmpeg


    for f in *.mov
    do  

       fbname=$(basename "$f" .mov)
       fbAbsPath=$incomingDIR/$fbname
       $ffmpeg  -v warning -i $fbAbsPath.mov -vf "$filters,palettegen" -y $palette
       $ffmpeg -v warning -i $fbAbsPath.mov -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $fbAbsPath.gif
       rm $fbAbsPath.mov
       mv -f $fbAbsPath.gif $destDIR/$fbname.gif
    done
  • ffmpeg lib/API to cut videos in java

    23 janvier 2017, par João Paulo Radd

    I’m trying to use some FFmpeg’s lib/API to java to cut a video in several parts by time. I know that I can use RunTime with a command to this, but in my case I need use this in code using some API/lib.
    Example command in terminal / runtime :

    ffmpeg -i /tmp/test.mp4 -ss 30 -c copy -to 40 /tmp/outTest.mp4

    String url_str = "ffmpeg -i /tmp/"+fileName+".mp4 -ss "+secStart+" -c copy -to "+secEnd+" /tmp/"+outfile+".mp4 -y";
       System.out.println("url_str :"+url_str);
           try {
               Runtime rt = Runtime.getRuntime();
               Process p = rt.exec(url_str);
               BufferedReader r = new BufferedReader(new InputStreamReader(p.getErrorStream()));
               String s;
               while ((s = r.readLine()) != null) {
                   //System.out.println(s); terminal response
               }
               r.close();

    Thus, I’ve a original video and a inicial time in seconds and a final time (some cases, optional) and create a new video with this part.
    I’m trying to use the FFmpeg Java by Andrew Brampton (net.bramp.ffmpeg) to do the same thing as the example. But, if some one know by other API/lib, like FFMPEG-Java (net.sf.ffmpeg_java) for example, will be good too.

  • ffmpeg yield different results when used in the application

    5 mai 2020, par xoail

    This is perplexing me. I am using ffmpeg to convert m4a to wav audio. When I use it with fluent-ffmpeg the output mime is audio/wave while when I do it using terminal I get audio/wav. For extactly same commands. The application I am trying to play these files is rejecting my audio/wave file.

    



    Using node (results in audio/wave) :

    



    const ffmpegPath = require('@ffmpeg-installer/ffmpeg')
const ffmpeg = require('fluent-ffmpeg');
ffmpeg()
.setFfmpegPath(ffmpegPath)
.input('source.m4a')
.outputOptions(['-ac 1','-ar 16000'])
.save('out.wav')


    



    Using terminal (results in audio/wav) :

    



    /same/path/to/static-ffmpeg-as-in-node-program/ffmpeg -i source.m4a -ac 1 -ar 16000 out.wav


    



    I've both of their encoding as, PCM S16 LE (s16l), 16 bits/sample, mono and 16khz samplerate audio files. I've tried adding other flags and got same results on both scenarios : -vn -acodec pcm_s16le -ar 16000 -ac 1 -f wav. Just that one doesnt work. And I have no idea why.

    



    I've also tried not using fluent-ffmpeg but using spawn and got same audio/wave file.

    



    Any insight ?