Recherche avancée

Médias (91)

Autres articles (9)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Personnaliser l’affichage de mon Médiaspip

    27 mai 2013

    Vous pouvez modifier la configuration du squelette afin de personnaliser votre Médiaspip Voir aussi plus d’informations en suivant ce lien
    Comment supprimer le nombre de vues d’affichage d’un média ?
    Administrer > Gestion du squelette > Pages des articles et médias Cocher dans "Informations non affichées sur les pages de médias" les paramètres que vous ne souhaitez pas afficher.
    Comment supprimer le titre de mon Médiaspip dans le bandeau horizontal ?
    Administrer > Gestion du squelette > (...)

Sur d’autres sites (2931)

  • simple ffmpeg API example for converting multiple input images into 1 image using tile filter

    9 août 2014, par Pragnesh Patel
    here is my code.....................


    AVFilterContext **inputContexts;
    AVFilterContext *outputContext;
    AVFilterGraph *graph;

    int initFilters(AVFrame *bgFrame, int inputCount, AVCodecContext **codecContexts, char       *filters)
    {
         int i;
     int returnCode;
      char args[512];
    char name[9];
    AVFilterInOut **graphInputs = NULL;
    AVFilterInOut *graphOutput = NULL;

    AVFilter *bufferSrc  = avfilter_get_by_name("buffer");
    AVFilter *bufferSink = avfilter_get_by_name("buffersink");

    graph = avfilter_graph_alloc();
    if(graph == NULL)
       return -1;

    //allocate inputs
    graphInputs = av_calloc(inputCount + 1, sizeof(AVFilterInOut *));
    for(i = 0; i <= inputCount; i++)
    {
       graphInputs[i] = avfilter_inout_alloc();
       if(graphInputs[i] == NULL)
           return -1;
    }

    //allocate input contexts
    inputContexts = av_calloc(inputCount + 1, sizeof(AVFilterContext *));
    //first is the background
    snprintf(args, sizeof(args), "video_size=%dx%d:pix_fmt=%d:time_base=1/1:pixel_aspect=0",   bgFrame->width, bgFrame->height, bgFrame->format);
    returnCode = avfilter_graph_create_filter(&inputContexts[0], bufferSrc, "background",  args, NULL, graph);
    if(returnCode < 0)
       return returnCode;
    graphInputs[0]->filter_ctx = inputContexts[0];
    graphInputs[0]->name = av_strdup("background");
    graphInputs[0]->next = graphInputs[1];

    //allocate the rest
    for(i = 1; i <= inputCount; i++)
    {
       AVCodecContext *codecCtx = codecContexts[i - 1];
       snprintf(args, sizeof(args),    "video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:pixel_aspect=%d/%d",
                   codecCtx->width, codecCtx->height, codecCtx->pix_fmt,
                   codecCtx->time_base.num, codecCtx->time_base.den,
                   codecCtx->sample_aspect_ratio.num, codecCtx->sample_aspect_ratio.den);
       snprintf(name, sizeof(name), "video_%d", i);

       returnCode = avfilter_graph_create_filter(&inputContexts[i], bufferSrc, name, args, NULL, graph);
       if(returnCode < 0)
           return returnCode;

       graphInputs[i]->filter_ctx = inputContexts[i];
       graphInputs[i]->name = av_strdup(name);
       graphInputs[i]->pad_idx = 0;
       if(i < inputCount)
       {
           graphInputs[i]->next = graphInputs[i + 1];
       }
       else
       {
           graphInputs[i]->next = NULL;
       }
    }

    //allocate outputs
    graphOutput = avfilter_inout_alloc();  
    returnCode = avfilter_graph_create_filter(&outputContext, bufferSink, "out", NULL, NULL, graph);
    if(returnCode < 0)
       return returnCode;
    graphOutput->filter_ctx = outputContext;
    graphOutput->name = av_strdup("out");
    graphOutput->next = NULL;
    graphOutput->pad_idx = 0;

    returnCode = avfilter_graph_parse_ptr(graph, filters, graphInputs, &graphOutput, NULL);
    if(returnCode < 0)
       return returnCode;

    returnCode = avfilter_graph_config(graph, NULL);
       return returnCode;

    return 0;
    }

    The filters argument of the function is passed on to avfilter_graph_parse_ptr and it can looks like this : [background] scale=512x512 [base] ; [video_1] scale=256x256 [tmp_1] ; [base][tmp_1] tile=1x2 [out]

    The call breaks after the call to avfilter_graph_config with the warning : Output pad "default" with type video of the filter instance "background" of buffer not connected to any destination and the error Invalid argument.

    please help me

    thanks in advance.................

  • ffmpeg how to add mkv to formats

    30 décembre 2015, par Mahmoud Saad

    hello after installing ffmpeg in my linux server with centos 6 after searching google i run ffmpeg -formats so i need to add mkv i know i will need to recompile ffmpeg but i do not know how to do it
    thank you

    File formats:
    D. = Demuxing supported
    .E = Muxing supported
    --
     E 3g2             3GP2 format
     E 3gp             3GP format
    D  4xm             4X Technologies format
    D  IFF             IFF format
    D  ISS             Funcom ISS format
    D  MTV             MTV format
    DE RoQ             raw id RoQ format
    D  aac             raw ADTS AAC
    DE ac3             raw AC-3
     E adts            ADTS AAC
    D  aea             MD STUDIO audio
    DE aiff            Audio IFF
    DE alaw            PCM A-law format
    DE alsa            ALSA audio output
    DE amr             3GPP AMR file format
    D  anm             Deluxe Paint Animation
    D  apc             CRYO APC format
    D  ape             Monkey's Audio
    DE asf             ASF format
     E asf_stream      ASF format
    DE ass             SSA/ASS format
    DE au              SUN AU format
    DE avi             AVI format
     E avm2            Flash 9 (AVM2) format
    D  avs             AVS format
    D  bethsoftvid     Bethesda Softworks VID format
    D  bfi             Brute Force & Ignorance
    D  bink            Bink
    D  c93             Interplay C93
    D  caf             Apple Core Audio Format
    D  cavsvideo       raw Chinese AVS video
    D  cdg             CD Graphics Format
     E crc             CRC testing format
    DE daud            D-Cinema audio format
    DE dirac           raw Dirac
    DE dnxhd           raw DNxHD (SMPTE VC-3)
    D  dsicin          Delphine Software International CIN format
    DE dts             raw DTS
    DE dv              DV video format
    D  dv1394          DV1394 A/V grab
     E dvd             MPEG-2 PS format (DVD VOB)
    D  dxa             DXA
    D  ea              Electronic Arts Multimedia Format
    D  ea_cdata        Electronic Arts cdata
    DE eac3            raw E-AC-3
    DE f32be           PCM 32 bit floating-point big-endian format
    DE f32le           PCM 32 bit floating-point little-endian format
    DE f64be           PCM 64 bit floating-point big-endian format
    DE f64le           PCM 64 bit floating-point little-endian format
    DE ffm             FFM (FFserver live feed) format
    D  film_cpk        Sega FILM/CPK format
    DE filmstrip       Adobe Filmstrip
    DE flac            raw FLAC
    D  flic            FLI/FLC/FLX animation format
    DE flv             FLV format
     E framecrc        framecrc testing format
     E gif             GIF Animation
    D  gsm             raw GSM
    DE gxf             GXF format
    DE h261            raw H.261
    DE h263            raw H.263
    DE h264            raw H.264 video format
    D  idcin           id Cinematic format
    DE image2          image2 sequence
    DE image2pipe      piped image2 sequence
    D  ingenient       raw Ingenient MJPEG
    D  ipmovie         Interplay MVE format
     E ipod            iPod H.264 MP4 format
    D  iv8             A format generated by IndigoVision 8000 video server
    D  libdc1394       dc1394 v.2 A/V grab
    D  lmlm4           lmlm4 raw format
    DE m4v             raw MPEG-4 video format
    DE matroska        Matroska file format
    DE mjpeg           raw MJPEG video
    DE mlp             raw MLP
    D  mm              American Laser Games MM format
    DE mmf             Yamaha SMAF
     E mov             MOV format
    D  mov,mp4,m4a,3gp,3g2,mj2 QuickTime/MPEG-4/Motion JPEG 2000 format
     E mp2             MPEG audio layer 2
    DE mp3             MPEG audio layer 3
     E mp4             MP4 format
    D  mpc             Musepack
    D  mpc8            Musepack SV8
    DE mpeg            MPEG-1 System format
     E mpeg1video      raw MPEG-1 video
     E mpeg2video      raw MPEG-2 video
    DE mpegts          MPEG-2 transport stream format
    D  mpegtsraw       MPEG-2 raw transport stream format
    D  mpegvideo       raw MPEG video
     E mpjpeg          MIME multipart JPEG format
    D  msnwctcp        MSN TCP Webcam stream
    DE mulaw           PCM mu-law format
    D  mvi             Motion Pixels MVI format
    DE mxf             Material eXchange Format
     E mxf_d10         Material eXchange Format, D-10 Mapping
    D  nc              NC camera feed format
    D  nsv             Nullsoft Streaming Video
     E null            raw null video format
    DE nut             NUT format
    D  nuv             NuppelVideo format
    DE ogg             Ogg
    D  oma             Sony OpenMG audio
    DE oss             Open Sound System playback
     E psp             PSP MP4 format
    D  psxstr          Sony Playstation STR format
    D  pva             TechnoTrend PVA file and stream format
    D  qcp             QCP format
    D  r3d             REDCODE R3D format
    DE rawvideo        raw video format
     E rcv             VC-1 test bitstream
    D  rl2             RL2 format
    DE rm              RealMedia format
    D  rpl             RPL/ARMovie format
     E rtp             RTP output format
    DE rtsp            RTSP output format
    DE s16be           PCM signed 16 bit big-endian format
    DE s16le           PCM signed 16 bit little-endian format
    DE s24be           PCM signed 24 bit big-endian format
    DE s24le           PCM signed 24 bit little-endian format
    DE s32be           PCM signed 32 bit big-endian format
    DE s32le           PCM signed 32 bit little-endian format
    DE s8              PCM signed 8 bit format
    D  sdp             SDP
    D  shn             raw Shorten
    D  siff            Beam Software SIFF
    D  smk             Smacker video
    D  sol             Sierra SOL format
    DE sox             SoX native format
     E spdif           IEC958 - S/PDIF (IEC-61937)
     E svcd            MPEG-2 PS format (VOB)
    DE swf             Flash format
    D  thp             THP
    D  tiertexseq      Tiertex Limited SEQ format
    D  tmv             8088flex TMV
    DE truehd          raw TrueHD
    D  tta             True Audio
    D  txd             Renderware TeXture Dictionary
    DE u16be           PCM unsigned 16 bit big-endian format
    DE u16le           PCM unsigned 16 bit little-endian format
    DE u24be           PCM unsigned 24 bit big-endian format
    DE u24le           PCM unsigned 24 bit little-endian format
    DE u32be           PCM unsigned 32 bit big-endian format
    DE u32le           PCM unsigned 32 bit little-endian format
    DE u8              PCM unsigned 8 bit format
    D  vc1             raw VC-1
    D  vc1test         VC-1 test bitstream format
     E vcd             MPEG-1 System format (VCD)
    D  video4linux     Video4Linux device grab
    D  video4linux2    Video4Linux2 device grab
    D  vmd             Sierra VMD format
     E vob             MPEG-2 PS format (VOB)
    DE voc             Creative Voice file format
    D  vqf             Nippon Telegraph and Telephone Corporation (NTT) TwinVQ
    D  w64             Sony Wave64 format
    DE wav             WAV format
    D  wc3movie        Wing Commander III movie format
     E webm            WebM file format
    D  wsaud           Westwood Studios audio format
    D  wsvqa           Westwood Studios VQA format
    D  wv              WavPack
    D  x11grab         X11grab
    D  xa              Maxis XA File Format
    D  yop             Psygnosis YOP Format
    DE yuv4mpegpipe    YUV4MPEG pipe format
  • Salty Game Music

    31 mai 2011, par Multimedia Mike — General

    Have you heard of Google’s Native Client (NaCl) project ? Probably not. Basically, it allows native code modules to run inside a browser (where ‘browser’ is defined pretty narrowly as ‘Google Chrome’ in this case). Programs are sandboxed so they aren’t a security menace (or so the whitepapers claim) but are allowed to access a variety of APIs including video and audio. The latter API is significant because sound tends to be forgotten in all the hullabaloo surrounding non-Flash web technologies. At any rate, enjoy NaCl while you can because I suspect it won’t be around much longer.

    After my recent work upgrading some old music synthesis programs to user more modern audio APIs, I got the idea to try porting the same code to run under NaCl in Chrome (first Nosefart, then Game Music Emu/GME). In this exercise, I met with very limited success. This blog post documents some of the pitfalls in my excursion.



    Infrastructure
    People who know me know that I’m rather partial — to put it gently — to straight-up C vs. C++. The NaCl SDK is heavily skewed towards C++. However, it does provide a Python tool called init_project.py which can create the skeleton of a project and can do so in C with the '-c' option :

    ./init_project.py -c -n saltynosefart
    

    This generates something that can be built using a simple ‘make’. When I added Nosefart’s C files, I learned that the project Makefile has places for project-necessary CFLAGS but does not honor them. The problem is that the generated Makefile includes a broader system Makefile that overrides the CFLAGS in the project Makefile. Going into the system Makefile and changing "CFLAGS =" -> "CFLAGS +=" solves this problem.

    Still, maybe I’m the first person to attempt building something in Native Client so I’m the first person to notice this ?

    Basic Playback
    At least the process to create an audio-enabled NaCl app is well-documented. Too bad it doesn’t seem to compile as advertised. According to my notes on the matter, I filled in PPP_InitializeModule() with the appropriate boilerplate as outlined in the docs but got a linker error concerning get_browser_interface().

    Plan B : C++
    Obviously, the straight C stuff is very much a second-class citizen in this NaCl setup. Fortunately, there is already that fully functional tone generator example program in the limited samples suite. Plan B is to copy that project and edit it until it accepts Nosefart/GME audio instead of a sine wave.

    The build system assumes all C++ files should have .cc extensions. I have to make some fixes so that it will accept .cpp files (either that, or rename all .cpp to .cc, but that’s not very clean).

    Making Noise
    You’ll be happy to know that I did successfully swap out the tone generator for either Nosefart or GME. Nosefart has a slightly fickle API that requires revving the emulator frame by frame and generating a certain number of audio samples. GME’s API is much easier to work with in this situation — just tell it how many samples it needs to generate and give it a pointer to a buffer. I played NES and SNES music play through this ad-hoc browser plugin, and I’m confident all the other supported formats would have worked if I went through the bother of converting the music data files into C headers to be included in the NaCl executable binaries (dynamically loading data via the network promised to be a far more challenging prospect reserved for phase 3 of the project).

    Portable ?
    I wouldn’t say so. I developed it on Linux and things ran fine there. I tried to run the same binaries on the Windows version of Chrome to no avail. It looks like it wasn’t even loading the .nexe files (NaCl executables).

    Thinking About The (Lack Of A) Future
    As I was working on this project, I noticed that the online NaCl documentation materialized explicit banners warning that my NaCl binaries compiled for Chrome 11 won’t work for Chrome 12 and that I need to code to the newly-released 0.3 SDK version. Not a fuzzy feeling. I also don’t feel good that I’m working from examples using bleeding edge APIs that feature deprecation as part of their naming convention, e.g., pp::deprecated::ScriptableObject().

    Ever-changing API + minimal API documentation + API that only works in one browser brand + requiring end user to explicitly enable feature = … well, that’s why I didn’t bother to release any showcase pertaining to this little experiment. Would have been neat, but I strongly suspect that this is yet another one of those APIs that Google decides to deprecate soon.

    See Also :