Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (71)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (11356)

  • compile ffmpeg for android [PAID]

    2 juin 2018, par Rafael Lima

    I’m 100% sure this is not the place for that and many people will downvote it but i’ve already posted this request in specific foruns and still no answer

    I’m willing to pay for someone able to compile ffmpeg for android

    I’ve been developing an app using ffmpeg binaries provided by an user on github, on the final phase of development i discover those binaries are not able to do some things i need because they were compiled without some specific flags

    I spent unsucessfully the last 20 days following tutorials about compile ffmpeg for android

    the flags i need are

    --enable-libfreetype \
    --enable-libfontconfig \
    --enable-zlib \
    --enable-libmp3lame \
    --enable-libopus \
    --enable-libx264 \ or --enable-openh264 \
    --enable-static \
    --enable-ffmpeg \
    --enable-librtmp \
    --enable-pic \
    --disable-doc \
    --disable-shared

    if you think you able to do it please contact me at my e-mail ragpl07@gmail.com

  • Java, Linux : 2nd call to ffmpeg via Runtime not getting executed

    21 février 2018, par We are Borg

    I am trying to convert video to gif. I am using ffmpeg and imagemagick to achieve this. The first step is successful where a mp4 is created, but the 2nd process is not getting called. If I run the command manually, then it all works fine, but not via code. What am I doing wrong ? Thank you.

    Error log :

    First path is ffmpeg -i /media/attachment/test/groupattach/200/5mpnkfiq4f635m2j663sb5dne -ss 05 -t 10 -c copy /media/attachment/test/groupattach/200/tsr8svjtvqa4alm5vls9v0pgc4.mp4
    Third path is ffmpeg -i /media/attachment/test/groupattach/200/tsr8svjtvqa4alm5vls9v0pgc4.mp4 -vf scale=320:-1 -r 10 -f image2pipe -vcodec ppm - | convert -loop 0 - /media/attachment/test/groupattach/200/f9b4cmkhhpm180sau7f7j7j1ai.gif
    java.io.FileNotFoundException: File '/media/attachment/test/groupattach/200/f9b4cmkhhpm180sau7f7j7j1ai.gif' does not exist
       at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:299)
       at org.apache.commons.io.FileUtils.readFileToByteArray(FileUtils.java:1763)
       at com.myproj.spring.service.GroupAttachmentsServiceImpl.createFilePreviewForFiles(GroupAttachmentsServiceImpl.java:4157)
       at com.myproj.spring.service.GroupAttachmentsServiceImpl.addAttachment(GroupAttachmentsServiceImpl.java:662)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:498)

    Service layer where I get error :

    if (extension.toLowerCase().equals("mp4")) {
                       String videoPath = createPreviewForVideos(attachId, fileBytes, filesPath, fileName);
                       return FileUtils.readFileToByteArray(new File(videoPath));

                   }

    This happens because the 2nd part of code is not executed posted below.

    private String createPreviewForVideos(int attachId, byte[] fileBytes, String filePath, String fileName) {
           try {
               GroupAttachments groupAttachments = this.groupAttachmentsDAO.getAttachmenById(attachId);
               String gifLocation = msg + "groupattach/" + groupAttachments.getGroupId() + "/";
               String videoName = String.valueOf(new BigInteger(130, random).toString(32)) + ".mp4";
               String gifName = String.valueOf(new BigInteger(130, random).toString(32)) + ".gif";
               String firstpath = "ffmpeg -i " + filePath + " -ss 05 -t 10 -c copy " + gifLocation + videoName;
               System.out.println("First path is " + firstpath);
               Process process = Runtime.getRuntime().exec(firstpath);
               process.waitFor();
               process.destroy();


               String thirdPath = "ffmpeg -i " + gifLocation + videoName + " -vf scale=320:-1 -r 10 -f image2pipe -vcodec ppm - | convert -loop 0 - " + gifLocation + gifName;
               Process thirdProcess = Runtime.getRuntime().exec(thirdPath);
               thirdProcess.waitFor();
               thirdProcess.destroy();
               thirdProcess.destroyForcibly();
               if(thirdProcess.isAlive()){
                   thirdProcess.destroyForcibly();
               }
               // return gifLocation+gifName;
               return secondPhaseForVideos(attachId, fileBytes, filePath, fileName, videoName, gifName);
           } catch (Exception e) {
               e.printStackTrace();
           }
           return null;
       }

       private String secondPhaseForVideos(int attachId, byte[] fileBytes, String filePath, String fileName, String videoName, String gifName) {
           try {
               GroupAttachments groupAttachments = this.groupAttachmentsDAO.getAttachmenById(attachId);
               String gifLocation = msg + "groupattach/" + groupAttachments.getGroupId() + "/";

               String thirdPath = "ffmpeg -i " + gifLocation + videoName + " -vf scale=320:-1 -r 10 -f image2pipe -vcodec ppm - | convert -loop 0 - " + gifLocation + gifName;
               System.out.println("Third path is "+thirdPath);
               Process process = Runtime.getRuntime().exec(thirdPath);
               process.waitFor();
               process.destroy();
               groupAttachments.setFullSizePath(gifName);
               this.groupAttachmentsDAO.updateAttachment(groupAttachments);
               return gifLocation + gifName;

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

    2nd phase code never gets executed...the Runtime process. What am I doing wrong ? Thank you.

  • How to configure ffmpeg for streaming videos from Red5 into Youtube using youtube-v3-api ?

    28 mai 2018, par Alfonso Valdes

    You’ll see my problem is next :

    Currently I’m working to configure youtube-v3-api for live streaming of .flv videos on my Youtube channel using Red 5 service as stated on next link https://www.red5pro.com/docs/server/ffmpegstreaming.html, this is using next commands for streaming on Linux :

    ffmpeg  -i rtmp://127.0.0.1:1935/live/streamname live=1 timeout=2 -vcodec libx264 -s 640x480 -vb 500k -acodec libfdk_aac -ab 128k  -f flv rtmp://a.rtmp.youtube.com/live2/{Stream name/key}


    ffmpeg -rtsp_transport tcp -i rtsp://127.0.0.1:8554/live/streamname -acodec copy -vcodec copy -f flv rtmp://a.rtmp.youtube.com/live2/{Stream name/key}

    On this, neither RMTP nor RTSP protocols are working for streaming. Also, I have tried several codecs for audio and video configuring different sizes for each one of them, but none of those have worked.

    The root streaming videos are generated by an IOS/Android app still on development phase.

    The problem comes when no video is displayed on Youtube screen, regardless the video is being sent by Red5 (I confirmed this on my Red5 dedicated server on AWS) and received correctly by Youtube (confirmed by validating on Console), so I have come into a dead end on which I hope you could help me get through.

    Any idea of what could be a possible solution ?

    Thank you.