Minor bug with SeekMusic

Report any Hollywood bugs here
Bugala
Posts: 1431
Joined: Sun Feb 14, 2010 7:11 pm

Re: Minor bug with SeekMusic

Post by Bugala »

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.
Flinx
Posts: 383
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Re: Minor bug with SeekMusic

Post by Flinx »

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
Bugala
Posts: 1431
Joined: Sun Feb 14, 2010 7:11 pm

Re: Minor bug with SeekMusic

Post by Bugala »

@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.
Bugala
Posts: 1431
Joined: Sun Feb 14, 2010 7:11 pm

Re: Minor bug with SeekMusic

Post by Bugala »

@Flinx

Got it properly synced now. Thanks!
Post Reply