Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (64)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (6581)

  • ffmpeg paly sound on iphone [closed]

    7 septembre 2011, par The Psicopath

    someone help me to play audio on iphone using the ffmpeg (libavcodec libavdevice ibavformat libavutil libswscale ) ??
    because in the iFrameExtractor there aren't examples to play sound !
    Thanks

  • Iphone Streaming and playing Audio Problem

    20 août 2011, par KayKay

    I am trying to make an app that plays audio stream using ffmpeg, libmms.
    I can open mms server, get stream, and decode audio frame to raw frame using suitable codec.
    However I don't know how to do next.
    I think I must use AudioToolbox/AudioToolbox.h and make audioqueue.
    but however when I give audioqueuebuffer decode buffer's memory and play, Only plays the white noise.
    Here is my code.

    What am i missing ?
    Any comment and hint is very appreciated.
    Thanks very much.

    while(av_read_frame(pFormatCtx, &pkt)>=0)
    {
       int pkt_decoded_len = 0;
       int frame_decoded_len;
       int decode_buff_remain=AVCODEC_MAX_AUDIO_FRAME_SIZE * 5;
       if(pkt.stream_index==audiostream)
       {
           frame_decoded_len=decode_buff_remain;
           int16_t *decode_buff_ptr = decode_buffer;
           int decoded_tot_len=0;
           pkt_decoded_len = avcodec_decode_audio2(pCodecCtx, decode_buff_ptr, &frame_decoded_len,
                                                   pkt.data, pkt.size);
           if (pkt_decoded_len <0) break;
           AudioQueueAllocateBuffer(audioQueue, kBufferSize, &buffers[i]);
           AQOutputCallback(self, audioQueue, buffers[i], pkt_decoded_len);

           if(i == 1){
               AudioQueueSetParameter(audioQueue, kAudioQueueParam_Volume, 1.0);
               AudioQueueStart(audioQueue, NULL);
           }
           i++;
       }
    }


    void AQOutputCallback(void *inData, AudioQueueRef inAQ, AudioQueueBufferRef inBuffer, int copySize)
    {
       mmsDemoViewController *staticApp = (mmsDemoViewController *)inData;
       [staticApp handleBufferCompleteForQueue:inAQ buffer:inBuffer size:copySize];
    }

    - (void)handleBufferCompleteForQueue:(AudioQueueRef)inAQ
                             buffer:(AudioQueueBufferRef)inBuffer
                               size:(int)copySize
    {
       inBuffer->mAudioDataByteSize = inBuffer->mAudioDataBytesCapacity;
       memcpy((char*)inBuffer->mAudioData, (const char*)decode_buffer, copySize);

       AudioQueueEnqueueBuffer(inAQ, inBuffer, 0, NULL);
    }
  • Using FFMPEG to reliably convert videos to mp4 for iphone/ipod and flash players

    23 avril 2016, par Jake Stevenson

    I need to convert videos for use in both a flash player and the iphone/ipod touch. I’m using the following batch script with ffmpeg :

    @echo off
    ffmpeg.exe -i %1 -s qvga -acodec libfaac -ar 22050 -ab 128k -vcodec libx264 -threads 0 -f ipod %2

    This always outputs an mp4 file, and I can always play it on my PC. The videos also seem to play fine on my iphone 3GS. But with some input files it won’t work for older iphone versions (3G and iPod touch).

    Here’s the ffmpeg output from one such file :

    D:\ffmpeg>encode.bat d:\temp\recording.flv d:\temp\out.m4v
    FFmpeg version SVN-r18709, Copyright (c) 2000-2009 Fabrice Bellard, et al.
     configuration: --enable-memalign-hack --prefix=/mingw --cross-prefix=i686-ming
    w32- --cc=ccache-i686-mingw32-gcc --target-os=mingw32 --arch=i686 --cpu=i686 --e
    nable-avisynth --enable-gpl --enable-zlib --enable-bzlib --enable-libgsm --enabl
    e-libfaac --enable-libfaad --enable-pthreads --enable-libvorbis --enable-libtheo
    ra --enable-libspeex --enable-libmp3lame --enable-libopenjpeg --enable-libxvid -
    -enable-libschroedinger --enable-libx264
     libavutil     50. 3. 0 / 50. 3. 0
     libavcodec    52.27. 0 / 52.27. 0
     libavformat   52.32. 0 / 52.32. 0
     libavdevice   52. 2. 0 / 52. 2. 0
     libswscale     0. 7. 1 /  0. 7. 1
     built on Apr 28 2009 04:04:42, gcc: 4.2.4
    [flv @ 0x187d650]skipping flv packet: type 18, size 164, flags 0
    Input #0, flv, from 'd:\temp\recording.flv':
     Duration: 00:00:07.17, start: 0.001000, bitrate: N/A
       Stream #0.0: Video: flv, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc
       Stream #0.1: Audio: nellymoser, 44100 Hz, mono, s16
    [libx264 @ 0x13518b0]using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE
    4.2
    [libx264 @ 0x13518b0]profile Baseline, level 4.2
    Output #0, ipod, to 'd:\temp\out.m4v':
       Stream #0.0: Video: libx264, yuv420p, 320x240, q=2-31, 200 kb/s, 1k tbn, 1k
    tbc
       Stream #0.1: Audio: libfaac, 22050 Hz, mono, s16, 128 kb/s
    Stream mapping:
     Stream #0.0 -> #0.0
     Stream #0.1 -> #0.1
    Press [q] to stop encoding
    frame=   90 fps=  0 q=-1.0 Lsize=     128kB time=6.87 bitrate= 152.4kbits/s
    video:92kB audio:32kB global headers:1kB muxing overhead 2.620892%
    [libx264 @ 0x13518b0]slice I:8     Avg QP:29.62  size:  7047
    [libx264 @ 0x13518b0]slice P:82    Avg QP:30.83  size:   467
    [libx264 @ 0x13518b0]mb I  I16..4: 17.9%  0.0% 82.1%
    [libx264 @ 0x13518b0]mb P  I16..4:  0.6%  0.0%  0.0%  P16..4: 23.1%  0.0%  0.0%
    0.0%  0.0%    skip:76.3%
    [libx264 @ 0x13518b0]final ratefactor: 57.50
    [libx264 @ 0x13518b0]SSIM Mean Y:0.9544735
    [libx264 @ 0x13518b0]kb/s:8412.6

    My suspicion is that it has something to do with the audio encoding. If so, does anyone know how to force it to reencode the audio to the proper format ?

    Any other ideas ?