Decoder from DVI/RTP 4 bit mono to PCM linear 16 bit

Hi all,
I am getting audio data as DVI/RTP 4 bit mono as input stream but not able to create player for this can any one send me any decoding function so that i can change this data to PCM linear 16 bit format

I guess, one topic is more than enough... http://forum.java.sun.com/thread.jspa?threadID=5213182&tstart=0
Just get the specs of the data format and do the decoding yourself.

Similar Messages

  • How to decode audio data from dvi/rtp to PCM linear

    Hi all,
    I am getting audio data as DVI/RTP 4 bit mono as input stream but not able to create player for this can any one send me any decoding function so that i can change this data to PCM linear 16 bit format

    S+S, ahh an academic.
    This is actually a forest-trees issue here.
    What your doing is appending the files, which would result in a size of 2S. What you want is somthing of size S. To do this you would need a Normilized merge. I say normalized merge because thats going to give you the best result while still avoiding out of range values.
    This is easy enough to by hand if both streams S1 and S2 are of the same frequency. If they are not the same frequency, the result will be size of the larger file when convereted to whatever uniformfrequency.

  • DVI/RTP packet decode

    Hi,
    I need to stream audio and/or video to a PDA device. There is a trick here which is:
    The PDA must receive the stream from a multicast address. For this I have implemented a Bridge application which joins the multicast group on behalf of the PDA and receives the Multicast RTP packets (which are sent from JMStudio) and Unicasts them to the PDA.(HP iPAQ) I had no problem implementing this. The streaming is done using JMStudio player which encodes the streaming audio data into a number of encodings (DVI/RTP in my case). I choose DVI/RTP and stream a .wav audio file.
    Now I have to accept the packets and play the stream on the PDA.
    The j2me application receives all the RTP packets successfully and I can extract usefull information from the packets such as: Timestamp, sequence number, payload type. The payload type is 5 which means it is a DVI4 encoding.
    I use the following method to decode the samples:
    public int decode(Object state, byte[] input, int inp, int len, short[] output, int outp) {
    int sign;
    int delta;
    int vpdiff;
    //int valprev = audio.Convert.byte2short(input, inp);
    //int index = input[inp + 2];
    int valprev=0,index=0;
    int inputbuffer = 0;
    int bufferstep = 0;
    valprev = input[0] <<8;
    valprev |= input[1] &0xff;
    index = input[2] &0xff;
    if ( index < 0 ) index = 0;
    else if ( index > 88 ) index = 88;
    int step = stepsizeTable[index];
    inp += 4;
    len = (len - 4) * 2;
    int count = len;
    while(count-- > 0) {
    if ( 0 == bufferstep ) {
    inputbuffer = input[inp++];
    delta = (inputbuffer >> 4) & 0xf;
    bufferstep = 1;
    } else {
    delta = inputbuffer & 0xf;
    bufferstep = 0;
    index += indexTable[delta];
    if ( index < 0 ) index = 0;
    else if ( index > 88 ) index = 88;
    sign = delta & 8;
    delta = delta & 7;
    vpdiff = step >> 1;
    if ( (delta & 4) == 4 ) vpdiff += (step << 2);
    if ( (delta & 2) == 2 ) vpdiff += (step << 1);
    if ( (delta & 1) == 1 ) vpdiff += step;
    vpdiff >>= 2;
    if ( 0 != sign )
    valprev -= vpdiff;
    else
    valprev += vpdiff;
    if ( valprev > 32767 )
    valprev = 32767;
    else if ( valprev < -32768 )
    valprev = -32768;
    step = stepsizeTable[index];
    output[outp++] = (short) valprev;
    ((AdpcmState)state).valprev = valprev;
    ((AdpcmState)state).index = index;
    return len;
    which stores the result into a short[] array.
    I then convert this short[] array into a byte[] array with the following way:
    s is the short[] array
    adp is the byte array
    for(int g=0,k=0;g<s.length;g++,k=k+2){
    audio.Convert.short2byte(s[g],adp,k);
    public static void short2byte(short ival, byte b[], int offset) {
    int i;
    int bits = 16;
    for(i = 0; i >< 2; i++) {
    bits -= 8;
    b[offset + i] = (byte) ((ival >> bits) & 0xff);
    The final result is loaded to the player as follows:
    ByteArrayInputStream input1 = new ByteArrayInputStream(adp);
    player = Manager.createPlayer(input1, "audio/x-wav");//create new player
    player.addPlayerListener(this);
    player.prefetch();
    player.realize();
    player.start();
    The player begins to play but I only get horrible sounds instead of the original wave file
    The player now initializes ok without any problem but I can only hear a meesed up sound rather than the original. So now I strongly believe that the problem is in the decoding of the samples of the DVI/RTP codec.

    thesti wrote:
    how JMF deal with RTP packet loss? since my application doesn't handle anything due to RTP packet loss, i believe that JMF has a mechanism to deal with it.It "deals" with it by having a blank spot in the rendering where that packet would have gone...

  • Does JMF2.1.1 cross platform version support dvi/rtp

    hi!!!
    does JMF2.1.1 cross platform version support dvi/rtp ,8000.0 Hz,4-bit format???
    when i type java AVTransmit2 javasound:/0 224.0.0.1 22222 at the konsole in linux i am getting the following error:
    Audio not supported: interface TargetDataLine supporting format PCM_SIGNED, 44100.0 Hz, 16 bit, stereo, little-endian, audio data, and buffers of 22050 to 22050 bytes
    Audio not supported: interface TargetDataLine supporting format PCM_SIGNED, 44100.0 Hz, 16 bit, stereo, little-endian, audio data, and buffers of 22050 to 22050 bytes

    hi,
    I still dont understand well the jmf either, but i can confirm that i am able to capture audio (using javasound://8000) to capture at 8Khz, setting a processor model with this source, AudioFormat.DVI_RTP and ContentDescriptor.RAW_RTP
    and my transmition happens well:
    dvi/rtp, 8000.0 Hz, 4-bit, Mono
    I JUST CAN CONFIRM THAT JMF 2.1.1 DO SUPPORT DVI/RTP 8000.0 4BIT
    as per the documentation, a processor model requires:
    1. a datasource
    2. an imput audio format
    3. the output content description
    one will think then that the audio imput should be linear and the output should be div/rtp, but it seems it doesnt work like that, im digging on the docs with no success till now, so by experiments i can say that somehow the imput audio format, already tells the kind of coder one will use, that case, DVI/RTP. This means, the data is encoded to a special DVI format who prepare the packets to be Transmitted, and then on the output content one says, is data ready to be transmitted, since is already packetize you say just content is raw or raw_rtp.
    you can not for example say, then ok, convert my imput to a DVI and then packetize it to a (DVI)/RTP, because in this case you will have, starting from the capture device:
    LINEAR convert to DVI> DVI packetize> DVI_RTP -----> Tx
    why not? because there is no codec that receives DVI and convert it to DVI_RTP,
    the only one we got is com.ibm.media.codec.audio.dvi.JavaEncoder
    this one is only able to take linear and convert it to DVI/RTP
    so you have to use the model
    LINEAR ----> DVI/RTP -----> CONTENT = RAW ----> tx it, sink it, but not write...
    to write there are more problems, but that was not the question, just tx
    if someone can explain this better or point to a docs were it is explain it, ill appreciate,
    regards,
    jahm

  • Ms decoder from scratch

    Anyone know how to make an MS decoder from scratch in Logic. It would be used to process MS material recorded as a stereo file. The direction mixer lacks flexibility. The sub group system seems to prevent me achieving two separate mono signals to treat. It's easy in PT . Stereo track to bus 1-2, aux 1 input bus 2 panned hard left, aux 2 input 1 panned centre, aux 3 input bus 2 panned hard right with phase reversed using a trim pug-in. All aux's to output 1-2. It would be easier to explain with a little screen grab, but I also don't know how to put a graphic in this post, (along with a shed load of other stuff that don't know despite being 57 -ha!)
    cheers
    chris

    Make a duplicate of your stereo track, insert in each channel waves S1 MS Matrix and pan each one hard left and right, set output of 1 to bus 1 and the other to bus 2. Bus 1 and 2 should be stereo tracks panned center. Insert waves S1 Imager with input set to set to M input S an polarity to + as the last plugin in both busses. Any plugin you insert between SI Matrix And S1 Imager in bus one will be affecting the left output , that is the mono program . The bus 2 program will be the stereo program and you can process each separately with this setup.
    Hope this works for you
    Andres

  • Viterbi Decoder from LabVIEW RF Communications

    Hi guys~!
    I am trying to develop a 32-bit Viterbi decoder. I am currently using the Viterbi decoder from the FPGA RF Communications Library available here. However, I can't seem to get it right. The 'decoded bit' output of the Viterbi decoder VI is always zero, no matter what the encoded symbol is. I put the VI inside a while loop while constantly inputting two-bit encoded input inside the VI. The VI I am using is posted in the picture and the project I developed is in the zip file! Many thanks!
    Solved!
    Go to Solution.
    Attachments:
    Viterbi.PNG ‏16 KB
    Decoder Test.zip ‏986 KB

    Hi ArisEnding!
    I have looked through the Viterbi Decoder example as well as your code and there seems to be discrepencies. It looks like you have removed the trellis information as well as the hamming information from the block diagram. I am not an expert with the Viterbi Decoder algorithm but these seem to be needed by the algorithm. It does look like you modified this on purpose. If you are looking for others with a more intimate knowledge of the Viterbi Decoder algorithm, I would recommend posting to the Viterbi Decoder example community page.
    Best,
    -tannerite
    Tannerite
    National Instruments

  • Print to Laserjet 1020 hosted by Windows 7 64 bit via network from Windows 7 32 bit

    I am trying to print from Win 7 32 bit to a HP 1020 connected to a 64 bit Win 7. (the 64 bit is a new computer).
    I have tried all the suggestions posted:
    Downloaded updated 32 bit driver to the 32 bit PC.
    I have also assigned the printer to a port on the computer.
    I enabled on the 64 bit printing from a x86 computer.
    Nothing helps.
    When I print, the job gets stuck on the computer connected to the printer. When i release the spool, it then prints the page.
    I was able to print when all the PCs were 32 bit (and XP before that).

    Hi NDK
    The host base driver is the same for both Win 7 32 & 64 bit operating systems.
    Win 7 32-bit:
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=bi-88660-1&cc=us&dlc=en&lc=en&...=
    Win 7 64-Bit:
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=bi-101596-1&cc=us&dlc=en&lc=en...=
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • Can't Print/Connect from Windows 7 64 bit to Shared PSC 1315 on Windows 7 32bit Machine

    Can't Print/Connect from Windows 7 64 bit to Shared PSC 1315 on Windows 7 32bit Machine...
    I tried to install driver on connecting PC, i tried to install printer as Local printer with local port - \\WIN7-32bit\HP PSC 1310 Series\ - and  i got access denied, and before i reinstall Windows on 64Bit machine its worked correctly... anyone know how to solve this problem ?
    *Edited*
    When i connect it on 64 Bit machine printer requesting driver *.inf and not specific file...
    i try to install 64bit driver on 32 bit machine in sharing options and they didn't support it...

    More than likely, you are receiving the access denied error because there may not be a HomeGroup in place.
    To handle networks securely with Windows 7, Microsoft took a different approach.  A HomeGroup essentially creates a trust among all the devices in that home group.  If a device is not in that homegroup, then that system will essentially be denied access.
    Click on Install a printer on a home network to get basic steps to install a printer in a network environment.
    Click on HomeGroup: recommended links to get more information about Home Groups, including setting one up.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Can't print from IE 8 64 bit version only

    I am running windows 7, 64 home premium.  I have a HP c4599 all in one printer.  I installed all the latest drivers/software from the HP site. 
    I have no problems printing from any application such as word, excel, opera, etc.  I can even print from IE 8, the 32 bit version.  However, if I attempt to print from IE8, the 64 bit version, when I select print and then printer and then hit print nothing happens.  I don't get any error messages or anything.  Nothing gets put in the queue. 
    Does anyone know what the issue is?  Can you not print from IE 8 64 bit?  It is strange that I have no issues printing from any other program.
    Thanks!

    Had the same problem but fixed by using other designated printer as default but printing to the same printer.
    Could print a test page from new 8500 wireless printer and docs from Excel, Word etc but nothing from IE8 using the print drivers for Windows 7-64bit....decided to use old Officejet 7680 printer and it worked for all situations including IE8......compared both  printer test pages and discovered the environment for the 8500 which didn't work was windows NT x86 and the environment for the 7680 that worked was windows x64.......interestingly the driver names were the same, the config file was the same and the help file was the same, etc  but the data file was different too. The data file for th 8500 was hpw185g3.gpd and the data file for the 7680 was hp7600t.gpd. In other words, I select a 7680 printer software to print to the 8500 hardware.
    Recommend you add a 7600 printer choice (or some other hp model) and compare printer test pages printed from the same printer .....hope it works.

  • Unable To Sync After Migrating From Win XP(32 bit) to Win 7(64bit)

    I received a new PC, dual core platform, for XMAS.  However, I received a Com 1 port failure when performing a Hot Synch to upload my PD(,M500) data to Palm Desktop on the new PC.  Palm tech support said there is no USB driver available for the 64 bit OS.  Does anyone have a 3rd party USB driver, or any other suggestions to allow me to do a Hot Synch on my new PC.
    Thx,
    Ed
    Post relates to: Palm m500

    Originally Posted by mystico2
    Hello, i just migrated from windows xp 32 bit because my hd crashed, and installed a new 1 tb hd, with win 7 64 bit, i installed my sb audigy 2 zs sound card, and everything works great, videos, music etc, i have my 5.1 working fine, but if i use flightsim fs2004, the only game i use, the sound doesnt work, it does strange thinks like sound inside the cockpit but no outside and viceversa in some planes, ..it only works fine in my 2 channel default old sound card, i downloaded the drivers that in creative page say are for win 7, but the same happened...
    any help?
    Try to use Windows XP SP2/3 compatibility mode first, see if it works for you. And use Alchemy for the Audigy 2 ZS, FS2004 is making use of Directsound after all. Read the guide for using Alchemy here and here. Download Creative Alchemy here.
    Hope it works for you!

  • Please help, from win xp 32 bit to windows 7 64 bit, problem in flightsim with sb audigy 2 zs

    Hello, i just migrated from windows xp 32 bit because my hd crashed, and installed a new 1 tb hd, with win 7 64 bit, i installed my sb audigy 2 zs sound card, and everything works great, videos, music etc, i have my 5.1 working fine, but if i use flightsim fs2004, the only game i use, the sound doesnt work, it does strange thinks like sound inside the cockpit but no outside and viceversa in some planes, ..it only works fine in my 2 channel default old sound card, i downloaded the drivers that in creative page say are for win 7, but the same happened...
    any help?

    Originally Posted by mystico2
    Hello, i just migrated from windows xp 32 bit because my hd crashed, and installed a new 1 tb hd, with win 7 64 bit, i installed my sb audigy 2 zs sound card, and everything works great, videos, music etc, i have my 5.1 working fine, but if i use flightsim fs2004, the only game i use, the sound doesnt work, it does strange thinks like sound inside the cockpit but no outside and viceversa in some planes, ..it only works fine in my 2 channel default old sound card, i downloaded the drivers that in creative page say are for win 7, but the same happened...
    any help?
    Try to use Windows XP SP2/3 compatibility mode first, see if it works for you. And use Alchemy for the Audigy 2 ZS, FS2004 is making use of Directsound after all. Read the guide for using Alchemy here and here. Download Creative Alchemy here.
    Hope it works for you!

  • Cannot Change From 16 to 8 bits per channel

    I have never had this happen before:  I cannot change the image I am editing from 16 to 8 bits per channel.  Also odd is when I click on an adjustment layer I have created it is not highlighted in blue. 
    Thanks

    See if your in quick mask mode.
    Icon at the bottom of the toolbox and look at the top left of the document window and see if it says quick mask.

  • System Copy/ Oracle Backup/Restore as part of migrating from 32 to 64-bit

    Source system (I386): R3E47 Ext Set 2.00 SAP_BASIS 620 Kernel 640 Windows 2000, Oracle 10.2.0.4, non-unicode
    Target system (x86-64/AMD64): R3E47 Ext Set 2.00 SAP_BASIS 620 Kernel 640 Windows 2000 Oracle 10.2.0.4, non-unicode
    Am using method System Copy/ Oracle Backup/Restore to migrate from 32 to 64 bit (HOM System Copy).
    Actions on source system:
    a) Upgrade from 9.2.0.7 to Oracle 10.2.0.4
    b) Used ora_br_copy.bat to generate CONTROL.SQL and init<sid>.ora
    c) Switched logfiles
    d) Performed offline backup
    Actions on target system:
    a) Installed Oracle 10.2.0.1 and patched it to 10.2.0.4
    b) Used CD 51033746 "6.20/6.40 based products Installation Master (Edition May 2008)" to install the CI
    c) Started installation of the DB instance selecting System Copy/ Oracle Backup/Restore (same <SID> for source and target systems)
    Relevant input parameters used:
    Database schema: SAPR3
    Database character set: US7ASCII
    d) When SAPINST stopped to allow for restoring of datafiles, logs and init<sid.ora>:
    - copied datafiles and logs to the usual place
    - copied CONTROL.SQL (edited to include utilrp.sql and utlrp.sql for the migration from 32 to 64) to the DB-instance intallation . directory.
    - copied generated init<SID>.ora to the <ORACLE_HOME>\database
    e) Resumed SAPINST.
    David Byrne in a previous post suggested: "check your oracle alert file in case there are errors there you may need to update the word size for the 64bit install. Errors like this in the oracle alert file would suggest that.,
    ORA-12012
    ORA-06544: PL/SQL: internal error, arguments: [ORA-06544: PL/SQL: internal error, arguments: 56319], [, ], [, ], [, ], [
    ORA-06553"
    Well, I am getting ORA-06553: PLS-801: internal error [56319] but then my edited CONTROL.SQL (which is mainly a CREATE CONTROLFILE as it would be obtained with a ...BACKUP CONTROLFILE TO TRACE) includes at the end this:
    shutdown immediate
    startup upgrade
    spool utlirp.log
    @?/rdbms/admin/utlirp.sql
    spool off
    Shutdown immediate
    Startup
    Spool utlrp.log
    @?/rdbms/admin/utlrp.sql
    Spool off
    exit
    which is supposed to do just that... (I think)
    Help, anyone?

    > Trying to cheer me up, are you?
    No
    > It is NOT free that reorganization! Quite expensive, actually, paid for in time! But you're right... the database needed a reorg anyway :-\
    True, not "free" - it takes time but the data will be nicely aligned then
    > And why would I have to reconfigure all those 10.2 features? Everything's either in the database or init<sid>.ora, ain't it? And my database is a pretty 10.2.0.4 with all those nice features already activated...
    No - not really auotmatically if you upgraded from 9.2 And "init<SID>.ora" is past, you nowadays use "spfile" If, of course, e. g. Automatic Undo was activated in 9.2 then it's there of course in 10.2 too.
    > One sticky point... I haven't really read the r3load procedure yet and I will before I import, but... I would say I don't have to do anything about the 32->64 bit, right? I mean, it should behave properly while reloading on 64-bit...
    The exported content is about 10 % of the size of the system, it's database and OS independent so yes, you can import it nicely on 32bit. Another tip: make sure you don't just use the default configurations for R3load, it will take a HUGE amount of time. Use the package splitter (builtin-in in sapinst) so you get a much higher parallelism when importing.
    Markus

  • IPOD 60GB will not transfer PHOTOs from my XP 64 bit computer

    iPOD 60GB will not transfer PHOTOs from my XP 64 bit computer - I get read/write to iPOD hardrive error message. Everything esle is working (including iPOD update). Is it something I am doing wrong or is it not compatible with Window XP Pro 64 Bit just for photo transfer?
    AMD 3500   Windows XP Pro   Windows XP 64 bit

    I Loaded the iPOD software into an older 32 bit computer running windows XP Home edition and it works fine. As I suspected, it is NOT compatible with windows XP 64 Bit Pro edition OS - Beware! When is Apple going to update their software to run iTUNES & iPOD using the latest 64 BIT computer proessors?

  • Inplace and side by side upgrade from windows 2003 64 bit R2 contains SSRS 2008 R2 to windows 2008 64 bit R2

    Hello All,
       Case 1 -In place upgrade
       I would like to do in place upgrade from windows 2003 64 bit R2 that contains SSRS 2008 to windows 2008 R2 64 bit. The upgrade would be happened at OS level not at SSRS level.
       I would like to know what are the  necessary steps should be taken  prior/during/post  upgrade from SSRS end  as we can not rollback if there is some issue with in place upgrade.
      Case 2-Side by side upgrade
      I would like to do side by side migration from windows 2003 32 bit  that contains SSRS 2008 to windows 2008 R2 64 bit. The side by side  would be happened at both OS level and  SSRS level.
      I would like to know what are the  necessary steps should be taken  prior/during/post side by side migration  from SSRS end.

    Before doing anything Take backups .
    In case of reporting services..
    Back up your symmetric key. For more information.
    Back up your report server databases and configuration files. For more information.
    Back up any customizations to existing Reporting Services virtual directories in IIS.
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Thanks,
    Shashikant

Maybe you are looking for

  • Trouble with home page being indexed

    Hi For some reason my home page isn't being indexed by Google and I can't understand why. If I put in site:thelittlethings.info/Home.html into Google it doesn't appear but it does if I go to that URL so it definitely exists in that form. If I put jus

  • Which Mac Mini has i7 and WiFi AC

    I have read that the Mac Mini is finally upgraded. That means available i7 and WiFi 802 ac. What is the model number for this upgrade?

  • Return to PP5 from another app.

    Using Premiere Pro 5 with PC. When I return from another application I get the spinning circle of death, not responding. I'm sure it is because of MXF files from P2 media linking up. My project has about 128 elements but in the MXF format you could t

  • After Effects CS5 - Rendering Help!

    I recently got AE CS5.  When I had CS4, i would always render it as a Windows Media File (.wmv).  But now in CS5 when I render it as that, it just messes up. The size of the finally rendered HD clip will be no more than a few hundred KB's, and someti

  • Change to user of iPod touch in Tunes 9 - how?

    hello i downgraded to iTunes 9, because iTunes 10 did not recognize my iPod touch (1G) anymore. more or less all went fine, playlistes are here and so on... my ipod is recognized , but with an different user! and: iTunes does not find the apps on my