| Printable Version of Topic
Click here to view this topic in its original format |
| Unofficial VirtualDub Support Forums > VirtualDub Filters and Filter Development > Wmv Input Plugin: Replicated Data Length 0 |
| Posted by: i4004 Sep 5 2011, 11:03 PM |
ie this error:![]() running it thru asfbin app fixes it ( http://www.radioactivepages.com/asfbin.aspx ), but i have lots of such files so it would be easier if one could load them straight to vdub... here's a sample file if you need it https://rapidshare.com/files/2131832583/DVD-20__wmr_.wmv |
| Posted by: fccHandler Sep 10 2011, 04:48 PM |
| Although the ASF specification allows a replicated data length of zero, it is so rare that in all these years I have never seen it. The error thrown by the code is kind of like a mountweazel, in that I put it there just to alert ME if ever such a thing was found. Congratulations Ivo, you are the first to have found it. I was not able to download your sample, so I am going to have to assume that there is not something else seriously wrong with those WMVs you have. Anyway here is a new build which removes the error: http://fcchandler.home.comcast.net/Plugins/WMV |
| Posted by: i4004 Sep 16 2011, 06:39 PM | ||
| i've found TON of it! here http://www.slobodanpraljak.com/ratni_video.html (it's war stuff, there might be some gore there....but dvd20, dvd24, dvd30 are safe for anybody's eyes...i just inspected them in vdub, so yes, the fix works...you can dload them via "pokreni" mms link) as far as i see most files have this error. only smallest don't. (for example i think i picked DVD-27 (wmr).wmv (3.43mb) for upload, but then saw it loaded ok, and then picked the next bigger file that had it.) also, this was ripped with some mass dloader (my friend was doing that...i think it was wmrecorder http://www.wmrecorder.com/ ) dunno if that messed itup... loaded it to hex editor and don't see what was the encoder...
heh, so rare? interesting. thanks a lot for the quick fix! i need this because vdub is much better way to quickly inspect these files than usual video players...better timeline resolution. this fix makes that task a lot easier... |
| Posted by: ale5000 Nov 29 2011, 09:37 PM |
| I have 2 samples that come from a camera. With the previous version of the input plugin they get replicated data length of zero, instead with the new version: The 40MB file after direct strem copy show garbage in the video and audio is present but it cannot be played; The 65MB file cannot be opened, it say "File ... does not have a video stream.". |
| Posted by: fccHandler Dec 1 2011, 01:01 AM |
| Sorry, try again. |
| Posted by: ale5000 Dec 1 2011, 01:44 AM |
| I have sent you a PM. |
| Posted by: fccHandler Dec 24 2011, 04:57 AM |
| To update, I have found the problem and fixed it. I was not correctly handling the unusual case of replicated data length zero. I am currently trying (again) to fix audio/video sync issues which have plagued this plugin since the beginning, therefore I would prefer to delay the next release. But if you have an urgent need for the replicated data bug fix, just let me know. |
| Posted by: ale5000 Dec 24 2011, 01:14 PM |
| Don't worry, there is no urgency. |
| Posted by: fccHandler Feb 12 2012, 06:11 AM |
| Well, again I've given up on trying to fix the audio/video sync issues, after much frustration. I do still believe it is possible to fix, but it pretty much involves me writing a dedicated Windows Media Audio decoder into the plugin! I am totally going to have to defer that for some later time (if ever). Anyway, version 2.7 has the aforementioned fix for replicated data length zero: http://fcchandler.home.comcast.net/Plugins/WMV |
| Posted by: ale5000 Feb 13 2012, 03:43 AM |
| Test file (Afo4 - Stupido v2.wmv): http://uploading.com/files/1m439f9d/Afo4%2B-%2BStupido%2Bv2.wmv/ (click on "WAIT TO DOWNLOAD") In file informations with version 2.6 it say "Length (duration): 6912000 samples (3:36)" instead with version 2.7 it say "Length (duration): 6909918 samples (3:36)". Is it a new bug or it was wrong in the previous version? |
| Posted by: ale5000 Feb 13 2012, 11:46 PM | ||||
With the latest version it crash while direct strem copying the 40MB file:
|
| Posted by: fccHandler Feb 18 2012, 05:50 AM |
| The crash was due to an incorrect nBlockAlign value in the WAVEFORMATEX structure of the audio stream, and that was a side effect of some changes I made while trying (unsuccessfully) to fix the audio/video sync problem. The crash is fixed now: http://fcchandler.home.comcast.net/Plugins/WMV Regarding the number of WMA samples, there is some guesswork involved to estimate that number. It isn't going to be 100% accurate. However, I believe the latest version delivers a more accurate guess. |