Anybody found a fix for the netstream.seek bug?

The bug I am talking about is only being able to seek to a point in a video that the play head has been before.
Here is how the bug is described at :http://www.brooksandrus.com/blog/2005/12/17/5-reasons-netstream-sucks/
"Seeking is super slow until all keyframes are cached. No bull, if you have a file which you’ve completely preloaded, the keyframes aren’t cached until the video playhead reaches that point in time for the first time. If I load a file and seek to the end, the player has to chug through all of the keyframes prior to my seek point. This is slow, slow if I have video of even several minutes."
That was posted 5 years ago. I have found the bug referenced in the following posts:
http://forums.adobe.com/message/1917914#1917914
http://forums.adobe.com/message/692394?tstart=0
I would assume that since this bug has been around for at least 5 years, there would a bug report filed for it or a work around found. But I can't seem to find either.
I have tried multiple codecs and encodings with no luck. I'm having a hard time accepting that there is not fix for this problem. Flash has to read and cache the key frame information of the entire video before being able to seek to the end. Does anybody know where the flash player writes this information? Let me be clear, this is not streaming video, this is video that is running local off the hard drive. The flash player stores this key frame information somewhere until the computer is restarted. At that point when the video is played again, it has to read the entire file again. You can close and open the player multiple times and it will only perform the caching the first time and not again until a computer restart.
again, I am not trying to seek to a point that has not been loaded yet. This is a swf that loads a video off the hard drive.
One that that I have noticed is that when H.264 files are loaded, the player immediately performs the caching scan before it begins to play. When it is finished, you can seek to any point quickly. The time it takes for the caching scan is dependent upon the size of the file and the number of keyframes it has. Whereas the rest of the video codecs will play immediately but will only seek quickly to cached keyframes.
I have only seen this problem discussed in a few spots, with no solutions. it is a very old bug. Has anybody found a fix, work around or bug report on it?
Thanks for your help
-Mike

package {
    import flash.display.Sprite;
    import flash.events.NetStatusEvent;
    import flash.events.SecurityErrorEvent;
    import flash.events.TimerEvent;
    import flash.media.Video;
    import flash.net.NetConnection;
    import flash.net.NetStream;
    import flash.text.TextField;
    import flash.utils.Timer;
    import flash.utils.getTimer;
     [SWF(width="400", height="600", backgroundColor="#FFFFFF")]
     public class SeekTest extends Sprite
          private var videoURL:String = "test.flv";
        private var connection:NetConnection;
        private var stream:NetStream;
          private var tick:Timer;
          private var startTime:int;
          private var skipCount:int;
          private var duration:Number;
          private var txt:TextField;
          public function SeekTest()
               txt = new TextField();
               txt.wordWrap = true;
               txt.height = 300;
               txt.width = 400;
               addChild(txt);
               tick = new Timer(0.1);
               tick.addEventListener(TimerEvent.TIMER, checkLoad);
               connection = new NetConnection();
            connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
            connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
            connection.connect(null);
          private function netStatusHandler(event:NetStatusEvent):void {
                //print("Net Status:", event.info.code);
            switch (event.info.code) {
                case "NetConnection.Connect.Success":
                    connectStream();
                    break;
                case "NetStream.Play.StreamNotFound":
                    print("Stream not found: " + videoURL);
                    break;
                    case "NetStream.Seek.Notify":
                         print("--- Seek Completed in", (flash.utils.getTimer() - startTime)/1000, "seconds.");
                         seekDone();
                         break;
        private function securityErrorHandler(event:SecurityErrorEvent):void {
            print("securityErrorHandler: " + event);
        private function connectStream():void {
            stream = new NetStream(connection);
            stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
            var metaOb:Object = new Object;
            metaOb.onMetaData = metadata;
            stream.client = metaOb;
            var video:Video = new Video();
                video.height = 300;
               video.width = 400;
               video.y = 300;
            video.attachNetStream(stream);
            startTime = flash.utils.getTimer();
            stream.play(videoURL);
            addChild(video);
            tick.start();
        public function metadata(info:Object):void
             duration = info.duration;
             print("Metadata: duration=" + info.duration + " width=" + info.width + " height=" + info.height + " framerate=" + info.framerate);
          private function checkLoad(e:TimerEvent):void
               var seconds:Number = (flash.utils.getTimer() - startTime) / 1000
               if(stream.bytesLoaded == stream.bytesTotal && stream.bytesTotal != 0 && seconds > 3)
                    skipCount = 0;
                    print("Video 100% Loaded. Performing first seek after 3 seconds of video playing.");
                    tick.stop();
                    startTime = flash.utils.getTimer();
                    stream.seek(duration - 2);
          private function seekDone():void
               if(skipCount == 0)
                    //just skipped to the end of the video the first time
                    //jump back to the begining and do it again.
                    startTime = flash.utils.getTimer();
                    print("Seeking back to the begining to time the second seek to the end.")
                    stream.seek(0);
               }else if(skipCount == 1)
                    startTime = flash.utils.getTimer();
                    print("Second seek to the end. ")
                    stream.seek(duration - 2);
               skipCount++;
          private function print(... args):void
               trace(args)
               txt.appendText(String(args.join(" ")) + "\n\n");
The above is a simple test I put together. Use a large FLV for the testing. Remember, the first seek to the end will be the longest and you may not get the same results unless you restart or use another FLV.

Similar Messages

  • Has anybody found a fix to The document could not be printed and There were no pages selected to print error

    Has anybody found a fix to "The document could not be printed" and "There were no pages selected to print" error?
    I am using a Mac and I'm running the latest versions of OS X 10.6.8 and Adobe 11.0.10 but I'm unable to print.  I need REAL HELP not a suggestion or a get around!  and NO print as an image doesn't work, nor do I see that as a fix!
    Please help!

    Hello PW, I am having this problem and all suggestions haven't worked yet. Where is the Preferences|Documents you are referring to? I am on a PC and using Windows.
    EDIT: I found it and did, but still not working.

  • Attention N200 Owners, I found a fix for the fan

    In an attempt to improve battery life, I made an important discovery. Apparently lenovo is using the desktop CPU P States instead of the mobile ones. With my T7200 running at 2GHz, this means it's using 1.35V instead of the 1.225V it's supposed to be. This mistake on lenovo's part means increased heat output and a fan that has no idea how fast to run. Here's how to fix it:
    1. Download and Install RightMark CPU Clock Utility. http://cpu.rightmark.org/download.shtml
    2. Open the utility and select "Advanced CPU Settings" in the pane on the left side.
    3. Towards the bottom under "Intel Core 2 Family Advanced Features", change the "CPU type selection" setting from desktop to mobile.
    In  order to make this change stick, you have to make the RightMark CPU Clock Utility run at startup.
    1. Click on settings in the pane on the left side.
    2. Check the box next to "Run at Startup"
    3. Select "via Startup Folder" in the pull down box.
    4. You may also want to check the "Start Minimized to Tray" box above, or the main window will open every time you start the computer.
    Untill lenovo does something about this problem, this is all you can do. However, you will see an improvement in battery life and a reduction in noise, along with a fan that does not have ADD.
    Moderator Note; converted to clickable link
    Message Edited by andyP on 04-15-2008 09:23 AM

    @iamdh
    He doesn´t change the voltage of the CPU fan which could indeed be a little risky. He changes the voltage of the CPU which is according to CPU-Z by default (http://www.cpuid.com/cpuz.php) a little higher than the default voltage of the CPU.
    I also noticed this before and did exactly the same with my 3000 N200. The difference is just that my N200 has a T5250 CPU but as it seems the same overvoltage problem. With his workaround the heat and powerconsumption is especially under high load reduced, resulting in a higher runtime.
    On the other hand this has hardly any effect on the fan spining up an down when the CPU is idle.
    Sorry, small addition:
    I used another way to get the "right" voltages for my CPU. When I open RMClock my CPU already is marked as an mobile CPU, so this is not the problem in my case. But you can also change voltages for the different Pstates in RMClock manually. And this is what I did to get the default voltages for my CPU. Interested ones can find the necessary information here http://forum.notebookreview.com/showthread.php?p=2637648 (They describe how to undervolt a CPU but as a start it is just enough to supply the CPU with the default voltage instead of the "higher than above" voltage supplied by for example my 3000 N200)
    Just for information: The default Voltage of my T5250 CPU is 0.95 Volt at idle and 1.25 at load. According to CPU-Z my CPU gets 1.063 Volt at idle and 1.363 Volt at load. 
    Message Edited by oNeill on 04-15-2008 05:35 PM

  • Has any one found a fix for the iOS 5 WI FI dropping problem?

    I own an iPhone 4 and when I upgraded to iOS 5.1.1 it began dropping the WI FI connection randomly, usually after only a few minutes of inactivity.  The only solution is to re-start my router and it works fine for a while then drops the connection.  I am certain the problem is not with the iPhone hardware.  It must be a bug in iOS 5.1.1.
    I have been an apple user since the beginning and I have owned just about every model of Mac, I hope Apple will address this issue soon, as I can not imagine any way end users can fix the problem.  For the record;  my iPhone is factory fresh and not hacked in any way.
    Thank you in advance for any assistance...

    I'm not aware of any wifi drop problem, which leads me to believe that your router is the problem (or your wifi carrier).  Have you had problems using wifi at a public location, like a coffee shop or any store that provides free wifi?

  • Where is the "quick fix" for the "insuffient data" bug in 9.5.2?

    Adobe alludes to a quick fix for this acknowledged but says contact a support team to request it.
    Please consider this a request that the fix be PUBLISHED for all.
    Thank you.

    Acrobat engineering would like to inform users facing this issue that the latest Reader XI release (available for download from http://get.adobe.com/reader) fixes this problem. Users are requested to download the latest version at the earliest to avoid encountering this error going forward. As mentioned earlier, the team is working actively towards fixing the problem in earlier versions (10.x and 9.x) as well and expects to deliver a solution by Q1 2013. For more details, you may refer to the blog post here

  • TS1362 Has anyone found a fix for the ITunes stutter while playing songs in ITunes WinXp?

    I have search for days to find a solution to this problem. As long as I'm not doing any multi-tasking the songs play ok sometimes, but do anything else and the songs
    stutter. I am using WinXp Pro. I tried closing all the applications running and even change the memory priority...but nothing fixes the problem permantly. Can anyone HELP?

    The stutter issue hit also some Mac users.
    Somehow iTunes are computer-resources demanding to play an audio file.

  • TS4526 Found a fix for the time and date issue

    ROKU GEN 3

    I am simply lookig for some help not an argument.  I am not an RF specialist however have setup a few wireless networks in my tenure at Wynn Resorts.  I fully agree that wireless networking is an art and a science however the powers that be in Network Land have toughted wireless networking is the easiest and quickest way to get two computers to talk with one another.  As I previously said I have already turned one (1) MBP in for this problem and Apple decided to replace it because they could not fix the problem with my particular MBP.  This MBP was running Leopard when the problems started
    I am having a hard time believeing that there are several other devicces in my home that depend on a wireless network to operate and my MBP is the only one having an issue.  I took this a step further and decided to see what would happen if I tried to connect wirelessly via Fusion.  In Windows 7 I am able to print and scan to my hearts content without any issues.  I am able to browse the internet as much as I want.  I close Fusion and try to connect to my printer via wireless and nothing.
    In order to get Apple to help do I need to get a Network Analyzer and capture packets when I have these problems?  Out of the 1000 + posts is there a consolidation of which answer is the best?  BTW I am accessing the internet via a wireless connection using Fusion and Windows 7.
    In response to Linc's comments, I will look at the router specifications however I did not qualify that these devices are not using the wireless connection at the same time.  Right now I would guess there are maybe two (2) or three (3) at the most that are actively transmitting / receiving information. --  Thanks

  • Has anyone found a fix for the problems with using Adobe PSE 11 with OS X 10.10.1?

    My Photoshop Elements 11 not working well with the iMac after updating to Yosemite.  I cannot print from PSE nor cut and paste.  The Adobe plug in fix does not plug in.

    Hello PW, I am having this problem and all suggestions haven't worked yet. Where is the Preferences|Documents you are referring to? I am on a PC and using Windows.
    EDIT: I found it and did, but still not working.

  • Someone found a fix for the X-

    Definitely worth a read...
    http://forums.overclockers.com.au/showthread.php?p=6832#post6832

    Great, the fix involves replacing capacitors on your card. Unless you know what you are doing, I woulnd't recommend it.
    From the site listed above :
    "I remember the Jamicons and quickly pull the X-Fi out and replaced the big Jamicon (originaly a 220uF 6V) with Panny FM 470uF 6V as well, as two 00uF Jamicons with 20uF Panny FM ones."
    To completely recap X-Fi you need:
    x-Fi Fataity
    x 220uF 6V - P2376-ND (I recommend there 000uF Samxon GC 6.3V)
    2x 00uF 6V - P2922-ND
    3x 47uF 6V - P96-ND
    28x 22uF 6V - P23-ND
    0x 0uF 6V - P22-ND
    7x 4.7uF 50V - P035-ND
    Audigy 2zs
    3x 00uF 6V d6.3 (Jamicon) - P2922-ND
    5x 47uf 6V d5 (Teapo) - P96-ND
    35x 22uF 6V d4 (Jamicon) - P23-ND
    5x 0uF 6V d4 (Jamicon) - P22-ND
    x 4.7uF 50V d4 (Jamicon) - P035-ND
    3x uF 50V d4 (Wincap) - P032-ND
    R.

  • In Adobe Pro XI when converting an excel file to a pdf, the pdf is not retaining the page size settings.  Has anyone found a fix for this?

    In Adobe Pro XI when converting an excel file to a pdf, the pdf is not retaining the page size settings.  Has anyone found a fix for this?

    It shouldn't print each page as a separate job and
    each tab has a different name, so, even if it did, it
    ought to give the printouts the name of the tabs.
    It doesn't print each page as a separate job unless the orientation is different - that's the bug. And the name of the job is taken from the name of the window, not the name of the tabs. That's how every application works, which, I think, is why Excel allows the specific selection or the active sheets to be printed.
    Still, that does sound like a plausible explanation.
    However, even if presented with multiple prints with
    the same name, the spooler should print each one!
    The spooler does print each one - you can watch the spooler process the multiple jobs. I think, though, that they are being overwritten since all the jobs have the name of the window as the job title. And since this happens after the Save Dialog is presented, there's really nothing the application can do. To Excel, it's one job, the multiple orientations don't matter; it's just that Apple doesn't handle it correctly.
    As a workaround, you can print the selections one at a time and give them unique names and then rejoin them in one PDF file.

  • Is there an absolute fix for the The Snow Leopard Pixelated (Fuzzy) Icon Bug?

    Is there an absolute fix for the The Snow Leopard Pixelated (Fuzzy) Icon Bug?

    I've never even seen such a thing in SL. That said, it's pretty difficult to understand this so called "bug" without some sort of reference. Do you have a screen shot you could post?
    Edit: Never mind. Found more than a few sites talking about this issue. Here's one:
    http://reviews.cnet.com/8301-13727_7-10402811-263.html
    A possible fix here.

  • What is the fix for the following error? "There was an error downloading this update. Please quit and try again later"" (Error Code: U43M1D207)

    I have ran into the subject error when I update Dreamweaver. Has anyone found a fix for this?

    Try downloading and installing the update manually from http://www.adobe.com/support/dreamweaver/downloads_updaters.html

  • Found a fix for lightbox working locally but not on site!

    This was reply origionally but I felt I should post it. It seems to be a common problem and I was unable to find a resolution so here it is....
    I found a fix for something similar that occurred on my machine. I too was seeing no problems locally but when I posted it to my site, it just had the placeholder and no images....
    Apparently, dreamweaver is smarter than the browser... (maybe incorrect statement) however..... the file extensions are case sensitive!
    I had this-------- <A href="Img/CGM_1.JPG" border="0"  rel="lightbox[Img/CGM_1thumb.JPG]" title="CGM Pic Set"><img src="Img/CGM_1thumb.JPG" /></a>
    <a href="Img/CGM_2.jpg" rel="lightbox[Img/CGM_1thumb.JPG]"></a>
                      <a href="Img/CGM_3.jpg" rel="lightbox[Img/CGM_1thumb.JPG]"></a>
                      <a href="Img/CGM_4.jpg" rel="lightbox[Img/CGM_1thumb.JPG]"></a>
    Well, I didnt think anything was so bad, all of the colors were right I wasn't getting any warnings.... wtf?
    As it turns out, and this is only because I just started a new image set after testing an individual - - baby steps - - if you use the properties bar at the bottom of DW, it applies a different case for specific parts...... i.e. this is what it produced
    <A HREF="Img/CGM_1.jpg" border="0"  rel="lightbox[Img/CGM_1thumb.jpg]" title="CGM Pic Set"><img src="Img/CGM_1thumb.jpg" /></a>
                      <a HREF="Img/CGM_2.jpg" rel="lightbox[Img/CGM_1thumb.jpg]"></a>
                      <a HREF="Img/CGM_3.jpg" rel="lightbox[Img/CGM_1thumb.jpg]"></a>
                      <a HREF="Img/CGM_4.jpg" rel="lightbox[Img/CGM_1thumb.jpg]"></a>
    Notice the HREF's are now UPPER case and the jpg's are now lower case. !!!! really?!?!?
    Also, another thing to look out for is the folder/ in front of your thumbnail; make sure it is there. In my case I use my sam "Img" folder, not the "images" folder that lightbox creates.
    Hope this helps, I beat my head against the wall for a total of 10 hours over 2 days trying to figure this out. I couldn't find anything on the internet. I'm going to post this so others having this issue get it resolved. I found those, just no resolution.

    Thanks for your quick response
    I tried what you said and I still had no avail...
    There is a style.css file in the root directory but for some reason you cant access it...
    I checked the file permissions of style.css and they are: 644
    Its really wierd - I dont understand why it isnt reading...
    Also regarding {www.care.cc} all of my clients websites are under the same web hosting service, so he set the default "404 page not found" redirects to {www.care.cc} which is their "Main Site" as such - I understand that this is bad practice but unfortunatley I have no control over these matters as I have limited access too my clients web hosting.
    Thanks again for the Help

  • HT4356 Up photos mart c7100 series wireless printer does not show up as a printer. Anyone found a fix for for use with ipad3?

    Up photos mart c7100 series wireless printer does not show up as a printer. Anyone found a fix for for use with ipad3?

    It sounds like the features are working through the USB connection rather than the wireless connection since it is still not seeing the networks.
    Everything points to a hardware failure since the steps provided through the private message did not work and the wireless test showed it had failed.  Sorry.
    You do have some options at this point.
    If it is under warranty, either standard or extended, you can contact HP support at 1-800-474-6836 to have it serviced under warranty.
    If it is out of warranty, you can still contact HP support to find out all the options and the cost of each option.  However, it is my opinion that this money would be better spend being applied towards a new printer. 
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • HT5219 When can we expect a fix for the Windows 8.1 hot-plug issue with a Thunderbolt device.

    When can we expect a fix for the Windows 8.1 hotplug issue with a Thunderbolt device.  I got a dock to easy my up-and-go time when moving from using my laptop on the desk vs in meetings.  Instead my computer crashes and I have to reboot.
    I am seeing this issue with the 2012 Macbook pro Retina running Bootcamp with Windows 8.1 x64 bit with the F4U055 Dock from Belkin

    I can confirm that hotplug does work properly on Windows 8.1 with Asus Thunderbolt ExII (Thunderbolt 2)
    But does not work with Windows 8.1 and MacBook Pro Retina (Thunderbolt 1)
    To get hot plug working with the Asus Thunderbolt ExII, you install the intel thunderbolt drivers, and then you get an interface where you can eject devices, and do things like setup more detailed security. However, this doesn't have any effect with the MacBook Pro. I suspect that either:
    1) Apple's Thunderbolt hardware doesn't support hotplugging on windows
    2) Hotplugging on Windows requires Thunderbolt 2
    So, I should check on my Mac Pro (dustbin edition) to see if it works there with Thunderbolt II
    Be great to hear if anybody has any success with this on an Apple device!

Maybe you are looking for

  • New hard drive. Can't find how to re download purchased music

    I had to have a new hard drive put in my computer. I then chose in iTunes to manually manage content but it wiped the playlists, and songs! from my iPhone, so now I neither have them on my iPhone or hard drive but there seems to be no option in iTune

  • My macbook pro retina keyboard is not working, what can i do? (It's with the keyboard lights off, but the screen stills normal)

    People i really need help whit my macbook pro with retina display, i started to use it normally, but when i logged into facebook it stopped working, like, the lights of the keyboard turned off, and got no answer from it, like everything stopped, just

  • JEX  Excise invoice

    Dear All, To capture the Free of Cost sales....i have made following settings... Sales doc ZPFI-JF-JEX---Excise invoice---End... Here system will not make postiing when i do VF01 -- JEX.... Postings will be done at Excise invoice creation only for Ex

  • Want help in producing my first CD

    Close to finishing my first CD (about a year-and-a-half in the making). Used GarageBand 2; Band-in-a-Box 12, Sound Studio 2.1, Audacity 1.2.6 and Cubase LE 1.0.7 to get it all done. Running Panther. Does anyone out there have suggestions regarding an

  • Business Agreement - BP

    Hello Gurus, What is the transaction code to create Business Agreement in CRM and also how do you associate BP with the Business Agreement. Thanks in advance Sanju