Just noticed that actually even AvCodec doesnt solve the problem entirely.
I now timed some animation by using SeekMusic, and for timing purpose I am using GetAttribute(#MUSIC, 5, #ATTRPOSITION)
When I leave SeekMusic out, Timing is a bit off. Maybe half a second. Location in music is at about 2 minutes.
As in, I used seekmusic to jump to near that 2 minute location to time the animation. And after I had done the timing, I left the SeekMusic out, and let the song play from beginning, resulting in this, maybe half a second off timing.
It is unfortunately noticeable in this case.
This in Windows 11, Hollywood 11.
Minor bug with SeekMusic
Re: Minor bug with SeekMusic
As mentioned before, I know such things from MP3s with variable bitrates. If you're not sure about the format, try reencoding the file to a fixed bitrate, for example in the command line:
ffmpeg -y -i test.mp3 -b:a 256k test256.mp3
ffmpeg -y -i test.mp3 -b:a 256k test256.mp3
Re: Minor bug with SeekMusic
@Flinx, thanks from tip.
Was thinking of converting it to Wav-file, but this solution is much better. Going to try if that works. Main point here being that since it was made by someone else than me, there are some info in the file itself, and if I change it into wav, to my understanding that info will then be gone.
But by converting to another MP3 format, I guess, could keep the info there.
Was thinking of converting it to Wav-file, but this solution is much better. Going to try if that works. Main point here being that since it was made by someone else than me, there are some info in the file itself, and if I change it into wav, to my understanding that info will then be gone.
But by converting to another MP3 format, I guess, could keep the info there.
Re: Minor bug with SeekMusic
@Flinx
Got it properly synced now. Thanks!
Got it properly synced now. Thanks!