Capturing video to a file while transmitting it over the network

I have tried several ways to do this but non of them have worked. On the JMF Programmers Guide its stated that one could do something like this: creating a processor from a DataSource, and the taking two Datasources from the processor, one is used to transmitt the video over the network, and the other is used to save the data to a file(through a DataSink).
One of the ways I've tried is to clone de DataSource before creating the Processor. I've also tried to clone the Data source after creating and realizing the processor. The other way I've tried is by using the JMFSolution "Video Capture Utility with Monitoring", found at the jmf's homepage, which intercepts the data carried from the capture data source to the Processor.
Non of these have worked, and I always get Exceptions about not finding a DataSink for the DataSource I use. For example:
"javax.media.NoDataSinkException: Cannot find a DataSink for: com.sun.media.multiplexer.RawBufferMux$RawBufferDataSource@d9850" ;
"javax.media.NoDataSinkException: Cannot find a DataSink for: com.sun.media.vfw.PushBufferDataSource@1e45"
I've search the Web triying to find something clear about capturing video to a file while transmitting it over the network, but nothing seems to work.
I would appreciate a piece of an advice on this.

you can try modifing de Capture example from JMF Solutions.
change this function:
public int startCapture() {
     int result = -1;
     enableComponents(false);
     buttonStart.setLabel("Pause");
     buttonEnd.setEnabled(true);
     startMonitoring();
     try {
processor.start();
DataSource clone = Manager.createCloneableDataSource(datasource);
     MediaLocator ml2 = new MediaLocator("file://capture.mov");
System.out.println("Content Type " + clone.getContentType());
datasink = Manager.createDataSink(processor.getDataOutput(), ml2);
     datasink.open();
datasink.addDataSinkListener(this);
     datasink.start();
result = 0;
     } catch (Exception e) {
     System.err.println("DataSink Exception " + e);
result= -1;
Regards.
Fernando

Similar Messages

  • Opening pdf files in IE from over the network turning black

    Client is opening pdf files from another network inside IE 8 and while they may open properly to start with they very quickly turn black. Saving the same file to the desktop then opening in Acrobat Reader doesn't cause the same issue.
    Any suggestions?

    Please let me know the following details:
    1. Your OS.
    2. The version of Adobe Reader installed on your machine. You can get the same by clicking on Help > About Adobe Reader from within the Reader application.
    3. Are you able to open the following PDF document: http://helpx.adobe.com/content/help/en/acrobat/release-note/release-notes-acrobat-reader/_ jcr_content/main-pars/download/file.res/Acrobat_Reader_ReleaseNote_10.1.4.pdf
    4. Are your clients accessing the files over a Citrix environment.
    Thanks
    Ankit

  • Share the same files to different users over the network

    Hi,
    I have a server running in my home network and want to share my photos accross the network. The photos have to be accessable from linux and windows clients and from different user accounts. The filesystem to share is btrfs right now. I would like to stick to it, but if this should turn out to be an issue, I will change it to s.th. else. I could use samba with a dedicated samba user or ftp, but both solutions feel hacky to me. Is there a better approach to the problem?
    Thanks,
    Wolfgang
    Last edited by ReedWood (2013-09-13 08:32:26)

    Personally I'd go with an ftp server since I got that to work in the past but samba might do a decent job, too (don't know, never used it). But you can also just set up a web server to share your pics (maybe with a nice gallery web app?). The technology used itself does not matter that much.
    Now, on to the important question: What about security? Do you need some kind of authentication or can you get away without any login stuff (since no bad guys can connect to your network anyway)?
    FYI I used vsftp and pam as described at http://www.cyberciti.biz/tips/centos-re … users.html to get my ftp server running. You might be able to expand this to other solutions as well. I had to password protect my ftp server since I wanted to have write permission, too. For read only I might have been fine with anonymous ftp back then.

  • Bluetooth mouse cuts out when transferring files over the network

    Just as the title says: whenever I copy files to a PC over the network (via SMB I think its called) My bluetooth mighty mouse will start getting very jerky and makes is very difficult to move the cursor on the screen. However, my Bluetooth keyboard is comply fine. Both are using Lithium batteries and where just replaced about a month ago. Also, both are in close range...about 2 feet. And it only happens when coping files.
    Any ideas?
    -Scott

    I don't connect to network volumes that often, but I did again today and noticed that my bluetooth keyboard completely cut out (had the "discounted" HUD come up) and then the keyboard would not reconnect until the file copy was complete. I don't know about the mouse as lately I've been using my Microsoft mouse that hasn't been giving me any troubles. (like really, Microsoft and "no troubles" in the same sentence??? lol)

  • Run exe file while i'm using the program

    hi there how can i run exe file while i'm using the program

    Hi,
    Hopefully HOST() command will do it. For more info about HOST() command look for documentation. Hopefully it will work fine.

  • Sound problem while transimission over the network by using JMF API

    i had done an application which transmit audio and video over the network by using JMF API in JAVA. All my application work very well but i have a problem with the sound while i transmit it. this sound has a very bad quality (i am using AVReceive2.java) .
    has anyone an indication or solution for my problem
    it's very urgent, please help me.
    regards
    sar

    you can try modifing de Capture example from JMF Solutions.
    change this function:
    public int startCapture() {
         int result = -1;
         enableComponents(false);
         buttonStart.setLabel("Pause");
         buttonEnd.setEnabled(true);
         startMonitoring();
         try {
    processor.start();
    DataSource clone = Manager.createCloneableDataSource(datasource);
         MediaLocator ml2 = new MediaLocator("file://capture.mov");
    System.out.println("Content Type " + clone.getContentType());
    datasink = Manager.createDataSink(processor.getDataOutput(), ml2);
         datasink.open();
    datasink.addDataSinkListener(this);
         datasink.start();
    result = 0;
         } catch (Exception e) {
         System.err.println("DataSink Exception " + e);
    result= -1;
    Regards.
    Fernando

  • Weird X on corner of copied file over the network

    i was copying a file from my Mac Pro (Lion) to my MBP (ML) over the network and i noticed this little x in a black box on the top left hand corner of the icon while it was being copied.
    does anyone know if this is normal?
    the two little red marks mean that the file is a windows file for my virtual machine but i have seen this x before and i was curious to know if this is in fact a Mac OS functionality.
    TIA

    OK. weird. the files on my dropbox have this weird blue x and then a green checkmark in this spot if i am not mistaken.
    so we are saying this is a function of a PROGRESS BAR and it goes away when the copy has completed?
    i mean, it did go away over here but i don't remember seeing it before for some reason.
    THANKS

  • Modifying JAR file using java.util.jar package  over the network

    Hello,
    I am modifying a JAR file programmatically using java.util.jar package. The time taken to save the contents to a local disk is very less (around 1 sec) . When I tried modifying the JAR from a remote machine over the network (from mapped drive or shared folder of WIN NT), the time taken to save is 15-20 times more.
    I am recreating the whole JAR while modifying. Is there any way to improve the performance. Or is it possible to write only the changed files?
    Thanks,
    Prasad Y S.

    When you "update" a jar file, you must always recreate it from scratch.

  • WIFI dies when transferring big files over the network

    Hi, I have Dell Inspiron 1520 with ipw3945 driver, when I transfer big files over the network, my wifi dies, anybody knows what could it be? If you need additional information, feel free to ask...
    Thanks in advance

    I guess we shall see. I can't imagine we are the only 7 with these issues.  Mine is mainly just lag... and overall slowness.  I hope to work through this.  If it lasts much longer I will have to revert back all 3 of my lappies to FC which I really do not want to do.  But on the lappies i connect via wireless 90% of the time and need it to work. 
    By the way how are you guys configuring your wifi?  I am using the iwl drivers and wicd.
    Well I did some more testing and loaded up netcfg and still get the same results so that rules out that part.  I also did some packet captures and I am getting a bunch of tcp retransmissions followed by tcp segment lost followed by a reset which in turn kills my rdp session (remote desktop protocol). I also went back several versions of the uucode driver and still get the same reults so I guess it seems to be a kernel issue.  Back to FC I go.  Damn shame...
    Last edited by BKJ (2008-10-08 01:08:56)

  • WinRM cannot process the request. The following error occured while using Kerberos authentication: The network path was not found.

    I have two forests with a transitive on-way trust between them: PROD -> TEST (test trusts PROD). I had previously had kerberos authentication working with winrm from PROD to machines in TEST. I have verified the trust is healthy, I also verified users
    in TEST can use WINRM with kerberos just fine. Users from PROD cannot connect via kerberos to machines in TEST with winrm.
    I have verified the service has registered the appropriate SPNs. I ran dcdiag against all my PROD and TEST domain controllers and didn't find anything that would prevent kerberos from happening. I even tried disabling the firewall entirely on my TEST dcs
    but that didn't gain me anything.
    I've enabled kerberos logging but only see the expected errors such as it couldn't find a PROD SPN for the machine, which it shouldn't from what I understand, it should go to the TEST domain and find the SPN from there.
    I'm really out of next steps before I call PSS and hope someone here has run into this and could provide me some next steps.
    PowerShell Error:
    Connecting to remote server failed with the following error message : WinRM cannot process the request. The following error occured while using Kerberos authentication: The network path was not found.  
     Possible causes are:
      -The user name or password specified are invalid.
      -Kerberos is used when no authentication method and no user name are specified.
      -Kerberos accepts domain user names, but not local user names.
      -The Service Principal Name (SPN) for the remote computer name and port does not exist.
      -The client and remote computers are in different domains and there is no trust between the two domains.
     After checking for the above issues, try the following:
      -Check the Event Viewer for events related to authentication.
      -Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport.
     Note that computers in the TrustedHosts list might not be authenticated.
       -For more information about WinRM configuration, run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.
        + CategoryInfo          : OpenError: (:) [], PSRemotingTransportException
        + FullyQualifiedErrorId : PSSessionStateBroken
    winrs Error:
    Winrs error:
    WinRM cannot process the request. The following error occured while using Kerberos authentication: The network path was not found.  
     Possible causes are:
      -The user name or password specified are invalid.
      -Kerberos is used when no authentication method and no user name are specified.
      -Kerberos accepts domain user names, but not local user names.
      -The Service Principal Name (SPN) for the remote computer name and port does not exist.
      -The client and remote computers are in different domains and there is no trust between the two domains.
     After checking for the above issues, try the following:
      -Check the Event Viewer for events related to authentication.
      -Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport.
     Note that computers in the TrustedHosts list might not be authenticated.
       -For more information about WinRM configuration, run the following command: winrm help config.

    Hi Adam,
    I'm a little unclear about which SPNs you were looking for, in which case could you confirm you were checking that on the computer object belonging to the actual destination host it has the following SPNs registered?
    WSMAN/<NetBIOS name>
    WSMAN/<FQDN>
    If you were actually trying to use WinRM to connect to the remote forest's domain controllers, then what you said makes sense, but I was caught between assuming this was the case or you meant another member server in that remote forest.
    Also, from the client trying to connect to this remote server, are you able to telnet to port 5985? (If you've used something other than the default, try that port)
    If you can't, then you've got something else like a firewall (be that the Windows firewall on the destination or a hardware firewall somewhere in between) blocking you at the port level, or the listener on the remote box just isn't working as expected. I
    just replied to your other winrm post with steps for checking the latter, so I won't repeat myself here.
    If you can telnet to it and the SPNs exist, then you might be up against something called selective authentication which has to do with how the trust was defined. You can have a read of
    this to learn a bit more about selective trusts and whether or not it's affecting you.
    Cheers,
    Lain

  • Error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT

    error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT  nfs sharing

    Never mind, I already found the solution myself.
    What I did wrong was:
    - not copying the master image to the nbi folder
    - selecting the netinstall-restore.dmg image as source to copy to my HD.
    The thing is, when you create a netinstall image for 10.5, the image itself is already included in the netinstall image so you don't have to do anything else.
    With the 10.4 image however, you also have to copy the master image to the NetBootSP0 directory.
    In the *.nbi folder contains an netinstall-restore.dmg file. But that is only to boot you to netrestore, it's not the image itself.
    Other alternative is to copy the images to another folder that you share with AFP and adjust the configuration of netrestore like described in this manual:
    http://www.shellharbourd.det.nsw.edu.au/pdf/misc/osxrestoringnet.pdf
    This manual was also how I figured out that I forgot to copy the image to the NetBootSP0 folder.

  • Streaming audio file over the network w JMF. How to know when the file end

    Hi
    I am streaming audio file over the network using JMF. I want to be able to know when a file end so I can close the streaming session.
    Can some one please help
    Thanks

    If you put a ControllerListener on the Processor that's associated with generating the RTP stream, it'll generate an "EndOfMedia" event when the end of the file is reached.

  • Indesign files won't open over a network

    I have just copied my entire work folder from a 17" iMac Core Duo to a 20" iMac Core Duo. When I attempt to open any InDesign files over the network from one machine to the other I get the following message.
    "Cannot open the document "xxxxxxx". You may not have permission or the document may be open already. For mutli-user access, close the file and then lock it using thee File > Get Info command in the Finder."
    All my other files open correctly - Quark, Photoshop, Illustrator etc. I have read and write permissions for the entire work folder, but only the InDesign files wont open over the network. The files will open perfectly on the local machine, but not over the network.
    I have managed to find a similar post on Adobe's InDesign User Forum, but not a satisfactory solution.
    I have never had this problem before, I've been using fileservers for years with no problems
    Please can anyone help.
    Thanks

    Well, I don't have InDesign or I'd try Sharepoints to see if it could help the situation, dunno...
    http://www.hornware.com/sharepoints/
    http://discussions.apple.com/thread.jspa?messageID=1358566&#1358566
    "Adobe states that PhotoShop CS2 does not work in a network environment. Many have seen this issue with CS2 and 10.4 working in a client/server environment. This does not seem to be an issue on the Windows/PC side. The only work around at the moment is to save the file on the local drive and then copy it over to client home folder."
    I think part of it is that Apple has changed the method of locking files in OSX more than once.

  • Can I edit footage, using the DV files that are saved over a network?

    What I mean is, I have saved my MiniDV DV footage to a external hard drive which I connect to over ethernet, its not a NAS, its a HDD in a PC I have.
    I have my iMac (intel 2GHz), can I use iMovie 08 to import,edit and save to the HDD over the network?
    Its just the files are big (ie 13Gb per hour), so I save them on my external HDD, rather than my iMac
    Will it cause any problems? or anything?
    cheers

    Ethernet is generally slower than FireWire.
    You could import the files into your iMac and edit them there, then save all the edited material back onto the external hard disc. But Ethernet isn't generally fast enough for real-time editing (..across the network..) onto the external disc. So you'd (1) move the files to the internal, (2) edit them there, (3) export or Save the edited project back again to the external disc.
    Note than a disc formatted for use on a PC will probably be identified by your Mac's 'Finder' as a "PC Exchange format" disc ..the file system used on the disc would probably be the DOS 'FAT 32' system.
    Although Macs can read and write to this format, some of the iMovie-specific "metadata" may not be saved onto a FAT 32 disc; iMovie prefers to work with a Mac-formatted "Mac OS Extended" format ..but PCs generally can't read or write to that!
    So what you may need to do is to bring in all your material onto the iMac for editing, and then 'Share' or Export the resultant movie(s) as QuickTime movies (..instead of as original 13GB-per-hour DV files..) if you want to be able to play the results on that PC itself.
    But I'd avoid using an external hard disc which is actually in a PC; the format (file system) - although
    it'll work with a Mac - is all wrong for iMovie.
    Invest in a proper, separate external FireWire hard disc - they're cheap now: Amazon's selling 1000 gigabyte discs for £89 ..that's about $140..! - and immediately format it (..using Applications>Utilities>Disk Utility..) as 'Mac OS Extended', and then use it exclusively with your iMac.
    You'll be far happier that way..

  • Automatically adding files to 2nd computer over a network

    Maybe one of you very clever experts can help me out here.
    2 Macs 1 itunes library . . .
    My iTunes folder is stored in an extrernal HD connected to my desktop.
    On my notebook I pointed my iTunes folder location to my desktop's external HD's iTunes Music folder over a network. This way I can control and copy my music from both computers.
    My problem is that I add new music everyday which means I have to manually add music files everyday to my notebook.
    Any way to automatcially add the new music files from my desktop's external HD to my notebook over the network? I just want to add the files not import the songs.
    Anyone know the answer to this question would be a great help.
    Thanks,
    OP

    What I do is similar to yours - the actual music library is on an HD attached to a mac mini and I have my powerbook pointed to it. If I add music, the music files will be added to this library - whether they are added through the powerbook or the mini.
    However, the reference to the files - the 'iTunes Library' & iTunes Music Library.xml files - is on both machines individually does need to be up-to-date on them both.
    So, when you have added music, you need to ensure that you copy these files to the other machine. (To clarify, if you add music via the laptop, copy the files to the desktop - and vice-versa.)

Maybe you are looking for