Sha256: 5bcb639db7a96026cb7467c1d2f0539399815dd684d679490ada08dc0de59156

Contents?: true

Size: 709 Bytes

Versions: 11

Compression:

Stored size: 709 Bytes

Contents

module Ffmprb

  class Process

    class Input

      def video
        Channeled.new self, audio: false
      end

      def audio
        Channeled.new self, video: false
      end

      class Channeled < ChainBase

        def initialize(unfiltered, video: true, audio: true)
          super unfiltered
          @limited_channels = {video: video, audio: audio}
        end

        def channel(medium)
          super(medium)  if @limited_channels[medium]
        end

        def filters_for(lbl, video:, audio:)

          # Doing nothing

          unfiltered.filters_for lbl,
            video: channel?(:video) && video, audio: channel?(:audio) && audio
        end

      end

    end

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ffmprb-0.11.4 lib/ffmprb/process/input/channeled.rb
ffmprb-0.11.3 lib/ffmprb/process/input/channeled.rb
ffmprb-0.11.2 lib/ffmprb/process/input/channeled.rb
ffmprb-0.10.1 lib/ffmprb/process/input/channeled.rb
ffmprb-0.10.0 lib/ffmprb/process/input/channeled.rb
ffmprb-0.9.6 lib/ffmprb/process/input/channeled.rb
ffmprb-0.9.4 lib/ffmprb/process/input/channeled.rb
ffmprb-0.9.3 lib/ffmprb/process/input/channeled.rb
ffmprb-0.9.2 lib/ffmprb/process/input/channeled.rb
ffmprb-0.9.1 lib/ffmprb/process/input/channeled.rb
ffmprb-0.9.0 lib/ffmprb/process/input/channeled.rb