Hello,
Thanks again for the feedback. After a bit more experimentation, I've come to
the following conclusions:
1) The source of my poor performance is the fact that the files are being
streamed across the network. This is a requirement for the application I'm
building, so i can't get around that easily.
2) Due to the above, any method that requires reading the entire file is going
to be slow.
So, for constant bit-rate encodings, would it be possible / sensible to just
read enough to determine the bitrate of the video and audio stream(s), and use
that and the total file size to determine the duration of the video streams?
For example, if there's one video stream at 1.5Mbps, and an audio stream at
0.5Mbps, and the file is 2GB large, that must give us 1.5 GB of video stream,a
dn 500MB of audio stream. Dividing 1.5Gb by 1.5Mbps gives us 8000 seconds of
video.
Ummmm, is this a valid calculation? If so, how accurate is it likely to be?
If it is a valid calculation, could I apply a similar formula to variable
bit-rate encodings? If so, what's a typical margin of error one could expect?
I realize that this is now drifting slightly off-topic... but any help would be
much appreciated!
Thanks once again!
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Libmpeg2-devel mailing list
Libmpeg2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmpeg2-devel