Best configuration for precise seeking in MP3

I’m using JW Media Player and Javascript to stream mp3 files from Wowza. Often the seeking is not as precisely as I’d like, but I’m having a hard time figuring out the pattern or where the problem is.

How precise is Wowza when seeking to an mp3 file? I’m making the call

player.sendEvent('SEEK', newPosition);

and I see in the wowza console that the seek is happening.

FEATURE REQUEST:

Can you add the playhead position to the console?

INFO stream seek /bid/15/MyHobby -
INFO stream play /bid/15/MyHobby -
INFO stream unpause /bid/15/MyHobby -
INFO stream stop /bid/15/MyHobby -

The above information would be more useful if it contained relevant timecodes – where it stops, starts, seeks, unpauses, etc.

My question: when I’m creating the mp3 file (usually from a video), are there some parameters I can change that would increase Wowza ability to precisely seek? Because I’m doing a lot of 2-3 second snippets, I’d like to be able to seek with 0.1 seconds, and now, well, now I’m not sure exactly what’s happening, even with a lot of debugging I think it’s hard to get exact values.

Also, is there anything else I can do within Wowza? I think I’ve properly changed the seekTarget values, but maybe I didn’t get all of them, or maybe I should be using ‘audio’.

<Property>
	<Name>seekTarget</Name>
	<!-- valid values are: videoKeyFrame, audio, enhanced //DEFAULT = videoKeyFrame -->
	<Value>enhanced</Value>
</Property>

Thanks!

Tac

I would definitely try “audio”

<Property>
	<Name>seekTarget</Name>
	<!-- valid values are: videoKeyFrame, audio, enhanced //DEFAULT = videoKeyFrame -->
	<Value>audio</Value>
</Property>

On the encoding side, the way to improve is greater frequency of keyframes.

Richard