
Recherche avancée
Médias (3)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (69)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (12754)
-
mp4 audio file trimming form url
4 juillet 2021, par MasumI am using a URL for audio and the file type is mp4 which comes to URL. Now I want to trim this audio in my system was using Media store. If I use existing audio from media store it's working fine. Now my question how I use my URL mp4 audio using this system or another.


Cursor c = mAdapter.getCursor();
 int dataIndex = c.getColumnIndexOrThrow(MediaStore.Audio.Media.DATA);
 String filename = c.getString(dataIndex);
 try {


 Intent intent = new Intent(getApplicationContext(), RingdroidEditActivity.class);
 intent.putExtra("was_get_content_intent", mWasGetContentIntent);
 intent.putExtra("mFileName", Uri.parse(filename).toString());
 startActivity(intent);

 } catch (Exception e) {
 Log.e("Ringdroid", "Couldn't start editor");
 }



How can pass the same way my URL mp4 file ?


Mp4 auddio : Link


-
The FFmpeg just show the number form the input text (no characters , just numbers) error=13, Permission denied
14 avril 2021, par gejivi2011I was trying to use FFmpeg to create a video form gif and audio, on Android 10, doesn't work
The code is working fine on android 9 and below, and not work 10 and above
the Cmd, as I mentioned it is work so good on android 9 and below


String[] cmd = new String[24];
 cmd[0] = "-i";
 cmd[1] = audio.getPath();
 cmd[2] = "-ignore_loop";
 cmd[3] = "0";
 cmd[4] = "-i";
 cmd[5] = image_path;
 cmd[6] = "-vf";
 cmd[7] = "scale=trunc(iw/2)*2:trunc(ih/2)*2";
 cmd[8] = "-filter:v";
 cmd[9] = ayat_drawer + qara_draw;
 cmd[10] = "-vcodec";
 cmd[11] = "libx264";
 cmd[12] = "-pix_fmt";
 cmd[13] = "yuv420p";
 cmd[14] = "-r";
 cmd[15] = "25";
 cmd[16] = "-preset";
 cmd[17] = "ultrafast";
 cmd[18] = "-c:a";
 cmd[19] = "aac";
 cmd[20] = "-b:a";
 cmd[21] = "128k";
 cmd[22] = "-shortest";
 cmd[23] = outputLocation.getPath();



The Java code :


FFmpeg mFFmpeg = FFmpeg.getInstance(context);
 try {
 mFFmpeg.execute(cmd, new ExecuteBinaryResponseHandler() {
 @Override
 public void onProgress(String message) {
 super.onProgress(message);
 callback.onProgress(message);
 }

 @Override
 public void onSuccess(String message) {
 super.onSuccess(message);
 Utils.refreshGallery(outputLocation.getPath(), context);
 callback.onSuccess(outputLocation, "video");
 }

 @Override
 public void onFailure(String message) {
 super.onFailure(message);
 if (outputLocation.exists()) {
 outputLocation.delete();
 }
 callback.onFailure(new IOException(message));
 }

 @Override
 public void onStart() {
 Log.d("TAG", "<ffmpeg>Started command : mFFmpeg " + java.util.Arrays.toString(cmd));
 }

 @Override
 public void onFinish() {
 Log.d("TAG", "<ffmpeg>Finished command : mFFmpeg " + java.util.Arrays.toString(cmd));
 super.onFinish();
 callback.onFinish();
 }
 });
 } catch (FFmpegCommandAlreadyRunningException e) {
 Log.e("MAS" , e.getMessage());
 e.printStackTrace();
 }
</ffmpeg></ffmpeg>


I think that because FFmpeg using Asynctask and it is deprecated


-
How to create video file using fs from react form ?
7 avril 2021, par KirasirisI'm developing a section in which I need to create a video from a form that I'm using in a React application ; the returned data that I get from said file is this :


File >
 lastModified: 1617759553928
 lastModifiedDate: Tue Apr 06 2021 20:39:13 GMT-0500 (Central Daylight Time) {}
 name: "Shinobi Sisters.mp4"
 path: "Shinobi Sisters.mp4"
 size: 2564227
 type: "video/mp4"
 webkitRelativePath: ""
 __proto__: File



I'm sending all of that to a function called
createDirectoryAndFile(path, file)
, which so far looks like this :

// CREATE VIDEO FILE
const dir = './temp';
const createDirectoryAndFile = async (inputPath, inputContent) => {
 if (!fs.existsSync(dir)) {
 fs.mkdir(dir, { recursive: true });
 }

 fs.writeFile(inputPath, inputContent, (err) => {
 if (err) {
 console.error('An error ocurred', err);
 } else {
 console.log('Your file has been made');
 }
 });
};



It gets to the point in which is able to create the 'temp' directory but fails to place the video within it. Is there a reason for this ?


I need this because this is the starting point for me to work in my application. I'm trying to upload a video, create a second copy of it with a watermark(thanks to ffmpeg and ffprobe) and then finally upload it to AWS S3.


From my understanding all of that is only possible if the video is actually exists(not in memory).


Do you have guys have any idea ? Yes, I already installed
ffmpeg
andffprobe