Audio and Network is failing

Hello.
This may be more of a general hardware issue, but I am posting this here because it may be a problem with Arch.
So anyway I am using a computer with a G41MT-S2PT motherboard and an Audigy Fx soundcard. I bought the sound card because the sound on my motherboard stopped working. It worked fine for a few months, however sometimes when I booted up the computer the sound would not be working. This was always fixed on a reboot.
Recently I was trying to get the audio input to work so I could use my mic in Guns of Icarus Online. It did not work at all, it would only give me static sometimes. I had also confirmed the headphones did work on another computer, and the mic in was definetly unmuted in the mixer. I practically tried all possible mixer combinations, none worked. Then I looked through troubleshooting on the wiki, and found that there is a section on only getting static through the mic. I followed that, and that's when my sound stopped working. I set the config file (/etc/pulse/daemon.conf) back to what it had been before, but this did not seem to fix it.
To check if it was just Arch, I booted up my old Windows XP. It also was not able to play sound, and also BSoDed me. After testing on Arch and Windows, my network somehow stopped working only on Arch. This was also very odd, as I didnt touch anything network related at all, unless somehow booting Windows broke something.
My dad says this is probably a problem with the mobo. Is it possible that the mobo is breaking or did I just majorly screw something up?

sounds to me hardware issue best advice do a full reinstall of arch an windows ( making sure to back up arch home folder an windows docs music etc ) an then reinstall both OS then when installing arch do pacman -S os-prober before you install the grub-install /dev/sdx command an that should sort it if not then your motherboard is going out ( but it can be fixed with a simple repair ) ( ie unsolder the jack an resolder a new one ) or take the mobo out an look for burn marks desolder points etc if there are an the board is older then moses get a new one

Similar Messages

  • 945 PL Audio and Network intermittent problems...

    Hello,
    Hopefully someone can help me here. I recently built a comp for a friend with a 945PL Mobo and a dual-core 2.66 Ghz processor. Everything is fine, except that the audio sometimes works, and sometimes doesn't. This includes when I disable the onboard audio and switch to a 3rd party card. Also, I have hooked the comp up to my network in order to update windows, and everything worked fine, except for the fact that with each restart, I had to unplug the network cable and plug it back in.
    I have reinstalled both the audio drivers and the drivers for the network card, as well as disabling/uninstalling the components and then reinstalling them.
    Currently, the audio is working again(had ONE instance where it wasn't working, and I went to log out, and it started working again...). Usually, it will work for a minute or two, and then stop, with NO errors.
    Unfortunately, the network card just keeps trying to establish a connection, so I can't get the comp online to update anything.
    I have also tried flashing the BIOS, except that I can't get it to work for some reason. I followed the instructions provided here, but the BIOS utility doesn't seem to want to run. Maybe I'm missing something.
    If anyone has ANY idea what might be going on, it would be GREATLY appreciated!!
    This is driving me nuts, and also making me look like a moron to the friend I built the computer for.
    Thanks!!
    Mike Wells

    "What's your full system build? Please list out."
    Sorry for the slow reply, I've been seriously busy...
    System:
    945 PL Mobo
    2.66 Ghz Dual Core P4 Processor
    1 Gb Crucial DRAM
    Radeon X550 PCI Express Video Card with 256 Mb RAM
    Maxtor 250 Gb SATA HDD
    Sony DVD-ROM
    Pioneer DVD Burner
    Cooler Master Case
    Thermaltake Typhoon cooler
    Audio and Ethernet are both built in.
    I have updated the audio, the ethernet and the INTEL drivers, still no luck. The network card continues to try and get on the network(Funny thing, I can access my router, but even if I hook straight up to the cable modem, it never accquires an address.). The audio worked MOST of the weekend, but it still stopped working on two occasions. I left in on for hours at a time, I restarted a million times, I even played full CD's to see if there was any pattern to the audio issue, nothing seemed to show up, except that it doesn't go out while playing something...
    Hope this helps.
    Does anyone think that this could be a Windows issue, even though putting in another souond card didn't help? I haven't installed so much software at this point that a re-install would be too much of a pain in the butt...
    Once again, thanks for helping.

  • [SOLVED] linux-grsec on macbook pro 9,2 - battery and network problems

    I have a macbook pro 9,2 on which I am dual booting OS X and arch. I am using xfce as my DE on the arch installation. Since installing and switching over to linux-grsec, my system seems unable to detect the presence of a battery (specifically my arch system - OS X still detects my battery just fine). The xfce battery monitor panel icon sits at 50% and does not change regardless of whether AC power is connected or not. Xfce power manager can detect whether or not the computer is receiving AC power, but does not show the existence of a battery. Running
    # acpi -b
    yields an empty output, as does running
    # dmesg | grep -i battery
    These methods all properly detected my battery prior to the installation of linux-grsec. I was unable to find any similar problems via google or the arch forums, and find myself at a loss for where to look to learn what I need to do to resolve this. I would very much like to avoid returning to the default kernel, if possible. I appreciate any assistance that you can offer, though if given a choice I would prefer the means to figure out the answer over the answer itself.
    Last edited by Olorin (2015-01-10 20:48:07)

    Update:
    Regarding the battery: I have determined that the update I performed had nothing to do with the detection of my battery. Arch detects my battery when AC power is connected during bootup (and continues to detect it even if I remove AC power after bootup), and does not detect my battery if AC power is not connected during bootup (and continues to not detect it even if AC power is connected after bootup). I did not notice before because by coincidence I started using my macbook without the power cord attached at the same time that I installed linux-grsec. Now that the problem is more clear and specific, I am migrating it to its own post found here.
    Regarding bandwidth usage: Conky and Network Manager failing to display bandwidth usage actually occured immediately after switching to linux-grsec, I just did not notice this failure at first. The problem ended up being quite simple. Unbeknownst to me, linux-grsec changed my wireless interface name from wlp2s0 to wlp2s0b1. Network Manager and Conky were therefore failing to display bandwidth usage because they were both using wlp2s0 instead of wlp2s0b1. Correcting the interface name in .conkyrc and the network applet settings fixed the problem.
    Last edited by Olorin (2015-01-11 00:44:42)

  • Time Machine and Time Capsule - Failing with Network Problem

    My problems with TM/TC have been ongoing for a couple of months now and I am going round in circles - need help.
    This is the second post I have made, the first got lost in people suggesting the obvious - so I will try to be a little more specific if I can.
    I will detail the current state first - i.e. where I am now - after I will list what I have done so far to get to this point.
    Currently, my iMac (intel) is directly connected by Ethernet 1GB to the Time Capsule. The TC is then connected to a Netgear router which in turn is connected to Internet.
    I have no network problems at all - internet connection is fine. the Netgear Router has the latest firmware version and is working fine. The porblems i have are nothing to do with this.
    The time Capsule is in Bridge mode and getting a reserved dhcp IP address from the Netgear router.
    The Time Capsule has been fully reset - i.e. power cable out, hold the reset button, plug in power cable (spark, spark), hold reset button, fast blink for 20 seconds or so, light goes out, release button.
    I have re-applied the latest Time Capsule firmware.
    I have renamed the disk on the Time Capsule.
    I have renamed my iMac and deleted all the time capsule entries from Keychain.
    I have re-installed Mac OSX and re-updated to the latest 10.5.6 release.
    At the moment I have kicked off a backup with a lot of large files - like music folder, video folder etc excluded. I also have parallels and have excluded the disk image. I have 1 other 50GB disk image which is also excluded.
    I am expecting the first initial backup will complete successfully.
    I will then remove music and video from exclusions and allow them to backup. I am expecting this will complete no problem. (I do this because the upcoming problem will happen if I move away from the machine - and I dont want to sit there for 2 days).
    So up to this point TM and TC have performed flawlessly. The issue that follows started happening before the 10.5.6 update after backing up with no issues for months. At this point I will be able to use TM to browse the backup and restore files. I will be able to mount the sparse bundle and browse files. Spotlight reports no issues and indexes quickly.
    If I leave my machine after a successful backup and the hourly update kicks in it will fail with 'A Network problem' basically saying the backup has filed because of a network problem, but is not any more specific, logs show far too much to put the whole thing here, but the following is an excerpt
    Dec 23 05:19:49 MickMac /System/Library/CoreServices/backupd[1499]: Backup destination mounted at path: /Volumes/Backup
    Dec 23 05:19:50 MickMac hdiejectd[1519]: running
    Dec 23 05:19:51 MickMac kernel[0]: jnl: disk1s2: replay_journal: from: 28864512 to: 30084096 (joffset 0x1d0f000)
    Dec 23 05:21:49 MickMac kernel[0]: jnl: disk1s2: journal replay done.
    Dec 23 05:21:49 MickMac /System/Library/CoreServices/backupd[1499]: Disk image /Volumes/Backup/MickMac_001ec215ce76.sparsebundle mounted at: /Volumes/Backup of MickMac
    Dec 23 05:21:49 MickMac /System/Library/CoreServices/backupd[1499]: Backing up to: /Volumes/Backup of MickMac/Backups.backupdb
    Dec 23 05:21:49 MickMac com.apple.launchd[1] (com.apple.netauth.sysagent[1500]): Stray process with PGID equal to this dead job: PID 1503 PPID 1 check_afp
    Dec 23 05:21:55 MickMac fseventsd[38]: event logs in /Volumes/Backup of MickMac/.fseventsd out of sync with volume. destroying old logs. (3627 125 5482)
    Dec 23 05:27:33 MickMac /usr/sbin/ocspd[1539]: starting
    Dec 23 05:30:27 MickMac kernel[0]: ASP_TCP HoldPendingReqs: holding slot 5 reqID 5400 flags 0x9 afpCmd 34 so 0x7e78cc0
    Dec 23 05:30:27 MickMac kernel[0]: ASP_TCP Disconnect: triggering reconnect by bumping reconnTrigger from curr value 0 on so 0x7e78cc0
    Dec 23 05:30:27 MickMac kernel[0]: AFP_VFS afpfs_DoReconnect started /Volumes/Backup prevTrigger 0 currTrigger 1
    Dec 23 05:30:27 MickMac kernel[0]: AFP_VFS afpfs_DoReconnect: doing reconnect on /Volumes/Backup
    Dec 23 05:30:27 MickMac kernel[0]: AFP_VFS afpfs_DoReconnect: soft mounted and hidden volume so do not notify KEA for /Volumes/Backup
    Dec 23 05:30:27 MickMac kernel[0]: AFP_VFS afpfs_DoReconnect: Max reconnect time: 30 secs, Connect timeout: 15 secs for /Volumes/Backup
    Dec 23 05:30:27 MickMac kernel[0]: AFP_VFS afpfs_DoReconnect: connect to the server /Volumes/Backup
    Dec 23 05:31:26 MickMac kernel[0]: ASP_TCP CancelOneRequest: cancelling slot -1 error 89 reqID 1 flags 0x9 afpCmd 0 so 0x7e78cc0
    Dec 23 05:31:26 MickMac KernelEventAgent[34]: tid 00000000 received VQ_DEAD event (32)
    Dec 23 05:31:26 MickMac KernelEventAgent[34]: tid 00000000 type 'afpfs', mounted on '/Volumes/Backup', from 'afp_0V1fqC1mgalO00mE1H0Pyetl-1.2d00000a', dead
    Dec 23 05:31:26 MickMac kernel[0]: AFP_VFS afpfs_DoReconnect: Open Session failed 57 /Volumes/Backup
    Dec 23 05:31:26 MickMac kernel[0]: AFP_VFS afpfs_DoReconnect: max reconnect time reached 60 > 30 /Volumes/Backup
    Dec 23 05:31:26 MickMac kernel[0]: AFP_VFS afpfs_DoReconnect: posting to KEAType IO] [ErrNo 5] [IOType Read] [PBlkNum 1248] [LBlkNum 155] [FSLogMsgID 501572642] [FSLogMsgOrder First]
    Dec 23 05:31:26 MickMac kernel[0]:
    Dec 23 05:31:26 MickMac fseventsd[38]: failed to unlink old log file /Volumes/Backup of MickMac/.fseventsd/0000000000ccb02b (Input/output error)
    Dec 23 05:31:26 MickMac kernel[0]: disk1s2: 0x14 (UNDEFINED)."
    It goes on and on and is repeated every hour. For each one I get an error message on screen saying backup failed due to a network error. However I have tried a manual download over the same period set at an extremely slow rate so that it was downloading during this time and it showed no errors. I.e. the network connection from imac, through TC to netgear and out to internet - and monitored this while time machine showed these errors (i.e. at the same time) and this showed no connection problems at all and completed succesfully.
    I know TM uses an internal address to do backups, but uses the same cable and network card to get the job done. I am simply removing the cable as a source of issue although I have also replaced this making no difference.
    Applecare are involved and have so far been sent 2 sets of logs and so far have not been able to find the cause. New TC is on its way to try that, although they think it is something on the imac that is causing this.
    Sleep mode is turned off although screen sleep is on. The tick is not in the box for putting hard drives to sleep whenever possible.
    Now, after this has happened, and back at the machine. I restart both imac and TC. Try running a backup, spotlight starts to re-index - i.e. will mount the backup volume and start the index process, gets to about 90% then fails - again excerpts from log
    "Dec 23 09:18:50 MickMac /System/Library/CoreServices/backupd[161]: Backing up to: /Volumes/Backup of MickMac/Backups.backupdb
    Dec 23 09:18:50 MickMac mds[32]: (/Volumes/Backup of MickMac/.Spotlight-V100/Store-V1/Stores/266E0E5F-E002-4EB5-A049-9B50582510FE)(E rror) IndexCI in ContentIndexOpenBulk:Unclean shutdown of /Volumes/Backup of MickMac/.Spotlight-V100/Store-V1/Stores/266E0E5F-E002-4EB5-A049-9B50582510FE/li ve.0.; needs recovery
    Dec 23 09:18:57 MickMac com.apple.launchd[67] (com.apple.netauth.useragent[147]): Stray process with PGID equal to this dead job: PID 152 PPID 1 check_afp
    Dec 23 09:19:48 MickMac mds[32]: (Error) Server: machmsgdispatch: (ipc/send) invalid destination port [msgh_id 14016]
    Dec 23 09:29:35 MickMac /usr/sbin/ocspd[197]: starting
    Dec 23 09:42:48 MickMac kernel[0]: ASP_TCP HoldPendingReqs: holding slot 11 reqID 3204 flags 0x9 afpCmd 60 so 0x8051b28
    Dec 23 09:42:48 MickMac kernel[0]: ASP_TCP HoldPendingReqs: holding slot 12 reqID 3205 flags 0x9 afpCmd 34 so 0x8051b28
    Dec 23 09:42:48 MickMac kernel[0]: ASP_TCP Disconnect: triggering reconnect by bumping reconnTrigger from curr value 0 on so 0x8051b28
    Dec 23 09:42:49 MickMac kernel[0]: AFP_VFS afpfs_DoReconnect started /Volumes/Backup prevTrigger 0 currTrigger 1
    Dec 23 09:42:49 MickMac kernel[0]: AFP_VFS afpfs_DoReconnect: doing reconnect on /Volumes/Backup
    Dec 23 09:42:49 MickMac kernel[0]: AFP_VFS afpfs_DoReconnect: soft mounted and hidden volume so do not notify KEA for /Volumes/Backup
    Dec 23 09:42:49 MickMac kernel[0]: AFP_VFS afpfs_DoReconnect: Max reconnect time: 30 secs, Connect timeout: 15 secs for /Volumes/Backup
    Dec 23 09:42:49 MickMac kernel[0]: AFP_VFS afpfs_DoReconnect: connect to the server /Volumes/Backup
    Dec 23 09:42:49 MickMac kernel[0]: AFP_VFS afpfs_DoReconnect: Logging in with uam 10 /Volumes/Backup
    Dec 23 09:42:49 MickMac kernel[0]: AFP_VFS afpfs_DoReconnect: Restoring session /Volumes/Backup
    Dec 23 09:42:49 MickMac kernel[0]: ASP_TCP CancelOneRequest: cancelling slot 11 error 35 reqID 3204 flags 0x19 afpCmd 60 so 0x8051b28
    Dec 23 09:42:49 MickMac kernel[0]: ASP_TCP CancelOneRequest: cancelling slot 12 error 35 reqID 3205 flags 0x19 afpCmd 34 so 0x8051b28"
    And later....
    Dec 23 09:45:49 MickMac kernel[0]: disk1s2: 0x39 (UNDEFINED).
    Dec 23 09:45:49 MickMac KernelEventAgent[34]: tid 00000000 received VQ_DEAD event (32)
    Dec 23 09:45:49 MickMac kernel[0]:
    Dec 23 09:45:49: --- last message repeated 1 time ---
    Dec 23 09:45:49 MickMac kernel[0]: hfs_clonefile: cluster_read failed - 5
    Dec 23 09:45:49 MickMac KernelEventAgent[34]: tid 00000000 type 'afpfs', mounted on '/Volumes/Backup', from 'afp_0V1fqC1mgalO00mE1H0Pyetl-1.2d000005', dead
    Dec 23 09:45:49 MickMac kernel[0]: HFS resolvelink: can't find iNode791959
    Dec 23 09:45:49 MickMac kernel[0]: disk1s2: 0x39 (UNDEFINED).
    Dec 23 09:45:49 MickMac kernel[0]: ore-V1/Stores/6CC2B046-5E28-4179-96B7-9DFF9F7EE431/store.db] [FSLogMsgID 1580919258] [FSLogMsgOrder Last]
    Dec 23 09:45:49 MickMac KernelEventAgent[34]: tid 00000000 found 1 filesystem(s) with problem(s)
    Dec 23 09:45:49 MickMac kernel[0]: jnl: disk1s2: dojnlio: strategy err 0x5
    Dec 23 09:45:49 MickMac kernel[0]: jnl: disk1s2: end_transaction: only wrote 0 of 49664 bytes to the journal!
    Dec 23 09:45:49 MickMac kernel[0]: disk1s2: 0x14 (UNDEFINED).
    Dec 23 09:45:49 MickMac kernel[0]:
    Dec 23 09:45:49: --- last message repeated 1 time ---
    Dec 23 09:45:49 MickMac mds[32]: (/Volumes/Backup of MickMac/.Spotlight-V100/Store-V1/Stores/6CC2B046-5E28-4179-96B7-9DFF9F7EE431)(E rror) IndexSDB in dbcheckdatastore:store.db : dbgetdatastore: ERR: could not read 4096 bytes
    Dec 23 09:45:49 MickMac kernel[0]: disk1s2: 0x14 (UNDEFINED).
    Dec 23 09:45:49 MickMac mds[32]: (/Volumes/Backup of MickMac/.Spotlight-V100/Store-V1/Stores/6CC2B046-5E28-4179-96B7-9DFF9F7EE431)(E rror) IndexCI in CIMetaInfoSync:write err: 5
    Dec 23 09:45:49 MickMac kernel[0]:
    Dec 23 09:45:49 MickMac mds[32]: (/Volumes/Backup of MickMac/.Spotlight-V100/Store-V1/Stores/6CC2B046-5E28-4179-96B7-9DFF9F7EE431)(E rror) IndexCI in CIMetaInfoCreate:Tried to create index when index already existed /Volumes/Backup of MickMac/.Spotlight-V100/Store-V1/Stores/6CC2B046-5E28-4179-96B7-9DFF9F7EE431
    Dec 23 09:45:49 MickMac kernel[0]:
    Dec 23 09:45:49 MickMac mds[32]: (/Volumes/Backup of MickMac/.Spotlight-V100/Store-V1/Stores/266E0E5F-E002-4EB5-A049-9B50582510FE)(E rror) IndexSDB in adddirtychunk:/Volumes/Backup of MickMac/.Spotlight-V100/Store-V1/Stores/266E0E5F-E002-4EB5-A049-9B50582510FE/st ore.db : ERR: Can't write DST header (Input/output error)
    Dec 23 09:45:49 MickMac kernel[0]: disk1s2: 0x14 (UNDEFINED).
    Dec 23 09:45:49 MickMac kernel[0]:
    Dec 23 09:45:49: --- last message repeated 1 time ---
    Dec 23 09:45:49 MickMac kernel[0]: disk1s2: 0x14 (UNDEFINED).
    Dec 23 09:45:49 MickMac kernel[0]:
    Dec 23 09:45:49: --- last message repeated 1 time ---
    Dec 23 09:45:49 MickMac kernel[0]: disk1s2: 0x14 (UNDEFINED).
    Dec 23 09:45:49 MickMac kernel[0]:
    Dec 23 09:45:49: --- last message repeated 1 time ---
    Dec 23 09:45:49 MickMac mds[32]: (/Volumes/Backup of MickMac/.Spotlight-V100/Store-V1/Stores/266E0E5F-E002-4EB5-A049-9B50582510FE)(E rror) IndexSDB in dbflushdatastore:/Volumes/Backup of MickMac/.Spotlight-V100/Store-V1/Stores/266E0E5F-E002-4EB5-A049-9B50582510FE/st ore.db : dbsyncdatastore: write-errors flushing cache/writing map.
    Am I the only one having these problems? any help from anybody please...

    Got the same problem with a 3 months old TC.
    The replacement TC, does it work now flawless?

  • Failover Cluster Network Name Failed and Can't be Repaired

    I have an issue that seem to be a different problem than any others have encountered.
    I've scoured everything I can find and nothing has fixed my problem.
    The problem starts with the common problem of the cluster network name failing on my 2 node server 2012 file server cluster.  The computer object was still in AD and appeared to be fine so it was not the common problem of the object
    getting deleted somehow.  At the time, there was no other object with that name in the recycling bin, so I don't think it was mistakenly deleted and quickly recreated to cover any tracks, so to speak.
    Following one guide, I tried to find the registry key that corresponded with the GUID of the object, but neither node in the cluster had it in its registry (which may be part of the problem).
    Since it was in the failed state, I tried to do the repair on the object to no avail.
    We run a "locked down" DC environment so all computer objects have to be pre-provisioned.  They were all pre-provisioned successfully and successfully assigned during cluster creation.  The cluster was running with no issues for a month
    or so before this problem came up.
    When I do a repair on the object while taking diagnostic logs the following 4609 error appears:
    The action 'Repair' did not complete. - System.ApplicationException: An error occurred resetting the password for 'Cluster Name'. ---> System.ComponentModel.Win32Exception: Unknown error (0x80005000)
    There appears to be a corresponding 4771 error with a failure code 0x18 that comes from the security log of the DC that states there was a Kerberos pre-authentication failure for the cluster network name object (Domain\Clustername$)
    I believe this is what is causing the repair failure.  All the information I found related to security error 4771 was either a bad credentials given for a user account or the fix was to reconnect the computer to the domain.  I can't seem to find
    a way to do this with the cluster network name.  If there's a way please let me know.
    I've tried a number of things, like resetting the object, disabling it, deleting and creating a new object with the same name, deleting that new object and recovering the original, etc...
    Can anyone shed some light on what is going on and hopefully how to fix it other than rebuilding the cluster?  I'm quite close to just tearing it down and building it back up but am hesitant because this cluster in currently in production...
    Any help would be appreciated

    Hi,
    I don’t find out the similar issue with yours, base on my experience, the 4096 error
     often caused by the CSV disk issue, and the 0x80005000 error some time caused by the repetitive computer object in OU. Please check the above related part or run the validate test then post the error information.
    Although I do have a CSV, there doesn't seem to be any problems with it and it was running just fine for a month or so before the problem started.  I double checked and there is no duplicate computer objects, maybe I don't understand what you mean by
    repetitive, could you explain further?
    The cluster validates successfully with a few warnings:
    Validating cluster resource Name: DT-FileCluster.
    This resource is marked with a state of 'Failed' instead of
    'Online'. This failed state indicates that the resource had a problem either
    coming online or had a failure while it was online. The event logs and cluster
    logs may have information that is helpful in identifying the cause of the
    failure.
    - This is because the cluster name is in the failed state
    Validating the service principal names for Name:
    DT-FileCluster.
    The network name Name: DT-FileCluster does not have a valid
    value for the read-only property 'ObjectGUID'. To validate the service principal
    name the read-only private property 'ObjectGuid' must have a valid value. To
    correct this issue make sure that the network name has been brought online at
    least once. If this does not correct this issue you will need to delete the
    network name and re-create it.
    - This is definitely related to the problem and the GUID probably got removed when we attempted a fix by resetting the object and trying the repair from the failover cluster manager.
    The user running validate, does not have permissions to create
    computer objects in the 'ad.unlv.edu' domain.
    - This is correct, we run a restricted domain.  I have a delegated OU that I can pre-provision accounts in.  The account was pro-provisioned successfully and was at one point setup and working just fine.
    There are no other errors nor warnings.

  • I have unlocked iphone 5.i tried to use it with tmobile.it shows full network but fails to activate and shows sim invalid.how to make it work?

    i have unlocked iphone 5.i tried to use it with tmobile.it shows full network but fails to activate and shows sim invalid.how to make it work?

    Who was your original carrier; did you call them to ask them to unlock your phone, and are you aware of what their unlock policy is (THey may only unlock for international sims and not US sims

  • The vm and host networking components failed to negotiate protocol version '4.0'

    Hi,
    I have the problem that when I start a VM with windows server 2012 on a hyper-v v2 host, it takes very long till the VM get bind the static or dynamic ip adress. I tried both, static and dynamic. In every case I see at the event viewer the following error:
    the vm and host networking components failed to negotiate protocol version '4.0'
    After a few minutes the VM gets bind the IP an everything works fine. But at the next time I reboot the machine the same failure appear.
    Trying to use legacy network adapter results in the same problem. After this I tried to export the vm to a hyper-v v3 host. At first boot time
    the problem didn't appear and the vm get's bind the ip adress without problems. Then after upgrading the integration services to hyper-v v3
    version the same problem appears but without register it in the event viewer.
    Does anybody know how I can fix this problem?
    Kind Regards,
    Marcus

    Hi,
    A MS KB records an issue when you run Windows 8 or Windows Server 2012 based Virtual machine in Windows Server 2008 or in Windows Server 2008R2:
    http://support.microsoft.com/kb/2744129
    There is a Microsoft update in this KB, you may install this KB in your Windows Server 2008 R2 and check the result.
    While about this issue after you migrate the guest VM to Windows Server 2012 host, will it still has such error message after you remove all network adapters of the guest VM?
    Install Windows update for the Hyper-V host, after that upgrade Integration service for the guest VM again to check the result.
    For more information please refer to following MS articles:
    "Unsupported configuration" warning when you run a Windows 8-based or Windows Server 2012-based virtual machine in Windows Server 2008 R2
    http://support.microsoft.com/kb/2737297
    Hyper-V Overview
    http://technet.microsoft.com/en-us/library/hh831531.aspx
    Lawrence
    TechNet Community Support

  • IChat audio and visual won't connect on my home network, but will on others

    Hi there,
    So here's my problem: When I try to connect via audio or video with iChat 5.0.3 it returns and error saying iChat can't connect. Text chatting works just fine. It only does this on my home network; I can take it work and connect to work's network and iChat functions just fine. My wife also has a mac using snow leopard and her iChat doesn't work either. We can connect to each other on our home network and use audio and video chat, but just can't connect to other networks. I'm using ATT&T U-verse and their 2wire modem/wireless router (model 3600hgv) that came with it, along with an airport extreme.
    After carefully studying the other posts about iChat, I disconnected the airport and just used the 2wire, modifying the port settings as per the port forward website. I realized that the airport could have been using DHCP in addition to the 2wire, that's why I disconnected it. After doing these things, iChat still doesn't work. I'm not sure where to go from here.
    Any help would be VERY much appreciated

    Hi,
    Nice info.
    Does the 2WIre device you have include having UPnP ?
    Different manufactures put it in different places so it could be anywhere in the set up pages.
    If not does it have Port Triggering (Special Applications) ?
    You will need to use this as you want to use two computers with the same ports.
    This needs a different set up to Port Forwarding.
    Alternatively put the 2Wire in DMZ (This opens all the ports to one IP)
    List the IP the Airport device gets.
    (It would be better yet if the DHCP was turned Off - the Airport would then need to be set up for Static routing (Manually) to keep the same IP)
    This is the closet number to your model
    http://portforward.com/english/routers/port_forwarding/2wire/3800HGV-B/iChat.htm
    Did you set all the ports ? (These are the iChat 3 set but cover all the ones iChat 4 and 5 use)
    Did you do the bit at the bottom ? (move the items to the right hand list that you want to use - listing both computers at the text field that reads "JoannasDell" (one at a time if it allows two computers by this method)
    10:37 PM Monday; February 7, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • HT4108 I have an iPhone4, used and locked to the UK network. I need to pay for the phone to be officially Unlocked. In the meantime we used it as a device to check emails and games etc.. We put a pass lock and after many failed attempts we forgot what it

    I have an iPhone4, used and locked to the UK network. I need to pay for the phone to be officially unlocked.
    In the meantime we used it as a device to check emails and games etc.. We put a pass lock and after many failed attempts we forgot what it is. Now the phone is Disabled and iTunes can not fix it since it can not update the Software without the phone being officially unlocked..
    any idea how to do this?
    Please advice

    gencml wrote:
    We put a pass lock and after many failed attempts we forgot what it is. Now the phone is Disabled and iTunes can not fix it since it can not update the Software without the phone being officially unlocked..
    any idea how to do this?
    Please advice
    You need to visit Apple Store, and show ownership proof in case of forgotton pass code.

  • The VM and host networking components failed to negotiate protocol version '5.0'

    I have been searching for a fix for this issue for sometime.
    The VM and host networking components failed to negotiate protocol version '5.0'
    and
    The VM and host networking components failed to negotiate protocol version '4.0'
    this error have been posting on the host server 2008 R2, with a hyper-V running server 2012 R2, which is the eval version vhd from Microsoft.
    I have tried the patch on the server 2008 R2 host and the nic delete and rescan option with varied reboots and such between each step of the process just to try every possible combination.
    The error persists. Are there any other suggested solutions for fixing this problem. Also the drivers have all been updated along with the system firmware.
    thanks,

    The hotfix states Server 2012 in the VM. You stated Server 2012 R2 in the VM.  MSFT is very precise in this language - Server 2012 != Server 2012 R2.
    Two distinctly different releases of Windows Server.
    In this case the N = the running release of Hyper-V.  In this case your Hyper-V Server at release version 2008 R2.
    The +2 = the current version of Windows.  In this case that is 2012 R2.  Two releases ahead of the version of the hypervisor you are running.
    I tossed in the link to Ben Armstrong's blog article as that is the ONLY (and still definitive statement) support statement regarding this configuration.  He posted that article at my request after many folks posting in this forum with strange behavior
    in this configuration.
    "supported" in this context means that if you call CSS, you will be told the following: 'yes, you have errors in the event log.  We will not fix that.  This is an unsupported configuration.  But that does not block the OS in the
    VM running.  If you want the errors to go away, we suggest you upgrade your Hyper-V Server to 2012 R2.  That configuration is supported.'
    That said, it can impact other functionality of the VM that rely on Integration Components in the VM and the Services of the hypervisor.  There is most likely small things that will not work.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

  • My MBA indicates my connection is timing out. My wifi on other laptops work in the house. Diagnostics indicate wifi settings failed, network settings failed, ISP failed, Internet failed, and server failed. What can I do?

    My MBA indicates my connection is timing out. My wifi on other laptops work in the house. Diagnostics indicate wifi settings failed, network settings failed, ISP failed, Internet failed, and server failed. What can I do?

    Take each of the following steps that you haven't already tried, until the problem is resolved. Some of these steps are only possible if you have control over the wireless router.
    Step 1
    Turn Wi-Fi off and back on.
    Step 2
    Restart the router and the computer. Many problems are solved that way.
    Step 3
    Change the name of the wireless network, if applicable, to eliminate any characters other than letters and digits. You do that on your router via its web page, if it's not an Apple device, or via AirPort Utility, if it is an Apple device.
    Step 4
    Run the Network Diagnostics assistant.
    Step 5
    In OS X 10.8.4 or later, run Wireless Diagnostics and fix the issues listed in the Summary, if any.
    Step 6
    Back up all data.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Enter the name of your wireless network in the search box. You should have one or more "AirPort network password" items with that name. Make a note of the name and password, then delete all the items. Quit Keychain Access. Turn Wi-Fi off and then back on. Reconnect to the network.
    Step 7
    You may need to change other settings on the router. See the guidelines linked below:
    Recommended settings for Wi-Fi routers and access points
    Potential sources of interference
    Step 8
    Make a note of all your settings for Wi-Fi in the Network preference pane, then delete the connection from the connection list and recreate it with the same settings. You do this by clicking the plus-sign icon below the connection list, and selecting Wi-Fi as the interface in the sheet that opens. Select Join other network from the Network Name menu, then select your network. Enter the password when prompted and save it in the keychain.
    Step 9
    Reset the System Management Controller (SMC).

  • Hp Laser Jet 1020 network printing fail over win7 and Vista

    Printer prints fine when is connected to computer trough USB but when shared over the network between Vista or 7 and another PC tries to print.  Jobs stays in the queue labelled 'Printing' but nothing happens.
    Printing over the network only works when 'Print Spooler' is manually stopped and then restarted on the PC the printer is connected to for each job!
    Printer used to work fine under XP with network sharing.
    On local and networked PC, the printer use port "USB001"
    Searching trough many forums i found this problem sill remains unsolved for 1020 and some other printers.
    I have to admit that i had test all available versions of a driver. 

    Have you tried to setup the Local Port using, \\Win7Computername\Printername on the other computer?
    Please mark the post that solves your issue as "Accept as Solution".
    If my answer was helpful click the “Thumbs Up" on the left to say “Thanks”!
    I am not a HP employee.

  • TS1362 All of the movies I have rented or purchased from iTunes in the last 4 months fail to play properly. The audio and video are constantly out of sync. I have followed the iTunes suggestions to correct this, however nothing has worked. (Windows 8)

    I am using a Dell inspiron 14z, with Windows 8, and before that a Dell with Windows XP. This is also happening on my iPad. For the last four months, none of the movies or television shows I have rented or purchased from iTunes have played properly. The audio and video are out of sync. I have tried the troubleshooting measures iTunes suggested, however nothing seems to work. I have read on the community that this has been a problem for users in the past, and have attempted to try some of the fixes individual users have suggested also. Again, nothing seems to work. At this point I am frustrated, as we purchase or rent almost exclusively from iTunes. I would appreciate a support-staff person response. Thank you so much.

    this problem has been going on for windows users for over a year now.
    Apple has no solution to this problem.

  • Wireless and network printing transcript for Meet the Experts

    On March 16th, HP hosted its first online chat event on wireless and network printing. Below is a transcript of that session.
    I am in the process of planning the next chat event. I would love to hear what topics would interest you, what day of the week and time is best for you, and if you think an hour is too long.
    So, if you get a minute, please let me know.
    Here's the transcript:
    SiobhanF-HP: Welcome! Cameron, Craig, David, and Jim are ready to tackle your questions.
    SiobhanF-HP: Just to remind you if you want to ask a question, you must be a member of the HP Support Forums. If you want to join, go here https://passport2.hp.com/hppcf/createuser.do
    nc256: Do I need a wireless router to hook up my wireless printer?
    CameronL-HP: No, but most people will want to do it this way. You can use a feature called an ad hoc connection to avoid using a router, but it is only covered under an older standard that is slower and less secure. Also, without something to route traffic between the local network and the internet, you cannot get an internet connection. Using a wireless router makes setting up a wireless network easier, and it will generally make the network work better too.
    jest1: I've seen some hardware in stores for a "print server" hardware device that attaches to a network. Is this something that I need in order to run a printer over a network?
    CraigB--HP: Not if you have a printer that has a network connection built in. Many models of HP computers are ready to be connected directly to your wired or wireless network.
    katiepage: How can I print when I am using a VPN?
    DavidH-HP: VPN connections generally hide the rest of your home network to increase the security of the VPN connection. A printer on the network isn’t a security threat but the VPN doesn’t know that. It just hides everything just to be sure. That means that when a VPN is active you need some way to connect to the printer other than your home network. Bluetooth, USB, and even printing to a thumb drive and plugging that into the printer are all ways of getting your print job to the printer that don’t go through your home network.
    SiobhanF-HP: If you have specific product questions, the more information you give us the better we will be able to help you. Getting your exact model number; any error messages; a description of your wireless network including what kind of security you have, what wireless-devices are connected to your network, and your IP address will go a long way to helping us answer your question.
    MelissaP: Why would I want a wireless printer?
    CraigB--HP: The main advantage of a wireless printer is the ability to place the printer somewhere in your home or office even if this is not near your router or computer.
    Deltan: What is the maximum distance I can have between my router and my printer?
    CameronL-HP: It does depend on your environment. Without interference about 25 feet. Walls and floors and other objects can reduce this. The types of walls are important. For example, mirrors and outdoor walls will greatly reduce the indoor range.
     jest1: Is there a preferred wireless router type or brand for wireless printing compatibility? We are using a Linksys 802.11g router in my home.
     JimB-HP: In general, any wireless-router from a name brand manufacturer that has been Wi-Fi certified is compatible with our printers (look for the Wi-Fi logo). We use Linksys in our lab with great success.
     nc256: Are there any digital cameras that can send directly to an HP wireless printer for photo printing?
     DavidH-HP: Many printers support a feature called Pictbridge. If the camera and printer both supports this feature, the camera can be plugged directly into the printer to print photos. Or are you asking about printing over a network connection?
     KevinW: I keep hearing that you shouldn’t use default settings for a network. Why?
     CraigB--HP: There are three reasons not use default settings: First, wireless-routers do not have any wireless security enabled by default. Second, you will be using a common network name in which case you may connect accidentally to your neighbor’s network. Third, your wireless-router is accessible by inadvertent guests who may change the configuration of your wireless-router without your knowledge or use your internet connection without your permission.
    Bodie08: I have an HP Lan attached printer and Windows XP on my home network. Is there a known setting (Firewall/port/other) or patch to address the issue of hpqtra08.exe hanging on Windows XP Shutdown? A number of us in the forum have identified this issue. Thanks!
    DavidH-HP: This problem has been seen in the past but there were attempts to address it. Have you checked to see if there is a later release of software available on the web? (hp.com)
    ZhuLee3: How old is wireless printing technology? I noticed all the experts have around 20 years of experience with it, was there wireless 20 years ago?
    JimB-HP: Wireless printing first appeared with the introduction of the 802.11 standard in late 1990's. HP has been making wireless printers since 2003.
    lpeterson123: What makes wireless so flaky at times?
    CameronL-HP: There are lots of reasons. Wireless signals are affected by distance, walls, metal objects, and other wireless devices like cordless phones. However, most of the problems seem to be from how the network or how security software is configured, and these can also cause things to fail only occasionally or in certain situations. Having a good wireless connection between a PC and printer involves several hardware devices and lots of software made by different companies that all have to work together; if something is not quite right in any of these things then the whole solution looks flaky.
    Bowman16: I use a Mac, are there any features that would not work if I was to set it up for wireless use
    DavidH-HP: All the features will work on a Mac if you install the full HP software solution.
    jest1: Thanks for the answer on the router question. The next question, then, is to ask what would be a recommended consumer-grade wireless-enabled printer (or series) just so I can start my research.
    JimB-HP: Any of our Photosmart or Officejet wireless printers will work with Wi-Fi certified wireless-routers. Our price points really have more to do with how much printing you do. In general, our more expensive printers cost less per page than our less expensive models.
    Bodie08: Why would I choose "spooling" on my PC over "direct connect”?
    CraigB--HP: In general, spooling allows you to use your program sooner than printing directly.
    ZhuLee3: Jim: What is it like to be an "HP Printing Expert"? What kind of stuff do you get to work on, on a day to day basis?
    JimB-HP: I really like my job -- I've always been a radio enthusiast so working on 802.11 technology is really a dream job for me. I'm also fortunate to work with a great team here in Vancouver, WA. More importantly, I like designing equipment that people use in their everyday lives.
    TEACHER1: Recently I changed routers, now I am unable to print wirelessly, even though the SES and wireless network light are steady on my Deskjet 6980 printer. What is the solution? Thanks.
    DavidH-HP: The wireless light indicates that the radio is on but does not indicate that the printer is connected to the network. First check that the printer is connected to the network by printing a network configuration page from the printer.
    AgentRed: I get my internet with a Verizon wireless broadband card. Someone told me that wouldn't work with a wireless printer. Is that true?
    CameronL-HP: Our wireless printers use the 802.11 b, g or n standard which is not compatible with the wireless cellular standard. It would be like trying to connect to a wireless network using Bluetooth. They are different wireless technologies.
    DavidH-HP: Regarding the Verizon card, it is true that you cannot connect the printer over the Verizon connection, but as long as your laptop has Wife you can print to the printer over WiFi at the same time that the Verizon connection is active. This should not be a problem.
    jest1: Is there a "minimum" internet connection that is recommended for wireless printing? We live a bit far from the DSL CO so our connection is sometimes flaky. I would guess that incoming speed shouldn't affect my local wireless LAN but I want to ask it anyway
    CameronL-HP: There are 2 parts to your home network. 1 is your wireless router which manages your local network equipment, then your network connection to the world wide web which your DSL provider gives you. The connection speed of your local network is not affected by your internet connection speed.
    Bowman16: Are any HP printers 802.11n? I do not want to add an 802.11b,g to my network and cause it to slow down.
    JimB-HP: Currently, our printers comply with the 802.11g standard. We are investigation the emerging 802.11n standard.
    ZhuLee3: Will there be a transcript of all the questions and answers from this chat available for viewing after the session? I think I missed some questions at the start.
    SiobhanF-HP: The chat event begins when you joined. Sorry that you can't see what was said before you joined. I hope to have transcript posted tomorrow or on Wednesday at the latest.
    nc256: Where is the future of printers headed? Does HP have any interesting plans with printing technology? And what’s your opinion on whether or not color laser printing will ever approachthe photo realism of ink jet color?
    JimB-HP: The future of HP printing will be characterized by wireless connectivity to not only computers but to mobile internet devices. In fact, as mobile devices become smaller (think phone or netbooks), the need to print from your mobile device might become more relevant.
    jest1: Am I able to print from my iphone to a wireless printer?
    CraigB--HP: You can print photos from your iPhone to HP wireless printers and it works great in my experience. Go to http://www.hp.com/go/iprintphoto to get the details.
    TEACHER1: Thank you. I printed a page. It shows that wireless is disconnected.
    DavidH-HP: Then you just need to input the wireless settings from your new router into the printer. If your printer does not let you input the settings from the front panel, you can use the CD that came with the printer or downloaded from hp.com to configure the printer again ( look for the option to "add a device" ).
    ZhuLee3: Question about security... if I get a wireless printer, what’s to prevent other people within range of my printer, from adding it and printing documents? How is this configured on the actual printer?
    JimB-HP: The simplest way to secure your printer is to enable WPA-PSK security for your wireless network and to use a security pass-phrase that is at least 12 characters long. This configuration is very safe from intruders for the foreseeable future.
    CameronL-HP: It' is also a good idea to use a unique network name, also called an SSID.
    carolj: I have a photosmart C7180 and I have it hooked up to my laptop (windows vista) when the setup completed the printer was put in networking instead of printers and I cannot access it or move it out of there. What do you suggest?
    CraigB--HP: You might need to uninstall and reinstall. Before doing this, make sure your get the latest driver from the HP support at: http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?product=1153754&lc=en&cc=us&dlc=en&lang=en&cc=us This is also where you can get a copy of the instruction book.
    wizll: Hi, I haven't done much research in wireless printing, but I'm interested as I currently have my printer set up the old fashioned way where it's connected to a networked PC, but if the PC is off I can no longer print, which is obviously inconvenient. Do hp wireless printers have a web gui you can connect to once it's on the home network, or is it simply all done from the printer's interface. I've seen some old wired network printers that only use the printer's ui and that seems like a clunky use.
    DavidH-HP: Yes, the HP printers which have networking built-in have what we call an "embedded" web server which allow you to configure settings, check status, and have many other features; on some models you can even scan using the embedded web server.
    nc256: Jim: Will color laser printing ever reach ink jet quality for photos?
    JimB-HP: While never is a long time, inkjet printers will, for the near future, output higher quality photos.
    katiepage: If I'm at home, connected to my office network via VPN, can I access my office networked printers?
    CraigB--HP: Yes, when you are connected to the office VPN, you can print to your office printers. However, you will not be able to print to your home networked printers while you are connected to the VPN.
    jest1: If a friend comes over to my house with their laptop and needs to print something, are they able to do this just by authenticating with my wireless LAN (assuming I have a wireless printer set up)?
    CraigB--HP: In addition to authenticating to your network, you friend will also need to install the printer driver for your printer.
    jpszambelan: Is there a wireless USB device of some kind I can connect to my printer if there is no network connection already built in?
    JimB-HP: HP sells an accessory that adds Wi-Fi capability to your USB printer (see http://www.shopping.hp.com/product/printer/inkjet/wireless/4/accessories/Q6236A%2523A2L) Also, many higher-end wireless-routers allows USB printers to be connected to them to allow sharing of the printer from the network. Note that this solution often limits you to just printing and not scanning from the network.
    rockwoodchev: It seems that my computer can find my printer, but my printer can't find the computer, so that "Scan to computer" won't work. What do I need to do in order to fix that?
    DavidH-HP: This can be blocked by security software running on the PC (such as a personal firewall). Make sure that your firewall is configured to allow communication on your local network. You can also unblock specific ports, but the easiest way is often just to allow communication on the local home network. The specific setting varies from firewall to firewall.
    SiobhanF-HP: We are nearing the end of our chat session. We only have time for 3 more questions. If we did not get to your question, please post it on the Networking and Wireless board in the Printers and All-in-Ones forum. http://h30434.www3.hp.com/psg/board?board.id=Networking
    SSPatrick: Is it possible to print wirelessly to the same HP printer using both a PC and a Mac?
    JimB-HP: Yes -- I do this in my home. I have both Macs and PCs on my network without any trouble.
    Bowman16: Any plans to do this again?
    SiobhanF-HP: Yes we are.
    ZhuLee3: Do all of the experts hang out on the HP community? Will we see you posting there after this?
    DavidH-HP: Oh yes, whenever time permits. In addition to trying to help people, I learn things too.
    JimB-HP: I'm known as Wi-Fi-Guy on the support forums. I hang out there often helping where I can. It helps me be a better designer.
    CraigB--HP: I monitor the forums looking for problems to take back to the development lab for investigation. To date, I have only posted one reply.
    CameronL-HP: I haven't been involved in the past but expect to be more involved in the future.
    SiobhanF-HP: We only have time for one more question. If we did not get to your question, please post it on the Networking and Wireless board in the Printers and All-in-Ones forum. http://h30434.www3.hp.com/psg/board?board.id=Networking
    ZhuLee3: Thanks for setting this up!
    SiobhanF-HP: The transcript will be posted on http://h30434.www3.hp.com/psg/board?board.id=Networking
    TEACHER1: Thank you all for conducting this session !!!!
    jest1: Is there an OS limitation to print wirelessly?
    JimB-HP: All the OS versions supported by the printer as supported wirelessly. In general, we are compatible with Macs, Windows and Linux.
    SiobhanF-HP: We are ending the chat event. Thank you for coming. We hope you found it worthwhile. I will be posting a transcript of the event in the Networking and Wireless board in the Printers and All-in-Ones forum. We will be hosting future Meet the Experts chat sessions on a variety of topics, so please tell us what you thought of the event and how it could be improved. http://h30434.www3.hp.com/psg/board/message?board.id=Feedback&thread.id=525
    Live Forum Closed
    Message Edited by timhsu on 03-18-2009 05:39 PM
    Message Edited by timhsu on 03-18-2009 05:43 PM
    I work for HP, supporting the HP Experts who volunteer their time and technical knowledge to help others.

    I expected this to be released quite earlier. But now that it's in process, I'll wait patiently.
    Make it easier for other people to find solutions, by marking my answer with \'Accept as Solution\' if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"
    I am an ex-HP Employee.

  • DO i need some extra hardware interface for receving both Audio and video

    hi i m doing e-learning project. i have to capture video from webcam and voice from headphone and send to client.
    but my code is working fine for either one at a time.
    DO i need some extra hardware interface for receving both Audio and video. im using code AVTransmit and AVReceive found from this site only
    After running TX
    i give Dsound:// & vfw://0 in Media Locater only sound is received and no vedio
    and when i give vfw://0 in Media Locater only live video is transmited.
    im using JMF1.1.2e.
    if any one know the method to run or cause of it plz reply me soon. i will be very thankfull
    transmiter/server side code .first run TX on server
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.util.*;
    import javax.media.rtp.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    public class Tx extends JFrame implements ActionListener, KeyListener,
    MouseListener, WindowListener {
    Vector targets;
    JList list;
    JButton startXmit;
    JButton rtcp;
    JButton update;
    JButton expiration;
    JButton statistics;
    JButton addTarget;
    JButton removeTarget;
    JTextField tf_remote_address;
    JTextField tf_remote_data_port;
    JTextField tf_media_file;
    JTextField tf_data_port;
    TargetListModel listModel;
    AVTransmitter avTransmitter;
    RTCPViewer rtcpViewer;
    JCheckBox cb_loop;
    Config config;
    public Tx() {
    setTitle( "JMF/RTP Transmitter");
         config= new Config();
         GridBagLayout gridBagLayout= new GridBagLayout();
         GridBagConstraints gbc;
         JPanel p= new JPanel();
         p.setLayout( gridBagLayout);
         JPanel localPanel= createLocalPanel();
         gbc= new GridBagConstraints();
         gbc.gridx= 0;
         gbc.gridy= 0;
         gbc.gridwidth= 2;
         gbc.anchor= GridBagConstraints.CENTER;
         gbc.fill= GridBagConstraints.BOTH;
         gbc.insets= new Insets( 10, 5, 0, 0);
         ((GridBagLayout)p.getLayout()).setConstraints( localPanel, gbc);
         p.add( localPanel);
         JPanel targetPanel= createTargetPanel();
         gbc= new GridBagConstraints();
         gbc.gridx= 1;
         gbc.gridy= 1;
         gbc.weightx= 1.0;
         gbc.weighty= 1.0;
         gbc.anchor= GridBagConstraints.CENTER;
         gbc.fill= GridBagConstraints.BOTH;
         gbc.insets= new Insets( 10, 5, 0, 0);
         ((GridBagLayout)p.getLayout()).setConstraints( targetPanel, gbc);
    p.add( targetPanel);
         JPanel mediaPanel= createMediaPanel();
         gbc= new GridBagConstraints();
         gbc.gridx= 1;
         gbc.gridy= 2;
         gbc.weightx= 1.0;
         gbc.weighty= 1.0;
         gbc.anchor= GridBagConstraints.CENTER;
         gbc.fill= GridBagConstraints.BOTH;
         gbc.insets= new Insets( 10, 5, 0, 0);
         ((GridBagLayout)p.getLayout()).setConstraints( mediaPanel, gbc);
    p.add( mediaPanel);
    JPanel buttonPanel= new JPanel();
    rtcp= new JButton( "RTCP Monitor");
    update= new JButton( "Transmission Status");
         update.setEnabled( false);
         rtcp.addActionListener( this);
         update.addActionListener( this);
         buttonPanel.add( rtcp);
         buttonPanel.add( update);
         gbc= new GridBagConstraints();
         gbc.gridx = 0;
         gbc.gridy = 3;
    gbc.gridwidth= 2;
         gbc.weightx = 1.0;
         gbc.weighty = 0.0;
         gbc.anchor = GridBagConstraints.CENTER;
         gbc.fill = GridBagConstraints.HORIZONTAL;
         gbc.insets = new Insets( 5,5,10,5);
         ((GridBagLayout)p.getLayout()).setConstraints( buttonPanel, gbc);
         p.add( buttonPanel);
    getContentPane().add( p);
         list.addMouseListener( this);
         addWindowListener( this);
    pack();
    setVisible( true);
    private JPanel createMediaPanel() {
    JPanel p= new JPanel();
         GridBagLayout gridBagLayout= new GridBagLayout();
    GridBagConstraints gbc;
         p.setLayout( gridBagLayout);
         JLabel label= new JLabel( "Media Locator:");
         gbc= new GridBagConstraints();
         gbc.gridx = 0;
         gbc.gridy = 0;
         gbc.weightx = 0.0;
         gbc.weighty = 0.0;
         gbc.anchor = GridBagConstraints.EAST;
         gbc.fill = GridBagConstraints.NONE;
         gbc.insets = new Insets( 5,5,10,5);
         ((GridBagLayout)p.getLayout()).setConstraints( label, gbc);
         p.add( label);
         tf_media_file= new JTextField( 35);
         gbc= new GridBagConstraints();
         gbc.gridx = 1;
         gbc.gridy = 0;
         gbc.weightx = 1.0;
         gbc.weighty = 0.0;
         gbc.anchor = GridBagConstraints.WEST;
         gbc.fill = GridBagConstraints.HORIZONTAL;
         gbc.insets = new Insets( 5,5,10,5);
         ((GridBagLayout)p.getLayout()).setConstraints( tf_media_file, gbc);
         p.add( tf_media_file);
         tf_media_file.setText( config.media_locator);
         cb_loop= new JCheckBox( "loop");
         startXmit= new JButton( "Start Transmission");
         startXmit.setEnabled( true);
         startXmit.addActionListener( this);
         gbc= new GridBagConstraints();
         gbc.gridx = 2;
         gbc.gridy = 0;
         gbc.weightx = 0.0;
         gbc.weighty = 0.0;
         gbc.anchor = GridBagConstraints.WEST;
         gbc.fill = GridBagConstraints.NONE;
         gbc.insets = new Insets( 5,5,10,5);
         ((GridBagLayout)p.getLayout()).setConstraints( cb_loop, gbc);
         p.add( cb_loop);
         cb_loop.setSelected( true);
         cb_loop.addActionListener( this);
         gbc= new GridBagConstraints();
         gbc.gridx = 1;
         gbc.gridy = 1;
         gbc.weightx = 0.0;
         gbc.weighty = 0.0;
         gbc.anchor = GridBagConstraints.CENTER;
         gbc.fill = GridBagConstraints.NONE;
         gbc.insets = new Insets( 5,5,10,5);
         ((GridBagLayout)p.getLayout()).setConstraints( startXmit, gbc);
         p.add( startXmit);
         TitledBorder titledBorder= new TitledBorder( new EtchedBorder(), "Source");
         p.setBorder( titledBorder);
         return p;
    private JPanel createTargetPanel() {
    JPanel p= new JPanel();
         GridBagLayout gridBagLayout= new GridBagLayout();
    GridBagConstraints gbc;
         p.setLayout( gridBagLayout);
         targets= new Vector();
         for( int i= 0; i < config.targets.size(); i++) {
         targets.addElement( config.targets.elementAt( i));
    listModel= new TargetListModel( targets);
    list= new JList( listModel);
         list.addKeyListener( this);
         list.setPrototypeCellValue( "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
    JScrollPane scrollPane= new JScrollPane( list,
    ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
    ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
         gbc= new GridBagConstraints();
         gbc.gridx= 0;
         gbc.gridy= 0;
         gbc.weightx= 1.0;
         gbc.weighty= 1.0;
         gbc.anchor= GridBagConstraints.CENTER;
         gbc.fill= GridBagConstraints.BOTH;
         gbc.insets= new Insets( 10, 5, 0, 0);
         ((GridBagLayout)p.getLayout()).setConstraints( scrollPane, gbc);
         p.add( scrollPane);
    JPanel p1= new JPanel();
         p1.setLayout( gridBagLayout);
         JLabel label= new JLabel( "IP Address:");
         gbc= new GridBagConstraints();
         gbc.gridx = 0;
         gbc.gridy = 0;
         gbc.weightx = 0.0;
         gbc.weighty = 0.0;
         gbc.anchor = GridBagConstraints.EAST;
         gbc.fill = GridBagConstraints.NONE;
         gbc.insets = new Insets( 5,5,0,5);
         ((GridBagLayout)p1.getLayout()).setConstraints( label, gbc);
         p1.add( label);
         tf_remote_address= new JTextField( 15);
         gbc= new GridBagConstraints();
         gbc.gridx = 1;
         gbc.gridy = 0;
         gbc.weightx = 0.0;
         gbc.weighty = 0.0;
         gbc.anchor = GridBagConstraints.WEST;
         gbc.fill = GridBagConstraints.NONE;
         gbc.insets = new Insets( 5,5,0,5);
         ((GridBagLayout)p1.getLayout()).setConstraints( tf_remote_address, gbc);
         p1.add( tf_remote_address);
         label= new JLabel( "Data Port:");
         gbc= new GridBagConstraints();
         gbc.gridx = 0;
         gbc.gridy = 1;
         gbc.weightx = 0.0;
         gbc.weighty = 0.0;
         gbc.anchor = GridBagConstraints.EAST;
         gbc.fill = GridBagConstraints.NONE;
         gbc.insets = new Insets( 5,5,0,5);
         ((GridBagLayout)p1.getLayout()).setConstraints( label, gbc);
         p1.add( label);
         tf_remote_data_port= new JTextField( 15);
         gbc= new GridBagConstraints();
         gbc.gridx = 1;
         gbc.gridy = 1;
         gbc.weightx = 0.0;
         gbc.weighty = 0.0;
         gbc.anchor = GridBagConstraints.WEST;
         gbc.fill = GridBagConstraints.NONE;
         gbc.insets = new Insets( 5,5,0,5);
         ((GridBagLayout)p1.getLayout()).setConstraints( tf_remote_data_port, gbc);
         p1.add( tf_remote_data_port);     
    JPanel p2= new JPanel();
    addTarget= new JButton( "Add Target");     
    removeTarget= new JButton( "Remove Target");
         p2.add( addTarget);
         p2.add( removeTarget);
         addTarget.addActionListener( this);
         removeTarget.addActionListener( this);
         gbc= new GridBagConstraints();
         gbc.gridx = 0;
         gbc.gridy = 2;
         gbc.weightx = 1.0;
         gbc.weighty = 0.0;
         gbc.gridwidth= 2;
         gbc.anchor = GridBagConstraints.CENTER;
         gbc.fill = GridBagConstraints.HORIZONTAL;
         gbc.insets = new Insets( 20,5,0,5);
         ((GridBagLayout)p1.getLayout()).setConstraints( p2, gbc);
         p1.add( p2);
         gbc= new GridBagConstraints();
         gbc.gridx= 1;
         gbc.gridy= 0;
         gbc.weightx= 1.0;
         gbc.weighty= 1.0;
         gbc.anchor= GridBagConstraints.CENTER;
         gbc.fill= GridBagConstraints.BOTH;
         gbc.insets= new Insets( 10, 5, 0, 0);
         ((GridBagLayout)p.getLayout()).setConstraints( p1, gbc);
         p.add( p1);
         TitledBorder titledBorder= new TitledBorder( new EtchedBorder(), "Targets");
         p.setBorder( titledBorder);
         return p;
    private JPanel createLocalPanel() {
    JPanel p= new JPanel();
         GridBagLayout gridBagLayout= new GridBagLayout();
    GridBagConstraints gbc;
         p.setLayout( gridBagLayout);
         JLabel label= new JLabel( "IP Address:");
         gbc= new GridBagConstraints();
         gbc.gridx = 0;
         gbc.gridy = 0;
         gbc.weightx = 0.0;
         gbc.weighty = 0.0;
         gbc.anchor = GridBagConstraints.EAST;
         gbc.fill = GridBagConstraints.NONE;
         gbc.insets = new Insets( 5,5,0,5);
         ((GridBagLayout)p.getLayout()).setConstraints( label, gbc);
         p.add( label);
         JTextField tf_local_host= new JTextField( 15);
         gbc= new GridBagConstraints();
         gbc.gridx = 1;
         gbc.gridy = 0;
         gbc.weightx = 0.0;
         gbc.weighty = 0.0;
         gbc.anchor = GridBagConstraints.WEST;
         gbc.fill = GridBagConstraints.NONE;
         gbc.insets = new Insets( 5,5,0,5);
         ((GridBagLayout)p.getLayout()).setConstraints( tf_local_host, gbc);
         p.add( tf_local_host);
         try {
    String host= InetAddress.getLocalHost().getHostAddress();     
         tf_local_host.setText( host);
         } catch( UnknownHostException e) {
         label= new JLabel( "Data Port:");
         gbc= new GridBagConstraints();
         gbc.gridx = 0;
         gbc.gridy = 1;
         gbc.weightx = 0.0;
         gbc.weighty = 0.0;
         gbc.anchor = GridBagConstraints.EAST;
         gbc.fill = GridBagConstraints.NONE;
         gbc.insets = new Insets( 5,5,0,5);
         ((GridBagLayout)p.getLayout()).setConstraints( label, gbc);
         p.add( label);
         tf_data_port= new JTextField( 15);
         gbc= new GridBagConstraints();
         gbc.gridx = 1;
         gbc.gridy = 1;
         gbc.weightx = 0.0;
         gbc.weighty = 0.0;
         gbc.anchor = GridBagConstraints.WEST;
         gbc.fill = GridBagConstraints.NONE;
         gbc.insets = new Insets( 5,5,10,5);
         ((GridBagLayout)p.getLayout()).setConstraints( tf_data_port, gbc);
         p.add( tf_data_port);
         tf_data_port.setText( config.local_data_port);
         TitledBorder titledBorder= new TitledBorder( new EtchedBorder(), "Local Host");
         p.setBorder( titledBorder);
         return p;
    public void actionPerformed( ActionEvent event) {
    Object source= event.getSource();
         if( source == addTarget) {
         String ip= tf_remote_address.getText().trim();
         String port= tf_remote_data_port.getText().trim();
         String localPort= tf_data_port.getText().trim();
         addTargetToList( localPort, ip, port);
         if( avTransmitter != null) {
         avTransmitter.addTarget( ip, port);
         } else if( source == removeTarget) {
         int index= list.getSelectedIndex();
         if( index != -1) {
              Target target= (Target) targets.elementAt( index);
              if( avTransmitter != null) {
         avTransmitter.removeTarget( target.ip, target.port);
              targets.removeElement( target);
              listModel.setData( targets);          
         } else if( source == startXmit) {
         if( startXmit.getLabel().equals( "Start Transmission")) {          
         int data_port= new Integer( tf_data_port.getText()).intValue();
              avTransmitter= new AVTransmitter( this, data_port);
         avTransmitter.start( tf_media_file.getText().trim(), targets);          
              avTransmitter.setLooping( cb_loop.isSelected());
         startXmit.setLabel( "Stop Transmission");
         } else if( startXmit.getLabel().equals( "Stop Transmission")) {
              avTransmitter.stop();
              avTransmitter= null;
              removeNonBaseTargets();
              listModel.setData( targets);
         startXmit.setLabel( "Start Transmission");          
         } else if( source == rtcp) {
         if( rtcpViewer == null) {
         rtcpViewer= new RTCPViewer();
         } else {
              rtcpViewer.setVisible( true);
              rtcpViewer.toFront();
         } else if( source == cb_loop) {
         if( avTransmitter != null) {
              avTransmitter.setLooping( cb_loop.isSelected());
    private void removeNonBaseTargets() {
         String localPort= tf_data_port.getText().trim();
         for( int i= targets.size(); i > 0;) {
         Target target= (Target) targets.elementAt( i - 1);
         if( !target.localPort.equals( localPort)) {
    targets.removeElement( target);
         i--;
    public void addTargetToList( String localPort,
                             String ip, String port) {     
    ListUpdater listUpdater= new ListUpdater( localPort, ip,
                                  port, listModel, targets);
    SwingUtilities.invokeLater( listUpdater);           
    public void rtcpReport( String report) {
         if( rtcpViewer != null) {
         rtcpViewer.report( report);
    public void windowClosing( WindowEvent event) {
         config.local_data_port= tf_data_port.getText().trim();
         config.targets= new Vector();
         for( int i= 0; i < targets.size(); i++) {
         Target target= (Target) targets.elementAt( i);
         if( target.localPort.equals( config.local_data_port)) {
              config.addTarget( target.ip, target.port);
         config.media_locator= tf_media_file.getText().trim();
         config.write();
    System.exit( 0);
    public void windowClosed( WindowEvent event) {
    public void windowDeiconified( WindowEvent event) {
    public void windowIconified( WindowEvent event) {
    public void windowActivated( WindowEvent event) {
    public void windowDeactivated( WindowEvent event) {
    public void windowOpened( WindowEvent event) {
    public void keyPressed( KeyEvent event) {
    public void keyReleased( KeyEvent event) {
    Object source= event.getSource();
         if( source == list) {
         int index= list.getSelectedIndex();
    public void keyTyped( KeyEvent event) {
    public void mousePressed( MouseEvent e) {
    public void mouseReleased( MouseEvent e) {
    public void mouseEntered( MouseEvent e) {
    public void mouseExited( MouseEvent e) {
    public void mouseClicked( MouseEvent e) {
    Object source= e.getSource();
         if( source == list) {
         int index= list.getSelectedIndex();
         if( index != -1) {
              Target target= (Target) targets.elementAt( index);
              tf_remote_address.setText( target.ip);
              tf_remote_data_port.setText( target.port);
         int index= list.locationToIndex( e.getPoint());
    public static void main( String[] args) {
    new Tx();
    class TargetListModel extends AbstractListModel {
    private Vector options;
    public TargetListModel( Vector options) {
         this.options= options;
    public int getSize() {
         int size;
         if( options == null) {
         size= 0;
         } else {
         size= options.size();
         return size;
    public Object getElementAt( int index) {
    String name;
    if( index < getSize()) {
         Target o= (Target)options.elementAt( index);
    name= o.localPort + " ---> " + o.ip + ":" + o.port;
         } else {
         name= null;
         return name;
    public void setData( Vector data) {
         options= data;
         fireContentsChanged( this, 0, data.size());
    class ListUpdater implements Runnable {
    String localPort, ip, port;
    TargetListModel listModel;
    Vector targets;
    public ListUpdater( String localPort, String ip, String port,
                   TargetListModel listModel, Vector targets) {
         this.localPort= localPort;
         this.ip= ip;
         this.port= port;
         this.listModel= listModel;
         this.targets= targets;
    public void run() {
    Target target= new Target( localPort, ip, port);
         if( !targetExists( localPort, ip, port)) {
         targets.addElement( target);
    listModel.setData( targets);
    public boolean targetExists( String localPort, String ip, String port) {
         boolean exists= false;
         for( int i= 0; i < targets.size(); i++) {
         Target target= (Target) targets.elementAt( i);
         if( target.localPort.equals( localPort)
         && target.ip.equals( ip)
              && target.port.equals( port)) {          
              exists= true;
         break;
         return exists;
    >>>>>>>>>>>>>>>>>
    import java.awt.*;
    import java.io.*;
    import java.net.InetAddress;
    import java.util.*;
    import javax.media.*;
    import javax.media.protocol.*;
    import javax.media.format.*;
    import javax.media.control.TrackControl;
    import javax.media.control.QualityControl;
    import javax.media.rtp.*;
    import javax.media.rtp.event.*;
    import javax.media.rtp.rtcp.*;
    public class AVTransmitter implements ReceiveStreamListener, RemoteListener,
    ControllerListener {
    // Input MediaLocator
    // Can be a file or http or capture source
    private MediaLocator locator;
    private String ipAddress;
    private int portBase;
    private Processor processor = null;
    private RTPManager rtpMgrs[];
    private int localPorts[];
    private DataSource dataOutput = null;
    private int local_data_port;
    private Tx tx;
    public AVTransmitter( Tx tx, int data_port) {
         this.tx= tx;
         local_data_port= data_port;
    * Starts the transmission. Returns null if transmission started ok.
    * Otherwise it returns a string with the reason why the setup failed.
    public synchronized String start( String filename, Vector targets) {
         String result;
         locator= new MediaLocator( filename);
         // Create a processor for the specified media locator
         // and program it to output JPEG/RTP
         result = createProcessor();
         if (result != null) {
         return result;
         // Create an RTP session to transmit the output of the
         // processor to the specified IP address and port no.
         result = createTransmitter( targets);
         if (result != null) {
         processor.close();
         processor = null;
         return result;
         // Start the transmission
         processor.start();
         return null;
    * Use the RTPManager API to create sessions for each media
    * track of the processor.
    private String createTransmitter( Vector targets) {
         // Cheated. Should have checked the type.
         PushBufferDataSource pbds = (PushBufferDataSource)dataOutput;
         PushBufferStream pbss[] = pbds.getStreams();
         rtpMgrs = new RTPManager[pbss.length];
         localPorts = new int[ pbss.length];
         SessionAddress localAddr, destAddr;
         InetAddress ipAddr;
         SendStream sendStream;
         int port;
         SourceDescription srcDesList[];
         for (int i = 0; i < pbss.length; i++) {
         // for (int i = 0; i < 1; i++) {
         try {
              rtpMgrs[i] = RTPManager.newInstance();     
              port = local_data_port + 2*i;
              localPorts[ i]= port;
              localAddr = new SessionAddress( InetAddress.getLocalHost(),
                                  port);
              rtpMgrs.initialize( localAddr);          
              rtpMgrs[i].addReceiveStreamListener(this);
              rtpMgrs[i].addRemoteListener(this);
         for( int k= 0; k < targets.size(); k++) {
              Target target= (Target) targets.elementAt( k);
              int targetPort= new Integer( target.port).intValue();
              addTarget( localPorts[ i], rtpMgrs[ i], target.ip, targetPort + 2*i);
              sendStream = rtpMgrs[i].createSendStream(dataOutput, i);          
              sendStream.start();
         } catch (Exception e) {
              e.printStackTrace();
              return e.getMessage();
         return null;
    public void addTarget( String ip, String port) {
         for (int i= 0; i < rtpMgrs.length; i++) {
         int targetPort= new Integer( port).intValue();
         addTarget( localPorts[ i], rtpMgrs[ i], ip, targetPort + 2*i);
    public void addTarget( int localPort, RTPManager mgr, String ip, int port) {
         try {
         SessionAddress addr= new SessionAddress( InetAddress.getByName( ip),
                                  new Integer( port).intValue());
         mgr.addTarget( addr);
         tx.addTargetToList( localPort + "", ip, port + "");
         } catch( Exception e) {
         e.printStackTrace();
    public void removeTarget( String ip, String port) {
         try {     
         SessionAddress addr= new SessionAddress( InetAddress.getByName( ip),
                                  new Integer( port).intValue());
         for (int i= 0; i < rtpMgrs.length; i++) {
         rtpMgrs[ i].removeTarget( addr, "target removed from transmitter.");
         } catch( Exception e) {
         e.printStackTrace();
    boolean looping= true;
    public void controllerUpdate( ControllerEvent ce) {
         System.out.println( ce);
         if( ce instanceof DurationUpdateEvent) {
         Time duration= ((DurationUpdateEvent) ce).getDuration();
         System.out.println( "duration: " + duration.getSeconds());
         } else if( ce instanceof EndOfMediaEvent) {
         System.out.println( "END OF MEDIA - looping=" + looping);
         if( looping) {
         processor.setMediaTime( new Time( 0));
              processor.start();
    public void setLooping( boolean flag) {
         looping= flag;
    public void update( ReceiveStreamEvent event) {
         String timestamp= getTimestamp();
         StringBuffer sb= new StringBuffer();
         if( event instanceof InactiveReceiveStreamEvent) {
         sb.append( timestamp + " Inactive Receive Stream");
         } else if( event instanceof ByeEvent) {
         sb.append( timestamp + " Bye");
         } else {
         System.out.println( "ReceiveStreamEvent: "+ event);
         tx.rtcpReport( sb.toString());     
    public void update( RemoteEvent event) {     
         String timestamp= getTimestamp();
         if( event instanceof ReceiverReportEvent) {
         ReceiverReport rr= ((ReceiverReportEvent) event).getReport();
         StringBuffer sb= new StringBuffer();
         sb.append( timestamp + " RR");
         if( rr != null) {
              Participant participant= rr.getParticipant();
              if( participant != null) {
              sb.append( " from " + participant.getCNAME());
              sb.append( " ssrc=" + rr.getSSRC());
              } else {
              sb.append( " ssrc=" + rr.getSSRC());
              tx.rtcpReport( sb.toString());
         } else {
         System.out.println( "RemoteEvent: " + event);
    private String getTimestamp() {
         String timestamp;
         Calendar calendar= Calendar.getInstance();
         int hour= calendar.get( Calendar.HOUR_OF_DAY);
         String hourStr= formatTime( hour);
         int minute= calendar.get( Calendar.MINUTE);
         String minuteStr= formatTime( minute);
         int second= calendar.get( Calendar.SECOND);
         String secondStr= formatTime( second);
         timestamp= hourStr + ":" + minuteStr + ":" + secondStr;     
         return timestamp;
    private String formatTime( int time) {     
         String timeStr;
         if( time < 10) {
         timeStr= "0" + time;
         } else {
         timeStr= "" + time;
         return timeStr;
    * Stops the transmission if already started
    public void stop() {
         synchronized (this) {
         if (processor != null) {
              processor.stop();
              processor.close();
              processor = null;
         for (int i= 0; i < rtpMgrs.length; i++) {
         rtpMgrs[ i].removeTargets( "Session ended.");
              rtpMgrs[ i].dispose();
    public String createProcessor() {
         if (locator == null) {
         return "Locator is null";
         DataSource ds;
         DataSource clone;
         try {
         ds = javax.media.Manager.createDataSource(locator);
         } catch (Exception e) {
         return "Couldn't create DataSource";
         // Try to create a processor to handle the input media locator
         try {
         processor = javax.media.Manager.createProcessor(ds);
         processor.addControllerListener( this);     
         } catch (NoProcessorException npe) {
         return "Couldn't create processor";
         } catch (IOException ioe) {
         return "IOException creating processor";
         // Wait for it to configure
         boolean result = waitForState(processor, Processor.Configured);
         if (result == false)
         return "Couldn't configure processor";
         // Get the tracks from the processor
         TrackControl [] tracks = processor.getTrackControls();
         // Do we have atleast one track?
         if (tracks == null || tracks.length < 1)
         return "Couldn't find tracks in processor";
         // Set the output content descriptor to RAW_RTP
         // This will limit the supported formats reported from
         // Track.getSupportedFormats to only valid RTP formats.
         ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW_RTP);
         processor.setContentDescriptor(cd);
         Format supported[];
         Format chosen;
         boolean atLeastOneTrack = false;
         // Program the tracks.
         for (int i = 0; i < tracks.length; i++) {
         Format format = tracks[i].getFormat();
         if (tracks[i].isEnabled()) {
              supported = tracks[i].getSupportedFormats();
              // We've set the output content to the RAW_RTP.
              // So all the supported formats should work with RTP.
              // We'll just pick the first one.
              if (supported.length > 0) {
              if (supported[0] instanceof VideoFormat) {
                   // For video formats, we should double check the
                   // sizes since not all formats work in all sizes.
                   chosen = checkForVideoSizes(tracks[i].getFormat(),
                                       supported[0]);
              } else
                   chosen = supported[0];
              tracks[i].setFormat(chosen);
              System.err.println("Track " + i + " is set to transmit as:");
              System.err.println(" " + chosen);
              atLeastOneTrack = true;
              } else
              tracks[i].setEnabled(false);
         } else
              tracks[i].setEnabled(false);
         if (!atLeastOneTrack)
         return "Couldn't set any of the tracks to a valid RTP format";
         // Realize the processor. This will internally create a flow
         // graph and attempt to create an output datasource for JPEG/RTP
         // audio frames.
         result = waitForState(processor, Controller.Realized);
         if (result == false)
         return "Couldn't realize processor";
         // Set the JPEG quality to .5.
         setJPEGQuality(processor, 0.5f);
         // Get the output data source of the processor
         dataOutput = processor.getDataOutput();
         return null;
    static SessionAddress destAddr1, destAddr2;
    * For JPEG and H263, we know that they only work for particular
    * sizes. So we'll perform extra checking here to make sure they
    * are of the right sizes.
    Format checkForVideoSizes(Format original, Format supported) {
         int width, height;
         Dimension size = ((VideoFormat)original).getSize();
         Format jpegFmt = new Format(VideoFormat.JPEG_RTP);
         Format h263Fmt = new Format(VideoFormat.H263_RTP);
         if (supported.matches(jpegFmt)) {
         // For JPEG, make sure width and height are divisible by 8.
         width = (size.width % 8 == 0 ? size.width :
                        (int)(size.width / 8) * 8);
         height = (size.height % 8 == 0 ? size.height :
                        (int)(size.height / 8) * 8);
         } else if (supported.matches(h263Fmt)) {
         // For H.263, we only support some specific sizes.
         if (size.width < 128) {
              width = 128;
              height = 96;
         } else if (size.width < 176) {
              width = 176;
              height = 144;
         } else {
              width = 352;
              height = 288;
         } else {
         // We don't know this particular format. We'll just
         // leave it alone then.
         return supported;
         return (new VideoFormat(null,
                        new Dimension(width, height),
                        Format.NOT_SPECIFIED,
                        null,
                        Format.NOT_SPECIFIED)).intersects(supported);
    * Setting the encoding quality to the specified value on the JPEG encoder.
    * 0.5 is a good default.
    void setJPEGQuality(Player p, float val) {
         Control cs[] = p.getControls();
         QualityControl qc = null;
         VideoFormat jpegFmt = new VideoFormat(VideoFormat.JPEG);
         // Loop through the controls to find the Quality control for
         // the JPEG encoder.
         for (int i = 0; i < cs.length; i++) {
         if (cs[i] instanceof QualityControl &&
              cs[i] instanceof Owned) {
              Object owner = ((Owned)cs[i]).getOwner();
              // Check to see if the owner is a Codec.
              // Then check for the output format.
              if (owner instanceof Codec) {
              Format fmts[] = ((Codec)owner).getSupportedOutputFormats(null);
              for (int j = 0; j < fmts.length; j++) {
                   if (fmts[j].matches(jpegFmt)) {
                   qc = (QualityControl)cs[i];
                   qc.setQuality(val);
                   System.err.println("- Setting quality to " +
                             val + " on " + qc);
                   break;
              if (qc != null)
              break;
    * Convenience methods to handle processor's state changes.
    private Integer stateLock = new Integer(0);
    private boolean failed = false;
    Integer getStateLock() {
         return stateLock;
    void setFailed() {
         failed = true;
    private synchronized boolean waitForState(Processor p, int state) {
         p.addControllerListener(new StateListener());
         failed = false;
         // Call the required method on the processor
         if (state == Processor.Configured) {
         p.configure();
         } else if (state == Processor.Realized) {
         p.realize();
         // Wait until we get an event that confirms the
         // success of the method, or a failure event.
         // See StateListener inner class
         while (p.getState() < state && !failed) {
         synchronized (getStateLock()) {
              try {
              getStateLock().wait();
              } catch (InterruptedException ie) {
              return false;
         if (failed)
         return false;
         else
         return true;
    * Inner Classes
    class StateListener implements ControllerListener {
         public void controllerUpdate(ControllerEvent ce) {
         // If there was an error during configure or
         // realiz

    I do this all the time, I put my MBP to a 60 inch Sharp. If you have the video working do the simple thing first. Check to make sure your sound is on your TV and Mac. Then if that doesn't work go to System Prefrences and under sound go to a tab called Output and see if your TV is listed and if it is change it to that setting
    Hope It Works

Maybe you are looking for