java - Given the length of a video, how do I calculate how much how much space it will take after conversion? -
ok making video converter , whenever user inputs video, want able tell user how space on disc going take after conversion.
i using xuggler
conversion task wrapper around ffmpeg
. lets me access the total length of video in milliseconds long
value.
based on this, how can calculate size of output video generated ?
that's tricky thing. because conversion involves doing decode , encode. , if observe encoding algorithm, uses transforms , many other steps, give different o/p different input streams. in plain words, size depends on complexity of raw video, not possible predict size effectively.
Comments
Post a Comment