Recherche avancée

Médias (91)

Autres articles (70)

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

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (8595)

  • Android- Error during executing Runtime.getRuntime().exec() - Environment Null -ffmpeg

    18 février 2015, par Chaitanya Chandurkar

    I have compiled ffmpeg library on ubuntu 11.10 and ported compiled files on android.
    After compiling i got libffmpeg.so successfully. It gets loaded on android successfully.

    I am doing it on ubuntu 11.10 eclipse android emulator.

    I have created a small test application which act as command prompt which accepts command from user and displays result. (testing ffmpeg commands)

    When i run simple commands like "ls", "ls -l" it works perfectly. but when i simply type "cd mnt" or "ffmpeg" as command and try to run it. I got Warnings in Logcat saying that

    08-26 16:44:52.553: W/System.err(5961): java.io.IOException: Error running exec(). Command: [ffmpeg] Working Directory: null Environment: null
    08-26 16:44:52.573: W/System.err(5961):     at java.lang.ProcessManager.exec(ProcessManager.java:211)
    08-26 16:44:52.573: W/System.err(5961):     at java.lang.Runtime.exec(Runtime.java:168)
    08-26 16:44:52.573: W/System.err(5961):     at java.lang.Runtime.exec(Runtime.java:241)
    08-26 16:44:52.583: W/System.err(5961):     at java.lang.Runtime.exec(Runtime.java:184)
    08-26 16:44:52.593: W/System.err(5961):     at ch.ffmpeg.reversit.MainActivity.Execute(MainActivity.java:61)
    08-26 16:44:52.593: W/System.err(5961):     at ch.ffmpeg.reversit.MainActivity$1.onClick(MainActivity.java:46)
    08-26 16:44:52.593: W/System.err(5961):     at android.view.View.performClick(View.java:3480)
    08-26 16:44:52.593: W/System.err(5961):     at android.view.View$PerformClick.run(View.java:13983)
    08-26 16:44:52.603: W/System.err(5961):     at android.os.Handler.handleCallback(Handler.java:605)
    08-26 16:44:52.603: W/System.err(5961):     at android.os.Handler.dispatchMessage(Handler.java:92)
    08-26 16:44:52.603: W/System.err(5961):     at android.os.Looper.loop(Looper.java:137)
    08-26 16:44:52.614: W/System.err(5961):     at android.app.ActivityThread.main(ActivityThread.java:4340)
    08-26 16:44:52.624: W/System.err(5961):     at java.lang.reflect.Method.invokeNative(Native Method)
    08-26 16:44:52.624: W/System.err(5961):     at java.lang.reflect.Method.invoke(Method.java:511)
    08-26 16:44:52.634: W/System.err(5961):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
    08-26 16:44:52.634: W/System.err(5961):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
    08-26 16:44:52.644: W/System.err(5961):     at dalvik.system.NativeStart.main(Native Method)
    08-26 16:44:52.644: W/System.err(5961): Caused by: java.io.IOException: Permission denied
    08-26 16:44:52.674: W/System.err(5961):     at java.lang.ProcessManager.exec(Native Method)
    08-26 16:44:52.674: W/System.err(5961):     at java.lang.ProcessManager.exec(ProcessManager.java:209)
    08-26 16:44:52.684: W/System.err(5961):     ... 16 more

    Here is my code :

    imports;
    public class MainActivity extends Activity {
       String com;
       Process process;
       EditText command;
       Button run;
       RelativeLayout main_layout;

       static {
        System.loadLibrary("ffmpeg");
       }

       /** Called when the activity is first created. */
       @Override
       public void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.activity_main);

          //find view
          command=(EditText)findViewById(R.id.command);
          run=(Button)findViewById(R.id.run);

           run.setOnClickListener(new OnClickListener() {
               public void onClick(View v) {
                   com=command.getText().toString();
                   try {
                       Execute();
                   } catch (IOException e) {
                       // TODO Auto-generated catch block
                       e.printStackTrace();
                   } catch (InterruptedException e) {
                       // TODO Auto-generated catch block
                       e.printStackTrace();
                   }

               }
           });

       }

       public void Execute() throws IOException, InterruptedException{
           process=Runtime.getRuntime().exec(com);
           // process = pb.command(com).redirectErrorStream(true).start();

           if(process!=null)
           ShowOutput();
           else
           Toast.makeText(getBaseContext(),"Null Process",Toast.LENGTH_LONG).show();
       }

       public void ShowOutput() throws IOException, InterruptedException{
           String s,text="",errors="";
           BufferedReader stdInput = new BufferedReader(new
                   InputStreamReader(process.getInputStream()));

              BufferedReader stdError = new BufferedReader(new
                   InputStreamReader(process.getErrorStream()));


              TextView output=(TextView)findViewById(R.id.output);
              TextView error=(TextView)findViewById(R.id.error);

               while ((s = stdInput.readLine()) != null) {
                      text+=s.toString()+"\n";
                      System.out.println("Error: "+s);
                  }

            output.setText(text);
            text="";
              // read any errors from the attempted command
              System.out.println("Here is the standard error of the command (if any):\n");
              while ((s = stdError.readLine()) != null) {
                  text+=s.toString()+"\n";
                  System.out.println("Error: "+s);
              }

              error.setText(text);

              error.setMovementMethod(new ScrollingMovementMethod());
              output.setMovementMethod(new ScrollingMovementMethod());

              stdInput.close();
              stdError.close();

              process.waitFor();
              process.getOutputStream().close();
              process.getInputStream().close();
              process.getErrorStream().close();
              process.destroy();


       }

    }

    I even tried process = pb.command(com).redirectErrorStream(true).start(); for execution. It gives me same error but this time environment was [ANDROID_SOCKET_Zygot] bla bla bla..

    EDIT 1 :
    I use Openjdk on ubuntu

    Help me out !!

  • ffmpeg - slideshow from set of images ignoring first image

    24 novembre 2013, par Vishnu

    I can create slideshow with below command

    ffmpeg -y -f image2 -r 1/15 -i image%d.jpeg -y -r 45 video.mp4

    Video is created successfully ,, but its ignoring the 1st image..

    for example in current folder i have

    image1.jpeg
    image2.jpeg
    image3.jpeg

    but slide show is created with image2.jpeg and image3.jpeg only..(i.e 30 second video with 2 image is created..but i expected 45 second video with 3 images displaying 15 sec per image)

  • FFMPEG real-time buffer full frame dropped

    27 janvier 2015, par Burgaz

    I’m using FFMPEG on windows with direct show.
    I’m streaming RTMP (command below) and i need very low latency.
    Once run I get the following errors : [dshow @ 024ce800] real-time buffer 204% full ! frame dropped !

    ffmpeg -threads 6 -f dshow -i video=UScreenCapture -s 1920x1080 -an -vco
    dec libx264 -x264opts keyint=25:min-keyint=20 -b:v 1024k -preset ultrafast -tune zerolatency -crf 22 -r 10 -pix_fmt yuv420p -f flv rtmp ://server...

    Do you have an idea how to handle this kind of error ?

    Thanks
    Ronen