Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (62)

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

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (7784)

  • Executing an exe and reading the OutputStream

    30 septembre 2014, par vlatkozelka

    I have a program called FFprobe which probes media (files/live streams ... ) and outputs result in different formats , for example :

    ffprobe.exe -i test.ts -print_format xml -show_programs

    gives this output :

       <?xml version="1.0" encoding="UTF-8"?>
    <ffprobe>
       <programs>
           <program>
               <tag key="service_name" value="Arabica TV"></tag>
               <tag key="service_provider" value="Nilesat"></tag>
               <streams>
                   <stream index="10" profile="Main" width="720" height="576" level="8" timecode="08:28:54:09">
                       <disposition default="0" dub="0" original="0" comment="0" lyrics="0" karaoke="0" forced="0"></disposition>
                   </stream>
                   <stream index="4" channels="2">
                       <disposition default="0" dub="0" original="0" comment="0" lyrics="0" karaoke="0" forced="0"></disposition>
                   </stream>
               </streams>
           </program>
    ... more programs
    </programs></ffprobe>

    to retrieve this info in java i used ProcessBuilder and a scanner , and then id write to a file once the result is ok ... but it wasnt :

    Process proc = new ProcessBuilder("ffprobe.exe","-i", ... same arguments );
    Scanner sc = new Scanner (proc.getInputStream()) // im 100% sure its not errorStream
    while(sc.hasNext()){
      System.out.println(sc.nextLine());
    }

    the app just hangs with no output , i know its hanging cuz the process is still running and scanner has next , but , i don’t know why it would do that ?If i execute the same in cmd i would get good result and ofc i can write to file with ">"

    Ive tried it w/o the -print_format option , which gives the info in a plain text on the errorstream(i know its error cuz i was able to write with 2> not >> ) , and i was able to read the error stream in java , but its not meant for parsing cuz very very un-organized .

      Input #0, mpegts, from 'PBR_REC_20140426094852_486.ts':
     Duration: 00:13:34.30, start: 7791.344722, bitrate: 42154 kb/s
     Program 1201
       Metadata:
         service_name    : Arabica TV
         service_provider: Nilesat
       Stream #0:19[0x7db]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 16:15 DAR 4:3], max. 2348 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:3[0xbcf]: Audio: mp2, 48000 Hz, stereo, s16p, 384 kb/s
     Program 1202
       Metadata:
         service_name    : NBN
         service_provider: NILESAT
       Stream #0:10[0x7d1]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 16:15 DAR 4:3], max. 2600 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:11[0xbba](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 125 kb/s
     Program 1203
       Metadata:
         service_name    : Heya TV
         service_provider: NILESAT
       Stream #0:5[0x7d2]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 16:15 DAR 4:3], max. 2600 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:6[0xbbc](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, mono, s16p, 125 kb/s
     Program 1204  ... more programs

    now it might seem organized and "parse-able" and i actually made a parser that worked to some point , but sometimes it doesnt stick to this structure and ruins the whole parsing, its why i need a xml/json ...

    The -print_format im sure outputs to outputstream.

    Im not asking for help on how to use FFprobe as thats not this place’s purpose , Im asking why am i not being able to get the output stream from java while it is definitely outputting if i execute in windows .

    I also tried apache commons-exec as i know processbuilder can be a pain ,it did execute perfectly and showed in System.in (black for intput and red for error), but getting the stream with apache is something i couldn’t understand , i tried this example

    The xml parser i already taken care of , simply put i just need to execute that first command from java and read the output , but for some reason its not working .

  • Loading and unloading ffmpeg jni library based on when it's needed

    30 septembre 2014, par Alin

    I finally managed to compile ffmpeg for android and I’ve been able to use it in my app.

    Here is the scenario of my app :

    • I show the user a gridview with thumbnails of images and videos
    • the user can click on a cell and it is taken to image/video details where he can see the full image or play the video
    • the user can apply an image over an video and this is when ffmpeg is used

    So basically, the user might never actually use the watermarking option or he can do it very rare because the amount of available videos is way smaller than images.

    I am loading the ffmpeg library, first time it is needed by running :

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

    Now here are my questions :

    1. loading the library like this, uses app’s memory and resources ?
    2. can I unload the library, or better said, is it needed to unload it ? I have not found any java code like System.unloadLibrary to take care of unloading
    3. Since the library might be used rarely, wouldn’t a load => do encoding => unload be a better approach ? Or maybe having it loaded would allow easy reuse since no loading is necessary.
    4. If I use an IntentService to load the library and make the encoding, when the service completes the job, does the library gets unloaded ?
  • How to convert from .avi container to .mp4

    9 novembre 2014, par Manuel Selva

    I have an .avi file containing the following streams :

    Stream #0.0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 608x256 [PAR 1:1 DAR 19:8], 23.98 tbn, 23.98 tbc

    Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16p, 128 kb/s

    I want to play this movie on an Iphone supposed to support mpeg4 video streams as stated in a previous question here. For now, I don’t care about the audio stream (mp3 doesn’t seem to be supported by the Iphone)

    As a consequence I am looking for a way to just convert the "container" format of my file from .avi to .mp4 required by the Iphone. Is it doable, and if yes how should I do that ?