Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2006

Tip: Looking for answers? Try searching our database.

audio watermarking

Thread view: 
sznoorek - 18 Dec 2006 22:42 GMT
Hello,
I'm writing a VoIP communicator and i need to put digital watermark into
transmitted audio.
I'm using PCM codecs and I would like to do that with exchanging LSB, but I
have no idea how can I get to the sound sample (8 bit sample, 1 channel) to
switch last bit in each sample. HELP!!!

fsk
Daniel Pitts - 18 Dec 2006 22:49 GMT
> Hello,
> I'm writing a VoIP communicator and i need to put digital watermark into
[quoted text clipped - 4 lines]
>
> fsk
In what way does this have to do with Java?  Please find an appropriate
group for your questions.
Knute Johnson - 19 Dec 2006 05:59 GMT
> Hello,
> I'm writing a VoIP communicator and i need to put digital watermark into
[quoted text clipped - 4 lines]
>
> fsk

Flip a bit?  I haven't had to do that in a long time.

XOR the 8 bit value with 1.

--
knute...
email s/knute/nospam/
Oliver Wong - 19 Dec 2006 18:51 GMT
>> Hello,
>> I'm writing a VoIP communicator and i need to put digital watermark into
[quoted text clipped - 8 lines]
>
> XOR the 8 bit value with 1.

   (1) The OP seems to have trouble with getting the bits themselves. Maybe
if the OP would specify what classes (s)he is using, e.g. AudioInputStream,
it might make the question easier to answer.

   (2) I'm guessing the OP doesn't really want to flip the bit, but rather
to hardset it to either 0 or 1, depending on what the contents of the
watermark is. That is, the OP should be overwriting, rather than flipping,
the bit.

   - Oliver
sznoorek - 19 Dec 2006 19:10 GMT
Hi,
It's me again! ;o
Oliver was right! I'm having trouble with getting bits themselves - and as
he mentioned I'm using AudioInputStream. :)
Then I would like to set the last bit of the sample frame! I've got hash
function, which result I would like to put to the audio stream as a
watermark.

I've got smth like this:

...
if (target_line.isOpen()) {
        audio_input_stream=new AudioInputStream(target_line);
        audio_input_stream=AudioSystem.getAudioInputStream(format,audio_input_stream);

-->            HERE  I would like to get a new input_stream or a byte array,
where in each byte (sample) I need to set the last bit taken from result of
my hash function.

     }
...

I will aprreciate Your help!

fsk
Oliver Wong - 19 Dec 2006 20:10 GMT
> I'm having trouble with getting bits themselves - and as he mentioned I'm
> using AudioInputStream. :)

   Try going through the tutorial at
http://java.sun.com/docs/books/tutorial/sound/sampled-overview.html

   - Oliver


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.