Save media file captured from client to server

Hi all,
I need to capture webcam at client side and save it to the server.
I am thinking of two solution:
1) save file to client computer then upload to server.
2) streaming to server simultaneously while capturing.
If I choose the second method, I should you the RTP feature right (I don't have exp with it)? Or the first method is better?
Thanks you all
Regards
K.

If your usage scenerio doesn't involve the word "live" then you want to avoid anything that involves the term "real-time" as any actual real-time system intentionally drops data anytime the processing gets behind.
Option 1 is going to be easier to implement, but option 2 will save the user some time. Option 1 is going to be less hardware intensive, so it really depends on whether or not you want to (1) invest more work upfront to make your program terminate faster (2) care whether or not your users have to wait there while the file uploads after the recording ends (3) want to give your users the ability to review the video before they upload it (which I would recommend for most applications).
I'd definately just do option 1 unless you have a good reason to need option 2.

Similar Messages

  • How to Serialize a file path from client to server?

    I am using serializing concepts in java. I am stuck, that how can i send only file path from client to server?

    Um, ill take a wild guess and say that youre trying to
    access a file on another computer using that path?
    That wont work.
    What could the other computer possible do
    with that path unless both computers are networked to a
    common drive, or if they are networked to each other in a way
    where the root in the file path would point to the same place
    on either computer?

  • File download from client to server

    I am trying to set up a JSP/servlet to download a file from the client to the server in a webapp.
    The solution I thought about was to post a form using a <INPUT TYPE="file" > element
    But this does not work! In the form, I am setting the encoding to ENCTYPE="multipart/form-data" and I am wondering if that causes the problem.
    Is it possible to do what I want to do? Am I doing it the right way?
    Thanks

    hi hacot
    u can do it by using a servlet. In your html form u have done the rigth thing (INPUT TYPE and ENCTYPE).this ENCTYPE will take care of the input data and convert it into a stream. capture this flow of stream using a servlet's getInputStream() method. Detect the header part and the body part of that stream...and try to print the body part in the console and u will get an idea , about how to parse the stream's body part.

  • FLEX 2.0 and Flash Media Server 2.0 Unable to stream from client to server

    Hi All,
    I have been trying to put together a quick demo to stream
    and record audio from Client to Server. I get this error when
    trying to connect to FMS.
    ArgumentError: Error #2126: NetConnection object must be
    connected.
    at flash.net::NetStream/flash.net:NetStream::construct()
    at flash.net::NetStream$iinit()
    at Audio/toggle()
    at Audio/__submit_click()
    my Program fails at this line - ns = new NetStream(nc);
    Your help is greatly appreciated. Here is the MXML file
    Audio.mxml
    This file contains a simple start and stop button start and
    stop audio processing.
    This page is served from Apache Tomcat on host : demoserver1
    and port 8080
    Flash media server is also installed on the same host
    demoserver1.
    I did not do any additional config at FMS except creating an
    application called "DemoApp". All other settings are defaults.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    applicationComplete="startup()">
    <mx:Script>
    <![CDATA[
    import flash.net.NetConnection;
    import flash.net.NetStream;
    public var started:Boolean = false;
    public var nc:NetConnection;
    public var ns:NetStream;
    public var mp:Microphone;
    public function startup():void{
    lblMessage.text="Stopped";
    public function toggle():void{
    if (started==false){
    submit.label="Stop";
    started=true;
    lblMessage.text="Started";
    nc = new NetConnection();
    nc.addEventListener(NetStatusEvent.NET_STATUS,
    netStatusHandler);
    nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    securityErrorHandler);
    nc.objectEncoding = flash.net.ObjectEncoding.AMF0;
    nc.connect("rtmp://demoserver1/DemoApp");
    ns = new NetStream(nc);
    ns.addEventListener(NetStatusEvent.NET_STATUS,
    netStatusHandler);
    mp = Microphone.getMicrophone(0);
    ns.attachAudio(mp);
    ns.publish("sample1", "record");
    else{
    started=false;
    submit.label="Start";
    lblMessage.text="Stopped";
    ns.close();
    nc.close();
    private function netStatusHandler(event:NetStatusEvent):void
    switch (event.info.code) {
    case "NetConnection.Connect.Success":
    trace(" connection success : " );
    break;
    case "NetStream.Play.StreamNotFound":
    trace("Stream not found: " );
    break;
    private function
    securityErrorHandler(event:SecurityErrorEvent):void {
    trace("securityErrorHandler: " + event);
    ]]>
    </mx:Script>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="400"
    height="300">
    <mx:HBox left="19" right="0" height="100" top="30">
    <mx:Label text="Label" id="lblMessage" width="150"/>
    <mx:Button label="Start" click="toggle()" id="submit"/>
    </mx:HBox>
    </mx:Canvas>
    </mx:Application>

    Hi,
    Are you trying to make an air app or a web application (flash) for streaming? You may want to check out the osmf framework to help you write a player for mobile platform. Check out http://www.opensourcemediaframework.com/ for more info on how you can write streaming video players using this framework. There are some good tutorials there and also you may post on the forum to get your specific queries solved.
    Thanks,
    Abhishek

  • Adobe not allowing import of XML file captured from Media Express through Black Magic capture card

    I have been going crazy trying to find a way to import the XML files to fix the digitized look Adobe capture gave my footage. Someone help me
    These are not XML from Final Cut. They are files saved from Media Express, a Black magic design program used for Capturing.
    THANK YOU.
    Please email me if you know how to fix this
    [email protected]
    THANKS AGAIN!

    Wouldn't it be more appropriate to open the actual media files captured with the program?

  • Transfer file from client to server using http

    HI friends,
    I want to transfer files from client to server...I tried that with the help of socket and rmi..........
    But Http is only the best mechanism for my application..........
    Without using servlets, how to transfer files with the help of http.....
    Any help would be appreciated.......

    Google is your friend, and appearently www.jguru.com also:
    http://www.jguru.com/faq/view.jsp?EID=160

  • Urgent - Upload a file from Client to Server.

    Need to load a file from the client machine to the Server running 9iAS Rel. 1 on a HP Unix Machine.
    We are using Forms 6i. We have looked into the File Upload Utility demo code provided with Forms 6i - but have been unsuccessful in reusing it. PLS HELP

    Duplicate post.
    Upload a file from client to server by forms in E-Bussiness Suite R12
    Re: Upload a file from client to server by forms in E-Bussiness Suite R12.

  • How to deploy Forms, Reports and Menu from Client to Server machine

    Dear Experts,
    I have one requirement to deploy the Forms, Reports and Menu from client machine to server machine.
    Deployment involves the following steps :
    1. Firstly we have to search the selected file in a folder where the .fmx is present ( in Server machine) and take the back up of the the existing file in the server (Source and destination paths will be available).
         Ex. If the existing FMB name is TEST.fmx then the backup file should be TEST_sysdate.fmx.
    2. Secondly we have to transfer the file from the client folder (or from another folder of the same server) to the server folder where the back up exists.
    Please help me to search/rename/copy/replace the _.fmx/.rdf/.rep/.mmx_ files from client to server.
    We are using
    9i Database.
    10g Forms and reports.
    SQL Developer tool.
    OS is Windows (Client and Server).
    Help me out to attach a file of front end screen which we are planning to develop. It will give a clear picture on this requirement.
    Thanks :)
    Edited by: 941175 on Jun 17, 2012 9:09 AM
    Edited by: 941175 on Jun 17, 2012 9:12 AM
    Edited by: 941175 on Jun 17, 2012 9:14 AM

    941175
    Welcome to the forum. Please take a while to go through the FAQ to be found to the top right of the page.
    Your issue is more to do with batch files rather than Forms. The only relation with Forms, as I see it, is that you will be using HOST/CLIENT_HOST to start a batch file with the file name to be deployed as a parameter passed to it.
    You need to rewrite either a CMD batch file or a Powershell script to achieve what have set out to do.
    For CMD batch files look up http://www.robvanderwoude.com/battech.php , or any of the other excellent resources available on the internet.
    Regards,

  • I need to know save media file to my device

    Dear sir, I need to know and how to save media file(songs and video from website) to my device. Thanks. Janambist

    Sorry, but I do not understand your question. Would you please explain in more detail? If you're not comfortable in English, try posting in your native language.
    Regards.

  • How to transfer passwords encrypted from client to server?

    Hello dear community,
    I have already some experience with programming and did a lot of web-software, but I never was facing the problem that passwords are transfered as plain text to the server when using a login-form.
    For my front-end, I use Java ServerFaces 2.0.
    I read a lot of hints like using a javascript based MD5 library and send the password as MD5 but this can be sniffed an decrypted easily.
    Do you have some hints to easily implement a secure transfer of values from client to server?
    best regards,
    Berni

    goose_fraba wrote:
    and how to do that? how to configure etc.?Server specific. Read your server's documentation.

  • Sending an object from client to server always on button press

    What I need is to send an object from client to server but I need to make server wait until another object is sent. What I have is the JFrame where you put the wanted name and surname, then you create a User object with these details and on button press you send this object to the server. I just can't hold the connection because when I send the first object, server doesn't wait for another button click and throws EOFexception. Creating the while loop isn't helpfull as well because it keeps sending the same object again and again. The code is here
    public class ClientFrame extends JFrame {
        private JButton btnSend;
        private JTextField txfName;
        private JTextField txfSurname;
        public ClientFrame() {
            this.setTitle(".. ");
            Container con = this.getContentPane();
            con.setLayout(new BorderLayout());
            txfName = new JTextField("name");
            txfSurname = new JTextField("surname");
            btnSend = new JButton(new AbstractAction() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    SSLSocketFactory f =
                            (SSLSocketFactory) SSLSocketFactory.getDefault();
                    try {
                        SSLSocket c =
                                (SSLSocket) f.createSocket("localhost", 8888);
                        c.startHandshake();
                        OutputStream os = c.getOutputStream();
                        ObjectOutputStream oos = new ObjectOutputStream(os);
                        InputStream is = c.getInputStream();
                        ObjectInputStream ois = new ObjectInputStream(is);
                        boolean done = false;
                        while (!done) {
                            String first = txfName.getText();
                            String last = txfSurname.getText();
                            User u = new User();
                            u.setFirstName(first);
                            u.setLastName(last);
                            oos.reset();
                            oos.writeObject(u);
                            String str = (String) ois.readObject();
                            if (str.equals("rcvdOK")) {
                                System.out.println("received on the server side");
                            } else if (str.equals("ERROR")) {
                                System.out.println("ERROR");
                        //oos.writeObject(confirmString);
                        oos.close();
                        os.close();
                        c.close();
                    } catch (ClassNotFoundException ex) {
                        Logger.getLogger(ClientFrame.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (IOException ex) {
                        System.err.println(ex.toString());
            btnSend.setText("send object");
            con.add(btnSend, BorderLayout.PAGE_START);
            con.add(txfName, BorderLayout.CENTER);
            con.add(txfSurname, BorderLayout.PAGE_END);
            this.pack();
            setSize(200, 150);
            setVisible(true);
    public class TestServer {
        public static void main(String[] args) {
            try {
                KeyStore ks = KeyStore.getInstance("JKS");
                ks.load(new FileInputStream(ksName), ksPass);
                KeyManagerFactory kmf =
                        KeyManagerFactory.getInstance("SunX509");
                kmf.init(ks, ctPass);
                SSLContext sc = SSLContext.getInstance("TLS");
                sc.init(kmf.getKeyManagers(), null, null);
                SSLServerSocketFactory ssf = sc.getServerSocketFactory();
                SSLServerSocket s = (SSLServerSocket) ssf.createServerSocket(8888);
                printServerSocketInfo(s);
                SSLSocket c = (SSLSocket) s.accept();
                InputStream is = c.getInputStream();
                ObjectInputStream ois = new ObjectInputStream(is);
                OutputStream os = c.getOutputStream();
                ObjectOutputStream oos = new ObjectOutputStream(os);
                boolean done = false;
                User u;
                  while(!done){
                    u = (User) ois.readObject();
                    String confirmString = "rcvdOK";
                    String errorString = "ERROR";
                    if (u != null) {
                        System.out.println(u.getFirstName() + " " + u.getLastName());
                        oos.writeObject(confirmString);
                    } else if (u == null) {
                        oos.writeObject(errorString);
                is.close();
                s.close();
                c.close();
            } catch (Exception e) {
                    System.err.println(e.toString());
    }Thanks for any help, btw this doesnt need to be via ssl, the problem would be the same using only http. Please anyone help me:)
    Edited by: Vencicek on 7.5.2012 2:19
    Edited by: EJP on 7/05/2012 19:53
    Edited by: Vencicek on 7.5.2012 3:36

    Current code fails because it's sending still the same entity again(using while loop)No it's not. You are creating a new User object every time around the loop.
    which makes the system freezeWhich means that you are executing network code in the event thread. Don't do that, use a separate thread. At the moment you're doing all that sending inside the constructor for ClientFrame which is an even worse idea: you can never get out of there to the rest of your client program. This is a program design problem, not a networking problem.
    and doesn't allow me to set new parameters of the new entityI do not understand.
    I need to find a way to keep Server running even when the client doesn't send any data and wait until the client doesnt press the send button again to read a new object.That's exactly what happens. readObject() blocks until data is received.

  • Date converting to less one day while transferring from client to server

    Hi,
    I have very typical problem. My application is in java, we are using oralce 9ias. The problem when the server is running in german locale and client is running in english. We the date value is passed from client to server it is converting to one day less.
    i.e.
    If i want to search with records jan 02,2005,
    on server side if we print the value it is getting as jan 01,2005.
    Can anybody help me in solving the above problem.
    Its bit very urgent.
    Thanks in advance
    regards
    Kalyan

    well, i have had nightmares with this problem. here are the reason and soln:
    reason:
    in ur DB, u r using a field "Date" which does not include time information. Hence, any date will be taken at 00:00:00. If such a date is opened in some other timezone, which is ahead of the server timezone, the date differs by one. This is becoz java always considers the millisecond info encapsulated in the date, calendar.
    soln:
    Step 1:
    u must be able to get the "timeZoneOffset" from a calendar object. This timeZoneOffset will give the number of minutes/seconds/hours... by which the system is offset from GMT.
    Thus if u create a calendar in India, the timeZoneOffset will be 330. If you create the calendar in UK, it will be 0.
    To achieve this, we have made an object-UTCDate. This class encapsulates a Calendar. It has a function called "getTimeZoneOffset".
    Step 2:
    Once u get the timeZoneOffset, here is what u need to do in ur code. (assume that the timeZoneOffset is in minutes. the variable names will be self-explanatory)
    at the client side code:
    long timeInMillis = calendar.getTime().getTime() + (timeZoneOffsetOfTheCalendarReceivedFromServer * 60 * 1000 ) - (timeZoneOffsetOfClient * 60 * 60 )
    use timeInMillis to make a new Date Object and use this date object.
    at the server side code:
    long timeInMillis = calendar.getTime().getTime() + (timeZoneOffsetOfTheCalendarReceivedFromClient * 60 * 1000 ) - (timeZoneOffsetOfServer * 60 * 60 )
    hope this helps.
    regards

  • Converting date value one day less while transfering from client to server

    Hi,
    I have very typical problem. My application is in java, we are using oralce 9ias. The problem when the server is running in german locale and client is running in english. We the date value is passed from client to server it is converting to one day less.
    i.e.
    If i want to search with records jan 02,2005,
    on server side if we print the value it is getting as jan 01,2005.
    Can anybody help me in solving the above problem.
    Its bit very urgent.
    Thanks in advance
    regards
    Kalyan

    // to get  current time in Germany
        Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("Germany"));
        int hour12 = cal.get(Calendar.HOUR);
        int minutes = cal.get(Calendar.MINUTE);    
        int seconds = cal.get(Calendar.SECOND); 
        boolean am = cal.get(Calendar.AM_PM) == Calendar.AM;
        //I think all you need to do is to set the timezone to the current, so that when the
    //server at some other timezone gets this date it knows that this date belongs to
    //different timezone and gets converted automatically according to the server
    //timezone settings.
        // Set the current local timezone
        cal.setTimeZone(TimeZone.getDefault());
        int hour24 = cal.get(Calendar.HOUR);
      Hope this answers your question. Good luck.
    -Sreekanth varidhireddy

  • Stream-in images from client to server,without running the transmit code

    Hello all,
    Im using JMF for my current project.Right now,I am trying to only recieve images from the client without the client transmitting it.That is I dont want the transmit code to run on the client.
    I should just be able to stream in the images from client to server, without running the transmit code on client.
    Can this be done?
    Thanks in advance

    suppigs wrote:
    Can I know more about this?Sure.
    <Side A>
    You'd just need to write an application that doesn't have a GUI (so, a console-based application) that listens on some pre-determined port for a message to start broadcasting. Maybe you'd send it the IP/PORT number to start broadcasting on. Once it receives that message, it'd start broadcasting the web cam to the IP/PORT number until it received a message to stop. Once it stops, it'll just go back to waiting for the next "start" signal.
    <Side B>
    On the other side, you'd write an application that sends the start messages, receives/displays the videos, and then sends the stop signal. This will have a GUI, and be your "control program" so to speak.
    Then, once of have both of those programs working...if you're using Linux, you're done. If you're using Windows, you'd need to modify the <Side A> program so that it can run as a Windows service.
    There are a lot of ways to do this, you can google it or look at the following link:
    [http://twit88.com/blog/2007/09/19/open-source-software-to-start-up-java-as-windows-serviceunix-daemon/]

  • HT1766 I have an I pad Mini. Since i down loaded the new update ISO 7, my I Pad is not running certain media files either from Chrome or Safari browser. I called technical support but they failed to provide any help stating the media files may not be comp

    I have an I pad Mini. Since i down loaded the new update ISO 7, my I Pad is not running certain media files either from Chrome or Safari browser. I called technical support but they failed to provide any help stating the media files may not be compctable with new soft ware. I do bnot agree with their finding because i have I phone with ISO 7 updated soft ware and same files run on my I phone but not on I Pad. This was working fine before updating new software. This device is useless for me if i can not watch the program that i bought this for. I want device to replaced or taken back by the company. Thank you

    Here are the iPad Mini specifications:
    iPad mini - Technical SpecificationsNov 1, 2012
    The specifications explain exactly what types of files are supported under "TV and Video".

Maybe you are looking for

  • Change Purchase order gives error message ---- making PO to Hold.

    Hi SRM gurus, We are trying to change the PO which is not issued to the vendor or output prepared and getting the following error in the web browser. "Complete Purchase order &&&&&&&&&& first or Hold the changes". We are trying to add the street name

  • Extended withholding Tax in ECC6

    Hi All We have activated extended withholding tax in IDES ECC6.Have completed all the stuff from IMG, while assigning Tax code to Vendot Master, we are not finding the 'WHTType' and 'Liable'  field ready to input. These two fields are disable. Furthe

  • Mac OS x 10.5.6 PSE 6 Paste Anomaly

    Try the following steps: 1. Open a pdf file using Preview. 2. Choose the rectangular selection tool 3. Select a portion of a page. 4. Do a copy (command C) 5. Verify that the clipboard contains the area you selected by: a. Going to Finder > Edit > Sh

  • Sync errors with Outlook calendar

    I know this has been raised in various forms in other posts, but there doesn't seem to be any consistency or permanent resolution.  I have a Curve that I am syncing with Microsoft Outlook.  Environment is Vista, Outlook 2007, BB Desktop Manager 5.0.1

  • "iPhoto Library" icon/folder deleted by mistake, how do i recover it?

    Fist off i am not a iMac genius, so bear with me as you read .  I Just bought an Imac (21.5 monitor and 1TB with OS X Lion 2012 version).  After transferring all my photos in the "Picture" folder (click, drag and drop into the "finder" then into the