Recherche avancée

Médias (91)

Autres articles (36)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • 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

Sur d’autres sites (4947)

  • Running ffmpeg commands from android ffmpeg syntax error in logcat

    30 septembre 2015, par Chaitanya Chandurkar

    I have successfully compiled ffmpeg for android and have ported it.

    I placed

    1. libffmpeg.so in /system/lib directory
    2. ffmpeg executable in /system/bin and /system/xbin directory (i was not sure where to place it). i directly copied ffmpeg executable from source directory (Not sure whether it’s a correct way)

    Now i am executing commands from android with following code !!

    imports *
    public class LatestActivity extends Activity {

       private Process process;
       String command,text;

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

     @Override
       public void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.activity_latest);

             //Execute Command !!  
             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{
           try {
               File dir=new File("/system/bin");
               String[] cmd= {"ffmpeg","-codecs"};

               process=Runtime.getRuntime().exec(cmd,null,dir);
           } catch (IOException e) {
               // TODO Auto-generated catch block
               Log.d("Process IOException starts:",e.getMessage());
               e.printStackTrace();
               Log.d("System Manual exit !!",e.getMessage());
               System.exit(MODE_PRIVATE);
           }

           BufferedReader stdInput = new BufferedReader(new InputStreamReader(process.getInputStream()),16384);

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

              // read the output from the command
              Log.d("Application output: ","Output if any !");
               while ((text = stdInput.readLine()) != null) {
                   Log.d("Output: ",text); //$NON-NLS-1$
                  }


           text="";
              // read any errors from the attempted command
           Log.d("Application output: ","Errors if any !");  //$NON-NLS-1$
              while ((text = stdError.readLine()) != null) {

                  Log.d("Error: ",text);  //$NON-NLS-1$
              }



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

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

       }

       private static void destroyProcess(Process process) {
           try {
               if (process != null) {
                   // use exitValue() to determine if process is still running.
                   process.exitValue();
               }
           } catch (IllegalThreadStateException e) {
               // process is still running, kill it.
               process.destroy();
           }
       }

     }

    And Here is the logcat output :

    09-05 15:29:13.287: D/dalvikvm(2670): No JNI_OnLoad found in /system/lib/libffmpeg.so 0x44e7e910, skipping init
    09-05 15:29:29.117: I/global(2670): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
    09-05 15:29:29.117: D/Application output:(2670): Output if any !
    09-05 15:29:29.117: D/Application output:(2670): Errors if any !
    09-05 15:29:29.127: D/Error:(2670): /system/bin/ffmpeg: 1: Syntax error: "(" unexpected

    m neither getting any errors nor output of command.
    At the end it shows syntax error.
    I want to know what kind of syntax error it is. how to tackle it ?

    m i doing something wrong ?

  • Multiple call to ffmpeg main fails in Android

    27 mars 2016, par fatih orhan

    I have ported ffmpeg library to Android. Using JNI interface, I am able to run ffmpeg commands by giving arguments to ffmpeg’s main method, just like from command line.

    In order to get a specific part of a video, I use this command :

    ffmpeg -i /mnt/sdcard/input_video.mp4 -ss 00:00:12 -t 00:00:10 -an /mnt/sdcard/output_video.mp4

    and it works great. The video is split from 12. seconds to 22. seconds and the video is saved, the method returns normally (as 0).

    However, if I make a second similar call (different start time for example) just after the first one is completed, ffmpeg is not able to process the request and it throws a segmentation fault.

    For the first call, it gives such an info :

    Guessed Channel Layout for Input Stream #0.0 : mono

    and works. But for the second, the message is like this one :

    Guessed Channel Layout for Input Stream #1.0 : mono

    and it doesn’t work. I don’t know if it has something to do with the error.

    The problem, in general, should be related to static global variables (I think) but I could not manage to reset them properly. What might be the solution to make multiple successful calls to the main method of ffmpeg ?

  • jpeg2000dec : read and check curtileno

    22 mai 2013, par Michael Niedermayer
    jpeg2000dec : read and check curtileno
    

    Fixes out of array accesses
    Code ported from j2kdec

    Found-by : Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/jpeg2000dec.c