From 5bc0bb88cfdc30af6542bacf82a4231c2600a72c Mon Sep 17 00:00:00 2001 From: Toks Date: Tue, 7 Oct 2014 02:29:05 -0400 Subject: [PATCH] Fix webm converter outputting non-webm videos mkvmerge didn't realize it was supposed to output a webm specifically because write_path does not have a file extension. The --webm option tells it this instead. --- app/logical/pixiv_ugoira_converter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/logical/pixiv_ugoira_converter.rb b/app/logical/pixiv_ugoira_converter.rb index d32275935..8579cb310 100644 --- a/app/logical/pixiv_ugoira_converter.rb +++ b/app/logical/pixiv_ugoira_converter.rb @@ -72,7 +72,7 @@ class PixivUgoiraConverter ext = folder.first.name.match(/\.(\w{,4})$/)[1] system("ffmpeg -i #{tmpdir}/images/%06d.#{ext} -codec:v libvpx -crf 4 -b:v 5000k -an #{tmpdir}/tmp.webm") - system("mkvmerge -o #{write_path} --timecodes 0:#{tmpdir}/timecodes.tc #{tmpdir}/tmp.webm") + system("mkvmerge -o #{write_path} --webm --timecodes 0:#{tmpdir}/timecodes.tc #{tmpdir}/tmp.webm") end end