Recherche avancée

Médias (91)

Autres articles (37)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (5853)

  • 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 !!

  • Révision 21547 : Lorsque r11911 a ajouté la visualisation des docs joints à un message de forum d...

    11 septembre 2014, par esj -

    On isole dans une fonction le code introduit pour qu’il profite au deux cas. En primer, cette fonction admet un argument optionnel indiquant si l’accès au document est autorisé (True par défaut). S’il ne l’est pas, le nom du fichier est affiché, mais n’est plus un lien vers son URL.

  • Disable image file name correction by default. Closes #3332

    2 septembre 2014, par blueimp
    Disable image file name correction by default. Closes #3332
    

    To enable image file correction, the option `correct_image_extensions`
    can be set to `true`.
    This applies the exif_imagetype function on all files if available and
    corrects the file extension if it doesn’t match.