Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (60)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (10639)

  • 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 ?

  • 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);
    }
  • 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