
Recherche avancée
Autres articles (88)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
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" (...)
Sur d’autres sites (9071)
-
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();
 }



-
How to the use vf_drawtext.c in my program
6 mars 2012, par ajaxheNow, I want to add the system datetime information in per video frame, then store as a .mp4 file. I have known vf_drawtext.c can finish this task, but any examples to introduce the usage of APIs in drawtext.c ?
thanks !
-
mpegts : add the judgement if a new program is created successfully
15 octobre 2014, par Di Wumpegts : add the judgement if a new program is created successfully
Add the judement after create a new program to avoid segment fault.
Signed-off-by : Di Wu <di1028.wu@samsung.com>
Reviewed-by : Marton Balint <cus@passwd.hu>
Signed-off-by : Michael Niedermayer <michaelni@gmx.at>