3314 (FLVHeaderIntegrityFailed) when loading a video

[ Problem ]
I’ve created my own packaging application based on the code in the ’packaging content’ documentation. The output from this packager is just the encrypted video (i.e. no .metadata file). I then modified the sample AIR client to read the metadata from the video asset:
//var urlRequest : URLRequest = new URLRequest(videoFile.text + ".metadata");
var urlRequest : URLRequest = new URLRequest(videoFile.text);
When i run the client i get the following error:
Starts to get video metadata at Tue Dec 15 08:59:17 GMT+0000 2009
ArgumentError: Error #3314: FLV header integrity check failed.
Which is raised in the handleMetadata function when the following line of code is executed:
metadata= new DRMContentData(results);
[ Solution ]
A DRMContentData object is a data structure that represents the Flash Access metadata of a protected content.  In the FLV/F4V spec, the Flash Access metadata is represented as an Additional Header of the file.
To answer your question about why you’re getting an FLV header integrity check failure, you’re seeing this because the blob of data you’re trying to read in as a Flash Access metadata is not really a Flash Access metadata.  You are in fact trying to shoe-horn an entire FLV/F4V into a DRMContentData object.  When an integrity check is done with the blob you pass in, it fails, since the data being passed in does not look like an Additional Header representing the Flash Access metadata.
To work around this, you have 2 options:
- Go the separate .metadata route (read my previous post)
- If you want to allow full downloads of your content, and are happy with using AIR, you can use the "preloadEmbeddedData()" API to create the DRMContentData object.  The input parameter to preloadEmbeddedDatat() is an entire FLV/F4V.

[ Problem ]
I’ve created my own packaging application based on the code in the ’packaging content’ documentation. The output from this packager is just the encrypted video (i.e. no .metadata file). I then modified the sample AIR client to read the metadata from the video asset:
//var urlRequest : URLRequest = new URLRequest(videoFile.text + ".metadata");
var urlRequest : URLRequest = new URLRequest(videoFile.text);
When i run the client i get the following error:
Starts to get video metadata at Tue Dec 15 08:59:17 GMT+0000 2009
ArgumentError: Error #3314: FLV header integrity check failed.
Which is raised in the handleMetadata function when the following line of code is executed:
metadata= new DRMContentData(results);
[ Solution ]
A DRMContentData object is a data structure that represents the Flash Access metadata of a protected content.  In the FLV/F4V spec, the Flash Access metadata is represented as an Additional Header of the file.
To answer your question about why you’re getting an FLV header integrity check failure, you’re seeing this because the blob of data you’re trying to read in as a Flash Access metadata is not really a Flash Access metadata.  You are in fact trying to shoe-horn an entire FLV/F4V into a DRMContentData object.  When an integrity check is done with the blob you pass in, it fails, since the data being passed in does not look like an Additional Header representing the Flash Access metadata.
To work around this, you have 2 options:
- Go the separate .metadata route (read my previous post)
- If you want to allow full downloads of your content, and are happy with using AIR, you can use the "preloadEmbeddedData()" API to create the DRMContentData object.  The input parameter to preloadEmbeddedDatat() is an entire FLV/F4V.

Similar Messages

  • Firefox freezes for around 10 seconds when loading a video on YouTube

    So everytime I'm loading a video on YouTube, it takes a very long time to load (10-15 seconds) and while the video is loading Firefox becomes completely unresponsive. I can't do anything until the video is loaded, and when it takes such a long it becomes annoying.
    I have the newest versions of both Firefox and Flash Player.

    Does this happen with other browsers as well? If no, maybe an extension is interfering. Here is how you can disable them to test that: https://support.mozilla.org/en-US/kb/Uninstalling%20add-ons#w_how-to-disable-extensions0-personassf-and-plugins

  • All video applications crash when loading a video. Including web browsers, vlc and quick time

    Last night chrome started crashing when trying to load a youtube video. I tried on safari and then downloaded firefox but they crashed too blaming flash player. Then when i tried to play a video using vlc that crashed too and so did quick time. Nothing will play in any application.   
    I've tried reinstalling the browsers, uninstalling and reinstalling flash player, repairing disk permissions, starting in safe mode and installing avast to scan for malware but none of these have made any difference. I haven't installed any updates since the last time it was working
    When verifying the disk permissions i get the following and no matter how many times i repair them it says the same thing
    OS 10.6.8
      Model Name: Mac Pro
      Model Identifier: MacPro1,1
      Processor Name: Dual-Core Intel Xeon
      Processor Speed: 2.66 GHz
      Number Of Processors: 2
      Total Number Of Cores: 4
      L2 Cache (per processor): 4 MB
      Memory: 4 GB
      Bus Speed: 1.33 GHz
      Boot ROM Version: MP11.005C.B08
      SMC Version (system): 1.7f10
      Serial Number (system): CK******Z6M
      Hardware UUID: *****
    <Edited By Host>

    Verify permissions for “HD”
    Permissions differ on "System/Library/CoreServices/Menu Extras/RemoteDesktop.menu/Contents/Resources/zh_TW.lproj/RemoteDesktopMenu.nib" , should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/Rem ote Desktop Message.app/Contents/Resources/zh_TW.lproj/UIAgent.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreen.app/Contents/Resources/zh_TW.lproj/MainMenu.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/Menu Extras/RemoteDesktop.menu/Contents/Resources/zh_CN.lproj/RemoteDesktopMenu.nib" , should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/Rem ote Desktop Message.app/Contents/Resources/zh_CN.lproj/UIAgent.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreen.app/Contents/Resources/zh_CN.lproj/MainMenu.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/Menu Extras/RemoteDesktop.menu/Contents/Resources/ko.lproj/RemoteDesktopMenu.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/Rem ote Desktop Message.app/Contents/Resources/ko.lproj/UIAgent.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreen.app/Contents/Resources/ko.lproj/MainMenu.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/Menu Extras/RemoteDesktop.menu/Contents/Resources/Dutch.lproj/RemoteDesktopMenu.nib" , should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/Rem ote Desktop Message.app/Contents/Resources/Dutch.lproj/UIAgent.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreen.app/Contents/Resources/Dutch.lproj/MainMenu.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/Menu Extras/RemoteDesktop.menu/Contents/Resources/Italian.lproj/RemoteDesktopMenu.ni b", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreen.app/Contents/Resources/Italian.lproj/MainMenu.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/Menu Extras/RemoteDesktop.menu/Contents/Resources/Spanish.lproj/RemoteDesktopMenu.ni b", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/Rem ote Desktop Message.app/Contents/Resources/Spanish.lproj/UIAgent.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreen.app/Contents/Resources/Spanish.lproj/MainMenu.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/Menu Extras/RemoteDesktop.menu/Contents/Resources/French.lproj/RemoteDesktopMenu.nib ", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/Rem ote Desktop Message.app/Contents/Resources/French.lproj/UIAgent.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreen.app/Contents/Resources/French.lproj/MainMenu.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/Menu Extras/RemoteDesktop.menu/Contents/Resources/German.lproj/RemoteDesktopMenu.nib ", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/Rem ote Desktop Message.app/Contents/Resources/German.lproj/UIAgent.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreen.app/Contents/Resources/German.lproj/MainMenu.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/Menu Extras/RemoteDesktop.menu/Contents/Resources/Japanese.lproj/RemoteDesktopMenu.n ib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/Rem ote Desktop Message.app/Contents/Resources/Japanese.lproj/UIAgent.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreen.app/Contents/Resources/Japanese.lproj/MainMenu.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Group differs on "Library/Internet Plug-Ins/flashplayer.xpt", should be 80, group is 0.
    Permissions differ on "Library/Internet Plug-Ins/flashplayer.xpt", should be -rw-rw-r-- , they are -rw-r--r-- .
    Permissions differ on "System/Library/CoreServices/Menu Extras/RemoteDesktop.menu/Contents/Resources/English.lproj/RemoteDesktopMenu.ni b", should be drwxr-xr-x , they are -rwxr-xr-x .
    Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired.
    Permissions differ on "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/Rem ote Desktop Message.app/Contents/Resources/English.lproj/UIAgent.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions differ on "System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreen.app/Contents/Resources/English.lproj/MainMenu.nib", should be drwxr-xr-x , they are -rwxr-xr-x .
    Permissions verification complete

  • Firefox 3.6.6 locks up when loading imbedded videos; Windows 7

    Each time I try to load an embedded video on a webpage (YouTube, etc.). My browser locks up. I can "unfreeze" the browser by getting into Task Manager and ending the process, but canceling out of ending the process. This problem did not exist until I updated to 3.6.6
    == URL of affected sites ==
    http://www.youtube.com

    I went into the extensions and disabled AVG Safe Search and I no longer have the problem.

  • Firefox crashes when loading Gmail, and random other pages, and freezes often.

    Firefox upgraded itself to 3.6.10 sometime last Friday, I believe, and every since I cannot get into gmail, and it freezes often. When I try to log into gmail it will crash immediately. Sometimes if I click "sign in" rather than hitting "enter" it will load, but will lock up or crash within minutes or seconds. It also will lock up if I have more than three or four tabs open, often when loading a video, and crashed while loading Nexis, which I use often for work to do research.
    I have disabled add-ons, disabled extensions, run in safe mode, uninstalled and reinstalled, rebooted, downgraded, re-upgraded. Nothing has worked.

    Problem does not seem to occur on a modern Win XP nebook with 1 gig RAM, but does on a relatively old laptop running Win 2000 with 98.5 MB ram.
    Error message states that a script is running from a Firefox directory and asks to stop it. Crash occurs anyway!

  • BUG: Playback Fails When Loading A Random Video - Firmware 1.2

    I've been looking all over on where to post a bug, and for a fix for this bug I found. Not many seem to be having this problem (I assume not many are trying to randomly play a video from a video playlist)
    BUG: Playback Fails When Loading A Random Video
    iPod FIRMWARE: 1.2
    PROBLEM (1): When pressing "Play" on a video playlist or on 'Music Videos' while the iPod is set to Random->Song, the iPod displays a white playback screen, displays song 0 of 0, empty duration bar and a duration time of 0:00/-0:00.
    PROBLEM (2): After successful playing a seleted video within a video playlist or music video list, the iPod attempts to play a randomly choosen video (HDD clicks abnormally) but times-out and returns the user to the Playlist selection screen.
    iPod MODEL: 60GB Video - Black [Bought in NOV 05]
    If anyone knows how to report a bug, or anyone else having this problem (Try it on you iPod, post your results!) let me know!

    I've been looking all over on where to post a bug...If anyone knows how to report a bug let me know!
    If you want to post a bug report for Apple to see, then this wouldn't be the place to post it (Apple employees rarely look on these forums; all other regular posters on here are just users that like to help others).
    To tell Apple about this, select "Bug Report" under "Feedback Type" on their Feedback form for iPods here -> iPod Feedback
    I hope this helps you,
    -Kylene
    If any post helps or solves your issue, please mark it that way accordingly. Thank you for helping the boards!

  • SSL indicator disappears when page with video tag has been loaded

    I have a strange bug in Firefox, that was detected when site moved to SSL.
    There is single page site built on Backbone.
    When page with video tag loaded SSL indicator disappears.
    Firebug shows that Firefox create GET request connection to the server but it hangs.
    All site logic work correctly. And video on this page works perfect, I can click play and new connection will be created and video played but first connection still hangs.
    There is four page with video tag (four steps of wizard) and hanged connection appears randomly on this pages.
    Actually this issue exists without SSL, but detected only when we moved to SSL and lock icon began to disappear.

    The SSL indicator can disappear if there is mixed content on that page (i.e. coming via an unencrypted http connection).
    Did you click the Site Identity Button (globe/padlock) and proceeded to the Security tab in Page Info?
    *https://developer.mozilla.org/en/Security/MixedContent
    *https://developer.mozilla.org/en/Tools/Web_Console

  • If I load a video on a nano to give out at a business conference can recipients see the video when they open the device? Iwas told it will wipe when a new user opens the device.

    If I load a video on a nano to give out at a business conference can recipients see the video when they open the device? I  was told it will wipe when a new user opens the device.

    No, it will wipe it when they try to connect it to a computer and set it up under their own Apple ID. When they turn on the device the first time without connecting it to anything they will be able to see the video.

  • I have a first gen iPad, 64g, and for no apparent reason, the screen goes black and whatever app I am using is closed on me. It seems to be happening more and more frequently, especially when loading a blog, or trying to watch a YouTube video. I try to o

    I have a  iPad, 32g, and for no apparent reason, the screen goes black and whatever app I am using is closed on me. It seems to be happening more and more frequently, especially when loading apps, or trying to watch a YouTube video. I try to open safari or youtube again and it will often crash several times before it may or may not decide to load for me. It is extremely annoying and getting to the point where I can not use it

    Standard troubleshooting steps in order are as follows:
    Power the iPad off and on.
    An iPad reset, which is done by pressing and holding the home button and the sleep/wake or on/off button simultaneously until you see the Apple logo and then release.
    Restore your iPad with iTunes from your iPad's backup.
    Restore your iPad with iTunes as a new iPad or not from your iPad's backup.
    If no change after the last step, your iPad has a hardware problem.

  • Boot camp win xp goes black when load video drivers + other probs

    Hello, I partitioned, loaded Win XP Pro, and XP runs fine, but when I load the Sno Leopard disc to update drivers, the screen goes black, and will not return. I can restart in OSX, but in windows, the screen is black. I cannot work on anything if I cannot see it.also, the bluetooth mouse does not work. I need to load the other imac to xp drivers, not load the video driver, and then get an updated radeon driver. (I think?) Any have the same problem and have solved it?. thanks
    Mike

    oboearia wrote:
    Well I got Input Remapper running because Speed Fan couldn't find my fans. Now after about 120 minutes on Perfect World I'm running between 135 and 140 F, but not shutting down.
    Thanks so much for the help Stefan!
    You're welcome anytime.
    I'll be sure to post again if at a later point I have more problems.
    Feel free to do so, I (and a whole lot of others) will be here
    Though as a side note; Should i be looking into getting hardware fixed? I'm covered under Apple Care for about 3 more weeks. But last time i took it into my repair shop they told me they couldn't find any problems. : /
    That is indeed the problem, if they can't find anything to fix, they won't fix.
    If you can reproduce the error when in the shop (maybe disableing InputRemapper for that purpose) or if you have other problems (preferably while in OSX) it could be good to have them have a look at your Mac.
    Make an appointment with the Shop Genius and go there with some free time at hand.
    Take care
    Stefan

  • When loading video or tv shows it is taking as long as 14 hours plus - if I leave the loading screen it doesn't continue to load? So you have to wait without leaving the screen for 14 hours?

    When loading video or tv shows it is taking as long as 14 hours plus - if I leave the loading screen it doesn't continue to load? So you have to wait without leaving the screen for 14 hours? Unfortunately - I've been reading that this lengthy download problem is quite common - although I thought I saw where someone had loaded videos the day before and then had them to watch later. So, my first rental - I downloaded it overnight - then we go to watch it tonight and it proceeds to start loading again...saying it will be ready in 14 hours and 21 minutes!!! Am I doing something wrong here? If anyone has advice - I would greatly appreciate it. This is the first apple product that I am disappointed with

    When loading video or tv shows it is taking as long as 14 hours plus - if I leave the loading screen it doesn't continue to load? So you have to wait without leaving the screen for 14 hours? Unfortunately - I've been reading that this lengthy download problem is quite common - although I thought I saw where someone had loaded videos the day before and then had them to watch later. So, my first rental - I downloaded it overnight - then we go to watch it tonight and it proceeds to start loading again...saying it will be ready in 14 hours and 21 minutes!!! Am I doing something wrong here? If anyone has advice - I would greatly appreciate it. This is the first apple product that I am disappointed with

  • Listen Audio Player when loading video from Youtube

    Hi everybody
    I'd like to solve such problem: when an online video (for example, from YouTube) is loading, the audio is completely controleld by firefox.
    I mean...
    Let us suppose I want to listen some songs while an online video is loading.
    It seems I can't, as the audio "works only for the online video".
    How can I decide which "sources" I want to listen?
    Any ideas?

    I don't know, linked wiki articles seem a bit difficult to me
    Looking at the titles, however, it seem they not help me, as they talk about
    NO SOUND IN FLASH
    and this is not my problem (which is, in some sense, teh converse).
    I'd like not to listen the sound of flash video within a web browser

  • How do I load music videos from my computer to my iPad when I don't have import in my iTunes

    How do I load music videos from my computer on to my iPad when I don't have "import" on my iTunes?

    Could you explain more? WHat do you mean that you do not have "import" on iTunes? Are you trying to find an import command to add the videos to your iTunes media library? It is called Add to library and is found in the iTunes File menu.
    But you can add files to the iTunes media library by just dropping the files onto the iTunes icon.

  • Firefox frequently hangs when loading websites with Flash video.

    Firefox frequently completely freezes when viewing Flash video and the only way to release it is to manually kill the plugin-container process.
    This have been verified with several Firefox versions, upto and including 3.6.10 and upto the lastest Flash release on systems running Windows 7 64-bit. This have been tested on multiple installations, different systems and on clean installations. However only tested on 64-bit HP systems so far.
    Running Firefox with "Run as Administrator" enabled or with compatibility mode set to "Windows XP SP2" seems to solve the problem, but that solution is not good considering the security and performance problems following with that.

    I have done some more testing and the problem seems to have been found:
    Windows 7 64-bit with Firefox and Flash works fine until HP ProtectTools Security Manager Suite is installed. That combination makes Flash video playback hang frequently. Uninstallation of HP ProtectTools Security Manager Suite fixes the problem.
    Flash video playback works fine with Windows 7 64-bit and HP ProtectTools Security Manager Suite using the browsers Internet Explorer and Chrome instead of Firefox.
    At the moment I can not tell if the error is with Firefox, Flash or HP Protect Tools.
    I am using the latest versions of Firefox, Flash and HP ProtectTools Security Manager Suite at the time of writing, including latest Windows security patches.
    HP ProtectTools Security Manager Suite installation file name used for this is sp48447.exe.

  • IMHD6 Crashes when loading video to my second Hard Drive

    I create the iMovie project on a second Drive Maxtor 7200 RPM, then try to load video from a DV deck and it starts to load then the project crashes. Why?
    If I load to the original HD where the OS lives it's works fine.

    I just installed a new Western Digital HD in the third bay. It is a WDGWD1001FLS 1TByte, 3Gb/s, 32Mb cache, SATA II, 7200 RPM. I can load direct to this Hard Drive with no problem.
    The HD in the second bay is a Maxtor, the second one, the first one started making a lot of noise so it was finally replaced under warranty. What a pain that was! This second one is the one that I can't load DV video to. It is 500 Gig 6H500, 7200 RPM, 16 Mb cache. I don't know what the data transfer speed is yet.
    Here's the sad part it was sold to me by the Micro Center in Marietta Ga. at the time I bought this Mac Pro in 2006. Now I am also sure that it's what caused some mysterious crashes in Logic 8 Studio. You can bet I will talking to the Micro Center and Maxtor/Sea Gate soon after I get this junk out of my Mac Pro!
    I also have a Maxtor external HD on my PC that just quit working or crashed. This Maxtor stuff is junk!

Maybe you are looking for