This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# webm | |
ffmpeg -y -i snp-inst3.mp4 \ | |
-filter:v scale=640:360,setsar=1/1 -pix_fmt yuv420p \ | |
-vpre libvpx-720p -b:v 500k -r:v 25/1 -force_fps \ | |
-c:a libvorbis -b:a 80k -pass 1 out_inst.webm | |
# mp4 | |
ffmpeg -y -i snp-inst3.mp4 \ | |
-filter:v scale=640:360,setsar=1/1 -pix_fmt yuv420p \ | |
-c:v libx264 -preset:v slow -profile:v baseline \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rake" | |
shared_context "rake" do | |
let(:rake) { Rake::Application.new } | |
let(:task_name) { self.class.top_level_description } | |
let(:task_path) { "lib/tasks/#{task_name.split(":").first}" } | |
subject { rake[task_name] } | |
def loaded_files_excluding_current_rake_file | |
$".reject {|file| file == Rails.root.join("#{task_path}.rake").to_s } |
NewerOlder