spec/ffmpeg/encoding_options_spec.rb in streamio-ffmpeg-0.6.8.1 vs spec/ffmpeg/encoding_options_spec.rb in streamio-ffmpeg-0.7.0

- old
+ new

@@ -76,15 +76,31 @@ it "should convert mininimum video bitrate" do EncodingOptions.new(:video_min_bitrate => 600).to_s.should == "-minrate 600k" end + it "should convert video bitrate tolerance" do + EncodingOptions.new(:video_bitrate_tolerance => 100).to_s.should == "-bt 100k" + end + it "should convert buffer size" do EncodingOptions.new(:buffer_size => 2000).to_s.should == "-bufsize 2000k" end it "should convert threads" do EncodingOptions.new(:threads => 2).to_s.should == "-threads 2" + end + + it "should convert video preset" do + EncodingOptions.new(:video_preset => "max").to_s.should == "-vpre max" + end + + it "should convert audio preset" do + EncodingOptions.new(:audio_preset => "max").to_s.should == "-apre max" + end + + it "should convert file preset" do + EncodingOptions.new(:file_preset => "max.ffpreset").to_s.should == "-fpre max.ffpreset" end it "should convert a lot of them simultaneously" do converted = EncodingOptions.new(:video_codec => "libx264", :audio_codec => "aac", :video_bitrate => "1000k").to_s converted.should match(/-acodec aac/)