Stream to file size

I need a way that I can stream audio to a file and set a cap on the size but never stop putting new audio in the file. Is there a way that I can to this. I know already how to send audio to a file but not cap it and continue.
--John                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Use a random access file and write data to start of the file again once the limit has been reached. When finished you would need to copy this data so the start is in the right place.

Similar Messages

  • "target" file size for streaming?

    Newbie question #2 (Many thanks in advance!)
    I understand that the answer is relative to the uncompressed file size, but I'm trying to figure out a target file size (how small) for a 250 Mb file (a 30-second movie) to stream on the web. Should I be aiming for 25 Mb? 100 Mb? 8 Mb? Just looking for a ballpark, if that's possible.
    If this question misses a critical point, feel free to let me know!
    Thanks, e

    If your going to use h.264 try 400 or 600 kbits/sec for the video (2passes, B-Frames). To tests, copy about 30 seconds of the video into a new Quicktime. If it look good to you then compress the original video. You can go as low as 300 kbit/sec. It all depends on the content of the video as to what bit rate you should use.
    As for the audio use AAC at no higher than 128 kbps. You can go lower and use mono. There again it depends on what the audio is.
    I just compressed a 320x240 at:
    300...1MB
    400...1.3MB
    600...2.1MB

  • Audio stream not published on Android (recorded stream file size only 1 kb)

    I created a netstream object, attached the android microphone and published it as recorded. The point is that the stream's "publish.start" is fired but "record.start" is not fired. And even the file size created on the server is just 1 kb. It does not update.
    Can anyone please provide me with a suitable solution?
    --> The microphone object is not null. I have checked that.
                private var nc:NetConnection = new NetConnection();
                private var ns:NetStream = null;
                private var recNs:NetStream = null;
                private var mic:Microphone = Microphone.getMicrophone(-1);
                protected function startPub_clickHandler(event:MouseEvent):void
                    nc.connect("rtmp://xx.xx.xx.xx/abc");
                    nc.addEventListener(NetStatusEvent.NET_STATUS, netStatus);
                    startPub.enabled = false;
                private function netStatus(evt:NetStatusEvent):void{
                    txtArea.appendText("Mobile " + evt.info.code);
                    switch(evt.info.code){
                        case "NetConnection.Connect.Success":
                            ns = new NetStream(nc);
                            mic.gain = 100;
                            mic.addEventListener(SampleDataEvent.SAMPLE_DATA, sampleDataEventHandler);
                            txtArea.appendText("\nMic " + mic.name + mic.gain);
                            ns.attachAudio(mic);
                            ns.publish("stream", "record");
                            ns.addEventListener(NetStatusEvent.NET_STATUS, streamStatus);
                            break;
                private function streamStatus(evt:NetStatusEvent):void{
                    txtArea.appendText("\nMobile " + evt.info.code);
                    switch(evt.info.code){
                        case "NetStream.Publish.Start":
                            recNs = new NetStream(nc);
                            recNs.play("stream");
                            break;
                        case "NetStream.Record.Start":
                            break;
                private function sampleDataEventHandler(evt:SampleDataEvent):void{
                    txtArea.appendText("\nActivity " + mic.activityLevel);

    am i correct that this 'my photo stream' process is not removing any image data?
    Yes,  as long as you have iPhoto's iCloud preference pane configures as follows:
    You're be getting the full image file, pixel dimensions, etc. which is essentially a bit by bit copy of the photo on the Phone.
    When you add tags and other metadata and export the file out of iPhoto as a jpeg with the checkboxes selected to include that metadata there will be some image compression.  However, if one chooses High or even Medium JPEG Quality one will be hard pressed to detect any image degradation unless printing very, large prints or otherwise displaying the image at a very, large size.
    I ran a test on a 1.4 MB photo from my iPhone  and compared the original to two exports, one at High and the other at Medium JPEG Quality and got these results:

  • How to check the file size before loading it to the context

    Hello,
    I have an application to upload a file and write it to the server using the FileUpload UI and IWDResource Interface.
    I would like to limit the size of the file the user is uploading to, say, 2MB.
    The problem is that the current API doesn't allow me to check the file size before I store it in IWDResource. The API available for IWDResource:
    IWDResource resource = ...
    InputStream stream = resource.read(false);
    size = stream.available();
    Is working on the file only AFTER storing it in the context and the server's memory. This way, if a user decides to upload 1GB file for example, he can easily crash the server.
    I am already familiar with <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71">this</a> arcticle but it doesn't answer this question as well, all it does is calculating the file size only after storing it in the context.
    Any ideas...?
    Roy

    Hi Ram,
    Have you activated your Objects ?
    You need to activate your objects in order to see them in RWB.
    Thanks & Regards,
    Varun Joshi

  • Pdf file size increases when printing resulting in slow print speed.

    I have a .pdf that is saved at 27MB. When I send it to an HP Designjet T520 36in printer the file size jumps up to 136MB and the printing is incredibly slow. This does not happen on all files on a few random ones. Any ideas on how to resolve this issue?

    It's entirely normal for file size to increase. PDFs are much more compressed than print streams. For some printers the print size is almost constant (a huge bitmap), for others, it's a collection of graphical items and the size varies enormously. Rarely anything you can do.

  • Need to export Movie to Quicktime Movie w/ similar file size and quality.

    Let me preface in that I am not in the video editing profession. Many times I have exported my work to the professionals. I'm sure knowing what you're doing is half of the battle. Here is my dilemma. First, I'm using Quicktime pro just to add a text track to the movie. I  then save the file as what Quicktime pro calls Movie .mov. This looks good and has the quality of the original .mov and the small data size. However, no other player than quicktime will recognize the text track. I then tried exporting from Movie to quicktime movie format (still .mov, can anyone explain the difference of the two .mov types???), but I find that the image quality is poor. Yet, in the quicktime format other players (except windows media player) recognize the text track. By poor quality I mean that I think what I have is the blocking effect. I assume that this is due to the bitrate being to low. Again, I would like to keep the file size low and managable for data storage and downloading purposes. I was hoping that in the end all video players would be able to have no issues.
    My current file sized are all less than 1MB and are of good quality.
    Just adding a small test track the Movie .mov is still less than 1MB
    The size of the image is 512x512
    I should also say that I'm a PC user with a quicktime pro windows version. I'm sure that doesn't help me one bit!! However, I believe my issues are more with the fact that I'm not experienced in compressing files and knowing exactly the right settings.
    Here is what I've tried thus far. Movie to quicktime movie
    H264 codec
    Current for fps (Which is in the original is 8fps)
    Key frames automatic
    frame reordering checked
    I've tried Automatic data rate and setting the bit rate, even at 2000kbps (the quality is low). My original movie with the highest kbps is only 1151kbps and has no artifacts
    encoding Best quality multi-pass
    custom size 512x512
    deinterlace checked

    am i correct that this 'my photo stream' process is not removing any image data?
    Yes,  as long as you have iPhoto's iCloud preference pane configures as follows:
    You're be getting the full image file, pixel dimensions, etc. which is essentially a bit by bit copy of the photo on the Phone.
    When you add tags and other metadata and export the file out of iPhoto as a jpeg with the checkboxes selected to include that metadata there will be some image compression.  However, if one chooses High or even Medium JPEG Quality one will be hard pressed to detect any image degradation unless printing very, large prints or otherwise displaying the image at a very, large size.
    I ran a test on a 1.4 MB photo from my iPhone  and compared the original to two exports, one at High and the other at Medium JPEG Quality and got these results:

  • How can I reduce the file size when PDF Optimizer does not do much?

    I have a PDF form that exists of 48 pages. 44 pages are forms / have form fields, the other 4 are just informative. Each form-page has approx. 80 fields (checkboxes, text fields).
    When I started setting up the PDF form the file size was 12 MB and I had placed fields on 21 pages. Then with 34 pages the file size was 19 MB. And with 40 pages it was 35 MB big! Finally with 44 pages the file size is 34 MB.
    So I searched with Google and found some tips. Using the "PDF Optimizer" option inside Acrobat for example. So I did, and the file was reduced only with 3 MB... 31 MB was the file. Also used the option "Save as.... Optimized".... no difference. I also found a suggestion about removing embedded fonts. Using the "Audit Space Usage" option I noticed the fonts taking many MegaBytes:
    * Content Streams: 5.287.000     15,09 %
    * Fonts:                24.556.810     70,08 %  !!
    * Acrobat forms:      3.349.164    12,05 %
    In the older PDF version (I saved and kept this one too) with just 21 pages with form-fields, the  "Audit Space Usage" shows:
    * Content Streams: 5.292.000     40,14 %
    * Fonts:                 1.290.224     9,79 %
    * Acrobat forms:      1.588.758    12,05 %
    So I could save many many MegaBytes by -UnEmbedding- fonts. But if I do this (unembed ALL fonts), the file size stays almost the same!?!?!? Why? What can I do to reduce the file size? I would like it to be 8 MB if possible (32 MB -  24 MB = 8 MB)?
    Thank you for your help!

    If you have authored the form, reduce the number of different fonts for the content and form fields.
    Any font used in a form field will cause that font to be embedded into the PDF.
    If you are going to Optimize the PDF be very careful with forms. Optimization does a lot of removal of items and rearranging of items which can really mess up forms.

  • Help ...how to get the file size on a server

    Hi.I use this code to parse a file that is on a server.
    The question is: how can i get the file size (bytes size)?
    Thanks.
    //Open the file for reading:
    URL u = new URL(entry);
    InputStream inputXML = u.openStream();
    //Build document:
    DocumentBuilder builder = factory.newDocumentBuilder();
    doc = builder.parse(inputXML);

    Try this instead:
    URL u = new URL(entry);
    URLConnection conn = u.openConnection();
    // get the file size
    int size = conn.getContentLength();
    // open the input stream from the URLConnection (which is functionally the same as opening it directly from the URL)
    InputStream inputXML = conn.getInputStream();
    Shaun

  • Reducing TDMS file size?

    Hello,
    I'm streaming analogue data acquired at 32 kS/s to disk in 32768 data point writes using TDMS Write.vi .
    A while back I feel that I saw an article about reducing the size of the TDMS files with some tricks. I think one of them might have been not writing unused high significance bits(?).
    I can't find that article now and I"m wondering if anyone had suggestions for reducing file size? Right now its about 0.25 MB/s. This is manageable, but it would be nice to reduce this if it were easily possible.
    Thanks in advance,
    Frenk

    Hello,
    Hmmm... I've run into an unexpected problem. I'd like to scale the unscaled data from DAQmx for some calculations during the data collection, but it isn't scaling the way I would have expected.
    My range is +/-10V and the largest unscaled numbers for data filling that range are very roughly about +/-125000. I would have expected them to approach 2^31 (one bit for sign)!!  How can one scale this data?
    Also, my saved TDMS file doesn't seem to have the information that "Cont Acq&Graph Voltage - Graph Unscaled Data from File (TDMS).vi" needs to scale it.
    Regarding I16, my data is unusual in that it contains a signal of interest that is about 80 dB below the stimuli that are also in the measurement. For that reason I need the full I32 to avoid excessive quantization error in the signal of interest.
    Thanks again!
    Frenk

  • Having problems reducing PDF file size.

    Really frustrated...
    Mac 10.6.8
    Acrobat Pro X 10.1.4
    I do not have access to the originating files for the PDF in question. Original file is 268MB.
    6.25" x 10.25" document size.
    I have used Save As Reduced file size. Increased file to 312MB.
    I have Save As Optimized PDF with smallest file size. and got the file down to 247MB.
    I printed out to a .ps file and ran it through Distiller with a custom Smaller File size taking it down to 72dpi (.ps file was 2.6GB) and got the file to 216MB.
    I did another Optimize of the 216MB file clicking everything [flattening, fonts, images, etc.] and the file came out to 530MB. (Really?!?!)
    [This also took 3.5 hours.]
    Ok, content stream at 97%. I don't know what that is or how to reduce it.
    I'd love to get this below 100MB and below 50MB would be great.
    Any help / hints / tricks / tips are greatly apprectiated.

    I'm not sure that printing to a new PDF is the answer.  When I print to a PDF, my pdf size balloons (often by 3x the original size).   I've checked the settings in the print profile (verifying I'm printing to black and white, and lowering the DPI from 1200 to 300) but even at that, the finished product is often 2.5x the original.  (Background on the document ... it was paper, I scanned it at 400 dpi.  The file size was around 3 MB.  I added a footer and then printed to pdf.  The finished product was 9 MB.)  Any other thoughts would be greatly appreciated.  Thanks

  • Maximum file size that OSB can handle for JMS

    Hi,
    We have a requirement to process 60MB xml files over JMS in Oracle Service Bus. While prototyping this we are facing heap space errors.
    Can somebody let me know what is the maximum file size that we can process? The scenario is as below.
    JMS --> OSB --> JMS --> OSB --> JMS
    Thanks

    if you don't need to access the entire content of the message, you can try using content streaming
    (see this OSB - Iterating over large XML files with content streaming discussion)
    See also here http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/userguide/context.html#wp1110513 for best practices.
    Otherwise I have noticed myself that OSB is very hungry in memory when loading large messages. I had trouble even with a 5 MB binary file being loaded - this would take 500 MB RAM. in these cases I would rather look for ETL tools such as Oracle Data Integrator or Open Source Pentaho.

  • Huge captivate file sizes

    I have been using Captivate to imbed an audio recording of a
    presentation into the slides for said presentation. The audio is in
    the form of one large mp3 file. When adding the audio, I select the
    option to distribute over many files, and line up all the slides to
    the correct part of the audio. If i need to edit the slide times or
    audio (this happens frequently because captivate seems to be rather
    buggy when splitting up the single audio track into one for each
    slide) the resulting Captivate Project file rockets in file size. I
    believe this is because it is keeping a copy of all audio used in
    Captivate, ie an old and new copy of the whole mp3 stream, before
    and after editting.
    If this happens a few times the file size grows accordingly,
    and for a 50min presentation i'm looking at project files of 1.3GB.
    These are clearly pushing my (powerfull dual core, 2GB RAM) desktop
    to the limit. I have tried removing all unsed items from the
    library but this makes no difference to the size of the projects.
    To illustrate the problem to a friend I deleted EVERYTHING
    from the library, added 1 new blank slide and deleted all the other
    slides. The resulting project looked akin to a brand new blank one.
    Upon saving (as a new cp file) the project was infact 1.16GB in
    size. Eh?
    Is there some way of deleting files from captivate projects
    other than the library?

    If file size is the biggest concern, once you've cleared out
    all items
    you don't need any longer, try:
    1. Doing a Save As, then a Save As again. Often, for whatever
    reason,
    this finally gets rid of old, unused objects.
    2. Create a new project and import the existing project's
    slides. This
    can have the same effect.
    In my experience, the first is better for reducing file sizes
    and the
    second is better for getting rid of any playback anomalies.
    Otherwise, a better approach for what you're doing, again in
    my
    experience, would be to cut up the audio outside of Captivate
    into one
    file per slide (using a tool like Audacity), import them all
    into the
    library, then add each individually. That's our standard
    process and
    we've yet to experience these huge, bloated CP files (knock,
    knock).
    Erik
    luke@nesc wrote:
    > I have been using Captivate to imbed an audio recording
    of a presentation into
    > the slides for said presentation. The audio is in the
    form of one large mp3
    > file. When adding the audio, I select the option to
    distribute over many files,
    > and line up all the slides to the correct part of the
    audio. If i need to edit
    > the slide times or audio (this happens frequently
    because captivate seems to be
    > rather buggy when splitting up the single audio track
    into one for each slide)
    > the resulting Captivate Project file rockets in file
    size. ....
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/group/macromedia.authorware

  • "Content generation error. The article exceeds maximum file size limit"

    We are building a single edition app for our univesity's literary and arts magazine and have no problem previewing it through the adobe viewer app, but when we try to create a folio so we can begin the App Store process, we keep getting this pesky error. It refuses to export a folio.
    The links folder associated with the indesign file totals 474mb.
    The folder containing all the Indesign files associated with the app is 537mb.
    So how are we exceeding the 1gb file size?
    Details:
    115 pages within a single article (we converted from the print edition, rather than placing each piece into an article of toys own. Is that a problem?).
    All images (about 50) are png files of under 1mb and the videos have been exported to mp4 (total 370mb of video--do we need to switch to streaming?)
    Every page has a button linking back to the home screen. And at least one, and sometimes two, MSOs (to full-screen an image or to pop up the author's bio.
    3 mp3 audio pieces are insignificant in size.
    We removed extraneous states from the MSOs.
    Our PNG files are sized to a maximum width of 2048px.
    The .indd file itself is 58mb
    No HTML overlays, but we do have 5 or 6 hyperlinks that launch the browser.
    Any guesses why we are unable to generate a folio with this article?
    Is there a way to audit our project to see what the problem is?
    We've scoured these forums and applied the advice that seemed pertinent , so your patience and recommendations would be a great help.

    Thanks to both of you for your replies.
    We watched Adobe's tutorial videos and read the guides on Adobe's site before starting our project (a first app for our lit-mag), and never found the kind of overview that would have made the built-in functionality of the Folio system evident. Are there beginner videos you recommend we screen for the editorial board next year? It has been a great learning process for us this summer, but one involving many errors along the way.
    It seems like it won't be difficult to break up the journal into "articles," but in order to make the TOC work correctly it really is a one piece to a page thing (none of our pieces extends beyond one screen because we used scrollable overlays). Do you think we'll run into trouble with 100+ articles in our folio?
    Thanks again for taking the time to respond!
    --Clamor

  • PDF file size limited to graphics memory in Reader?

    I've created a form (in LiveCycleDS) that allows for an unlimited number of photos to be loaded into it. I put an image into a subform that is duplicated every time a user clicks a button thus creating an unlimited number of images that can hold photos. I then extended it with Reader Extensions.
    I'm running into a problem when I try to load a large number of photos into the form.  It gets to about 47MB of images when it locks-up Adobe reader.  I've been able to bring up other applications after the lock-up and when I switch back to Reader the artifacts of the other application are then displayed within Reader.
    What is the practical limit to the size of a file created with LiveCycle?  Is it tied to the amount of graphics memory a computer has?  My machine has 2GB of RAM while my video card has only 384MB.  I haven't been able to figure out if there is a file size limitation.

    It's entirely normal for file size to increase. PDFs are much more compressed than print streams. For some printers the print size is almost constant (a huge bitmap), for others, it's a collection of graphical items and the size varies enormously. Rarely anything you can do.

  • How Can Make a Large Background Image For A Website (reduced file size)?

    Hi, I want to edit a large photo so that it fits the width of the browser (I'm using a responsive layout). The image needs to be a small file size so that it loads quick enough.... My question is are their any tricks or adjustments within Photoshop where I can reduce the file size of an image whilst maintaing large image size. I heard that adding noise can reduce the file size or something? Is there any other effects that do this?
    Thanks in advance!!!

    twenty_one wrote:
    JJMack wrote:
     If I were stuck in an area that only had low speed Internet connections I would not use the web as much as I do.
    Where do you get this stuff...?   About the only thing I do strictly for fun on the internet is this and a couple of other forums. Other than that it's strictly business and I really don't have a choice in the matter. So there I sit, patiently waiting, counting 0, 1, 1, 0, 0, 1, 1, 1....
    You making my point if all you have is slow Internet connection you use the web less. You only use it when you have a real need.  You do not use it for fun or streaming video you live with the reality of what you have and use it accordingly.
    In 2003 I took a long vacation to New Zealand and Oz land.  I carried my ThinkPad with its 15" IPS 1600x1200 px Display for Photoshop and storing my images. I also use for connecting to the Internet via modem for E-mail and banking not for fun.  These days you can carry a iPod in you shirt pocket and gab a cup of coffee at a local Starbucks a use a high speed wireless in access point they provide for their customers for free.  High speed in becomming the norm in all but rual areas.

Maybe you are looking for

  • Saving completed file for opening in another program

    I have been using Pinnacle Studio 10.7 because it allows me to produce HD-DVD on regular DVDs. (The drawback is the approximate 20-minute time max on each DVD.) I'd like to start doing work in Premiere, then save my work to a file that I can simply o

  • PO Release procedure based on Cost Centers

    Currently a have release procedure based on purchasing groups created as departments. Now i have to create release  procedure based on cost centers. Is it possible to bind cost centers with purchasing groups, in order to use the release procedure tha

  • Display column name in sql*plus

    Hi, How to display full column name? there are n no of tables, i have to query the tables but i want the column name to be displayed fully. for example SQL> desc control Name Null? Type CODE NOT NULL VARCHAR2(255) LOAD_PERIOD_START_DATETIME DATE SQL>

  • Correction: Mapping external resources

    I am trying to build a web application that would connect to different database upon different deployment. To get this done, i am using external resource mapping. My weblogic properties contains the following line: weblogic.jdbc.TXDataSource.wapayPrd

  • Launchpad showing multiple instances of some apps

    Anyone has the same issue? I use external USB HD for Time Machine backups of my Data partition and for daily clones of System partition done by SuperDuper! - Launchpad is showing all instances of applications, not only these in the Applications folde