Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (97)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (9398)

  • Playing With File

    8 septembre 2011, par Multimedia Mike — General

    I played with the ‘file’ utility a long time ago because I wanted to make it recognize a large number of multimedia formats. I had trouble getting my changes to take. But I’m prepared to try again after many years.

    Aiming at the Corpus
    In my local mirror of the MPlayerHQ samples archive, I find 9853 unique files. So I run all of them through the ‘file’ command :

      ’find /path/to/samples -type f -print0 | xargs -0 file —no-pad’
    

    My Ubuntu installation has file v5.04. I also tested against 5.07 and the latest, 5.08. Here is the number of files each version was unable to identify (generically marking as ‘data’) :

    5.04  1521
    5.07  1405
    5.08  1501
    

    That seems like a regression for v5.08 until I dug into the details and saw quite a few items like this, indicating that the MPEG detection could use some work :


    - mov/mov-demux-infinite-loop.mpg : DOS-executable ( +mov/mg-‹demux-infinite-loop.mpg : data
    - image-samples/UNeedQT4.pntg : DOS-executable ( +imY- samples/UNeedQT4.pntg : data

    Workflow
    These are just notes to myself and perhaps anyone else who wants to add new file formats to be identified by the ‘file’ command.

    First, download either the latest release from the FTP or clone from Github. Do the usual unpack, ‘./configure’, ‘make’ routine. To use this newly-built version and its associated magic file :

      ./src/file —magic-file magic/magic.mgc <file>
    

    To add a new format for ID, first, run the foregoing command to ensure that it’s not already identified. Then, check over the files in magic/Magdir and see which one might pertain to what you’re doing (it’s unlikely that your format will merit a new file in this directory). For example, for this round, I modified animation, audio, iff, and riff. Add or modify existing specs based on the copious examples in the directory and by consulting the appropriate man page (‘man 5 magic’).

    Finally, run ‘make’ again which will regenerate the magic file. Invoke the above command again to use the modified magic file.

    Before and After
    On a selection of formats taken from the samples archive (renamed and cut down to a kilobyte because detection typically only relies on the first few bytes), here is the “before” :

    amv :            RIFF (little-endian) data
    armovie :        data
    bbc-dirac :      data
    interplay-mve :  data
    mtv :            data
    nintendo-thp :   data
    nullsoft-video : data
    redcode :        data
    sega-film :      data
    smacker :        data
    trueaudio :      data
    vqa :            IFF data
    wavpack :        data
    wc3-mve :        IFF data
    wtv :            data
    

    And the “after” :

    amv :            RIFF (little-endian) data, AMV
    armovie :        ARMovie
    bbc-dirac :      BBC Dirac Video
    interplay-mve :  Interplay MVE Movie
    mtv :            MTV Multimedia File
    nintendo-thp :   Nintendo THP Multimedia
    nullsoft-video : Nullsoft Video
    redcode :        REDCode Video
    sega-film :      Sega FILM/CPK Multimedia, 320 x 224
    smacker :        RAD Game Tools Smacker Multimedia version 2, 320 x 200, 100 frames
    trueaudio :      True Audio Lossless Audio
    vqa :            IFF data, Westwood Studios VQA Multimedia, 418 video frames, 320 x 200
    wavpack :        WavPack Lossless Audio
    wc3-mve :        IFF data, Wing Commander III Video, PC version
    wtv :            Windows Television DVR Media
    

    After rerunning ‘file’ on the mphq corpus using the modified magic file, only 1329 files remain unidentified (down from 1501).

    Going Forward
    As mentioned, MPEG detection could probably be strengthened. However, a major weakness is QuickTime/MP4. Many files are not detected, probably owing to the many ways that QuickTime files can begin.

  • FFMPEG failing to convert to ogv [closed]

    25 juillet 2012, par Todd R

    I have several videos I'm trying to convert to mp4, swf and ogv. I've got the mp4 and swf's working, but ogv is failing and I'm not sure why. I understand all the arguments you can pass to ffmpeg, but feel like getting the correct ones is a huge guessing game. Any suggestions on what I can change to get this to work would be much appreciated.

    Here's the command I'm using :

    ffmpeg -i /private/var/tmp/phpU5KPR7 -y -s 330X240 -acodec libvorbis -vcodec libtheora outputpath/Videos/1.ogv 2>&amp;1

    And here are the results :

    2012-07-24T19:05:11-07:00 INFO (6): Creating ogv for 1 returned 1:
    2012-07-24T19:05:11-07:00 INFO (6): Array
    (
       [0] => ffmpeg version 0.8.6, Copyright (c) 2000-2011 the FFmpeg developers
       [1] =>   built on Nov 16 2011 19:56:59 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
       [2] =>   configuration: --enable-libmp3lame --enable-libfaac --enable-libtheora --enable-libvorbis --enable-nonfree --disable-yasm
       [3] =>   libavutil    51.  9. 1 / 51.  9. 1
       [4] =>   libavcodec   53.  7. 0 / 53.  7. 0
       [5] =>   libavformat  53.  4. 0 / 53.  4. 0
       [6] =>   libavdevice  53.  1. 1 / 53.  1. 1
       [7] =>   libavfilter   2. 23. 0 /  2. 23. 0
       [8] =>   libswscale    2.  0. 0 /  2.  0. 0
       [9] => Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#39;/private/var/tmp/phpU5KPR7&#39;:
       [10] =>   Metadata:
       [11] =>     major_brand     : 3gp4
       [12] =>     minor_version   : 768
       [13] =>     compatible_brands: 3gp43gp6
       [14] =>   Duration: 00:00:03.17, start: 0.000000, bitrate: 433 kb/s
       [15] =>     Stream #0.0(eng): Audio: amrnb, 8000 Hz, 1 channels, flt, 12 kb/s
       [16] =>     Stream #0.1(eng): Video: mpeg4, yuv420p, 352x288 [PAR 1:1 DAR 11:9], 411 kb/s, 13.87 fps, 15 tbr, 15k tbn, 15 tbc
       [17] => WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s
       [18] => Incompatible sample format &#39;flt&#39; for codec &#39;libfaac&#39;, auto-selecting format &#39;s16&#39;
       [19] => [buffer @ 0x101001480] w:352 h:288 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
       [20] => [scale @ 0x101002560] w:352 h:288 fmt:yuv420p -> w:330 h:240 fmt:yuv420p flags:0x4
       [21] => Output #0, mp4, to &#39;outputpath/Videos/1.mp4&#39;:
       [22] =>   Metadata:
       [23] =>     major_brand     : 3gp4
       [24] =>     minor_version   : 768
       [25] =>     compatible_brands: 3gp43gp6
       [26] =>     encoder         : Lavf53.4.0
       [27] =>     Stream #0.0(eng): Video: mpeg4, yuv420p, 330x240 [PAR 8:9 DAR 11:9], q=2-31, 300 kb/s, 20 tbn, 20 tbc
       [28] =>     Stream #0.1(eng): Audio: libfaac, 44100 Hz, 1 channels, s16, 0 kb/s
       [29] => Stream mapping:
       [30] =>   Stream #0.1 -> #0.0
       [31] =>   Stream #0.0 -> #0.1
       [32] => Press [q] to stop, [?] for help
       [33] => Warning, using s16 intermediate sample format for resampling
       [34] => frame=   62 fps=  0 q=6.4 Lsize=     253kB time=00:00:03.08 bitrate= 670.6kbits/s dup=18 drop=0
       [35] => video:238kB audio:12kB global headers:0kB muxing overhead 1.096923%
       [36] => ffmpeg version 0.8.6, Copyright (c) 2000-2011 the FFmpeg developers
       [37] =>   built on Nov 16 2011 19:56:59 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
       [38] =>   configuration: --enable-libmp3lame --enable-libfaac --enable-libtheora --enable-libvorbis --enable-nonfree --disable-yasm
       [39] =>   libavutil    51.  9. 1 / 51.  9. 1
       [40] =>   libavcodec   53.  7. 0 / 53.  7. 0
       [41] =>   libavformat  53.  4. 0 / 53.  4. 0
       [42] =>   libavdevice  53.  1. 1 / 53.  1. 1
       [43] =>   libavfilter   2. 23. 0 /  2. 23. 0
       [44] =>   libswscale    2.  0. 0 /  2.  0. 0
       [45] => Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#39;/private/var/tmp/phpU5KPR7&#39;:
       [46] =>   Metadata:
       [47] =>     major_brand     : 3gp4
       [48] =>     minor_version   : 768
       [49] =>     compatible_brands: 3gp43gp6
       [50] =>   Duration: 00:00:03.17, start: 0.000000, bitrate: 433 kb/s
       [51] =>     Stream #0.0(eng): Audio: amrnb, 8000 Hz, 1 channels, flt, 12 kb/s
       [52] =>     Stream #0.1(eng): Video: mpeg4, yuv420p, 352x288 [PAR 1:1 DAR 11:9], 411 kb/s, 13.87 fps, 15 tbr, 15k tbn, 15 tbc
       [53] => Incompatible sample format &#39;flt&#39; for codec &#39;libvorbis&#39;, auto-selecting format &#39;s16&#39;
       [54] => [buffer @ 0x1010021a0] w:352 h:288 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
       [55] => [scale @ 0x101002520] w:352 h:288 fmt:yuv420p -> w:330 h:240 fmt:yuv420p flags:0x4
       [56] => [libvorbis @ 0x101801e00] oggvorbis_encode_init: init_encoder failed
       [57] => Output #0, ogg, to &#39;outputpath/Videos/1.ogv&#39;:
       [58] =>     Stream #0.0(eng): Video: libtheora, yuv420p, 330x240 [PAR 8:9 DAR 11:9], q=2-31, 200 kb/s, 90k tbn, 15 tbc
       [59] =>     Stream #0.1(eng): Audio: libvorbis, 8000 Hz, 1 channels, s16, 64 kb/s
       [60] => Stream mapping:
       [61] =>   Stream #0.1 -> #0.0
       [62] =>   Stream #0.0 -> #0.1
       [63] => Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
    )
  • FFMPEG:Merging Audio(.mp3) and single image convert them into a Video

    5 juin 2013, par Nitish Singla

    I want to merge IMAGE + AUDIO and convert them into video using FFMPEG library,i compiled the library successfully,and got libfmpeg.so.but getting problem to execute the ffmpeg command through java code.This is command which i am using...
    "ffmpeg -i image8.jpg -i file.m4a -acodec copy test.mp4"
    if i execute this ffmpeg command through CMD,my video.mp4 file is successfully created,but if exceute same command through my Activity,it doesnot create any file.

    MY CODE IS :

    public class Mpeg extends Activity

    static {

       System.loadLibrary("ffmpeg");

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.activity_mpeg);

    File mf = Environment.getExternalStorageDirectory() ;

       String livestream = mf.getAbsoluteFile()+"smile.png";

       String folderpth = mf.getAbsoluteFile()+"RABBA.MP3";

       //String output="/home/saicomputer/game.mp4";

       String output = new File(Environment.getExternalStorageDirectory(), "video.mp4").getAbsolutePath();
       Log.i("Test", "Let&#39;s set output to " + output);

       String cmd="ffmpeg -i "+ livestream +" -i "+ folderpth +" -acodec copy "+ output;

        Log.e("chck plzzzzz", "after "+ cmd);

       //String jaiho="ffmpeg -i image8.jpg -i file.m4a -acodec copy test.mp4";

       try{

       Process p = Runtime.getRuntime().exec(cmd);

       }
    catch(Exception e)
    {
       System.out.println("exception"+e);
    }
    enter code here
    CONSOLE OUTPUT-
    06-05 17:58:11.466: E/image(1189): imageeeeeeeee /mnt/sdcard/smile.png
    06-05 17:58:11.466: E/Test(1189): songggggggggg /mnt/sdcard/RABBA.MP3
    06-05 17:58:11.476: E/Test(1189): outputttttt /mnt/sdcard/video.mp4
    06-05 17:58:11.476: E/chck plzzzzz(1189): after ffmpeg -i /mnt/sdcard/smile.png -i      /mnt/sdcard/RABBA.MP3 -acodec copy /mnt/sdcard/video.mp4

    enter code here
    06-05 17:58:10.686: D/dalvikvm(1189): Trying to load lib /data/data/com.example.myfmpeg /lib/libffmpeg.so 0x412a5cf0
    06-05 17:58:10.756: I/dalvikvm(1189): threadid=3: reacting to signal 3
    06-05 17:58:10.955: D/dalvikvm(1189): Added shared lib /data/data/com.example.myfmpeg/lib/libffmpeg.so 0x412a5cf0
    06-05 17:58:10.955: D/dalvikvm(1189): No JNI_OnLoad found in /data/data/com.example.myfmpeg/lib/libffmpeg.so 0x412a5cf0, skipping init
    06-05 17:58:11.024: I/dalvikvm(1189): Wrote stack traces to &#39;/data/anr/traces.txt&#39;
    06-05 17:58:11.215: I/dalvikvm(1189): threadid=3: reacting to signal 3
    06-05 17:58:11.326: I/dalvikvm(1189): Wrote stack traces to &#39;/data/anr/traces.txt&#39;
    06-05 17:58:11.466: E/image(1189): imageeeeeeeee /mnt/sdcard/smile.png
    06-05 17:58:11.466: E/Test(1189): songggggggggg /mnt/sdcard/RABBA.MP3
    06-05 17:58:11.476: E/Test(1189): outputttttt /mnt/sdcard/video.mp4
    06-05 17:58:11.476: E/chck plzzzzz(1189): after ffmpeg -i /mnt/sdcard/smile.png -i /mnt/sdcard/RABBA.MP3 -acodec copy /mnt/sdcard/video.mp4
    0 6-05 17:58:11.896: E/AndroidRuntime(1189): FATAL EXCEPTION: main
    06-05 17:58:11.896: E/AndroidRuntime(1189): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myfmpeg/com.example.myfmpeg.Mpeg}: java.lang.RuntimeException: java.io.IOException: Error running exec(). Command: [ffmpeg, -i, /mnt/sdcard/smile.png, -i, /mnt/sdcard/RABBA.MP3, -acodec, copy, /mnt/sdcard/video.mp4] Working Directory: null Environment: null
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at
    06-05 17:58:11.896: E/AndroidRuntime(1189): Caused by: java.lang.RuntimeException: java.io.IOException: Error running exec(). Command: [ffmpeg, -i, /mnt/sdcard/smile.png, -i, /mnt/sdcard/RABBA.MP3, -acodec, copy, /mnt/sdcard/video.mp4] Working Directory: null       Environment: null