[vlc-devel] No duration for Speex-files - needs calculation
Haakon Meland Eriksen
haakon.eriksen at far.no
Wed Aug 12 13:03:08 CEST 2009
Hi, I regularly format speech to Speex format (.spx). However, VLC
version 1.0.1 doesn't give any duration for Speex-files.
Here is a link on how to calculate this
http://lists.xiph.org/pipermail/speex-dev/2006-May/004509.html
with an example:
"You only need to keep track of the number of packets in the file. Then:
encoded_speex_frames = (frames_per_packet * Packets)
= 1 * 272
= 272
audio_samples = encoded_speex_frames * frame_size
= 272 * 640
= 174080
duration = audio_samples / rate
= 174080 / 44100
= 3.947
"
Is it possible to fix this?
Cheers,
Haakon
More information about the vlc-devel
mailing list