Why do I extract two different mp3 song durations?
-
I used directshow Imediaseeking::getduration and windows media format sdk to extract mp3 song duration, but I got two different values. Result from IMediaSeeking is about 5 times longer than that from sdk. I am not familiar with structure of mp3. Thanks for any informations about this problem.
-
I used directshow Imediaseeking::getduration and windows media format sdk to extract mp3 song duration, but I got two different values. Result from IMediaSeeking is about 5 times longer than that from sdk. I am not familiar with structure of mp3. Thanks for any informations about this problem.
I'm not at all familiar with the programs/components you are referring to, but I'd be guessing that the mp3 is VBR (variable bit rate). I know in the past some programs have read times wrong because they have been code for a fixed rate. When I die I'd like to go peacefully in my sleep like my father, not screaming in terror like his passengers!!!
-
I'm not at all familiar with the programs/components you are referring to, but I'd be guessing that the mp3 is VBR (variable bit rate). I know in the past some programs have read times wrong because they have been code for a fixed rate. When I die I'd like to go peacefully in my sleep like my father, not screaming in terror like his passengers!!!
Thank you. You are right. It is VBR. Do you have any ideas about how to fix this problem to extract the right duration? My situation is I am using directshow IMediaSeeking::setpositions to set the stop time(absolute), directshow IMediaSeeking::getduration extract the wrong duration (5 times longer). Is there any way to extract right duration from VBR mp3 using directshow? Thanks again.