JMF access frame without playback

My task is to extract each frame from a video file and convert them to JPEG images. I have used the example FrameAccess.java from Sun's website and am able to do this without any problem.
However, this example outputs the video file which is not needed. Therefore I simply removed the VisualComponents. The main problem is that audio is still played back. Is there anyway I can step through each frame of the video file, convert the frames to images without playback of the video file?
I would be very grateful for any help.

When setting up the processor and iterating through the track controls, setEnable(false) for any tracks that have an AudioFormat.
To disable video output, you can implement a simple null renderer that accepts a buffer but does nothing. If you don't want to implement the whole interface yourself, you could extend com.sun.media.renderer.video.BasicVideoRenderer, but you may have to refer to the JMF source.

Similar Messages

  • After Effects CS6 error: RAM Preview needs 2 or more frames to playback - any ideas please?

    Hi everyone,
    I'm running After Effects CS6 (11.0.4.2) on a MacBook Pro 2.8Ghz with 16GB RAM (Mac OS 10.9.4)
    As a test, I created a 3 and a half minute Sequence in Adobe Premiere CS6, and then imported this into After Effects CS6, and placed it on the AE timeline.
    This footage involves a couple of 1920x1080p footage movies, some psds and a large number of JPGs exported from two videos arranged as a sequence in two layers in Premiere, one on top of the other. So all in all for a Premiere / After Effects file I'd say it's reasonably heavy.
    I then did a RAM Preview with Multiprocessing switched off - the 3 and a half minute sequence loaded into RAM, taking about 1min 30seconds, and played back in realtime at 25fps. This worked fine with 3,4,5 and 6 GB RAM available to other applications in the Memory Preferences. All things considered I think this is quite good. I can make changes, reclick the RAM Preview icon and my changes load into RAM and it previews ok.
    My only 'complaint' is how long the RAM Preview takes to load up the whole thing.
    I've been reading up on Multiprocessing and decided to try this to see if I can speed up the time it takes my RAM Preview to load up.
    So I looked at some recommendations from Adobe and read information on various forums including this one.
    My settings in the Memory Preferences are currently
    • 6GB reserved for other applications
    • Reduce cache size when system is low on memory - unticked
    • After Effects Multiprocessing - ticked
    • Installed CPUs (processor cores) - 8
    • CPUs reserved for other applications - 6
    • RAM allocation per background CPU - 3GB
    • Actual CPUs that will be used - 2
    This combination takes about 25 seconds to load up my 3 and a half minute sequence which I thought was pretty amazing.
    I then pressed the stop button and then the play button - so now just playing the sequence briefly.
    And also added a new layer - into the timeline - just a simple shape.
    Then I tried a RAM Preview again.
    I found I could load up part of the sequence but not load the whole thing into RAM.
    I kept trying to get a RAM Preview and got this message
    "After Effects error: RAM Preview needs 2 or more frames to playback" which seems to prevent RAM Preview from working.
    Eventually I quit and restarted After Effects and the problem went away temporarily and then came back when I tried again.
    I tried various changes to the Memory Preferences - trying 3GB available for other applications. This gave 13GB of my 16GB RAM to After Effects.
    This made it take slightly longer for the After Effects error to appear but it still appeared.
    I tried ticking Reduce Cache size in the Memory Prefs  - the After Effects error still appeared, so having read this is supposed to make the issue better I now leave it untucked, but as far as I can see ticked or untucked, it makes no difference, the problem remains.
    I've since tried -
    Making 2,3,4,5 and 6 CPUs available for other applications.
    Changing the Background RAM allocation per background CPU to 0.75GB, 1GB, 1.5GB, 2GB and 3GB
    Lots of combinations.
    But in the end, I always get the "After Effects error: RAM Preview needs 2 or more frames to playback" error.
    It might take less or more time for the message to show up, depending on the combination of settings, but in the end I always got the same message appearing.
    And I notice that I can RAM Preview less and less of the timeline. i.e. it becomes more blue than it does green and will load in only a small section of the timeline as opposed to the whole thing.
    Reading further, I tried Edit > Purge > Image Cache and Edit > Purge > All Memory but still get the error message.
    I also tried ensuring there were no other applications running e.g. Safari or Chrome or Firefox. And certainly not Photoshop or Premiere etc.
    Reading even further, I tried two Memory management applications - 'Memory Clean' and 'Purge.'
    Neither has had any effect - the After Effects error still appears.
    Then I went back into the Memory and Multiprocessing Preferences.
    I unticked Render Multiple Frames Simultaneously. And now the RAM Preview loads the whole 3 and half minute sequence in entirety, taking about 1 and half minutes to do so. It's working as perfectly as if I'd just quit and re-opened the application.
    Then I went back into the Memory and Multiprocessing Preferences.
    I reticked Render Multiple Frames Simultaneously.
    The chose Edit > Purge > All
    And tried a RAM Preview again. It loaded up in 25 seconds, but then, as previously, the error message came.
    I tried Edit > Purge All - no effect.
    And I tried going into the Media and Disk Cache Preferences and clicked Empty Disk Cache - still the problem remains.
    I understand from my reading that After Effects CS6 11.0.2 was intended to fix this issue but I'm on 11.0.4 and as far as I can tell, I still have it - assuming it's the same thing.
    As far as I can see, not using Multiprocessing allows me to work without these errors but take a bit longer to load the RAM Preview.
    However I'd like to be able to use Multiprocessing as it seems it can potentially speeds things up quite a lot. I realise I could just not use it and AE would work, but I'd rather be able to make use of a feature of the software if possible, especially if it will speed things up and make optimum use of the my computer's hardware.
    I've downloaded a trial copy of After Effects CC 2014. I'm still testing it but as far as I can see the RAM Preview error appears in this version of AE as well, but can take bit longer to show up in my experience.
    Thanks everyone - if anyone has any thoughts or advice I'd appreciate hearing your opinions.
    Kind regards,
    John

    You need to have much more RAM reserved for other applications and more CPUs reserved for other applications. Your current settings are crippling your performance.
    Read these:
    https://blogs.adobe.com/aftereffects/2009/12/performance-tip-dont-starve-yo.html
    http://blogs.adobe.com/aftereffects/2010/03/performance-tip-dont-oversched.html
    After you have adjusted your settings according to the recommendations on those pages, restart your computer and try again.

  • Dropped frames on playback doesn't replicate in a new user account

    I have been using FCP 4.5 for some time without any problems. Recently I have not been able to play clips in the Timeline without an immediate error message of dropped frames during playback. If I double-click the clip it will play in the Viewer perfectly. This will happen even if the only sequence open contains a single audio track.
    I tried the same thing in a new user account and everything worked as it should, so the problem appears to be a conflict confined to my original account. I've tried moving prefs files for FCP and Quicktime but no joy. All source material is on a separate internal drive to the OS & project files.
    Any ideas?
    Ivan
    PowerMac G4 Sawtooth 400MHz   Mac OS X (10.4.8)   120 & 250GB HDD 640MB RAM

    It seems that I did not remove all the necessary prefs files - I have done so now and all is well, thanks to Ken Stone. He has a thorough description of exactly what to trash here:
    http://www.kenstone.net/fcphomepage/trashing_fcpprefs.html
    cheers,
    Ivan

  • "After Effects error: RAM Preview needs 2 or more frames for playback"

    i7-980x, Win 7 64, 16 gb RAM
    I STILL get the "After Effects error: RAM Preview needs 2 or more frames for playback" and max allowed memory of 0.4, despite max usable memory listed as 15.99.  Sometimes if I run Premiere Pro, PS, AI, 3-4 QT movies and 5 or six other programs simultaneously, after effects will recognize Premiere Pro and allopw me 5-6 gigs active memory, but this can take an hour or two and is hit and miss.
    VERY FRUSTRATED here.
    This happens with and without the firewall turned on.
    Please help

    I get this error message when I accidentaly move my CTI (Current Time Indicator) to the end of the composition. If besides also the option "From current time" in the preview panel is checked, After Effects will see that I just marked less than 2 frames namely 1 (from the end frame of my comp to this end frame).
    Check therefore where your CTI is positioned!
    Also you could have the same problem, if this option "From current time" is not checked, but you have your work areas in- and out-points closer than 2 frames together.
    So condensed: Check your CTI and your work area and set the CTI on a previous frame or let your work area start earlier.

  • Problem accessing frames

    Hi
    I'm developping a client/server application for streaming and playing media files over the network. And I need to access the current frame number (as this number triggers another set of actions in my applications). And this works for a standalone media reader that would open and play a local file. But when it comes to a stream it seems that the sequence numbers returned are nomore the frame numbers but the packets numbers. And i've been looking to the jmf api trying to find a clue but unfortunately I didn't
    So any suggestions if this speaks to you ?
    PS :
    Basically this is the code I use to access frame numbers (available in the jmf tutorial section)
    http://java.sun.com/products/java-media/jmf/2.1.1/solutions/FrameAccess.java

    here some thoughts i've been making till now
    - the packets received through an rtp streams are "assembled" at some point to reconstruct the original frame before the stream being played. and this might trigger some events at some level. So it would be possible to listen for that event and deduce the frame sequence number.
    still and due to my lack of experience of jmf i can't find a way through the api to make it,
    so could anyone help me with that ?

  • Final Cut Pro dropping Frames on playback

    I am editing a multi cam video in final Cut Pro. I have set playback to proxy media. I have 250gb free hard drive and 8gb ram. I have an IMac that isnt a year old yet.
    I have previously completed a music video, excactly the same composition of 3 camera angles and a soundtrack and no issues at all.
    The individual clips play fine but when I play the multicam clip its dropping frames on playback and output. The video is lagging behind the audio.
    Considering upgrading ram, but Im confused as to why last week I could do this perfectly and now the machine seems to be struggling?
    Any suggestions greatly appreciated!
    Model Name:
    iMac
      Model Identifier:
    iMac12,1
      Processor Name:
    Intel Core i5
      Processor Speed:
    2.5 GHz
      Number of Processors:
    1
      Total Number of Cores:
    4
      L2 Cache (per Core):
    256 KB
      L3 Cache:
    6 MB
      Memory:
    8 GB
    IM121.0047.B1E
    1.71f22
      Hardware UUID:

    1) IF the clips are playing back fine without the effect. It is NOT the drive speed causing the drama... The effect is.
    2) FCPx is NOT a real time application like PPRO when effects are applied. Sometimes if your GPU is strong enough and if the effect has been properly coded you WILL be able to achieve real-time performance... But in most cases not...
    3) FCPx has BIG problems playing back video in real-time as it is. Even if its ProRes and residing on a super fast SSD... FCPx HAS problems which are hopefully being worked out as I write...
    Solution to your problem is to render the timeline if you have effects on any clips. Also, make sure that your project is NOT residing on the same disk as the event library which it is using. The project ALSO need to be on a fast disk because ONCE you render the timeline, the video is being played back from a file in your project folder and NO LONGER the event library
    Hope this helps

  • Dropped Frames During Playback

    So I'm new to Final Cut Studio and have been trying to ingest footage from a SANYO digital file based camcorder. It records in several HD modes including full 1080i and in MPEG-4 file form. I've had trouble getting the files into Final Cut on my MacBook Pro and editing without constantly having frames dropped. I'm not sure what to do. Is it a problem with my computer (which is brand-spanking new)? Also, I get a warning when trying to Log and Transfer the footage telling me I have un-supported media. Any insight I can get on the issue would be excellent.

    FCP works best when the media you're importing or capturing matches the Sequence settings. Check your Sequence settings in FCP and see if they exactly match the settings of the clips you're trying to use. If they don't match, it may be best to convert them to match PRIOR to importing them, or use Sequence settings that match the clips.
    FWIW, when you get dropped frames during playback, it's an indication that the effort to read and display the clips is exceeding the ability of your system. This can be due to a number of things or a combination of things. Some of the conditions that can contribute to the problem are (in no particular order):
    • data throughput problems due to hard drive connection, buss speed or drive speed
    • using media made with a codec that isn't fully supported in FCP
    • using corrupted media files
    • RT settings not right for your system
    There are other conditions as well, but those are the most common.
    -DH

  • I have all my movies on an external hard drive.  I want to be able to access them without copying everything to my iTunes.  How can I do this?

    I have all my movies on an external hard drive.  I want to be able to access them without copying everything to my iTunes.  How can I do this?

    I think DebinSC might mean using the movies without copying to the iTunes library?
    Maybe the solution is to uncheck this box?
    Or am I barking up the wrong tree?

  • Can I install Adobe Photoshop in my laptop and access it without any Internet connection?

    Can I install Adobe Photoshop in my laptop and access it without any Internet connection?

    Perpetual versions you can and it possible to to activate them offline.  Offline Activation
    The Creative Cloud versions can be installed offline but you need an Internet connection to activate the installed applications,  I also believe Adobe has recently made the Creative cloud desktop application an mandatory install.  It need not be running at all times however it will be installed.

  • Can i access MSN without wi-fi network?

    Can i access MSN without Wi-Fi network? I mean, this might sound incredibly stupid but can I run apps such as MSN, Skype, FaceTime, through the 3G network? Without connecting to a wireless network? For example, if you're somewhere else other than home, at the mall, on a trip, will those apps still work?
    Thank you.

    Face Time is WiFi only. The others should work just fine over 3G.

  • After a few minutes on certain websites, firefox stops drawing new frames without a mouse movement to force a redraw

    After having certain pages open for between 5-15 minutes (at the most) such as youtube, facebook, or myspace (these are the sites that consistently cause it, but are not limited to them.) The browser no longer draws new frames without the mouse being moved and calling the draw function through it.
    The issue started a month or two ago. There had been no new plugins or add-ons installed for at least another month prior.
    The closing X in the top right also becomes non responsive (though it will light up.) The browser can be closed through the right click menu in the task bar, along with the closing X in the thumbnail preview.
    Program and window completely freeze when attempting to move the window for around 10 seconds, then move to the location designated.
    Other browser have no issues.
    system: Windows 7 Ultimate 64 bit.
    6GB RAM 1600Mhz
    core i7 920
    1.5TB free space in C drive
    currently installed plug-ins are:
    Acrobat 9.3.0.148
    Java Deployment Toolkit 6.0.210.7
    Java Platform SE 6 U21 6.0.210.7
    Mozilla Default Plug-in 1.0.0.15 (disabled)
    Shockwave Flash 10.0.45.2
    Shockwave for Director 11.5.7.609
    Silverlight 3.0.50106.0
    Unity Player 2.6.1.31.223 (disabled)
    Windows Live Photo Gallery 14.0.8081.709 (disabled)
    Yahoo Application State Plugin 1.0.0.7 (disabled)
    Extensions:
    AVG Safe Search 9.0.0.855
    AVG Security Toolbar 4.002.023.004
    Java Console 6.0.18 (disabled)
    Java Console 6.0.21
    StumbleUpon 3.73
    XULRunner 1.9.1 (disabled)
    Zynga Toolbar 2.7.1.3 (disabled)
    Only default Theme installed.

    Podcast (original): http://council.cio.com/podcast/temp.mp3
    Podcast (re-encoded by iTunes): http://council.cio.com/podcast/temp3.mp3
    Music MP3s that aren't working for me:
    http://council.cio.com/podcast/findyouregone.mp3
    http://council.cio.com/podcast/findyourehere.mp3
    http://council.cio.com/podcast/youvideoversion.mp3
    Music MP3 that is working:
    http://council.cio.com/podcast/twoareone.mp3
    (Oh, and ignore my comment earlier that this mp3 stopped working. I got confused back there with all the various tests... This file does play fully. The player also waits until the file is fully downloaded before starting to play... As opposed to the others where the player starts and ends playing before they are downloaded completely.)

  • Selecting items in a frame without selecting frame (HTML)

    i have a web page with two frames for two jsp's;
    and i'd like to be able to tab elements in those frames without passing the focus to a frame in whole/
    i tried to set a property <frame tabindex=-1> but
    in this case all the frame becomes inaccesisble
    if this propery isn't set i can tab until a whole frame becomes selected - that is a birder around it appeares///
    what should i do then????

    i've jjust solved this problem!
    i needed tabIndex = "-1" in a body tag of a page!!!

  • Creating a still frame without timex

    Hi, I'm wondering if there is a really quick way to create a still frame without using timex (it freezes up my entire tree for some reason when I use it with the keymix layer), without having to render out a single image (I dont want to loose quality) and without having to drag it through timeview (I get real finicky trying to drag the time bar back and forth with the mouse or pen)?
    There has got to be an easy way!

    Just change it from 1145-1325 to 1-5000 or something(you are allowed to change those values). Either that or do a new filein and only pick the frame you need, not the entire frame sequence and it will automatically set the in and out as infinity(uncheck the "sequence listing" in the file browser).

  • "Dropped Frames on Playback" - when playing back FCP's Bars+tone

    We've been having a problems with one of our edit suites dropping frames when playing back to tape (Edit to tape).
    In checking it out, I created a new project and added DCP's PAL Bars and tone to the default sequence. FCP is stopping playback with the "Dropped Frames on Playback" error after 13"-15". I've tried all the usual stuff - trashing FCP prefs, zapping PRAM, repairing preferences etc.
    Has anyone any further suggestions??
    RT is set to Safe, with dynamic frame rate and video quality.
    The Mac is a Dual 2.66GHz Dual Core Xeon, 4Gb RAM, with an AJA kona lhe card, connected to an XServe Raid via fibre. The tape deck is a DigiBeta M2000.
    I've read all the posts I could find, and checked Shane's stock answer #12.
    Cheers
    Steve

    Try creating a new user, log into that and test FCP.
    In my case, a new user worked, for awhile.
    Through a lot of trial and error and a reinstallation that was ineffectual - properly surmised by a very learned friend of mine, Mr. Sheffield - I found a project to be corrupt. So thoroughly corrupt that it would corrupt FCP and any projects opened downstream which is why my new user worked for awhile. Took me some time to figure out the proper order to open things after a system restart. Looks like I'll be doing a rebuild of the project through xml which shouldn't take to long.
    In your case, if a new user doesn't help and you go the reinstallation route, uninstall FC Studio with this jewel of a utility. Many thanks to Jon for writing and distributing. http://www.digitalrebellion.com/blog/posts/fcsremover_1.0.6released.html
    Zeb

  • After Effects 13.1.3 Is Constantly Giving The Error: "Needs 2 or more frames for playback"

    I have After Effects 13.1.3 and I'm using a 2011 mac pro 17" with 16GB of ram, but I have any project I have I'm not able to work on due to After Effects not being able to render more then one frame at a time. When I go to RAM Preview it says "After Effects Error: RAM Preview needs 2 or more frames to playback." This phenomenon used to happen whenever I had Adobe Premiere open at the same time, but Thats not the case anymore. It just happens all the time. I can open a project, but after a little less then 3 minutes it reverts back to only rendering one frame. Purging the memory does absolutely nothing, in fact purging anything makes the problem come up immediately.
    This is frustrating! I have deadlines to meet. Not to mention having to pay out of pocket for software that hasn't worked well since Mac OS X 10.8. I shouldn't have to pay for defective software.

    That sounds really frustrating! I wish I could help, but it may be beyond my technical know-how. It's not a very common problem, obviously, or AE wouldn't be enjoying the market share they currently do...
    Since most people with Mac Pros aren't having problems like this, we need to figure out what's different about your system. Also, the fact that this is a persistent issue across versions is an interesting flag.
    Could we have full system specs.
    A screenshot of your memory and multiprocessing settings wouldn't hurt.
    Any chance you've got an issue with the computer itself? A RAM stick could be going screwy or something. AE uses a system in ways that NLE's and other software don't, so it's possible that it's bumping up against a hardware issue that you wouldn't notice otherwise.

Maybe you are looking for

  • Why won't adobe reader print a .pdf?

    I have worked on this Mac at my job for 3 years. Much of my job is online research, and I frequently print .pdf documents, or "Open .pdf In Preview" and select pages to print. About 2 weeks ago I found that .pdfs would no longer print or Open In Prev

  • Itunes won't open after restore...

    I had to restore my computer and now when I try and open itunes I get this message: +The file "itunes library.itl" cannot be read because it was created by a newer version of itunes.+ Anyone care to chime in and help me out. I hope I have not lost my

  • Hunspell-sv and hunspell-sv-se install. Access denied[SOLVED]

    When I try to install hunspell for Swedish I get an "access denied" reply from  http://extensions.services.openoffice.o - t_1.44.oxt. I'm using yaourt and have libreoffice writer installed. Running Openbox on an i686 machine. Here's full output from

  • IWeb doesn't allow me to open an old site folder

    Hello everybody recently I had to reinstall my software on my MacBook Pro. I've created two sites, located in user/Sites, but, when I open iWeb, it wants me to create a new site!! I'm unable to put the folders of my old sites in iit in order to modif

  • My iTunes is not Connecting to my iphone

    My iTunes is not Connecting to my iphone