Recherche avancée

Médias (0)

Mot : - Tags -/formulaire

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

Autres articles (14)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (2282)

  • mp4,m4v vidoes not play on firefox

    20 novembre 2015, par Waqas Ahad

    Using paperclip-ffmpeg for video uploading in Rails.
    It plays on Chrome but not on Firefox and throws :

    Video format or MIME type is not supported

    I have this code in my model :

    has_attached_file :videod, :styles => {
                           medium => { :geometry => "640x480", :format => 'mp4' },
                          :thumb => { :geometry => "100x100#", :format => 'jpg', :time => 10 }
    }, :processors => [:ffmpeg]
    validates_attachment_size :videod, :less_than => 100.megabytes
    validates_attachment_presence :videod
    validates_attachment_content_type :videod, :content_type => /\Avideo\/.*\Z/

    I also installed ubuntu-restricted-extras which was required to play it on firefox.

    Result of ffprobe :

    ffprobe version 2.4.3-1ubuntu1~trusty6 Copyright (c) 2007-2014 the FFmpeg developers
    built on Nov 22 2014 17:07:19 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
    configuration: --prefix=/usr --extra-version='1ubuntu1~trusty6' --build-suffix=-ffmpeg --toolchain=hardened --extra-cflags= --extra-cxxflags= --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-fontconfig --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-opengl --enable-x11grab --enable-libxvid --enable-libx265 --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libx264 --enable-libsoxr --enable-openal --enable-libopencv
     libavutil      54.  7.100 / 54.  7.100
     libavcodec     56.  1.100 / 56.  1.100
     libavformat    56.  4.101 / 56.  4.101
     libavdevice    56.  0.100 / 56.  0.100
     libavfilter     5.  1.100 /  5.  1.100
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  0.100 /  3.  0.100
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  0.100 / 53.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'SampleVideo_360x240_2mb.mp4':
    Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     creation_time   : 1970-01-01 00:00:00
     encoder         : Lavf53.24.2
    Duration: 00:00:26.80, start: 0.000000, bitrate: 626 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 239 kb/s, 15 fps, 15 tbr, 15360 tbn, 30 tbc (default)
    Metadata:
     creation_time   : 1970-01-01 00:00:00
     handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 383 kb/s (default)
    Metadata:
     creation_time   : 1970-01-01 00:00:00
     handler_name    : SoundHandler

    After ffmpeg -i :

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'SampleVideo_360x240_2mb.mp4':
    Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     creation_time   : 1970-01-01 00:00:00
     encoder         : Lavf53.24.2
    Duration: 00:00:26.80, start: 0.000000, bitrate: 626 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 239 kb/s, 15 fps, 15 tbr, 15360 tbn, 30 tbc (default)
    Metadata:
     creation_time   : 1970-01-01 00:00:00
     handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 383 kb/s (default)
    Metadata:
     creation_time   : 1970-01-01 00:00:00
     handler_name    : SoundHandler
  • How to decode audiostream to play with AudioUnits ?

    4 décembre 2015, par sadhi

    I have a PCM ulaw stream that I receive and I want to play this on iOS. To play audio in my app I made an AudioUnit implementation, but since it requires linear PCM I must decode it first. For this I use ffmpeg with the following code :

           AVCodec *codec = avcodec_find_decoder(AV_CODEC_ID_PCM_MULAW);

           self.audio_codec_context = avcodec_alloc_context3(codec);
           self.audio_codec_context->codec_type = AVMEDIA_TYPE_AUDIO;
           self.audio_codec_context->sample_fmt = *codec->sample_fmts;
           self.audio_codec_context->sample_rate = 48000;
           self.audio_codec_context->channels    = 1;
           //open codec
           int result = avcodec_open2(self.audio_codec_context, codec,NULL);            

           //this should hold the raw data
           AVFrame * audioFrm = av_frame_alloc();

           AVPacket pkt;
           av_init_packet(&pkt);
           pkt.data = (unsigned char*)buf;
           pkt.size = ret;
           pkt.flags = AV_PKT_FLAG_KEY;

           int got_packet;
           result = avcodec_decode_audio4(self.audio_codec_context, audioFrm, &got_packet, &pkt);

           AVPacket encodedPkt;
           av_init_packet(&encodedPkt);
           encodedPkt.size = 0;
           encodedPkt.data = NULL;

           if (audioFrm != NULL) {
               self.audio_codec_context = NULL;
               AVCodec *codec = avcodec_find_encoder(AV_CODEC_ID_PCM_S16LE);

               self.audio_codec_context = avcodec_alloc_context3(codec);
               self.audio_codec_context->codec_type = AVMEDIA_TYPE_AUDIO;
               self.audio_codec_context->sample_fmt = *codec->sample_fmts;
               self.audio_codec_context->bit_rate = 64000;
               self.audio_codec_context->sample_rate = 48000;
               self.audio_codec_context->channels    = 1;


               int result = avcodec_open2(self.audio_codec_context, codec,NULL);
               if (result < 0) {
                   NSLog(@"avcodec_open2 returned %i", result);
               }


               result = avcodec_encode_audio2(self.audio_codec_context, &encodedPkt, audioFrm, &got_packet);

               if (result < 0) {
                   NSLog(@"avcodec_encode_audio2 returned %s", av_err2str (result));
                   continue;
               }
           }

    For some reason no matter what I do the audio that comes out at the end is all noise.
    So my question is : How should I decode my audiostrean to play it with AudioUnits ?

  • Is it possible to play an output video file from an encoder as it's being encoded ?

    16 août 2022, par jAckOdE

    I have a video file, and I need to encode it as H264/AVC and feed to client via HTTP. What i need is that i player at client side can play back the video as it is being encoded.

    



    AFAIK, To enable player to play as the video is downloading, "moov atom" have to be placed at the begnning of the video file. However, encoders (ex : ffmpeg) always write "moov atom" at the end of file after it completes encoding.

    



    Is there any way encoder can put "moov atom" at beginning of encode's output ? Or play video without moov atom presence ?

    



    Thank in advances

    



    LR