Recherche avancée

Médias (91)

Autres articles (71)

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (4975)

  • Error when trying to convert mp3 with image to mp4 using ffmpeg

    25 octobre 2012, par Ello

    The mp3 has an image in it, maybe some album images. When I use ffmpeg to convert it to mp4, it goes wrong. But if I convert an mp3 without an image, it succeeds.

    My command is like this :

    ffmpeg -i input.mp3 output.mp4

    Here's the error :

    Stream mapping:
     Stream #0:1 -> #0:0 (mjpeg -> mpeg4)
     Stream #0:0 -> #0:1 (mp3 -> aac)
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

    Here is all the console output :

    ellodeiMac:mine ello$ ffmpeg -frames 0 -i 4.mp3 -y test.mp4
    ffmpeg version 0.11.2 Copyright (c) 2000-2012 the FFmpeg developers
     built on Oct 24 2012 12:21:13 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
     configuration: --disable-yasm
     libavutil      51. 54.100 / 51. 54.100
     libavcodec     54. 23.100 / 54. 23.100
     libavformat    54.  6.100 / 54.  6.100
     libavdevice    54.  0.100 / 54.  0.100
     libavfilter     2. 77.100 /  2. 77.100
     libswscale      2.  1.100 /  2.  1.100
     libswresample   0. 15.100 /  0. 15.100
    [mp3 @ 0x7fa12301ae00] max_analyze_duration 5000000 reached at 5015510
    Input #0, mp3, from '4.mp3':
     Metadata:
       artist          : 贵族乐团
       album           : 美声天籁
       title           : 肖邦离别曲
       Tagging time    : 2012-09-18T08:12:10
     Duration: 00:04:01.44, start: 0.000000, bitrate: 129 kb/s
       Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s
       Stream #0:1: Video: mjpeg, yuvj420p, 240x240 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
       Metadata:
         title           : e
         comment         : Cover (front)
    [buffer @ 0x109115780] w:240 h:240 pixfmt:yuvj420p tb:1/90000 sar:1/1 sws_param:flags=2
    [buffersink @ 0x109133720] No opaque field provided
    [format @ 0x1091338e0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'format'
    [scale @ 0x109133bc0] w:240 h:240 fmt:yuvj420p sar:1/1 -> w:240 h:240 fmt:yuv420p sar:1/1 flags:0x4
    [mp4 @ 0x7fa123035c00] Frame rate very high for a muxer not efficiently supporting it.
    Please consider specifying a lower framerate, a different muxer or -vsync 2
    [aformat @ 0x109136ec0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'src' and the filter 'aformat'
    [aresample @ 0x1091370c0] chl:stereo fmt:s16 r:44100Hz -> chl:stereo fmt:flt r:44100Hz
    [mpeg4 @ 0x7fa12303be00] timebase 1/90000 not supported by MPEG 4 standard, the maximum
    admitted value for the timebase denominator is 65535
    Output #0, mp4, to 'test.mp4':
     Metadata:
       artist          : 贵族乐团
       album           : 美声天籁
       title           : 肖邦离别曲
       Tagging time    : 2012-09-18T08:12:10
       Stream #0:0: Video: mpeg4, yuv420p, 240x240 [SAR 1:1 DAR 1:1], q=2-31, 200 kb/s, 90k tbn, 90k tbc
       Metadata:
         title           : e
         comment         : Cover (front)
       Stream #0:1: Audio: none, 44100 Hz, stereo, flt, 128 kb/s
    Stream mapping:
     Stream #0:1 -> #0:0 (mjpeg -> mpeg4)
     Stream #0:0 -> #0:1 (mp3 -> aac)
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
  • On memcpy application crashes - FFMPEG, C++

    3 mai 2013, par Spamdark

    I have been working with ffmpeg, I got it working good, but I got a memory leak, I followed some instructions to fix it (like use av_frame_unref), so I needed to update ffmpeg to the version 1.2.
    This is weird for me, because everything was working good, and then, with the update, the application started to crash in a memcpy.

    Honestly, I don't know what's happening, I tried to google it but no answer. I would appreciate your help, here is the segment of the code which is failing :

    int WbMedia::DecodeAudioFrame(int16_t *audio_buf){
    static AVFrame *frame;
    static AVPacket pkt;
    static uint8_t *audio_pkt_data = NULL;
    static int audio_pkt_size = 0;
    static bool first_time = true;

    if(first_time){
       first_time=false;
    }

    int len1, data_size = 0;

    for(;;){
       bool do_rt = false;

       while(audio_pkt_size > 0){
           int obt_frame = 0;

           if (!frame) {
               if (!(frame = avcodec_alloc_frame())) {
                   MessageBox(0,"Out of memory error","Error: Memory",MB_ICONWARNING | MB_OK);
                   return -1;
               }
           }

           len1 = avcodec_decode_audio4(_audio_ccontext,frame,&obt_frame,&pkt);
           if(len1 < 0){
               audio_pkt_size = 0;
               break;
           }

           if(obt_frame){
               data_size = av_samples_get_buffer_size(NULL,channel_count,sample_fr,_audio_ccontext->sample_fmt,1);
               memcpy(audio_buf,frame->data[0],data_size);
           }

           audio_pkt_data+=len1;
           audio_pkt_size-=len1;

           if(data_size < 0){
               continue;
           }


           return data_size;
       }

       if(pkt.data){
           //MessageBox(0,"hi","Hi",MB_OK); // This is only for test if the app si reaching this av_free_packet
           av_free_packet(&pkt);
       }

       if(do_rt){
           return data_size;
       }

       // Try to get a new packet
       if(!audio_packets.empty()){
           WaitForSingleObject(Queue_Audio_Mutex,INFINITE);
               pkt = *audio_packets.front();
               audio_packets.pop();
           ReleaseMutex(Queue_Audio_Mutex);

           audio_pkt_size = pkt.size;
           audio_pkt_data = pkt.data;
       }else{
           return -1;
       }
    }
    return 0;
    }

    Thanks so much.

  • Record Video in Android with a watermark

    1er septembre 2017, par Naval Joshi

    I am creating an application to take a video from the front camera and add a logo and save it.
    I read about FFmpeg and have used it Linux. Is there any simple ways present to do the same.
    I have already coded the application.I am trying to add a Frame to the video while taking/saving.