Very low video framerate when sound activated

Hi Guys,
hope you can help me with a problem that already cost me 2 days.
Basically I used the AVTransmit2 and AVReceive2 classes as a draft for my own implementations (see below).
                DataSource video_ds      = getVideoSource(new Dimension(640, 480), 30.0f);
          DataSource audio_ds      = getAudioSource();
                // when I use only one datasource here everything is ok (normal audio or 30fps video)
          DataSource[] sources      = new DataSource[] {video_ds, audio_ds};
          try {
               processor_ds = Manager.createMergingDataSource(sources);
          } catch (IncompatibleSourceException e) {
               return "IncompatibleSourceException creating data sources";
          processor = javax.media.Manager.createProcessor(processor_ds);
                .......The problem I have is when using both datasources, video and audio creating a merged datasource.
Then the framerate drops down to 1-2 fps. I tested this on 2 different pc's here with 3 different cameras and with JMStudio it seems to be the same.
When capturing audio and video and transmitting via RTP, the resulting frame is showing video with 1 fps (Monitor seems to be ok).
When using AVTransmit2 and AVReceive2 without any changes I've the same problem.
Is this a known problem that a webcam stream with audio can't be transferred fluently?
When needed, I can post the code of my two classes to be run standalone (It's quite big so I leave it out for the moment).
Thanks in advance for your help.
Edit:
This is the output of my capture program:
Found video capture device vfw:Microsoft WDM Image Capture (Win32):0
DataSource created for device
Supported video format: YUV Video Format: Size = java.awt.Dimension[width=640,height=480] MaxDataLength = 460800 DataType = class [B yuvType = 2 StrideY = 640 StrideUV = 320 OffsetY = 0 OffsetU = 307200 OffsetV = 384000
Supported video format: RGB, 160x120, Length=57600, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=480, Flipped
Supported video format: RGB, 176x144, Length=76032, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=528, Flipped
Supported video format: RGB, 320x240, Length=230400, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=960, Flipped
Supported video format: RGB, 352x288, Length=304128, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=1056, Flipped
Supported video format: RGB, 640x480, Length=921600, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=1920, Flipped
Setting capture format to RGB, 640x480, FrameRate=30.0
Input format for RTP conversion: RGB, 640x480, FrameRate=30.0, Length=921600, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=1920, Flipped
Track 0 is set to transmit as: JPEG/RTP, 640x480, FrameRate=30.0
Input format for RTP conversion: LINEAR, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed
Track 1 is set to transmit as: gsm/rtp, 8000.0 Hz, 8-bit, Mono
- Set quality to 0.5 on com.sun.media.codec.video.jpeg.NativeEncoder$1$QCA@1ef9f1d
RTP channel opened to: 192.168.0.101 5030
RTP channel opened to: 192.168.0.101 5032and here the output of the receiver / playback program:
  - Open RTP session for: addr: 192.168.0.101 port: 5030 ttl: 1
  - Waiting for RTP data to arrive...
  - Received new RTP stream: gsm/rtp, 8000.0 Hz, Mono
      The sender of this stream had yet to be identified.
  - Received new RTP stream: JPEG/RTP
      The sender of this stream had yet to be identified.
  - A new participant had just joined: otto@meier
  - A new participant had just joined: otto@meier
  - The previously unidentified stream
      gsm/rtp, 8000.0 Hz, Mono
      had now been identified as sent by: otto@meier
  - A new participant had just joined: otto@meier
  - The previously unidentified stream
      JPEG/RTP
      had now been identified as sent by: rlamotte@chumbellAlso curious and it would be great if somebody could bring some light in there:
I thought I would need two RTPManager instances for the two tracks, so one socket for audio and one for video.
But, when I configure my receiver only for listening on port 5030 with one RTPManager instance, I get both, audio and video.
So, what's the normal approach to implement a video/audio transmission via RTPManager?
Edited by: user2293420 on 18.07.2011 08:33

Hi captfoss,
thanks for your reply.
"Highest possible quality" and JMF shouldn't really ever be used in the same sentence. JMF is 10 year old streaming technology designed to run on machines and networks that were medocre 12 years ago.I know, I was just referring to the 640x480 resolution. This has to be enough for the moment and maybe next year we will see how to improve that.
So, make your code work like the AVTransmit2 example works. They wrote the example the way they did for a reason.That's exactly how I have it implementing now.
private String createTransmitter() {
         DataSource ds = dataOutput;
         PushBufferDataSource pbds = (PushBufferDataSource)dataOutput;
         PushBufferStream pbss[] = pbds.getStreams();
          SendStream sendStream;
          String portNumber;
          String media = "";
          int port = 0;
         try {
              for (int i=0; i<pbss.length; ++i) {
                   SessionAddress address = null;
                   RTPManager mgr = RTPManager.newInstance();
                   if (pbss.getFormat() instanceof VideoFormat) {
                    port = localVideoPort;
                    media = "Video";
                    videoRtpManager = mgr;
               else if (pbss[i].getFormat() instanceof AudioFormat) {
                    port = localAudioPort;
                    media = "Audio";
                    audioRtpManager = mgr;
               address = new SessionAddress(InetAddress.getLocalHost(), port);
               mgr.initialize(address);                    
               mgr.addTarget(address);
                    sendStream = mgr.createSendStream(ds, i);          
                    sendStream.start();
                    portNumber = (port == SessionAddress.ANY_PORT) ? "ANY_PORT" : Integer.toString(port);
                    log.info("RTP Manager for " + media + " capture created on port " + portNumber);
     } catch (Exception e) {
          e.printStackTrace();
          return e.getMessage();
          return null;
It's working very good and stable now. When I transmit H263_RTP video with DVI_RTP audio, it works great (apart from the resolution, just the FPS which are constantly > 25). The problem is when I change to JPEG_RTP (640x480) with DVI_RTP, then the framerate drops until 1 FPS. This just the encoding part of the processor, the capture format of the datasource is always RGB and it not touched when I change the encoding format.
Also, I can transmit JPEG_RTP with 640x480 and 30 FPS but only when I disable the audio track in the processor.
Any clue why this could happen?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • When I make an outgoing call the recipient cannot hear me very well as though the volume was turned down very low. However when I activate the speakerphone the recipient can hear me loud and clear. I transferred my SIM Card into a new device Same problem

    When I make an outgoing call the recipient cannot hear me very well as though the volume was turned down very low. However when I activate the speakerphone the recipient can hear me loud and clear. I transferred my SIM Card into a new device only to be subjected to the exact same problem. I have reset the phone clearing all the data and updated to the most recent software version available from itunes; and still no improvements. The results of my switching to a new phone would indicate a software issue.
    Does anyone out there have this problem and how can it be fixed?
    Thanks,
    Teresa

    Try removing the screen protector that is covering the microphone.
    Scratch that; wrong answer. I thought you meant you had trouble hearing.

  • Very low signal strength when using DLINK 2640t with mac mini

    i have a mac mini and i have been using it fine with a 2wire wireless modem. However i have just switched to a Dlink 2640t (54Mbps (802.11g) Wireless ADSL 2/2+ Router with Built-in Modem, 4-port 10/100Mbps Switch) and have been getting very low signal strengths on my mac mini, resulting in me not being able to surf the internet. The modem+ router is located in the next room. Does anyone know whether its the problem with the modem router or mac mini's airport wireless problems with the router itself. It worked perfectly fine with my previous 2wire wireless modem
    please help!

    Did you reset the router after you updated router's firmware? Its always recommended to perform a reset after firmware upgrade on the router.
    Please refer to the link http://www6.nohold.net/Cisco2/ukp.aspx?vw=1&docid=eaa3127db5f4402584c959a7251e754c_4008.xml&pid=80&r...
    For wireless range and signal issues, try changing the channel on the router to either 1,6,9 or 11.
    Please refer to this link on changing wireless channel and SSID (network name)
    http://www6.nohold.net/Cisco2/ukp.aspx?vw=1&docid=a0fb6c64337e47eb9e3e1027f364e70c_154.xml&pid=80&re...

  • I do a radio show, when I pre-record i get a very low end hiss, almost sounds like gain is too high, but its not. If Im live to the station its fine. It only happens when I record. Is there a way to set audition NOT to record that low end sound?

    I use an Allen & Heath broadcast board. When I record to my computer for later broadcast there is a low end hiss/hum barely noticeable when im speaking BUT very prominent when there is a quiet moment.
    Sounds like gain may be tooo high, BUT its not.  When I do a LIVE broadcast using same equipment all is fine!
    Thoughts

    Well, several thoughts here...
    First, what are you using to get from the A&H mixer into your computer and is it in the chain when you broadcast live?  I ask because a lot of built in sound cards are pretty noisy and that could be the source of the problem, fixable with even a very cheap external USB interface
    Second, if the hiss actually starts at the mic/mixer, I know the A&H XB series has a high pass filter on every mic channel.  Have you engaged that?
    That said, it's pretty rare for hiss to be such a low frequency that the high pass filter will kill it.  You may get on better with the Noise Reduction feature in Audition, applied after the recording.
    Anyhow, to repeat how I started, what's your signal chain when recording and how does it differ from when you go live?

  • Very low performance level when the Server has 2 actives Network Interf.

    In a server Pentium IV 2.0 GHz, 1 Gbyte RAM, Windows 2000 Adv. Server, with two network interfaces, we observe a lower [really critical]performance when the two network interfaces are actives. If we disable one netrowk interface the performance increases to a very higher level. Could it be solved only by the configuration? At the beginning [still both interfaces enabled] we had only one listerner applied to IP 0.0.0.0. To test this situation, we modified the IP of this listener for the IP of one of the network interface and we also added one other IP to the other listener with the IP of the second network interface. At this test was not possible to see any increase of performance. In conclusion, we understood that it is not a trivial problem and we appreciate some help to avoid this down performance at the server.
    Thanks in advance, Ricardo Gomes e Bruno Guimar�es
    Network Engineer
    Link Data Inform�tica
    www.linkdata.com.br
    +55 61 9219238
    [email protected]

    Running with two nics will not necessarily give better performance. 1st, if the 2 adapters have been configured as a team then the network switch that the server is connecting through must support teaming of ports. 2nd if adapters are not teamed but going through different networks then make sure that the routing priority has been set.

  • Macbook air (11 inch) shows very low battery  percentage when the charger is plugged in

    My macbook air cannot be used when the charger is plugged in.  The battery percentage will go all the way down to 0% very soon and the computer will shut down then. For example, it shows 1:40 left in the battery when I did not plug in the charger, but once I plug the charger in , it will show 0:43 left instantly. What might be the problem and how to resolve it?
    PS: the macbook air can be charged when I shut it down. And it is no problem when the battery is not empty and the charger is not plugged in.

    Thank you very much. Here is the information:
      Full Charge Capacity (mAh):          4128
      Cycle Count:          346
      Condition:          Normal
    Any other suggestions?
    Do I need to make an appointment with the Apple store genius bar?

  • Low video quality when uploaded to youtube

    I edited a YouTube webseries for some friends of mine using iMovie 11. It was filmed using a Sony Handycam DCR TRV33. This is not a high definition camera, it is standard definition, but the video quality still looked pretty good when I was editing it on iMovie. I exported it to Quicktime, then uploaded it to YouTube from my desktop (I had read that this was better than uploading it directly from iMovie). In Quicktime it looked fine, but then once it was on YouTube the video quality was significantly worse. Does anyone have any tips on how I can improve this? Here is a link to the video: http://www.youtube.com/watch?v=y1KPhrnisMQ
    Thank you for your help.

    I don't see that. To me, it looks the same quality as any YouTube video.
    How do most YouTube videos look to you?

  • Very low video performance

    Hello everyone. I have an intel gma 950 video card and I think it's not performing as it should.
    From what I've read here at the forums, this card should be getting ~1200 FPS in glxgears (a couple of owners of this same card reported that). Mine is getting about ~750. 
    I really don't know how to tweak my xorg.conf anymore so please help me. Maybe the owners of said video card could let me see their xorg.conf ?
    Here's mine:
    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    Option "AIGLX" "true"
    EndSection
    Section "Files"
    RgbPath "/usr/share/X11/rgb"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/TTF"
    FontPath "/usr/share/fonts/Type1"
    EndSection
    Section "Module"
    Load "glx"
    #Load "GLcore"
    Load "dri"
    Load "dbe"
    Load "extmod"
    Load "xtrap"
    Load "record"
    Load "freetype"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection
    Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5 6 7"
    EndSection
    Section "Monitor"
    #DisplaySize 330 210 # mm
    Identifier "Monitor0"
    VendorName "CMO"
    ModelName "1526"
    HorizSync 31.5 - 70
    VertRefresh 60
    EndSection
    Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
    ### [arg]: arg optional
    #Option "NoAccel" # [<bool>]
    #Option "SWcursor" # [<bool>]
    #Option "ColorKey" # <i>
    #Option "CacheLines" # <i>
    #Option "Dac6Bit" # [<bool>]
    #Option "DRI" # [<bool>]
    #Option "NoDDC" # [<bool>]
    #Option "ShowCache" # [<bool>]
    #Option "XvMCSurfaces" # <i>
    #Option "PageFlip" # [<bool>]
    Option "NoAccel" "false"
    #Option "AllowGLXWithComposite" "true"
    Option "XAANoOffscreenPixmaps" "true"
    Option "DRI" "true"
    #Option "DDC" "true"
    #Option "XVideo" "true"
    #Option "AccelMethod" "EXA"
    Option "AccelMethod" "XAA"
    Option "TripleBuffer" "True"
    #Option "Legacy3D" "false"
    Identifier "Card0"
    Driver "intel"
    VendorName "Intel Corporation"
    BoardName "Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
    BusID "PCI:0:2:0"
    EndSection
    Section "DRI"
    Group 0
    Mode 0666
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
    Viewport 0 0
    Depth 1
    Modes "1280x800" "1024x768" "800x600"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 4
    Modes "1280x800" "1024x768" "800x600"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 8
    Modes "1280x800" "1024x768" "800x600"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 15
    Modes "1280x800" "1024x768" "800x600"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 16
    Modes "1280x800" "1024x768" "800x600"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 24
    Modes "1280x800" "1024x768" "800x600"
    EndSubSection
    EndSection
    Section "Extensions"
    Option "Composite" "Enable"
    Option "RENDER" "Enable"
    Option "GLX" "Enable"
    EndSection

    Hmm, triple buffer doesn't seem to make a difference because enabling it was the last thing I tried, but no matter what I do, my FPS stays at ~750.....isn't that strange ? I know I've seen several posts here from Intel gma 950 owners that they get around ~1200 FPS.....
    Although,
    glxinfo | grep direct
    does return
    direct rendering: Yes
    Thanks for the response anyway....
    EDIT: Just tried disabling triple buffer and the composite extension, and glxgears still returns the same result! I just don't get it
    Last edited by moljac024 (2008-02-08 10:33:36)

  • QT 7 Pro - Volume of  audio is very low when I record from a microphone.

    Possibly someone can help me here, I am trying to record audio using a microphone and QuickTime Pro. I want to put this audio on my Nano.
    I cannot get the audio volume up to the level of existing imported audio programs when I record a audio program using QTP and a mic.
    I have already tried to set the microphone volume to a higher level. In the Quicktime Program I set the Menu/Edit/Preferences/Quicktime Preferences
    I then go to the Audio tab, select audio recording and playback devices, select "audio playback and recording devices" and set the volume slider on the microphone to high, go to the advanced tab, set the microphone to boost, still I get a very low volume.
    When I record using the Windows Sound Recorder I get a high volume, but the output is a wave file and the quality is not as good as I really want. But clearly the microphone and driver work. I have tried updating the driver, still get low volume for my recorded audio.
    HP DV1000 Pavilion Laptop   Windows XP   Conexant AMC Audio Driver

    So you use an RCA cable going into what before it hits the MBP?
    EDIT: Also in System Preferences > Sound > Input > you can select the input & adjust the volume accordingly as long as it's plugged in.

  • Very low sound in my notebook.

    My notebook model number hp15 ac048tu has very low volume even when everything is at max. While headphones work flawlessly, notebook's speakers aren't good enough to watch a movie or play games with full volume. Please suggest some solutions to it.

    My HP stream 7speaker volume is set at 100 and its terrible, you cant watch a video for trying to hold it to your ear to hear it.... ive run the troubleshooter have had no success, it would have to supposed to be louder than it currently is

  • Computer freezes, then a low-volume, high pitch sound

    Hello there,
    My trusty 2002 MDD is randomly freezing on me for the 1st time! Disk Warrior nor Disk Utility form external boot-ups detect anything wrong. Thus, it doesn't seem to be a hard drive issue. Memory status on System Profiler checks OK.
    Once the beach ball appears I can't do anything but press the power button to shut it down. I've noticed that while frozen a very low-volume, high pitch sound can be heard. ???
    Thanks a lot for any feedback that you may provide,
    Jacobo

    Hatter,
    Thanks for the prompt reply. Like you proposed, I've started from my FW drive (not after a freeze though) and everything drive-related checks OK.
    Yes, my video card (Radeon 9800) does have a fan. I've though about this and the PSU as well. The latter is the quieter, less powerful one.
    My drives are less than a year old and seem to be OK.
    I’ve run Applejack (w/ memory check) and all is good.
    Can the Apple Diagnostic CD pinpoint any of these issues?
    My MDD has been incredible when it comes to reliability. She has not given me ANY problems whatsoever while stressed to its limits.
    Thanks again for your time,
    Jacobo

  • Very Low Battery

    When i connect my ipod to the computer it comes up please wait very low battery even when its fully charged and nothing happens

    Have you tried resetting your iPod?
    Press and hold the Menu and Select (middle of clickwheel) buttons together for 5-10 seconds.
    You might need to try this several times, but if you reset your iPod while it is connected to your computer, you might get it past this screen, and show an acurate report of the iPod's battery, and connection status.
    -Kylene

  • Please wait.  Very low battery..Help

    I just bought an 80gb iPod and I was able to charge it and transfer music to it and now it won't charge at my computer at all. It does charge fully on our car adapter, but as soon as I take it out of the dock it has the very low battery warning.

    That sounds like a bad battery - it won't hold a charge. Take the iPod back to the retailer.

  • Very low Transmit Rates

    I am experiencing very low transmit rates when using the 5GHz band. It goes down to Transmit rates of 56, and when i use the 2.4 n only it's still low at 90-117, I think it's really effecting my download speeds on the Apple TV when we're renting HD movies. It says it'll take and hour to be ready to play. Do you think that our Time Capsule is faulty?

    On 2.4 GHz band, the link-speed (transmit rate) you are getting is average.
    However, when you downloading a rental movie, the bottleneck is your broadband connection.
    Have seen Apple's published figures on buffering time before you can start watching an HD movie?
    http://www.apple.com/appletv/specs.html#movierentals
    Most people have a broadband speed between 2Mbps - 768kpbs, so the wait time is somewhere between 2 - 8 hours.
    IMO, your TC is working correctly, there is nothing to worry about.

  • Voice Control voice very low

    Is there any way to increase the voice control voice level. It is very low relative to other sounds on the phone (music etc). The voice level stays the same even if I increase the iphone volume.

    Yea, I have a friend who has noticed this issue on his Z10.
    I've tested on my Z30, and the voice feedback is loud and clear. We'll have to figure out the differenced in the devices or OS release, or settings.
    What is your Operating System loaded to your device? Look at Options >  From the main screen, swipe down from the top black bezel to Settings > About... what is the OS Version listed there?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for

  • Error message when trying to update Leopard 10.5.1 to 10.5.2

    I was happy when I switched from PC to Mac a year ago. But since upgrading to Leopard I have had so many problems that it reminds me of my (bad) experience with Windows... Where I live in dark Africa there is no support at all, so I hope some of you

  • Agent Assinment is not visible in another client

    Hello All, I assigned some agents (Users) for one customized standard task in my golden client(200). But its not visible in Testing client (220). Did i missed something? I changed attrbutes to standard task. I made client copy also.. I searched in fo

  • How to select non cumulative KF in Planning Sheet

    All, I have an aggregation level build on top of a multiprovider which contains the follwoing 3 cubes, one of the cubes is 0IC_C03 - Material Stocks/Movements (as of 3.0B). This cube provides the total stock data. I do not plan on key figures in this

  • The problem about the Stage's minWidth or minHeight property.

    From the JavaFX 2.2 api, I see the minWidth or minHeight property, and then I attempt to use them to limit the contraction of stage when dragging. But it takes no effect. Are there some implications for using these properties? I have finally to write

  • Deleted Addons Reappear After Startup

    Hi, I'm Running FF 3.6.20 -Was running 6 but reverted. - in XP. I followed the instructions for manually deleting FF extensions... When I restart, the deleted extension folders reappear... Also tried doing this in Safe Mode, but the result was the sa