
Recherche avancée
Médias (1)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (46)
-
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang 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. -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.
Sur d’autres sites (7787)
-
ffmpeg python " maximum recursion depth exceeded while calling a Python object " error
23 mars 2021, par Leo29 Maxive been trying to fix this for a while now.
I have gotten ffmpeg to work in the past, but this script simply will not.


import tkinter.filedialog as filedialog
import soundfile as sf
import math 

yeah = filedialog.askopenfilename(initialdir = "/",title = "select wav file")
f = sf.SoundFile(yeah)
length = len(f) / f.samplerate
stream = ffmpeg.input(yeah)
first = stream.audio.filter('atrim',start=0,end=0.1)
for i in range(1, math.floor(length*10)):
 if i%2 == 1:
 first = first.concat(stream.audio.filter('atrim',start=0.1+(i/10),end=(0.2+(i/10))))
 else:
 first = first.concat(stream.audio.filter('atrim',start=(i/10)-0.1,end=(i/10)))
out = ffmpeg.output(first, "output2.wav")
ffmpeg.run_async(out)



Any help is appreciated, thanks !


-
Cannot run program "/data/user/0/com.athkar.musliem/files/ffmpeg" : error=2, No such file or directory
3 avril 2021, par gejivi2011I am trying to make a video with an audio and single image, but have the error that on the title, I am using android studio with FFmpeg :
I need to make that video with just one image and one mp3 file


The error was :


Exception while trying to run: [Ljava.lang.String;@b6e12b4
java.io.IOException: Cannot run program "/data/user/0/com.athkar.musliem/files/ffmpeg": 
error=2, No such file or directory

Caused by: java.io.IOException: error=2, No such file or directory



1- this code to get the save directory


String root = Environment.getExternalStorageDirectory().toString();
 myDir = new File(root);



2- The image uri :


imageUri = Uri.parse("android.resource://com.athkar.musliem/drawable/" + R.drawable.test_image);



3- to select mp3 file :


public void openMp3Selector() {
 Intent intent;
 intent = new Intent();
 intent.setAction(Intent.ACTION_GET_CONTENT);
 intent.setType("audio/*");
 startActivityForResult(Intent.createChooser(intent, "Select mp3"), REQ_CODE_PICK_SOUNDFILE);
}

 @Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
 super.onActivityResult(requestCode, resultCode, data);
 if (requestCode == REQ_CODE_PICK_SOUNDFILE && resultCode == Activity.RESULT_OK) {
 if ((data != null) && (data.getData() != null)) {
 audioFileUri = data.getData();
 }
 }
}



4- finally FFmpeg code :


fFmpeg = FFmpeg.getInstance(VideoMakerActivity.this);
 String[] strArr = new String[]{"-y", "-r", imageUri.getPath(), "-i", imageUri.getPath(), "-vcodec", "libx264", "-r", "2", "-pix_fmt", "yuv420p", "-preset", "ultrafast", audioFileUri.getPath()};
 try {
 fFmpeg.execute(strArr, new ExecuteBinaryResponseHandler() {
 @Override
 public void onSuccess(String message) {
 super.onSuccess(message);
 Log.e("MAS", "onSuccess");
 }

 @Override
 public void onProgress(String message) {
 super.onProgress(message);
 Log.e("MAS", "onProgress");

 }

 @Override
 public void onFailure(String message) {
 super.onFailure(message);
 Log.e("MAS", "onFailure");

 }

 @Override
 public void onStart() {
 super.onStart();
 Log.e("MAS", "onStart");

 }

 @Override
 public void onFinish() {
 super.onFinish();
 Log.e("MAS", "onFinish");

 }
 });
 } catch (FFmpegCommandAlreadyRunningException e) {
 e.printStackTrace();
 }



-
Getting error "WebAssembly.Memory() : could not allocate memory" when running ffmpeg.wasm on android chrome browser
27 juin 2022, par Ravi KunduError in detail :


WebAssembly.Memory(): could not allocate memory
at https://*******/ffmpeg-core.js:22:82
at https://*******/ffmpeg.min.js:1:6506
at f (https://*******/ffmpeg.min.js:1:11322)
at Generator._invoke (https://*******/ffmpeg.min.js:1:11110)
at Generator.next (https://*******/ffmpeg.min.js:1:11747)
at i (https://*******/ffmpeg.min.js:1:4295)
at c (https://*******/ffmpeg.min.js:1:4498)



Code for ffmpeg :


const downloadWithFFMPEG = async () =>{
 const sourceBuffer = await fetch(recordingURL).then(r => r.arrayBuffer());
 await ffmpeg.load();
 await ffmpeg.FS(
 "writeFile",
 "input.webm",
 new Uint8Array(sourceBuffer, 0, sourceBuffer.byteLength)
 );
 await ffmpeg.run("-i", "input.webm", "-c", "copy", "output.mp4")
 const output = ffmpeg.FS("readFile", "output.mp4");
 var link = document.createElement('a')
 link.href = URL.createObjectURL(new Blob([output.buffer], { type: 'video/mp4;codecs=H264' }));
 link.download = this.data;
 link.click();
 recording = false;
}



Brief about problem :
The error only comes for android chrome browser. The same code works fine on pc/laptop chrome.
Have also enabled Webassembly-thread on chrome ://flags for android browser as someone suggested me to do it but still same error. Can someone help me ?