mikera / telegenic

Video creation and manipulation in Clojure
GNU Lesser General Public License v2.1
18 stars 5 forks source link

control over quality, framerate, etc #1

Open rogerallen opened 8 years ago

rogerallen commented 8 years ago

Hi Mike,

I was a bit disappointed by the default encoding quality from jcodec. You can see the macroblocks pretty clearly in this test example. (orig on left, movie frame on right)

screen shot 2015-11-20 at 8 44 05 pm

I tried looking at the jcodec code to try to figure out how one would go about adjusting quality or bitrate, but it wasn't very obvious. I see you have framerate marked as TODO. So, when you get a chance if you could look at adding this control also, that would be cool.

For now, I'll try dumping frames & using ffmpeg. FWIW, it's going to be hard for jcodec to beat that combination--ffmpeg has lots of control, example commandlines, etc.

mikera commented 8 years ago

Hmmm yes I see what you mean. My wrapper over jcodec is pretty simplistic, I certainly haven't figured out how to control all the options yet. I'll see what I can do re: quality and framerate at least

rogerallen commented 8 years ago

Thanks for the quick feedback. Just FYI, here's what ffmpeg (an older version 1.1.3 I just had laying around) does with -crf 20...looks pretty good to my eye.

screen shot 2015-11-20 at 9 32 43 pm

(original, jcodec, ffmpeg)