Recherche avancée

Médias (91)

Autres articles (72)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

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

Sur d’autres sites (10798)

  • Overlying video frames using FFmpeg in c++

    14 mai 2020, par Bruce

    I am trying to overlaying two videos using FFmpeg in c++. So I followed the FFmpeg page and followed this command in terminal.

    



    $ ffmpeg -i Right.mov -i Left.mov -filter_complex "[0:v][1:v] overlay=0:0"  -c:a copy output.mov


    



    I can implement this functionality through the terminal, but I am trying to achieve this functionality through codding.

    



    typedef struct {
    AVFormatContext *fmt_ctx;
    int stream_idx;
    AVRational time_base;
    AVStream *video_stream;
    AVCodecContext *codec_ctx;
    AVCodecContext *pCodecCtxOrig;
    AVCodec *decoder;
    AVPacket *packet;
    AVFrame *av_frame;
    AVFrame *gl_frame;
    AVFrame *out_frame;
    AVStream *pStream;
    struct SwsContext *conv_ctx;


    



    also, I show some example code, but I am not sure about it

    



    https://ffmpeg.org/doxygen/2.1/doc_2examples_2filtering_video_8c-example.html

    



    and 
https://code5.cn/so/c%2B%2B/2601062

    



    AVFilterContext *buffersink_ctx;
AVFilterContext *buffersrc_ctx;
AVFilterGraph *filter_graph;


    



    how can I implement this functionality in my code ?

    


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