Replace streamio-ffmpeg library.

Replace the streamio-ffmpeg library with our own very thin FFmpeg wrapper.
This commit is contained in:
evazion
2021-09-05 06:53:10 -05:00
parent ef28576673
commit 540a3e111a
7 changed files with 63 additions and 22 deletions

BIN
test/files/test-audio.mp4 Normal file

Binary file not shown.

View File

@@ -170,4 +170,11 @@ class MediaFileTest < ActiveSupport::TestCase
assert_equal([60, 60], webm.dimensions)
end
end
context "for a video" do
should "detect videos with audio" do
assert_equal(true, MediaFile.open("test/files/test-audio.mp4").has_audio?)
assert_equal(false, MediaFile.open("test/files/test-300x300.mp4").has_audio?)
end
end
end