Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (67)

  • 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 (...)

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

Sur d’autres sites (4513)

  • Play video using mse (media source extension) in google chrome

    23 août 2019, par liyuqihxc

    I’m working on a project that convert rtsp stream (ffmpeg) and play it on the web page (signalr + mse).

    So far it works pretty much as I expected on the latest version of edge and firefox, but not chrome.

    here’s the code

    public class WebmMediaStreamContext
    {
       private Process _ffProcess;
       private readonly string _cmd;
       private byte[] _initSegment;
       private Task _readMediaStreamTask;
       private CancellationTokenSource _cancellationTokenSource;

       private const string _CmdTemplate = "-i {0} -c:v libvpx -tile-columns 4 -frame-parallel 1 -keyint_min 90 -g 90 -f webm -dash 1 pipe:";

       public static readonly byte[] ClusterStart = { 0x1F, 0x43, 0xB6, 0x75, 0x01, 0x00, 0x00, 0x00 };

       public event EventHandler<clusterreadyeventargs> ClusterReadyEvent;

       public WebmMediaStreamContext(string rtspFeed)
       {
           _cmd = string.Format(_CmdTemplate, rtspFeed);
       }

       public async Task StartConverting()
       {
           if (_ffProcess != null)
               throw new InvalidOperationException();

           _ffProcess = new Process();
           _ffProcess.StartInfo = new ProcessStartInfo
           {
               FileName = "ffmpeg/ffmpeg.exe",
               Arguments = _cmd,
               UseShellExecute = false,
               CreateNoWindow = true,
               RedirectStandardOutput = true
           };
           _ffProcess.Start();

           _initSegment = await ParseInitSegmentAndStartReadMediaStream();
       }

       public byte[] GetInitSegment()
       {
           return _initSegment;
       }

       // Find the first cluster, and everything before it is the InitSegment
       private async Task ParseInitSegmentAndStartReadMediaStream()
       {
           Memory<byte> buffer = new byte[10 * 1024];
           int length = 0;
           while (length != buffer.Length)
           {
               length += await _ffProcess.StandardOutput.BaseStream.ReadAsync(buffer.Slice(length));
               int cluster = buffer.Span.IndexOf(ClusterStart);
               if (cluster >= 0)
               {
                   _cancellationTokenSource = new CancellationTokenSource();
                   _readMediaStreamTask = new Task(() => ReadMediaStreamProc(buffer.Slice(cluster, length - cluster).ToArray(), _cancellationTokenSource.Token), _cancellationTokenSource.Token, TaskCreationOptions.LongRunning);
                   _readMediaStreamTask.Start();
                   return buffer.Slice(0, cluster).ToArray();
               }
           }

           throw new InvalidOperationException();
       }

       private void ReadMoreBytes(Span<byte> buffer)
       {
           int size = buffer.Length;
           while (size > 0)
           {
               int len = _ffProcess.StandardOutput.BaseStream.Read(buffer.Slice(buffer.Length - size));
               size -= len;
           }
       }

       // Parse every single cluster and fire ClusterReadyEvent
       private void ReadMediaStreamProc(byte[] bytesRead, CancellationToken cancel)
       {
           Span<byte> buffer = new byte[5 * 1024 * 1024];
           bytesRead.CopyTo(buffer);
           int bufferEmptyIndex = bytesRead.Length;

           do
           {
               if (bufferEmptyIndex &lt; ClusterStart.Length + 4)
               {
                   ReadMoreBytes(buffer.Slice(bufferEmptyIndex, 1024));
                   bufferEmptyIndex += 1024;
               }

               int clusterDataSize = BitConverter.ToInt32(
                   buffer.Slice(ClusterStart.Length, 4)
                   .ToArray()
                   .Reverse()
                   .ToArray()
               );
               int clusterSize = ClusterStart.Length + 4 + clusterDataSize;
               if (clusterSize > buffer.Length)
               {
                   byte[] newBuffer = new byte[clusterSize];
                   buffer.Slice(0, bufferEmptyIndex).CopyTo(newBuffer);
                   buffer = newBuffer;
               }

               if (bufferEmptyIndex &lt; clusterSize)
               {
                   ReadMoreBytes(buffer.Slice(bufferEmptyIndex, clusterSize - bufferEmptyIndex));
                   bufferEmptyIndex = clusterSize;
               }

               ClusterReadyEvent?.Invoke(this, new ClusterReadyEventArgs(buffer.Slice(0, bufferEmptyIndex).ToArray()));

               bufferEmptyIndex = 0;
           } while (!cancel.IsCancellationRequested);
       }
    }
    </byte></byte></byte></clusterreadyeventargs>

    I use ffmpeg to convert the rtsp stream to vp8 WEBM byte stream and parse it to "Init Segment" (ebml head、info、tracks...) and "Media Segment" (cluster), then send it to browser via signalR

    $(function () {

       var mediaSource = new MediaSource();
       var mimeCodec = 'video/webm; codecs="vp8"';

       var video = document.getElementById('video');

       mediaSource.addEventListener('sourceopen', callback, false);
       function callback(e) {
           var sourceBuffer = mediaSource.addSourceBuffer(mimeCodec);
           var queue = [];

           sourceBuffer.addEventListener('updateend', function () {
               if (queue.length === 0) {
                   return;
               }

               var base64 = queue[0];
               if (base64.length === 0) {
                   mediaSource.endOfStream();
                   queue.shift();
                   return;
               } else {
                   var buffer = new Uint8Array(atob(base64).split("").map(function (c) {
                       return c.charCodeAt(0);
                   }));
                   sourceBuffer.appendBuffer(buffer);
                   queue.shift();
               }
           }, false);

           var connection = new signalR.HubConnectionBuilder()
               .withUrl("/signalr-video")
               .configureLogging(signalR.LogLevel.Information)
               .build();
           connection.start().then(function () {
               connection.stream("InitVideoReceive")
                   .subscribe({
                       next: function(item) {
                           if (queue.length === 0 &amp;&amp; !!!sourceBuffer.updating) {
                               var buffer = new Uint8Array(atob(item).split("").map(function (c) {
                                   return c.charCodeAt(0);
                               }));
                               sourceBuffer.appendBuffer(buffer);
                               console.log(blockindex++ + " : " + buffer.byteLength);
                           } else {
                               queue.push(item);
                           }
                       },
                       complete: function () {
                           queue.push('');
                       },
                       error: function (err) {
                           console.error(err);
                       }
                   });
           });
       }
       video.src = window.URL.createObjectURL(mediaSource);
    })

    chrome just play the video for 3 5 seconds and then stop for buffering, even though there are plenty of cluster transfered and inserted into SourceBuffer.

    here’s the information in chrome ://media-internals/

    Player Properties :

    render_id: 217
    player_id: 1
    origin_url: http://localhost:52531/
    frame_url: http://localhost:52531/
    frame_title: Home Page
    url: blob:http://localhost:52531/dcb25d89-9830-40a5-ba88-33c13b5c03eb
    info: Selected FFmpegVideoDecoder for video decoding, config: codec: vp8 format: 1 profile: vp8 coded size: [1280,720] visible rect: [0,0,1280,720] natural size: [1280,720] has extra data? false encryption scheme: Unencrypted rotation: 0°
    pipeline_state: kSuspended
    found_video_stream: true
    video_codec_name: vp8
    video_dds: false
    video_decoder: FFmpegVideoDecoder
    duration: unknown
    height: 720
    width: 1280
    video_buffering_state: BUFFERING_HAVE_NOTHING
    for_suspended_start: false
    pipeline_buffering_state: BUFFERING_HAVE_NOTHING
    event: PAUSE

    Log

    Timestamp       Property            Value
    00:00:00 00     origin_url          http://localhost:52531/
    00:00:00 00     frame_url           http://localhost:52531/
    00:00:00 00     frame_title         Home Page
    00:00:00 00     url                 blob:http://localhost:52531/dcb25d89-9830-40a5-ba88-33c13b5c03eb
    00:00:00 00     info                ChunkDemuxer: buffering by DTS
    00:00:00 35     pipeline_state      kStarting
    00:00:15 213    found_video_stream  true
    00:00:15 213    video_codec_name    vp8
    00:00:15 216    video_dds           false
    00:00:15 216    video_decoder       FFmpegVideoDecoder
    00:00:15 216    info                Selected FFmpegVideoDecoder for video decoding, config: codec: vp8 format: 1 profile: vp8 coded size: [1280,720] visible rect: [0,0,1280,720] natural size: [1280,720] has extra data? false encryption scheme: Unencrypted rotation: 0°
    00:00:15 216    pipeline_state      kPlaying
    00:00:15 213    duration            unknown
    00:00:16 661    height              720
    00:00:16 661    width               1280
    00:00:16 665    video_buffering_state       BUFFERING_HAVE_ENOUGH
    00:00:16 665    for_suspended_start         false
    00:00:16 665    pipeline_buffering_state    BUFFERING_HAVE_ENOUGH
    00:00:16 667    pipeline_state      kSuspending
    00:00:16 670    pipeline_state      kSuspended
    00:00:52 759    info                Effective playback rate changed from 0 to 1
    00:00:52 759    event               PLAY
    00:00:52 759    pipeline_state      kResuming
    00:00:52 760    video_dds           false
    00:00:52 760    video_decoder       FFmpegVideoDecoder
    00:00:52 760    info                Selected FFmpegVideoDecoder for video decoding, config: codec: vp8 format: 1 profile: vp8 coded size: [1280,720] visible rect: [0,0,1280,720] natural size: [1280,720] has extra data? false encryption scheme: Unencrypted rotation: 0°
    00:00:52 760    pipeline_state      kPlaying
    00:00:52 793    height              720
    00:00:52 793    width               1280
    00:00:52 798    video_buffering_state       BUFFERING_HAVE_ENOUGH
    00:00:52 798    for_suspended_start         false
    00:00:52 798    pipeline_buffering_state    BUFFERING_HAVE_ENOUGH
    00:00:56 278    video_buffering_state       BUFFERING_HAVE_NOTHING
    00:00:56 295    for_suspended_start         false
    00:00:56 295    pipeline_buffering_state    BUFFERING_HAVE_NOTHING
    00:01:20 717    event               PAUSE
    00:01:33 538    event               PLAY
    00:01:35 94     event               PAUSE
    00:01:55 561    pipeline_state      kSuspending
    00:01:55 563    pipeline_state      kSuspended

    Can someone tell me what’s wrong with my code, or dose chrome require some magic configuration to work ?

    Thanks 

    Please excuse my english :)

  • Not all portions of video play well after concatenation

    24 septembre 2018, par srgbnd

    Node.JS 8.11.4, fluent-ffmpeg 2.1.2

    I need to concatenate random portions of the same length of different videos in one video file. The concatenation proceeds without errors. But when I play the final concatenated file I see some portions playing well with sound, others have video "frozen" but sounds playing.

    What’s the problem ? I want all portions playing well in the final concatenated file.

    Concatenation config :

    trex@cave:/media/trex/safe1/Development/app$ head concat_config.txt
    file /media/trex/safe1/Development/app/videos/test/417912400.mp4
    inpoint 145
    outpoint 155
    file /media/trex/safe1/Development/app/videos/test/440386842.mp4
    inpoint 59
    outpoint 69
    file /media/trex/safe1/Development/app/videos/test/417912400.mp4
    inpoint 144
    outpoint 154
       ...

    In total, I have 16 portions of 2 videos. Duration of a portion is 10 sec. In the future the number of video files and portions will be much bigger.

    trex@cave:/media/trex/safe1/Development/app$ ls -lh videos/test/
    total 344M
    -rw-r--r-- 1 trex trex  90M set 23 12:19 417912400.mp4
    -rw-r--r-- 1 trex trex 254M set 23 12:19 440386842.mp4

    JavaScript code for the concatentaion :

    const fs = require('fs');
    const path = require('path');
    const _ = require('lodash');
    const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
    const ffprobePath = require('@ffprobe-installer/ffprobe').path;
    const ffmpeg = require('fluent-ffmpeg');
    ffmpeg.setFfmpegPath(ffmpegPath);
    ffmpeg.setFfprobePath(ffprobePath);


    function getMetadata(absPathToFile) {
     return new Promise(function (resolve, reject) {
       ffmpeg.ffprobe(absPathToFile, function(err, metadata) {
         if (err) {
           reject('get video meta: ' + err.toString());
         }
         resolve(metadata);
       });
     });
    }

    async function getFormat(files) {
     const pArray = files.map(async f => {
       const meta = await getMetadata(f);
       meta.format.short_filename = meta.format.filename.split('/').pop();
       return meta.format;
     });
     return await Promise.all(pArray);
    }

    function getSliceValues(duration, max = 10) {
     max = duration &lt; max ? duration * 0.5 : max; // sec
     const start = _.random(0, duration * 0.9);
     const end = start + max > duration ? duration : start + max;
     return `inpoint ${Math.floor(start)}\noutpoint ${Math.floor(end)}\n`;
    }

    function addPath(arr, aPath) {
     return arr.map(e => path.join(aPath, e));
    }

    function createConfig(meta) {
     return meta.map(video => `file ${video.filename}\n${getSliceValues(video.duration)}`).join('');
    }

    function duplicateMeta(meta) {
     for (let i = 0; i &lt; 3; i++) {
       meta.push(...meta);
     }
     return _.shuffle(meta);
    }

    const videoFolder = path.join(__dirname, 'videos/test');
    const finalVideo = 'final_video.mp4';
    const configFile = 'concat_config.txt';

    // main
    (async () => {
     let videos = addPath(fs.readdirSync(videoFolder), videoFolder);

     let meta = await getFormat(videos);
     meta = duplicateMeta(meta); // get multiple portions of videos

     fs.writeFileSync(configFile, createConfig(meta));

     const mpeg = ffmpeg();
     mpeg.input(configFile)
       .inputOptions(['-f concat', '-safe 0'])
       .outputOptions('-c copy')
       .save(finalVideo);
    })();

    Video files formats :

    { streams:
      [ { index: 0,
          codec_name: 'h264',
          codec_long_name: 'H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10',
          profile: 'High',
          codec_type: 'video',
          codec_time_base: '1001/60000',
          codec_tag_string: 'avc1',
          codec_tag: '0x31637661',
          width: 1920,
          height: 1080,
          coded_width: 1920,
          coded_height: 1088,
          has_b_frames: 2,
          sample_aspect_ratio: '1:1',
          display_aspect_ratio: '16:9',
          pix_fmt: 'yuv420p',
          level: 40,
          color_range: 'tv',
          color_space: 'bt709',
          color_transfer: 'bt709',
          color_primaries: 'bt709',
          chroma_location: 'left',
          field_order: 'unknown',
          timecode: 'N/A',
          refs: 1,
          is_avc: 'true',
          nal_length_size: 4,
          id: 'N/A',
          r_frame_rate: '30000/1001',
          avg_frame_rate: '30000/1001',
          time_base: '1/30000',
          start_pts: 0,
          start_time: 0,
          duration_ts: 4936900,
          duration: 164.563333,
          bit_rate: 4323409,
          max_bit_rate: 'N/A',
          bits_per_raw_sample: 8,
          nb_frames: 4932,
          nb_read_frames: 'N/A',
          nb_read_packets: 'N/A',
          tags: [Object],
          disposition: [Object] },
        { index: 1,
          codec_name: 'aac',
          codec_long_name: 'AAC (Advanced Audio Coding)',
          profile: 'LC',
          codec_type: 'audio',
          codec_time_base: '1/48000',
          codec_tag_string: 'mp4a',
          codec_tag: '0x6134706d',
          sample_fmt: 'fltp',
          sample_rate: 48000,
          channels: 2,
          channel_layout: 'stereo',
          bits_per_sample: 0,
          id: 'N/A',
          r_frame_rate: '0/0',
          avg_frame_rate: '0/0',
          time_base: '1/48000',
          start_pts: 0,
          start_time: 0,
          duration_ts: 7899120,
          duration: 164.565,
          bit_rate: 256000,
          max_bit_rate: 263232,
          bits_per_raw_sample: 'N/A',
          nb_frames: 7714,
          nb_read_frames: 'N/A',
          nb_read_packets: 'N/A',
          tags: [Object],
          disposition: [Object] } ],
     format:
      { filename: '/media/trex/safe1/Development/app/videos/test/417912400.mp4',
        nb_streams: 2,
        nb_programs: 0,
        format_name: 'mov,mp4,m4a,3gp,3g2,mj2',
        format_long_name: 'QuickTime / MOV',
        start_time: 0,
        duration: 164.565,
        size: 94298844,
        bit_rate: 4584150,
        probe_score: 100,
        tags:
         { major_brand: 'mp42',
           minor_version: '0',
           compatible_brands: 'mp42mp41isomavc1',
           creation_time: '2015-09-21T19:11:21.000000Z' } },
     chapters: [] }
    { streams:
      [ { index: 0,
          codec_name: 'h264',
          codec_long_name: 'H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10',
          profile: 'High',
          codec_type: 'video',
          codec_time_base: '1001/48000',
          codec_tag_string: 'avc1',
          codec_tag: '0x31637661',
          width: 2560,
          height: 1440,
          coded_width: 2560,
          coded_height: 1440,
          has_b_frames: 2,
          sample_aspect_ratio: '1:1',
          display_aspect_ratio: '16:9',
          pix_fmt: 'yuv420p',
          level: 51,
          color_range: 'tv',
          color_space: 'bt709',
          color_transfer: 'bt709',
          color_primaries: 'bt709',
          chroma_location: 'left',
          field_order: 'unknown',
          timecode: 'N/A',
          refs: 1,
          is_avc: 'true',
          nal_length_size: 4,
          id: 'N/A',
          r_frame_rate: '24000/1001',
          avg_frame_rate: '24000/1001',
          time_base: '1/24000',
          start_pts: 0,
          start_time: 0,
          duration_ts: 4206200,
          duration: 175.258333,
          bit_rate: 11891834,
          max_bit_rate: 'N/A',
          bits_per_raw_sample: 8,
          nb_frames: 4202,
          nb_read_frames: 'N/A',
          nb_read_packets: 'N/A',
          tags: [Object],
          disposition: [Object] },
        { index: 1,
          codec_name: 'aac',
          codec_long_name: 'AAC (Advanced Audio Coding)',
          profile: 'LC',
          codec_type: 'audio',
          codec_time_base: '1/48000',
          codec_tag_string: 'mp4a',
          codec_tag: '0x6134706d',
          sample_fmt: 'fltp',
          sample_rate: 48000,
          channels: 2,
          channel_layout: 'stereo',
          bits_per_sample: 0,
          id: 'N/A',
          r_frame_rate: '0/0',
          avg_frame_rate: '0/0',
          time_base: '1/48000',
          start_pts: 0,
          start_time: 0,
          duration_ts: 8414160,
          duration: 175.295,
          bit_rate: 256000,
          max_bit_rate: 262152,
          bits_per_raw_sample: 'N/A',
          nb_frames: 8217,
          nb_read_frames: 'N/A',
          nb_read_packets: 'N/A',
          tags: [Object],
          disposition: [Object] } ],
     format:
      { filename: '/media/trex/safe1/Development/app/videos/test/440386842.mp4',
        nb_streams: 2,
        nb_programs: 0,
        format_name: 'mov,mp4,m4a,3gp,3g2,mj2',
        format_long_name: 'QuickTime / MOV',
        start_time: 0,
        duration: 175.295,
        size: 266214940,
        bit_rate: 12149345,
        probe_score: 100,
        tags:
         { major_brand: 'mp42',
           minor_version: '0',
           compatible_brands: 'mp42mp41isomavc1',
           creation_time: '2015-11-15T19:30:49.000000Z' } },
     chapters: [] }
  • Ruby on Rails - Paperclip - ffmpeg - throws error when adding style to "has_attached_file"

    4 octobre 2018, par TamerB

    I’m working on image and video upload in a rails app using paperclip and ffmpeg.

    The following code in models/image.rb is working fine :

    has_attached_file :image,
    processors: [:ffmpeg]
    validates_attachment_content_type :image, content_type: /.*/

    But, when I add styling to the code as follows, it throws an error on (page loading) :

    has_attached_file :image, styles: lambda {|a| if a.instance.is_image? then {original: {}, medium: "300x300>"} end},
    processors: [:ffmpeg]
    validates_attachment_content_type :image, content_type: /.*/

    def is_image?
     return false unless @attachment_image.content_type
     ['image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png', 'image/jpg'].include?(@attachment_image.content_type)
    end

    The error is as follows :

    F, [2018-10-04T15:04:47.381706 #9836] FATAL -- : [643e7428-d41e-4000-9a48-566d85e7b109]  
    F, [2018-10-04T15:04:47.381906 #9836] FATAL -- : [643e7428-d41e-4000-9a48-566d85e7b109] ActionView::Template::Error (undefined method `each_pair' for nil:NilClass):
    F, [2018-10-04T15:04:47.382186 #9836] FATAL -- : [643e7428-d41e-4000-9a48-566d85e7b109]     1: insert_tag renderer_for(:show)
    F, [2018-10-04T15:04:47.382345 #9836] FATAL -- : [643e7428-d41e-4000-9a48-566d85e7b109]  
    F, [2018-10-04T15:04:47.382441 #9836] FATAL -- : [643e7428-d41e-4000-9a48-566d85e7b109] app/admin/resorts.rb:46:in `block (5 levels) in <top>'
    </top>

    How can I solve this ?

    Update

    This error is displayed only when trying to upload a video or or trying to load a page containing a video.

    The code in pp/admin/resorts.rb mentioned in the error message is the following (I’m using activeadmin gem) :

    if im.itype == 'video-slider' then
       video_tag im.image, class: 'my_image_size' # line 46
    else
       image_tag im.image, class: 'my_image_size'
    end

    When trying to upload an image, the error changed to be as follows () :

    Input #0, image2, from '/tmp/dcdc7c452102ec2b9255973f59b40ee320181004-23173-fx7vzi.jpg':
    Duration: 00:00:00.04, start: 0.000000, bitrate: 35614 kb/s
    Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080, 25 tbr, 25 tbn, 25 tbc
    [NULL @ 0x564aeb7df580] Unable to find a suitable output format for '/tmp/dcdc7c452102ec2b9255973f59b40ee320181004-23173-fx7vzi20181004-23173-zurkvx'
    /tmp/dcdc7c452102ec2b9255973f59b40ee320181004-23173-fx7vzi20181004-23173-zurkvx: Invalid argument
    ):
    F, [2018-10-04T19:13:02.028565 #23173] FATAL -- : [c267e57b-7e06-4624-be1c-0d9aa4b71e00]  
    F, [2018-10-04T19:13:02.028730 #23173] FATAL -- : [c267e57b-7e06-4624-be1c-0d9aa4b71e00] paperclip-ffmpeg (1.2.0) lib/paperclip_processors/ffmpeg.rb:175:in `rescue in make'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] paperclip-ffmpeg (1.2.0) lib/paperclip_processors/ffmpeg.rb:171:in `make'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] paperclip (5.2.1) lib/paperclip/processor.rb:34:in `make'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] paperclip (5.2.1) lib/paperclip/attachment.rb:533:in `block in post_process_style'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] paperclip (5.2.1) lib/paperclip/attachment.rb:532:in `each'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] paperclip (5.2.1) lib/paperclip/attachment.rb:532:in `reduce'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] paperclip (5.2.1) lib/paperclip/attachment.rb:532:in `post_process_style'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] paperclip (5.2.1) lib/paperclip/attachment.rb:519:in `post_process_styles'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] paperclip (5.2.1) lib/paperclip/attachment.rb:512:in `block (2 levels) in post_process'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activesupport (5.1.5) lib/active_support/callbacks.rb:131:in `run_callbacks'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] paperclip (5.2.1) lib/paperclip/callbacks.rb:38:in `run_paperclip_callbacks'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] paperclip (5.2.1) lib/paperclip/attachment.rb:510:in `block in post_process'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activesupport (5.1.5) lib/active_support/callbacks.rb:97:in `run_callbacks'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] paperclip (5.2.1) lib/paperclip/callbacks.rb:38:in `run_paperclip_callbacks'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] paperclip (5.2.1) lib/paperclip/attachment.rb:509:in `post_process'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] paperclip (5.2.1) lib/paperclip/attachment.rb:465:in `post_process_file'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] paperclip (5.2.1) lib/paperclip/attachment.rb:113:in `assign'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] paperclip (5.2.1) lib/paperclip/has_attached_file.rb:66:in `block in define_setter'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activemodel (5.1.5) lib/active_model/attribute_assignment.rb:46:in `public_send'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activemodel (5.1.5) lib/active_model/attribute_assignment.rb:46:in `_assign_attribute'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activemodel (5.1.5) lib/active_model/attribute_assignment.rb:40:in `block in _assign_attributes'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activemodel (5.1.5) lib/active_model/attribute_assignment.rb:39:in `each'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activemodel (5.1.5) lib/active_model/attribute_assignment.rb:39:in `_assign_attributes'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activerecord (5.1.5) lib/active_record/attribute_assignment.rb:26:in `_assign_attributes'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activemodel (5.1.5) lib/active_model/attribute_assignment.rb:33:in `assign_attributes'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activerecord (5.1.5) lib/active_record/core.rb:337:in `initialize'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activerecord (5.1.5) lib/active_record/inheritance.rb:66:in `new'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activerecord (5.1.5) lib/active_record/inheritance.rb:66:in `new'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activeadmin (1.1.0) lib/active_admin/resource_controller/data_access.rb:130:in `build_new_resource'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activeadmin (1.1.0) lib/active_admin/resource_controller/data_access.rb:116:in `build_resource'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] inherited_resources (1.8.0) lib/inherited_resources/actions.rb:31:in `create'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/abstract_controller/base.rb:186:in `process_action'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_controller/metal/rendering.rb:30:in `process_action'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activesupport (5.1.5) lib/active_support/callbacks.rb:131:in `run_callbacks'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/abstract_controller/callbacks.rb:19:in `process_action'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_controller/metal/rescue.rb:20:in `process_action'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activesupport (5.1.5) lib/active_support/notifications.rb:166:in `block in instrument'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activesupport (5.1.5) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activesupport (5.1.5) lib/active_support/notifications.rb:166:in `instrument'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] searchkick (3.0.0) lib/searchkick/logging.rb:209:in `process_action'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activerecord (5.1.5) lib/active_record/railties/controller_runtime.rb:22:in `process_action'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/abstract_controller/base.rb:124:in `process'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionview (5.1.5) lib/action_view/rendering.rb:30:in `process'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_controller/metal.rb:189:in `dispatch'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_controller/metal.rb:253:in `dispatch'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_dispatch/routing/route_set.rb:31:in `serve'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_dispatch/journey/router.rb:50:in `block in serve'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_dispatch/journey/router.rb:33:in `each'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_dispatch/journey/router.rb:33:in `serve'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_dispatch/routing/route_set.rb:844:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] omniauth (1.8.1) lib/omniauth/strategy.rb:190:in `call!'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] omniauth (1.8.1) lib/omniauth/strategy.rb:168:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] omniauth (1.8.1) lib/omniauth/strategy.rb:190:in `call!'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] omniauth (1.8.1) lib/omniauth/strategy.rb:168:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] omniauth (1.8.1) lib/omniauth/strategy.rb:190:in `call!'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] omniauth (1.8.1) lib/omniauth/strategy.rb:168:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] warden (1.2.7) lib/warden/manager.rb:36:in `block in call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] warden (1.2.7) lib/warden/manager.rb:35:in `catch'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] warden (1.2.7) lib/warden/manager.rb:35:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] rack (2.0.5) lib/rack/etag.rb:25:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] rack (2.0.5) lib/rack/conditional_get.rb:38:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] rack (2.0.5) lib/rack/head.rb:12:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_dispatch/middleware/cookies.rb:613:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activerecord (5.1.5) lib/active_record/migration.rb:556:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activesupport (5.1.5) lib/active_support/callbacks.rb:97:in `run_callbacks'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] web-console (3.5.1) lib/web_console/middleware.rb:18:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] railties (5.1.5) lib/rails/rack/logger.rb:36:in `call_app'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] railties (5.1.5) lib/rails/rack/logger.rb:24:in `block in call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `block in tagged'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activesupport (5.1.5) lib/active_support/tagged_logging.rb:26:in `tagged'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `tagged'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] railties (5.1.5) lib/rails/rack/logger.rb:24:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] request_store (1.4.0) lib/request_store/middleware.rb:19:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_dispatch/middleware/request_id.rb:25:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] rack (2.0.5) lib/rack/method_override.rb:22:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] rack (2.0.5) lib/rack/runtime.rb:22:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] activesupport (5.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] actionpack (5.1.5) lib/action_dispatch/middleware/static.rb:125:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] rack (2.0.5) lib/rack/sendfile.rb:111:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] railties (5.1.5) lib/rails/engine.rb:522:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] puma (3.11.2) lib/puma/configuration.rb:225:in `call'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] puma (3.11.2) lib/puma/server.rb:624:in `handle_request'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] puma (3.11.2) lib/puma/server.rb:438:in `process_client'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] puma (3.11.2) lib/puma/server.rb:302:in `block in run'
    [c267e57b-7e06-4624-be1c-0d9aa4b71e00] puma (3.11.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread'