如何在一个avconv cli中使用多个视频过滤器

时间:2016-08-28 02:56:31

标签: avconv

这是我的cli:

export var myMethodArror = (param: string): string
export var myMethodArror = (param: number): number

export var myMethodArror = (param: string | number): string | number => {
..
}

我希望在视频中删除两个水印,但我的cli只删除avconv -i /home/roroco/Downloads/test_rm_watermark.mp4 -ss 0 -t 30 -vf "delogo=x=1127:y=38:w=105:h=54:band=4" -vf "delogo=x=44:y=39:w=145:h=49:band=4" -c:v libx264 -an "/tmp/rm-watermark/test.mp4" -y ,如何在一个cli中删除它们

1 个答案:

答案 0 :(得分:2)

你必须链接两个过滤器:

require 'faker'

#Seed the database before running the tests only if in test mode
#Fixes problem with rake routes running this command and deleting out the database
Rails.application.load_seed if  Rails.env.test?

FactoryGirl.define do
  factory :employee do
    first_name { Faker::Name.first_name}
    last_name { Faker::Name.last_name}
    sequence(:email) { |n| "peterjohnson#{n}@example.com" }
    mobile 66816927867
    bio "MyText"
    address { Faker::Address.street_address}
    province_state { Faker::Address.state}
    country { Faker::Address.country}
    postal_code { Faker::Address.postcode}
    status :active
    bachelor_degree "B.Sc"
    password Faker::Internet.password(8)
    sequence(:paypal_email) { |n| "paypal_peterJohnson#{n}@example.com" }
    sequence(:skype_id) {|n| "peterjohnson_skype#{n}" }
    os :mac
    role_ids [Role.first.id]

    trait :proofreader do
        after(:create) {|employee| employee.add_role(:proofreader)}
    end

    trait :admin do
        after(:create) {|employee| employee.add_role(:admin)}
    end

    trait :super_admin do
        after(:create) {|employee| employee.add_role(:super_admin)}
    end
  end
end