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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -