Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a special use case #67

Open
nj9106 opened this issue Oct 26, 2024 · 2 comments
Open

a special use case #67

nj9106 opened this issue Oct 26, 2024 · 2 comments

Comments

@nj9106
Copy link

nj9106 commented Oct 26, 2024

For one audio file, I signed it 3 times with the same key but different messages, eg.

audiowmark add --key test.key t.mp3 t.1.mp3 --short 12 111
audiowmark add --key test.key t.mp3 t.2.mp3 --short 12 222
audiowmark add --key test.key t.mp3 t.3.mp3 --short 12 333

then I split the 3 mp3 files to pieces of about 20 seconds, eg. t1.1.mp3 t1.2.mp3 t1.3.mp3 ... t2.1.mp3 t2.2.mp3 etc, then I selected some pieces from different files, eg. t2.1.mp3 t1.2.mp3 t2.3.mp3 t3.4.mp3 ...., concatenate them to one mp3, eg. t.out.mp3 and try to get signed messages from the file, which should be 222 111 222 333 ... , but I find it doesn't work if the number of pieces are more than about 6.

is it normal? any idea about how to fix it, thanks!

@nj9106 nj9106 changed the title a special usecase a special use case Oct 26, 2024
@tim-janik
Copy link
Contributor

For one audio file, I signed it 3 times with the same key but different messages, eg.

audiowmark add --key test.key t.mp3 t.1.mp3 --short 12 111 audiowmark add --key test.key t.mp3 t.2.mp3 --short 12 222 audiowmark add --key test.key t.mp3 t.3.mp3 --short 12 333

then I split the 3 mp3 files to pieces of about 20 seconds, eg. t1.1.mp3 t1.2.mp3 t1.3.mp3 ... t2.1.mp3 t2.2.mp3 etc, then I selected some pieces from different files, eg. t2.1.mp3 t1.2.mp3 t2.3.mp3 t3.4.mp3 ...., concatenate them to one mp3, eg. t.out.mp3 and try to get signed messages from the file, which should be 222 111 222 333 ... , but I find it doesn't work if the number of pieces are more than about 6.

is it normal? any idea about how to fix it, thanks!

If you split an audio file to apply different watermarks to the pieces, split it again into pieces when you want to detect the watermarks. There is a certain minimum size under which you are unlikely to retrieve any watermark, give it at least half a minute.
Audiowmark is not designed to embed and extract multiple watermarks from the same audio file. You might have limited success with certain A/B block detecting different watermarks if they are not too distorted, but especially the "all" detection at the end averages over all blocks (simply speaking) to improve the watermark signal and that will not work when multiple segments with different watermarks are stitched together.

@nj9106
Copy link
Author

nj9106 commented Nov 4, 2024

I see, thanks for your reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants