Simultaneous stream playback and export to file

I'm trying to write a client application that receives an audio stream via RTP. I can get it to playback the stream using a Player as the audio is being received and I can also get it to export the stream to a local file using a Processor as it is being received. However, I cannot seem to merge the two functionalities. I think the problem is with using a Player and a Processor connected to the same DataSource. The error is that the Player is never initialized. The controllerUpdate method is below and it seems that it never reaches the player.realize call. I am a beginner at JMF so maybe I haven't learned enough about MediaEvents. Any help would be appreciated.
    public synchronized void controllerUpdate(ControllerEvent control)
        Controller myController = control.getSourceController();
        if(myController instanceof Processor)
            if (control instanceof ConfigureCompleteEvent
                    || control instanceof RealizeCompleteEvent
                    || control instanceof PrefetchCompleteEvent)
                synchronized (waitSync)
                    stateTransitionOK = true;
                    waitSync.notifyAll();
            } else if (control instanceof ResourceUnavailableEvent)
                synchronized (waitSync)
                    stateTransitionOK = false;
                    waitSync.notifyAll();
            } else if (control instanceof MediaTimeSetEvent)
                System.err.println("- mediaTime set: "
                        + ((MediaTimeSetEvent) control).getMediaTime().getSeconds());
            } else if (control instanceof StopAtTimeEvent)
                System.err.println("- stop at time: "
                        + ((StopAtTimeEvent) control).getMediaTime().getSeconds());
                control.getSourceController().close();
        if(myController instanceof Player)
            Player player = null;
            // If player wasn't created successfully from controller, return
            player = (Player) myController;
            if (player == null)
                System.out.println("Player is null");
                return;
            if (control instanceof RealizeCompleteEvent)
                System.out.println("HELLO");
                PlayerWindow pWindow = find(player);
                if (pWindow != null)
                    pWindow.create();
                pWindow.setVisible(true);
                player.start();
            if (control instanceof ControllerErrorEvent)
                player.removeControllerListener(this);
                PlayerWindow pWindow = find(player);
                if (pWindow != null)
                    playerWindows.removeElement(pWindow);
                System.out.println("Error in ControllerErrorEvent: " + control);
    }

Okay, then here's one possible method to do something like this:
$totalSize = 0
Import-Csv .\fileListing.csv | ForEach {
$fileDetails = Get-Item $_.FilePath
$props = @{
File = $fileDetails.FullName
'Size(B)' = $fileDetails.Length
$totalSize = $totalSize + $fileDetails.Length
New-Object PsObject -Property $props
} | Select File,'Size(B)' | Sort File | Export-Csv .\fileReport.csv -NoTypeInformation
(Get-Content .\fileReport.csv) + "`nTotal Size,$totalSize" | Set-Content .\fileReport.csv
This assumes an input CSV named fileListing.csv with a header of FilePath for the paths.
Don't retire TechNet! -
(Don't give up yet - 12,830+ strong and growing)

Similar Messages

  • Photoshop choppy 422 Video playback and export

    In CS6, When editing Pro Res 422, Video with single layer plays back fine but with 3 layers playback and export are very choppy.
    I tried merging layers but the video doesn't playback at all. Is there any other settings I could try?
    CS6 memory usage is 100%, sound is turned of in TL. System MacPro -Quad Core Intel Xeon-Processor Speed 3 GHz, Memory 8GB.
    Please help.

    Thanks Curt.
    I usually edit w FCP7. And My computer never had playback issues w 422 Pro Res files.
    CS6 Memory was before on +- 55% and even the single layer video was playing back choppy. So I changed it to 100% not realy knowing what that means. At least the single layer video is playing now fine.
    Model Name:          Mac Pro
      Model Identifier:          MacPro2,1
      Processor Name:          Quad-Core Intel Xeon
      Processor Speed:          3 GHz
      Number Of Processors:          2
      Total Number Of Cores:          8
      L2 Cache (per processor):          8 MB
      Memory:          8 GB
      Bus Speed:          1.33 GHz
      Boot ROM Version:          MP21.007F.B08
      SMC Version (system):          1.15f3
    Thank you for your help!

  • Proxy Media: Transcode Source File and Export Read File...

    Hello, I'm new to FCPX. I have a Panasonic HC-X920. When I shoot things I copy the entire folder tree to my hard drive and import from there, rather than directly from the SD card.
    I learned that FCPX "re-wraps" the truly original h.264 MTS files to "Original" h.264 MOV files. Not a huge deal, as there doesn't appear to be quality loss, and the MB/s rate is slightly higher on the MOVs. Ideally I'd be able to use the MTS files but FCP is Quicktime-based and I've decided I'm not worried about it.
    Anyway,
    My computer can't handle playing back 1080p 60fps h.264 footage. In order to have playback on an FCPX timeline, I have to transcode to either Proxy or Optimized media. Optimized, of course, takes up a ton of space, so I'm curious about using Proxy. But I want more info first.
    I'm most curious about question #1, but here are two questions:
    1.
    Let's say I transcode everything to Proxy Media upon import. When I go to share/export a final file from my timeline, which of the following does FCPX do?
    (A) Export the timeline using/reading from the lower-quality Proxy media, ignoring the Originals.
    (B) Automatically replace the Proxy media with the Original media files, and export the timeline using/reading the Original media files while ignoring the Proxies.
    (And if B is the answer, is it reading the Original MTS or Original MOV? I'd assume MOV, right?)
    Does this question make sense?
    I'll mostly be editing home movies with this, so it's not imperative that I be able to see what I'm editing in vivid detail and I can use Proxy for that to save disk space. But I DON'T want my final exports to be based on that lower-quality transcoded 422 Proxy Media; I want the proxies to be view-only, and I want the final exported quality to be based on the quality of the Original media.
    My other question:
    2. (probably not a big deal either way)
    When FCPX transcodes to Proxy and/or Optimized, is it reading from (A) the "Original" MOV files it created upon import, or (B) from the "truly original" MTS files?
    Thanks!

    Tom Wolsky, thanks for your answer.
    1. Where do I switch playback to original, in the Preferences? I'm attaching what I see in my Playback preference window. I don't see a place to switch this, am I doing something wrong?
    2. That's what I suspected, thanks for clarifying.
    Here's the screenshot I mentioned in #1:

  • Quick Time Pro and exporting movie files

    With Quicktime Pro do you have to purchase Flip for Mac for people with Windows Media Players or Realtime players to be able to view it?
    I've heard of something called AV files. Does Quicktime Pro export a file in some version that can be read by other players, or do I have to purchase some software?

    People with Windows can get the free QT Player for windows and view your QT files that way. One version of Flip4mac will allow you to start with QT and output WMV files. Those would play in Windows Media Player. AVI files might or might not depending on the codec used inside the AVI container.
    There is lots of QT media on the internet, and Windows users just download and install the QT player at no cost and then can watch downloaded or streaming QT media.

  • View jobs with SQL Developer and export to file with delimiter

    Hi,
    is there a way to view, create and alter my database jobs with SQL developer?
    And is it possible to export tables, views or simple queries to file delimited different from the CSV standard?
    Diego.

    Hi and Welcome to the Forum!!
    To select data from a table or a view you must use the SELECT sql command. Example to get the data from your view you can
    select ZMATNUM,ZMATCUR,ZMATATTR from ZMATERIALAs you have said you are using SQL Developer just execute the above query in your sql developer and it will show the data. Right click the grid and export the data to excel file.

  • Import and export xml file in Oracle

    Hi Gurus,
    Can any one explain , how can we Import and export an XML file in Oracle Please
    Thanks

    Some examples can be found on this {thread:id=410714} forum and also on [Marco's blog|http://www.liberidu.com/blog/] (He's an Oracle Ace in the {forum:id=34} forum)

  • Any Complete Tutorials On How To Edit And Export MIDI Files In GB?

    Hi. A friend sent me about 25 nice standard MIDI files that all open fine in QT Pro. She wants me to drag and drop them into GarageBand 2, attempt to edit them, change sounds and then export them out as the edited versions, key changes, added bars, change instrument sounds, etc,. Although I'm a trained musician who understands form, I really don't have a clue on how to use GB to edit and export standard MIDI files. Can this be done effectively in GB ver 2 or 3?
    Basically what she then wants to do is take the edited MIDI tracks, put them into itunes I guess on her iBook G4 or Ipod and do a solo act playing her keyboard live and usibg the MIDI tracks as background.
    Are there any links to step by step tutorials on how I can lerarn this procedure? Please offer any advice and links if you can and thanks for your help
    steveb

    Not really practical, I'm afraid. Capturing screenshots and cutting them up is possible with Photoshop, but PDF editing is very limited (fix a typo, move a picture).

  • PLEASE Help. Green Screen in Video Playback and all Video Files.

    Hello to who ever can help a hand out. I feel very stressed by this whole problem. I have a documentary movie that has been finished and edited. I only had to add a couple more parts to it to finalize the film. However when i went on my computer today, (last time being last week. Where everything had worked properly) all the video playback is green. it has audio of all the video files, but the video shows up green in the playback and the viewer. Any idea what could have happened. (last week i added a 5 jpegs thats it!)
    Please anybody with any suggestions, I would be very greateful.

    Lots of folks with similar problems. Do your clips play ok in Quicktime Player ? have you done any updates lately.
    Try this thread.
    https://discussions.apple.com/thread/5492686?start=0&tstart=0
    DM

  • PE7 and Exporting Quicktime Files for Streaming

    PE4 saves Quicktime (H.264) files with the header at the end, so trying to stream them as they download in a Flash player doesn't work (the entire file must download before it will play).
    Has anyone with PE7 had any luck streaming Quicktime files? I wish there was a way for me to ask an Adobe developer if they addressed this in PE7.

    You can definitely export chapter markers to a QuickTime movie. Whoever is playing it back needs QT Player 7.1 (I think) to be able to use chapters though.
    Make sure you select Chapter Markers in the FCP export dialog instead of All Markers. I have never tried it with a streaming file but go ahead, be a pioneer and tell us how it works out.

  • Premiere CC 7.1 - Red frames in playback and export

    Having some problems after the 7.1 update.
    In a variety of projects, on a variety of footage, we're experiencing random fully red frames (#ff000). Sometimes there are 1-2 frames in a clip, and occaisionally it's 80%-90% of the frames in a clip (this is less frequent). It has never been all of the frames of a clip.
    This happens:
    - On an undrendered timeline (you'll be watching an edit and you'll see a red frame - if you scrub back to it it'll still be there)
    - On a rendered timeline
    - In exports
    Red frames that are visible on a timeline, are sometimes carried through to the export and sometimes not. Sometimes an exported file will display red frames that were not present on the timeline.
    Red frames seem to be based on clips, not sequence frames. For example, in one of my exports, I had video footage with a lower third graphic over it. In one frame of the export, a red box appeared over the graphic, but the main shot was not affected.
    This has happened to the following types of footage:
    - .MTS (from C100)
    - .MXF (from C300)
    - ProRes 422 MOV
    - ProRes 4444 MOV with alpha channel
    Fixes that seem to work:
    - If an export has red frames, re-export. Watch the new one like a hawk. Repeat until you get lucky.
    - If a clip on a timeline has red frames, force a re-render via a Crop filter or similar
    - Quit Premiere and reopen it
    System/environment details:
    - OSX 10.8.5
    - Premiere Pro CC 7.1
    - Mercury Playback Engine Software Only
    - Often (always?) I-Frame Only MPEG sequence settings
    - Much (all?) of the footage we've been working with has been on AFP shares via GigE with MTU of 9000
    I haven't been able to confirm yet:
    - Whether this ever happens with locally stored footage
    - Whether this ever happens when Queueing to media encoder (rather than Exporting from Premiere)
    - Whether changing to a QuickTime Desktop based sequence setting resolves the issue
    Is anyone else experiencing this issue? It's frutstratingly un-testable, since it seems to happen at random. We'll continue to gather data points though and see if we notice any other trends.
    Edit: Added additional system context

    the error also appears with PRORES 422 files, but only after a certain amount of source data from prores 422 clips is processed / read
    i made a test comp in AE with only one gigantic prores 422 source clip (8000 pixels x 1000 pixels @25fps) and the error first appeared at around 1500 frames read from the source file (equalling a few GB of source read and processed). after the red frames error appears once, the erroneous red frames appear more often but never in the same place when rendering the same comp several times)
    i also made a test comp containing only a few full HD prores 422 clips (1920 x 1080, @25fps), there the error appeared only seldom (but still randomly). so it can be that a broader user base never experiences this erroneous behaviour at all.
    i also made a testcomp containing about 40 full HD prores 422 clips (each 1920 x 1080, scaled down to 10% in size and distributed all over the comp so i can see them all at once). the erroneous red frames appeared within the first rendered frames!! obviously, many qt files had to be open and read in parallel, and so the error appeared from the very beginning of the rendering / export.
    i suspect that the AE / PR applications open a RAM buffer for each open prores source file they need to read, and that this buffers somehow becomes compromised when it overflows and when buffer resize / buffer clear / flush operations take place.
    of course i tested all sorts of RAM assignents for MP rendering (1GB per core, 2GB, 4GB, 6GB) and i rendered with several different settings of how many cores and ram should be available to other tasks. but the error always appeared. randomly.
    --> fact in AE is, that nearly all MP renders / exports using prores clips as source files contained the bad red frames. when rendering without the MP option on (but of course up to 20x slower) so far i never experienced this error (of course always after fresh restarts once the error appeared)
    PLEASE FIX THIS ASAP
    mac pro 2011, 12 cores, osx 10.8.5, 64 GB ram, angelbird SSD, ati hd radeon 5770 1GB

  • Playback and export problems

    Greetings,
    I've just done a Leopard clean install on my Quad G5 (2.5 gigs RAM). So far, I've reformat my HD, install Leopard, install all apps from original CD's, the work!
    I use STP as my main editor for a radio show. Normally, I import the music (AIFF), the voice clips (BWF) and do my editing without any problems. Since I've switch to Leopard, STP cannot playback any file without having audio dropout or glitches. It sounds like STP is not able to playback the imported files. And, btw, I'm having no problem to play those files in Quicktime, Audacity or Garageband. Perfect playback, without a glitch!
    And if I try to export the project to MP3 or WAV, I'm having another problem with the resulting file: dropout and glitches at playback.
    Anyone seen that?
    Regards
    MD.
    Message was edited by: Michel D.
    Message was edited by: Michel D.

    INCROYABLE! But true!
    I finally solved all my problems with Logic, Soundtrack Pro, GarageBand and tutti quanti. It's like having a new machine!
    The solution? How did I solved it? It's right there, from an anonymous Applecare worker:
    http://discussions.apple.com/message.jspa?messageID=6020837#6020837
    ) Emptied system cache (library folder) and user account cache (username/libraryfolder).
    2) Shut down and unplugged my Mac for 5 minutes.
    3) Held down option + command + p + r keys to reset the system pram.
    Like the good ol'time. A PRAM problem. Fiew!
    The champagne is on me! We'll probably never know that guy's name, but many thanks to him. He's my hero tonight.

  • Playback and Exporting Corrupt?

    I keep having this sporadic issue where I am editing a sequence and the playback starts to lag and other times lines appear in the playback as well. This same problem happens with exporting. For reference sake I am editing off one of a literally brand new 3.5 GHz 6 core 16GB ram Mac Pro. The video company I work for has 9 more of the identical computers. This is the only one with a problem. I do not believe it is a ram or video card issue only because I can do anything within After Effects with no problem whatsoever. I have reinstalled Premiere and I am still having these issues. I opened the projects on another computer and they work just fine. Any suggestions?  I took a screen recording of the problem so you can see what I am seeing. Premiere Playback Issue - YouTube
    Thank you for your help. - Jon

    Hi ClayTron,
    There seems to be a few issues with the OS X 10.9.3 update and Premiere Pro CC (and other non-Adobe applications related to video). We know about the issues and are working with our partners for a fix. In the mean time while we're fixing issues, you might want to do the following to troubleshoot. These are things other users have tried and helped:
    Sign out and then sign back in to Creative Cloud: Sign out, Sign in | Creative Cloud Desktop app
    Remove CUDA drivers if they have been installed (usually by Resolve): Avoid installing NVIDIA CUDA drivers on computers with AMD GPUs
    Make sure all third party plug-ins are updated.
    Go to Utilities > Disk Utility. In Disk Utility, select your Mac HD in the left pane and click the Repair Disk Permissions button to repair disk permissions.
    In Finder, press Option, then choose Go > Library. Open Application Support > Adobe > Common, and then place the Media Cache in the trash.
    In Finder, choose Apple > System Preferences. Click the Energy Saver icon: Make sure Automatic Graphics Switching is unchecked. This forces the more powerful GPU to be used for OpenCL processing.
    Reboot the computer.
    Launch Premiere Pro.Trash preferences on launch by pressing Shift + Option while launching the application.
    In Premiere Pro, choose File > Project Settings > Renderer > Mercury Playback Engine Software Only. This should allow you to export without the horizontal lines.
    In Premiere Pro, for any new or existing sequence, select the sequence, choose Sequence > Sequence Settings. In the Sequence Settings dialog box, change Editing Mode to Custom. In Video Previews > Preview File Format, change it to QuickTime. Set the codec to Apple ProRes 422, if you have the ProRes codecs installed. If not, try another codec, like Photo JPEG. This helps any problems with rendering.
    Take a look at the Preferences folder once more, if the OS is updated and not clean installed, Mac OS can set permissions of folders and files incorrectly. To fix this in the case of Premiere Pro, go to the preferences folder and set the entire preferences folder ( /Library/Preferences/Adobe/Premiere Pro/7.0 ). Select the folder, press CMD + I, and then set all of its contents to be writable, not read-only.
    See if your system runs more smoothly after performing these steps.
    Thanks,
    Kevin

  • How do I select to simultaneously stream (airtune) and play on my computer?

    Hi everyone. So I keep reading that as of last January '06 (6.0.2) iTunes will let you stream to remote speakers and play the same song simultaneously on the computer's speakers. How do I do this?!? I have searched everything and everywhere (these forums, macosxhints, the usenet forums) for over 30 mins now and no one mentions "how" to do it, just that it can be done. That is, once everything is setup, is there a mystery screen that says "click here for both at once"? Am I supposed to right click on anything in particular?
    iTunes only lets me select one at a time - on the bottom right of itunes, I have the box that lets me choose my remote speakers ("livingroomstereo") or my computer speakers ("computer"). But again, it only lets me click on one, not both...
    I have: iMac G4, iTunes 7.0.2. My airport express is at v6.2 firmware. I use a linksys wrt54g as my base, and the airport express works perfectly as a client.
    What is the mystery! I feel that something is missing since no one describe how to select multiple ones at once so that it must be totally obvious. And that leads me to beleive that I am not "missing" it, it just isn't there....
    Here is the useless Apple FAQ:
    Can my AirTunes stream play through my computer's speakers at the same time?
    Answer: Yes. With iTunes 6.0.2 or later, you can play through both the computer speakers and multiple remote AirPort Express units, provided that each AirPort Express has the latest AirPort firmware (available here). The maximum number of remote AirPort Express units is three to six in typical conditions. The number that works for you will depend on your environmental conditions (such as building composition and local radio interference), distance to the remote AirPort Express units, and available network capacity relative to your other usage.
    I hate things that tell you that you can do a particular thing, but then dont tell you how to, or at least don't tell you how to find out how to do it...
    Thanks!!!

    Ah man. thank you.
    I hope Apple fixes the indirect problem with their FAQ. On their faq (that I excerpted below) they provide a link to check and DL the newest software and firmware. I went through their "check" and gave me the thumbs up...
    Thank you for pointing out the problem..
    Can my AirTunes stream play through my computer's speakers at the same time?
    Answer: Yes. With iTunes 6.0.2 or later, you can play through both the computer speakers and multiple remote AirPort Express units, provided that each AirPort Express has the latest AirPort firmware (available here). The maximum number of remote AirPort Express units is three to six in typical conditions. The number that works for you will depend on your environmental conditions (such as building composition and local radio interference), distance to the remote AirPort Express units, and available network capacity relative to your other usage.

  • Red Frames in Playback and Export

    After finding out that others have had this problem and found solutions, I expected the solutions to work, but no luck so far.
    I am working with HDV 1080i60 footage in Premiere Pro CC 7.2.1 on OS 10.9.1. When I play my footage through the source window (by double-clicking it in the Project window) or on a sequence timeline, I see intermittent red frames - a lot of them. The red frames persist through export, leaving me with no way to edit this footage except to transcode it to a different format - presumably with an encoder other than Adobe Media Encoder.
    Adobe, you have posted possible solutions for other people with this problem, but obviously it persists. What's the nex step?

    LFedit, my red frames do not appear only on cross dissolves. They appear during normal playback in the source monitor as well as in the program monitor AND in the small preview area in the project window.
    I've seen posts about this problem from the end of 2013, but I'm glad to know I'm not the only still experiencing trouble. I've already submitted a bug request to Adobe. Please do the same, LFedit. The more people report it, the more likely Adobe will pay attention.

  • How can I create and export a file in 1024x768? Is the size supported in FCPX?

    I'm trying to create a video to export and upload on YouTube, and we want to do it at 1024x768. FCPX does not support this file size. Ideally how can I
    1) Create a canvas size in 1024x768 (or the same aspect ratio)
    2) Export my video at 1024x768 (here it has to be the exact dimensions).
    I feel so dippy, this seems like it should be obvious but I can't figure it out! Closest I've gotten is 2048x1556. Thanks for any help!

    The technique explained in the Creative Cow tutorial works perfectly. I use it all the time for the odd aspect ratios we work in for video walls. It does feel odd working in FCPX without creating a Project (Compound Clips are stored in Events) but hapily you have all the editing capabilities in a Compound Clip timeline as you do in a Project timeline.
    It would be nice if FCPX allowed us to enter custom sizes for Projects like one can in FCP7. But FCPX with this technique actually handles odd aspect ratios better than 7 did. I used to run color shifts and transition problems doing this in 7.
    I once called Apple tech support about the problems in 7 and they told me that although you can enter custom resoulutions in FCP7, Apple doesn't support anything other than standard resolutions. I guess they clarified that position with FCPX.
    Come on Apple (and YouTube and Vimeo.) Not everyone lives in a 16x9 world. My daughter, as do most teens, shoots all video at 9x16. Surely that resolution will soon have to be supported.

Maybe you are looking for

  • Mac Pro 2008 randomly starts up

    Hello: I searched the forums and found only one similar but unresolved question. Subject says it all. Problem started and slowly got worse post 10.6.1 (I think) Alex Salerno's Computer 11/9/09 4:04 AM Hardware: Hardware Overview: Model Name: Mac Pro

  • Pass item from a page to another

    Hello, I am trying to pass the item P3_QUESTION to the item P8_QUESTION from a page to another. I have used v('P3_QUESTION') in the source field from P8_QUESTION item and it didn't work. Could you help me to solve this problem? Thank you, Ruxandra

  • Receiver Determination - Configuration Overview for Receiver Determination

    Hi All, I was trying on some tutorial for Calling RFC(sender) and creating a File at Receiver site. I've configured all the required setting at the Design: Integration Builder. As for Configuration: Integration Builder. Until the Step where I require

  • Provision entry

    Sir, I want to know how to passed provision entry in sap. for example i want to pass provision entry for Audit fees.

  • How to achieve populating of price for regular purchases in PO

    When using Purchasing module ( without/shared Inventory ) , i understand we can't create Item codes, my question is How to achieve populating of price for regular purchases. Ex : If user requests Laptop for the same model more than one time in a year