JMF issues for video conferencing

I've have been playing with JMF for a few weeks now, trying different things, specifically creating a video conference app, like everybody else here.
I've noticed several weird issues, and was hoping somebody could provide feedback on them;
1) when setting the format for the tracks on a transmitting processor, I get a Class Cast Exception:
TrackControl track[] = processor.getTrackControls();
FormatControl fc = null;
for (int i=0; i < track.length; i++) {
if (!retval && track[i] instanceof FormatControl) {
try {
fc = (FormatControl) track.setFormat(new VideoFormat(VideoFormat.JPEG_RTP));
retval = true;
} catch (Exception e) {
// Always goes here, ClassCastException thrown on Format
System.out.println("Info: exception setting track");
} else {
track[i].setEnabled(false);
2) The image coming from the webcam is flipped, which I transport as so, and just flip the image using drawImage. Is there a better way of doing this, because I assume not all webcams will capture the image flipped, and I have read that encryption works better if the image is not flipped.
3) Client freezes when server stops broadcasting. I'm using a medialocator on the client with the rtp url to the broadcasting datasink. How can I capture the stop broadcasting event on the client and stop the client process cleanly?
4) Server freezes when I stop broadcasting and have a client connected to the rtp locator. I use a processor.close() call on the server which works fine when no clients are connected to the rtp url of the broadcast. When a client is connected the close call hangs indefinately, even when I close the client.
5) Performace is really slow. When the client connects to the media locator rtp url (running on the same machine) it takes upto 2 minutes to initialize, and transfer seems to be sparadic. The transfer often stops and starts again, but I'm not even going through the internet, I'm broadcasting on my local machine, with my client running on the same machine. I use a new laptop with 256MB, performance of the machine is fine.
Any advice would be greatly appreciated.

3) Client freezes when server stops broadcasting. I'm using a medialocator on the client with the rtp url to the broadcasting datasink. How can I capture the stop broadcasting event on the client and stop the client process cleanly?
If your client s/w implements ReceiveStreamListener then you can use
*     ReceiveStream Listener
public void update(ReceiveStreamEvent e)
     RTPManager rtpM = (RTPManager)e.getSource();
     Object obj = e.getReceiveStream();
     if(obj != null)
     ReceiveStream rS = (ReceiveStream)obj;
     DataSource dS = rS.getDataSource();
     if(e instanceof StreamMappedEvent)
          System.out.println("Received an RTP StreamMappedEvent");
     else if(e instanceof NewReceiveStreamEvent)
          System.out.println("Received an RTP NewReceiveStreamEvent");
          try{
          rS = ((NewReceiveStreamEvent)e).getReceiveStream();
          if(participant != null)
               establishPlayer(participant.getCNAME(), dS, rtpM);
          else
               establishPlayer(null, dS, rtpM);
          }catch(Exception eX){
          eX.printStackTrace();
     else if(e instanceof InactiveReceiveStreamEvent)
          System.out.println("Received an RTP InactiveReceiveStreamEvent");
     else if(e instanceof ActiveReceiveStreamEvent)
          System.out.println("Received an RTP ActiveReceiveStreamEvent from '" + participant.getCNAME() + "' with '" + dS + "' DataSource");
     else if(e instanceof RemotePayloadChangeEvent)
          System.out.println("Received an RTP RemotePayloadChangeEvent");
you can do something appropriate in the InactiveReceiveStreamEvent
NOTE there isn't a way to recover the straem after this, so your expectation wo0uld be that the server-side is also shutting the stream down

Similar Messages

  • Test Plan for Video Conferencing

    We are planning to set up an MPLS network exclusively for video conferencing. I need to prepare a test plan for the tests to conduct to check the conferencing performance and related parameters after the implementation.
    I am pretty new in Video conferencing. May someone help me to prepare a test plan for this?

    Do you have some more details about the equipment and setup you want to test.

  • Requirement for Video Conferencing on CallManager 3.3

    hi,
    can anyone help me on this? Im preparing for a proposal for implementing video conferencing on a CallManager 3.3. VidCon should be used on the HQ and two branch offices.
    Tnx...

    the need to use video conferencing should be considered as a factor for upgrading your call managers to at least 4.1.
    many enhancements, fixes and features, especially for video conferencing, have been introduced since 3.3.
    if you required vidConf with 3.3, you should consider using a polycom solution.
    http://polycom.com/products_services/1,1443,pw-35,00.html
    the VSX series is pretty nice with straight forward config/administration and of course, superb polycom technology/support.
    (may not be the cheapest solution but it's definately stable and works well)
    NOTE: the cisco IP Video Phones, 7985G, may be able to fulfill your needs; especially if vidConf is only intraCompany.
    (requires 7985 phones, ccm 4.1+ and a cisco MCU)

  • Jtapi for video conferencing

    can jtapi be used for video conferencing implementation?

    cross posted here:
    http://forum.java.sun.com/thread.jsp?thread=522107&forum=28&message=2497931

  • Trying to bypass CAC for Video Conferencing using EnableBWPolicyOverride

    Scenario:
    CAC enabled and bandwith policy defined for all company sites. Video bandwidth very restricted (250 Kbps).
    VIP users were granted a Voice Policy with EnableBWPolicyOverride=TRUE (VIP users must bypass CAC).
    Test:
    P2P Video Calls between VIP users bypass CAC, allowing high video resolutions (Ok!).
    Video Conferences between VIP users don't bypass CAC, limiting video to low resolution (NOT ok).
    Is this expected, that Video Conferencing will not respect the EnableBWPolicyOverride=TRUE from the Voice Policy? (I know, it's a VOICE Policy and I'm tlaking about VIDEO. But remember, on P2P video call the bypass worked.
    Any ideas?

    Hi,
    Bandwidth policy override enables administrators to override call admission control policy decisions for a particular user, however, the policy will be overridden only for incoming calls to the user and not for outgoing calls that are placed by
    the user. So I think the policy does not apply to video conference.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Best option for video conferencing in ios app ?

    I want to implement video conferencing in ios app. what is the best option for this?

    There are several: Fuze, Webex, are a few. These two also have desktop components. Try looking in the app store and googling to see if you can also find reviews/suggestions and other options on the web.

  • HP LTO-6 Compressio​n issues for video files

    Hi there,
    My client is having major issues with the HP 6250 LTO-6 external tape drive, with HP LTO-6 tapes.
    We are backing up video files and getting zero compression even tho it has been enabled on the yosemite software. The tapes also show a compression of 2.5TB but we need the extra compression as this is for video systems. 
    Can someone assist with this ? is it because we are trying to compress video files ?
    Any help would be appreciated.
    Thanks

    Hi @cortesvlm ,
    Thank you for visiting the HP Support Forums and Welcome. I have looked into your issue about your HP Pavilion Sleekbook 15-b002ee Notebook and the need to compression bypass on the Beats Audio Software .
    To enable or disable Beats Audio, press the fn key in combination with the b key. The Jack does have influence on the Beats Audio which might need to be turned off. This will help and you can turn it off and on as you need it.
     Here is a document on how to uninstall software. The bottom link shows you how to disable software.
    Hope this answers your concerns.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • ITunes Movie Artwork Issue For Videos Purchased From iTunes

    There appear to be a number of different issues with iTunes and Movie Artwork but my issue seems to be a little different – and I have a workaround for it – so I thought I'd post it here in the hope that it will save someone else some time.
    Config:  iMac 27" / Latest Mountain Lion / Itunes 11 *in 64 bit mode*
    Issue:  HD movies purchased and downloaded in iTunes won't let me add artwork.  I use 'get info' on the movie in question, select the artwork tab, and then drag a picture across from Google Images.  It appears to work fine.  I collapse the 'get info' window.  To check to see if the artwark was saved, I use the 'get info' command on the same movie.  The artwork is not there.  It was not saved.
    Additional Info:
    1.  I have no problem adding artwork (using the exact same process) to any movies that I've ripped from DVDs using Handbrake.
    2.  I discovered that the movies in question that I downloaded wouldn't play when launched from iTunes.  The failure message said that playback required Quicktime.  I have old and new versions of Quicktime on my Mac.  Didn't seem to make sense.  I researched the failure to play problem and the workaround for that also fixed my artwork problem. 
    Workaround:
    1.  Quit out of iTunes.
    2.  In the applications folder, find iTunes, right click the app file and select 'get info'.
    3.  Tick the box that says "open in 32 bit mode".  Collapse the 'get info' window.
    4.  Open iTunes.
    5.  Launch the movie in question.  If you get a failure message, just hit 'cancel'.  The movie will open and begin playing, likely with no sound.
    6.  Quit the movie.
    7.  Select the movie in question and do 'get info' on it.
    8.  Select the artwork tab and drag your artwork into the blank window.  Collapse the 'get info' window.
    9.  Repeat steps 5 through 8 for all the movies you've had trouble with.
    10.  Repeat steps 1 through 4, but this time untick the box that says "open in 32 bit mode".
    All your artwork should be ok now, and you should be able to make changes for those files from this point on without using this workaround.
    So - my question is, does anyone know why there is an issue with 32-bit vs 64-bit and if there is a way to fix it so this workaround isn't needed?
    Cheers.

    I am having this same problem ever since I upgraded to iTunes 7.x. When I was using 6.x, the videos displayed fine but after the upgrade, they were no longer viewable. The audio is skipping and I only receive flashing colors in the panel where the video should be displayed. I am currently using iTunes 7.5 and not only a problem with video display but also can not view album art in the Cover Flow display. Only a series of different colored squares where the album should be displayed. I have two Sony Vaios one works and one does not. The Vaio PCV-RZ34G with 1GB RAM does not work but a Vaio VGC-RB53 with 512MB works fine. I have searched for video driver updates and have not found any solution. The problem only seems to appear with any video played with Quicktime. Video played with other video applications works fine. I have just lived with no quicktime video or cover flow on the PCV-RZ43G. This has been an excellent system with the only problem being the video conflict with quicktime.

  • What programs are better to use than iChat for video conferencing?

    Please help I keep using iChat and it never works any more. What is better to use? Just name some so I can video conference. Thank you for your help

    Hi,
    Scroll this section fro items 5 through 12
    http://www.ralphjohns.co.uk/page5.html#_other
    Also this page http://www.ralphjohns.co.uk/EZJim/EZJimpage7.html for APps in general.
    9:51 PM Wednesday; January 27, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Battery issue for Video ipod

    after watching videos on my ipod, the battery seems to drain a little too much. for example, an episode of friends which is 23 mins long, takes away half the battery life. surely this is not normal. anyone know if and how i can solve this. do i need to take it to the apple store to change the battery and how much does that cost???

    Nevermind.

  • Is it possible to use a Cisco 2800 IOS H323 voice gateway for video conferencing over ISDN?

    I have seen this page and was wondering if what it says actually is possible and works? I also have got a CUCM 8.6 that I would like to use for call routing via my old 2600XM gatekeeper.
    http://www.cisco.com/c/en/us/td/docs/ios/12_4t/12_4t11/h320gw.html#wp1047659

    I have seen this page and was wondering if what it says actually is possible and works? I also have got a CUCM 8.6 that I would like to use for call routing via my old 2600XM gatekeeper.
    http://www.cisco.com/c/en/us/td/docs/ios/12_4t/12_4t11/h320gw.html#wp1047659

  • Video Conferencing in Air 3 for Android/IOS

    Hi,
    We are in the process of creating a Video Conferencing application for Android and IOS devices, the app would be published on Android and IOS market.  I have some quires related to using Air 3.0 for the development:
    For Android devices Front facing camera is supported only in Air 3.0, but can we assume Air 3.0 would be officially available by end of this year?
    Would this feature available for all Android 2.2 and above devices?
    Can we use Flash Media Server/any other streaming server for video conferencing?
    I have read in some of the post that Apple store do not allow video streaming with RTMP, is this true? Is there any work-around to use streaming video from within Air app for IOS?
    Thanks in advance!
    Sangram

    I used milkmangames ANE. (50$), because i didnt want to fork the code for each os.
    http://www.milkmangames.com/blog/tools/
    It was "easy" to set up (quotes: as easy as something complicate can be).
    Consumables, or One-time-purchases worked out of the box, but restore, subscriptions and auto subscriptions (like newspapers) had bugs like hell and were unusable.
    Also check out here for some free stuff (wich propably works as well as the comercial, "supported" stuff, stupid-me)...
    https://github.com/freshplanet/ANE-In-App-Purchase
    More ANEs:
    http://sleepydesign.blogspot.de/2012/07/ane-free-air-native-extensions.html

  • Risks when using DV camcorder for ichat video conferencing..

    I have a sony dcr pc350. Bought it January of this year and havent had problems with it until recently. For some reason, the video head was damaged. When i play my DV tapes on it, thick gray horizontal lines appear, or sometimes it refuses to play the tapes completely. I just recently read one of the topics in the ichat AV FAQ and it mentioned that there's a risk that using a DV camcorder for ichat AV video conferencing can actually damage the camcorder. Now i'm wondering if that's the reason why my dv cam is damaged now. I haven't been using it to shoot some video footage for a while now, but i have been using it to video conference very often for about over a month now. And then recently, when i had to use it to shoot some video, that's when i saw that the camera needed repairs. As i've mentioned, I havent been using it for anything else (not even to shoot video) and i havent dropped it or anything. I pretty much take good care of it. So i'm thinking that it was my constant use of it for video conferencing that did the damage.
    So my question is:
    Has anyone else experienced some camcorder damage that might be related to frequent video conferencing use? If it does indeed damage the camcorder, what specifically does it do to it (what does it damage, how exactly does it cause the damage, etc...)? I'd like to know so I can be more specific when I bring it to the service shop for repairs.

    Hello Albert,
    I do NOT think that using your Sony with iChat AV poses any greater risk than using it for other things.
    I used my Sonys (DCR-TRV17 and DCR-TRV70) for a while, but I switched to iSight before I damaged them. (I am clumsy.)
    The kinds of damage I contemplated in the iSight vs Camcorder or other web-cam FAQ were:
     - dropping or tipping the camera or the tripod upon which it was mounted,
     - contamination from dirt, body oils, or dust, etc.,
     - wear on the heads and internal moving components, and
     - wear on the camera's electrical connections.
    Moreover, regular professional clean and adjust is required for my Sonys based on usage hours. Such is NOT required for iSight.
    Some of those risks can be mitigated by careful placement and use and by keeping the tape out when using the camera, but some risk always exists when using the equipment. My thought was that, if I wore out or damaged a camera by using it for hundreds of hours of video chat, I would rather wear out or damage iSight, which is cheaper than my Sonys were.
    Please post back what your Sony Service Tech finds. I will be eager to read whether your camera needed more than a professional clean and adjust.
    EZ Jim

  • HT4534 Mac Mini HD Video Conferencing

    I am considering purchase of a mac-mini for video conferencing.  This article (http://support.apple.com/kb/HT4534?viewlocale=en_US) refers to "built in camera".  Of course, the mac-mini has no built in camera.  I would be using my HDTV for a monitor.  Can I use the Logitech c910 & the mini for HD Facetime?

    I also have a mac mini and am using the Logitech C920.  At the beggining, I had issues with its built in mics not working with FaceTime, but I found a solution for the problem and now all the programs that interface with the camera work great (FT, Skype, iMovie, etc).  If you do buy the C920 run into the same issue that I had with the mic not working, here is the quick solution for the problem:
    Cause of Problem:  The Logitech C920 camera/mic operates on a 2ch-16bit integer.  You can verify this by opening "finder + Utilities + Audio MIDI Setup" and then select the HD Pro Webcam C920 and look at the "Input" Default values.
    The Mac Mini's "Built-In Output" and "Buiilt-In Input" formats were set for 2ch-24 bit integer.  Therefore, the default input and output were out of sync with the C920 default format.
    Solution:  Change the Mac Mini's default Output to "2ch-16 bit integer".  You don't need to change the default Input but it doesn't hurt to do so.  Once you do this, the camera and it's built in mics work on facetime and all other video chat applications.

  • QoS config for Video Traffic

    Hello all,
    I have a campus network with several remote sites, at the campus I have a 6509 at the core and 3560 and 3750 switches at the access layer. I do have QoS enable on the 6509 and I am using auto QoS on the 3560 and 3750 switches and all seems to be working fine with my existing VOIP environment. But now as I am in the middle of rolling out a video conferencing solution with the existing QoS config I am experiencing a noticeable delay between audio and video. Example like during a video call I can tell that the voice and the lips of the person speaking are not in synch.
    Has anyone run into this issue ? can someone provide me a sample QoS config for the 6509 and 3560/3750 switches ?
    P.S. I am using a Tandberg/Codian solution for video conferencing with Tandberg/Codian MCU, IP Gateway, ISDN Gateway and Tandberg endpoints. And both the endpoints and the back-end infrastructure devices and are set for IP Precedence 5.
    Thank you very much in advance !!!
    Danny

    The main concern with configuring your back-end infrastructure devices with IP Precedence value 5 is that the 3560/3750 auto-qos will map this value to Q1 which is ordinarily the strict priority Q.
    In most cases auto-qos will also configure or map Video to Q3, you can see this as a majority SRR bandwidth is assigned to the Q.
    In order to use the strict priority queue, it has to be enabled on the interface 'priority-queue out', without it Q1 will not be emptied before the others. It will be serviced according to the weight.
    With auto-qos Q1 will not have enough bandwidth as it will be assigned to Q3. Therefore you could initially enable priority-queue if not already enabled so that Q1 is emptied first, or you increase the weight.
    The next question is whether you are using egress scheduling within the Core? and this conforms to your edge classification for Video?
    HTH.
    Allan

Maybe you are looking for