Comment 15 for bug 349011

Revision history for this message
Peter Lemieux (seijisensei) wrote :

I don't know if the developer will see this. The "official" Devede forum site at Google Groups just has a bunch of spam, so I don't know where else to post.

I had this problem with x264-encoded files as well. Devede told me the resulting ISO would nearly fill a DVD, but in fact it only was 1.5 GB in size.

I'm wondering whether it might be possible to use mencoder to determine the bitrate of each source file and use that to calculate the expected size of the output file.

Unfortunately, some containers don't include the bitrates; mplayer routinely reports these files as having a bit rate of zero. However,; they can be determined using mencoder like this:

mencoder file.mkv -ovc copy -nosound -o /dev/null -endpos 120

This command "plays" the first 120 seconds of the file into /dev/null then writes a summary like this:

Video stream: 1875.306 kbit/s (234413 B/s) size: 28139352 bytes 120.042 secs 2881 frames

Could this approach improve the size estimation process?