Recherche avancée

Médias (91)

Autres articles (36)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (3939)

  • How to load a custom java module into Wowza Streaming Engine ?

    27 octobre 2018, par kw3rti

    I’ve followed the tutorial below step by step, however, the module I’ve created does not appear to load or execute, as I’m not seeing any log entries relating to the getLogger calls in the Wowza Streaming Engine. More specifically, I have created a new Wowza project containing a new module (see code below). Eclipse has then created a jar file in the lib folder of the install directory. I have added the module to a live application on the streaming server. I have also edited the Application.xml file to include the new module.

    To hopefully run the module I’ve written, I am streaming an mp4 file using ffmpeg (according to documentation here) to the streaming engine (via the live application), which I can see in the test players. My understanding was that this would trigger at least one of the event listeners in the module. However, nothing appears to come up in the logs. The only entries related to the stream that I can see are shown below.

    I’ve been trying to debug what’s going wrong for quite a while now, so I’d appreciate any suggestions of what might fix the issue.

    https://www.wowza.com/docs/How-to-extend-Wowza-Streaming-Engine-using-Java

    public class GCStreamModule extends ModuleBase {

       public void onAppStart(IApplicationInstance appInstance) {
           String fullname = appInstance.getApplication().getName() + "/" + appInstance.getName();
           getLogger().info("onAppStart: " + fullname);
       }

       public void onAppStop(IApplicationInstance appInstance) {
           String fullname = appInstance.getApplication().getName() + "/" + appInstance.getName();
           getLogger().info("onAppStop: " + fullname);
       }

       public void onConnect(IClient client, RequestFunction function, AMFDataList params) {
           getLogger().info("onConnect: " + client.getClientId());
       }

       public void onConnectAccept(IClient client) {
           getLogger().info("onConnectAccept: " + client.getClientId());
       }

       public void onConnectReject(IClient client) {
           getLogger().info("onConnectReject: " + client.getClientId());
       }

       public void onDisconnect(IClient client) {
          getLogger().info("onDisconnect: " + client.getClientId());
       }

       public void onStreamCreate(IMediaStream stream) {
           getLogger().info("onStreamConnect");
       }

       public void onMediaStreamCreate(IMediaStream stream){
           getLogger().info("onMediaStreamCreate: " + stream.getSrc());
       }

    }

    Screenshot1
    Screenshot2

  • Java infinite video stream loop

    30 juin 2021, par Jason Roufael

    i wanna add a loop to make the process go in an infinite loop so the video can keep repeating itself

    


    try {&#xA;var processBuilder = new ProcessBuilder();&#xA;List<string> cmds=new ArrayList&lt;>();&#xA;cmds.add("ffmpeg.exe");&#xA;cmds.add("-i");&#xA;cmds.add("C:\\ffmpeg\\bin\\inpiit.mp4");&#xA;cmds.add("-vcodec");&#xA;cmds.add("libx264");&#xA;cmds.add("-acodec");&#xA;cmds.add("mp2");&#xA;cmds.add("-f");&#xA;cmds.add("mpegts");&#xA;cmds.add("udp://224.5.5.5:1234?pkt_size=1316");&#xA;processBuilder.command(cmds);&#xA;var process = processBuilder.start();&#xA;&#xA;} catch(IOException ex) {&#xA;&#xA;ex.printStackTrace(); &#xA;</string>

    &#xA;

    }

    &#xA;

  • What is the full code to execute a ffmpeg command in java [on hold]

    16 janvier 2015, par user2303069

    I did the following and only got 0kb output file :
    File encodingFile = new File("c :\ffmpeg\bin\output.mp4") ;
    encodingFile.createNewFile() ;

                       Process process = new ProcessBuilder("c:\\ffmpeg\\bin\\ffmpeg.exe", "-i", "c:\\ffmpeg\\bin\\input.mp4",
                               "-y", "-s", "1440" + "x" + "-1", "-vcodec", "libx264", "c:\\ffmpeg\\bin\\outfile.mp4").start();

                       is = process.getInputStream();

                       byte[] resultBuff = new byte[0];
                       byte[] buff = new byte[1024];
                       int k = -1;
                       while((k = is.read(buff, 0, buff.length)) > -1) {
                           byte[] tbuff = new byte[resultBuff.length + k]; // temp buffer size = bytes already read + bytes last read
                           System.arraycopy(resultBuff, 0, tbuff, 0, resultBuff.length); // copy previous bytes
                           System.arraycopy(buff, 0, tbuff, resultBuff.length, k);  // copy current lot
                           resultBuff = tbuff; // call the temp buffer as your result buff
                       }
                       fos=new FileOutputStream(encodingFile);
                       fos.write(resultBuff, 0,resultBuff.length );
                       gui.textArea1.append("\n"+resultBuff.length + " bytes read.");
                       //return resultBuff;
                       try {
                           // if you want to wait for the process to finish
                           process.waitFor();
                            gui.textArea1.append("\n+++++++Finished while converting!++++++++\n");
                       } catch (InterruptedException ex) {
                            gui.textArea1.append("\nInterruptedException: "+ex.getMessage());
                       }

                   }catch(IOException ex){
                       gui.textArea1.append("\nIOException converting: "+ex.getMessage());
                   }finally{
                       try{
                           if(is!=null){
                               is.close();
                           }
                           if(fos!=null){
                               fos.close();
                           }
                       }catch(IOException ioe){
                           gui.textArea1.append("\nClosing streams while converting:"+ioe.getMessage());
                       }
                   }

    My question is how to get back a converted file using ffmpeg in java. So far I got empty files. It’s like nothing happens during the converting process. I got the code from web(here) and modified it according to my desire so can you just tell me how to do this correctly ? Thanks a lot.