Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (71)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (7065)

  • ffmpeg audio property is blank in output video

    25 juin 2015, par hrs

    Here’s what I have to do,
    I want to convert two different images in different video file (ex : convert a.jpg into a.avi and b.jpg into b.avi).

    I am trying to generate video (.avi) from image file. Video file is generated successfully but I can’t see the audio properties when I right click on video and see details tab in property.

    Then I have one video file (.avi), using ffmpeg concat function, I am concating these three video files (a.avi, middle.avi which I already have, b.avi).
    After this, I am getting file output.avi but audio is not there in outout.avi file. I have middle.avi which already contains audio.

    Here’s my concat command,

    ffmpeg -i "concat:a.avi|middle.avi|b.avi" -vcodec copy 103_n4_2.avi

    I am trying to generate video (.avi) from only one image file. Video file is generated successfully but I can’t see the audio properties when I right click on video and see details tab in property.

    Here’s my command to convert image to video :

    ffmpeg -loop 1 -i bCopy.jpg -t 30 -q:v 0 -r 24 output_a.avi

    PS : a.avi and b.avi (which I have generated from images does not contain audio) but only middle.avi contains the audio.

  • Why menconder fps rate does not work ?

    2 mars 2016, par ACR

    I’m using mencoder to create a video out of some .png files. The problem is that the frame rate doesn’t change, regardless of the -fps flag. The output video has different time lengths (in their properties), but the video’s size and speed are always the same (regardless of the FPS chosen).

    I just want to create a shorted video by using higher FPS rates. In short, a "time-lapse" of my original set of images. What am I doing wrong with mencoder ? I’m using the following command :

    mencoder mf://./IMG/images*.png -mf w=800:h=600:fps=20:type=png -ovc copy -oac copy -o video.avi
  • how to merge an audio file with an image in android using javaCV

    11 mai 2016, par Darshan Soni

    I have aleady tried some code but it is throwing exception like this,

    05-11 17:34:00.449 1838-2316/darshan.fragments_demo E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
                                                                         Process: darshan.fragments_demo, PID: 1838
                                                                         java.lang.RuntimeException: An error occurred while executing doInBackground()
                                                                             at android.os.AsyncTask$3.done(AsyncTask.java:309)
                                                                             at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
                                                                             at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
                                                                             at java.util.concurrent.FutureTask.run(FutureTask.java:242)
                                                                             at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
                                                                             at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
                                                                             at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
                                                                             at java.lang.Thread.run(Thread.java:818)
                                                                          Caused by: java.lang.UnsatisfiedLinkError: org.bytedeco.javacpp.avutil
                                                                             at java.lang.Class.classForName(Native Method)
                                                                             at java.lang.Class.forName(Class.java:324)
                                                                             at org.bytedeco.javacpp.Loader.load(Loader.java:413)
                                                                             at org.bytedeco.javacpp.Loader.load(Loader.java:381)
                                                                             at org.bytedeco.javacpp.avformat$AVFormatContext.<clinit>(avformat.java:2597)
                                                                             at org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe(FFmpegFrameGrabber.java:386)
                                                                             at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:380)
                                                                             at darshan.fragments_demo.Layout1$Test.doInBackground(Layout1.java:166)
                                                                             at darshan.fragments_demo.Layout1$Test.doInBackground(Layout1.java:136)
                                                                             at android.os.AsyncTask$2.call(AsyncTask.java:295)
                                                                             at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                                             at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) 
                                                                             at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
                                                                             at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
                                                                             at java.lang.Thread.run(Thread.java:818)
    </clinit>

     
    Now in gradle file I’ve included some libraries my gradle file is as follow,

    apply plugin: 'com.android.application'

    android {
       compileSdkVersion 23
       buildToolsVersion "23.0.2"

           packagingOptions {
               exclude 'META-INF/LICENSE'
               exclude 'META-INF/LICENSE-FIREBASE.txt'
               exclude 'META-INF/NOTICE'
               exclude 'META-INF/services/javax.annotation.processing.Processor'
               pickFirst  'META-INF/maven/org.bytedeco.javacpp-presets/opencv/pom.properties'
               pickFirst  'META-INF/maven/org.bytedeco.javacpp-presets/opencv/pom.xml'
               pickFirst  'META-INF/maven/org.bytedeco.javacpp-presets/ffmpeg/pom.properties'
               pickFirst  'META-INF/maven/org.bytedeco.javacpp-presets/ffmpeg/pom.xml'

           }


       defaultConfig {
           applicationId "darshan.fragments_demo"
           minSdkVersion 16
           targetSdkVersion 23
           versionCode 1
           versionName "1.0"
       }
       buildTypes {
           release {
               minifyEnabled false
               proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
           }
       }
    }

    dependencies {
       compile fileTree(dir: 'libs', include: ['*.jar'])
       testCompile 'junit:junit:4.12'

       compile 'com.android.support:appcompat-v7:23.1.1'
       compile 'com.android.support:design:23.1.1'
       compile group: 'org.bytedeco', name: 'javacv', version: '1.1'
       compile group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '2.4.11-0.11', classifier: 'android-arm'
       compile group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '2.4.11-0.11', classifier: 'android-x86'
       compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '2.6.1-0.11', classifier: 'android-arm'
       compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '2.6.1-0.11', classifier: 'android-x86'


    }

    And java file is as follow,

    public class Test extends AsyncTask {

       ProgressDialog dialog;
       FFmpegFrameRecorder recorder;
       String videoPath;
       protected void onPreExecute() {
           dialog = new ProgressDialog(Layout1.this);
           dialog.setMessage("Genrating video, Please wait.........");
           dialog.setCancelable(false);
           //dialog.show();
       };
       @Override
       protected Void doInBackground(Void... params) {

           File folder = Environment.getExternalStorageDirectory();
           String path = folder.getAbsolutePath() + "/DCIM/Camera";
           // ArrayList<string> paths = (ArrayList<string>) getListOfFiles(path, "jpg");
           long millis = System.currentTimeMillis();
           videoPath = path + "/" + "test_sham_"+millis+".3gp";

           try {



               //audio grabber

               FFmpegFrameGrabber grabber2 = new FFmpegFrameGrabber(folder.getAbsolutePath()+"/bluetooth/abcd.mp3");

               //video grabber
               FFmpegFrameGrabber grabber1 = new FFmpegFrameGrabber(path+"/1.jpg");
               grabber1.start();

               grabber2.start();

               recorder = new FFmpegFrameRecorder(path
                       + "/" + "test_sham_"+millis+".mp4",  grabber1.getImageWidth(), grabber1.getImageHeight(),2);

               //recorder.setVideoCodec(5);
               recorder.setVideoCodec(avcodec.AV_CODEC_ID_MPEG4);
               // recorder.setVideoCodec(avcodec.AV_CODEC_ID_MP4ALS);

               //recorder.setFormat("3gp");
                 recorder.setFormat("mp4");
               recorder.setFrameRate(30);
               recorder.setSampleRate(grabber2.getSampleRate());
               recorder.setVideoBitrate(30);
               long startTime = System.currentTimeMillis();
               recorder.start();

               Frame frame1, frame2 = null;

               while ((frame1 = grabber1.grabFrame()) != null ||

                       (frame2 = grabber2.grabFrame()) != null) {

                   recorder.record(frame1);

                   recorder.record(frame2);

               }

               recorder.stop();

               grabber1.stop();

               grabber2.stop();




               System.out.println("Total Time:- " + recorder.getTimestamp());

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

           return null;
       }
    }
    </string></string>

    I just cant figure out what is wrong with the implementation
    Please help