Recherche avancée

Médias (91)

Autres articles (61)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

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

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

  • Android FFMPEG : images to mp4 video converting

    19 juillet 2017, par Giorgi Asaturyan

    I have tried many possible command line options with ffmpeg, however not getting this to work. Heres is my command file generator method :

    private String[] generateCommandFile() {
       ArrayList<string> cmd = new ArrayList&lt;>();

       cmd.add("-y");
       cmd.add("-f");
       cmd.add("concat");
       cmd.add("-safe");
       cmd.add("0");
       cmd.add("-i");
       String picturesTextFile = generateMergingFilesTexts();
       if (picturesTextFile == null) {
           return null;
       }
       cmd.add(picturesTextFile);
       cmd.add("-i");
       String audioTextFile;
       if (numberOfAudioFiles > 1) {
           audioTextFile = generateAudioFilesTexts();
       } else {
           audioTextFile = getAudioFilePath(audioRecordingFileName + Integer.toString(1));
       }

       cmd.add(audioTextFile);

       cmd.add("-vsync");
       cmd.add("vfr");
       cmd.add("-pix_fmt");
       cmd.add("yuv420p");

       String currentDateTimeString = new SimpleDateFormat("dd MMMM yyyy", Locale.US).format(Calendar.getInstance().getTime());
       File dirOut = new File(this.getExternalFilesDir(null), "D:T:" + currentDateTimeString);
       if (!dirOut.exists()) {
           dirOut.mkdirs();
       }
       directoryPath = dirOut.getAbsolutePath();
       File fileOut = new File(dirOut, "T__" + Long.toString(totalTime) + "__P__" + Integer.toString(picturesModelInfo.getNumberOfShots()) + ".mp4");
       cmd.add(fileOut.getAbsolutePath());
       Log.d(TAG, "Saving File At " + fileOut.getAbsolutePath());

       String[] finalCommand = new String[cmd.size()];

       for (int i = 0; i &lt; cmd.size(); i++) {
           finalCommand[i] = cmd.get(i);
       }

       String finalString = "";
       for (String command : finalCommand) {
           finalString += command;
       }

       Log.d(TAG, "Final Command Is " + finalString);
       return finalCommand;
    }
    </string>

    and here is my Final Command

    -y-fconcat-safe0-i/storage/emulated/0/Android/data/com.essentialsln.memtalk/files/pictures_merging.txt-i/storage/emulated/0/Android/data/com.essentialsln.memtalk/files/AudioRecording1.3gp-vsyncvfr-pix_fmtyuv420p/storage/emulated/0/Android/data/com.essentialsln.memtalk/files/D:T:19 July 2017/T__2__P__3.mp4

    The main problem is that video not playing in android default player - displays ("Cannot Play video, unsupported file type"), but it works with VLC program. ))

    Anu Suggestions ?

    Thanks

  • Repeat/loop the video till audio file using ffmpeg

    18 mars 2014, par M. Usman Afzal

    I am using this command to generate the video from silent video and audio but the problem is video is 3 sec and audio is 20 sec and final video generating is 20 sec but video is for 3 sec and the last frame of that video is repeat till end.

    ffmpeg -i v.mp4 -i a.m4a -c:v copy -c:a aac -strict experimental -map 0:v:0 -map 1:a:0 output.mp4

    I just want to repeat the whole video

  • Applying the same filter many times before output [duplicate]

    19 août 2019, par Fabián

    This question already has an answer here :

    In my video there’s an object that has shades of yellow (more orange-like) and has a solid yellow as background.
    I need to output all frames into a png sequence, using a color key filter to replace the yellow from the background :

    ffmpeg -ss 4 -i original.mp4 -t 2 -filter_complex "[0:v]colorkey=0xfff31b:0.125:0[ckout]" -map "[ckout]" colorkey-%d.png

    This removes all the yellow background. However, it leaves some pints of yellow behind, and some items are yellow-themed, so blending isn’t an option for this scenario.

    In the end I need to get rid of 4 specific yellow-colors from the frames : 0xfff31b, 0xfae56b, 0xfaec46 and 0xeee2a0. My idea is to run the same filter for every color.

    So first I tried this :

    ffmpeg -ss 4 -i original.mp4 -t 2 -filter_complex "[0:v]colorkey=0xfff31b:0.4:0[ckout1];[0:v]colorkey=0xfae56b:0.4:0[ckout2];[0:v]colorkey=0xfaec46:0.4:0[ckout3];[0:v]colorkey=0xeee2a0:0.4:0[ckout4]" -map "[ckout4]" colorkeyrefined-%d.png

    Then this :

    ffmpeg -ss 4 -i original.mp4 -t 2 -filter_complex "[0:v]colorkey=0xfff31b:0.4:0[ckout]" -filter_complex "[0:v]colorkey=0xfae56b:0.4:0[ckout]" -filter_complex "[0:v]colorkey=0xfaec46:0.4:0[ckout]" -filter_complex "[0:v]colorkey=0xeee2a0:0.4:0[ckout]" -map "[ckout]" colorkeyrefined-%d.png

    But both display the same error :

    Filter colorkey has an unconnected output.

    Is there a way to apply the colorkey 4 times (with the mentioned values) in one go ?