Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
31st July 2003, 04:35 | #281 | Link |
HDTV Junkie
Join Date: Oct 2001
Location: Atlanta, GA
Posts: 34
|
Corrupt frames bypass?
? ...
How hard would it be to add a flag that would allow mpeg2dec3.dll to re-use the last good frame, or simply make a best "guess", when it runs across a corrupt frame? Often when working with HDTV stream files, there's *1* bad frame or so in there. And mpeg2dec3.dll completely breaks down when it finds it, causing avisynth to return ALL frames henceforth as a read execption error. This is a HUGE time waster, as the entire encode (which is often many hours long) has to be redone from scratch. If there was a way to set it to 1) return the error, 2) make a best guess, or 3) re-use last good frame, that'd be verrrrrrrrrry useful. thanks ! - litz
__________________
Thrills! Chills! Magic! Prizes! |
31st July 2003, 11:20 | #282 | Link |
IUUULEEEENZ
Join Date: Mar 2002
Location: Italy
Posts: 452
|
Yes, it's a bad thing. I capture from DVB and I've the same problem.
To tell the truth from Mpeg2dec3 1.08 many things went better: I have no more crashes on bad streams. If it crashes, you should try Mpegdecoder.dll instead that works with bad frames quite well. Instead, I'd like to get a FULLMPEG Decoder (Video, audio) but with an intelligent error menagement (it will very very useful for DVB capturer ... just capture & encode ... It should use Time Stamps in the MPEG stream, to correct and try to preserve the most frames as possible (not like PVAstrumento that cuts thousand of GOPS). I know that it would be difficult, and I'm not complaining about anything. Just would be nice.
__________________
PC1:AMD Athlon II x4, 4GB DDR2, Ati Radeon 4830, 4 hard disks |
31st July 2003, 11:56 | #283 | Link |
Moderator
Join Date: Oct 2001
Location: England
Posts: 3,285
|
@litz: Is there anyway you could upload just a bit of a stream that causes that problem ? Like the first frames are ok, then it hits the bad one and all the rest are broken.... If you can upload a clip like that, it shouldn't be hard to fix. But without being able to re-produce it, I doubt I can fix it
@Tom: Works fine for me. Koepi recently corrected it so it was W3C compliant, so I don't know what the problem would be? Anyone else having troubles? -Nic |
31st July 2003, 13:27 | #284 | Link |
Newbie Forum Mod
Join Date: Aug 2002
Location: way too deep in (cyber)space
Posts: 2,436
|
"Koepi recently corrected it so it was W3C compliant, so I don't know what the problem would be? Anyone else having troubles?"
is working perfectly fine, tried it with IE 6.0 and firebird (.6) steVe
__________________
Search the forum, read the forum rules once more and use the search function on doom9.org before posting! oh btw my amazon.de wishlist |
31st July 2003, 16:29 | #285 | Link | |
Registered User
Join Date: Oct 2001
Location: Gainesville FL USA
Posts: 2,092
|
Quote:
- Tom edit: I can access Koepi's site just fine except maybe for the link to the latest documentation.
__________________
My video filters (still) at www.trbarry.com. Last edited by trbarry; 31st July 2003 at 16:34. |
|
1st August 2003, 02:41 | #287 | Link | |
HDTV Junkie
Join Date: Oct 2001
Location: Atlanta, GA
Posts: 34
|
Sample .ts w/bad frames
Quote:
Sure ! http://terminus.litz.org/smallville_test.ts It'll take a bit ... 23mb in size and only 384k upload bandwidth. Bad spot is on frames 175-179. mpeg2dec3.dll crashes, mpegdecoder.dll slices right through no errors, blocking or other problems. Running in native yv12. Script used (telecide/decimate commented out for testing) : SetMemoryMax(64) loadplugin("C:\Program Files\AviSynth 2.5\plugins\MPEGDecoder.dll") loadplugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2dec3.dll") loadplugin("C:\Program Files\AviSynth 2.5\plugins\Decomb.dll") #MpegSource("h:\test\test.d2v") Mpeg2Source("h:\test\test.d2v", iPP=true, idct=6) #Telecide(guide=1) #Decimate(cycle=5) LanczosResize(720,480) - litz
__________________
Thrills! Chills! Magic! Prizes! |
|
1st August 2003, 10:49 | #288 | Link |
Moderator
Join Date: Oct 2001
Location: England
Posts: 3,285
|
Thanks alot litz....the crash happens in the motion compensation on frame 175. Ill try and find out why asap
edit: well it's easy to stop it crashing, you just check memory bounds. It's crashing on the same place me and sh0dan patched last time. However, these little hacks we put in to stop it crashing aren't great (i.e. it causes that frame to be corrupt...but at least it can recover and the rest are ok). I need to look into this more (ps for anyone else looking into it: in ::form_prediction in getpic.c add: if ( s - src[0] > LUM_AREA ) { Fault_Flag = 5; return; } to stop the crash (you can also breakpoint there to see whats going on) -Nic ps well dvd2avi crashes on it as well...Hmmm, you might end up having to put with the corrupt frame. Ill keep working on it. Last edited by Nic; 1st August 2003 at 11:46. |
1st August 2003, 13:55 | #289 | Link | |
HDTV Junkie
Join Date: Oct 2001
Location: Atlanta, GA
Posts: 34
|
mpegdecoder.dll is unaffected
What is odd is that mpegdecoder.dll just blows right on past that frame and decodes it perfectly.
- litz Quote:
__________________
Thrills! Chills! Magic! Prizes! |
|
1st August 2003, 21:12 | #290 | Link |
IUUULEEEENZ
Join Date: Mar 2002
Location: Italy
Posts: 452
|
Hi, I've just found a nice M2V stream wich causes matters with Mpeg2dec3 and works fine with Mpegdecoder.
The strange is that is taken from DVD not DVB, so in theory there shouldn't be any problem since I had 0 errors during the ripping-demuxing process (doitfast4you). It causes an overflow in CCE 2.67 so I couldn't finish the encode. I'd like to share it (so you could find where's the bug) but it's on the 5th GB of a 5.5 GB file. How could I perfectly trim it (without any modifications of the stream)? PS: I'm sorry to ask you this stupid think, but I searched a lot on every avisynth plugin, but I didn't find an answer. Is it a way to use CPU parameter to deblock dering without Mpeg2Dec3 (I like this Algorithm, it gives me a very nice quality)? Is it a plugin that just does these things? Thanks
__________________
PC1:AMD Athlon II x4, 4GB DDR2, Ati Radeon 4830, 4 hard disks |
2nd August 2003, 07:49 | #292 | Link | |
Registered User
Join Date: Mar 2002
Location: USA
Posts: 99
|
Quote:
__________________
~~~~~~~~~~~~~~~~~~~~~~~~ Intel i7 920 ASUS P6T Deluxe V2 Mboard 6GB DDR-3 Crucial XMS RAM Visiontek ATI 4850 Sound Blaster Audigy |
|
2nd August 2003, 15:37 | #293 | Link |
Registered User
Join Date: Jun 2003
Location: Paris [France]
Posts: 20
|
Delphi Unit for MPEG2DEC3.DLL
The exported functions names of the new MPEGDEC3 dll are:
'openMPEG2Source' 'closeVideo' 'getRGBFrame' 'getFrame' In order to import this functions in Delphi use cdecl option and not stdcall. A+ ZeImp
__________________
ZeImp - http://avsgenerator.unite-video.com/ - AVSGenerator Last edited by ZeImp; 4th August 2003 at 02:25. |
2nd August 2003, 17:01 | #294 | Link |
Moderator
Join Date: Oct 2001
Location: England
Posts: 3,285
|
You already posted about this in the development forum and got the right answer!
http://forum.doom9.org/showthread.php?s=&threadid=58658 Look in GKnot to see how it does it! VideoInfo has changed because avisynth 2 updated it. If you get real stuck ask one of the main GKnot developers, but keep your posts in the development forum. -Nic |
3rd August 2003, 08:15 | #296 | Link | |
HDTV Junkie
Join Date: Oct 2001
Location: Atlanta, GA
Posts: 34
|
dvd2avi vs mpeg2dec3.dll vs mpegdecoder.dll
Quote:
For instance, I re-encoded the original .ts the sample came from using mpegdecoder and it did the entire thing flawlessly. But while mpegdecoder is nice, mpeg2dec3.dll handles 1080i material MUCH better than mpegdecoder, which sometimes causes weird color shifting stuff, almost like the color fields don't get properly aligned. Very psychadelic, but as this isn't Pink Floyd, it's not optimal ... :-) - litz (btw, like my avatar ?)
__________________
Thrills! Chills! Magic! Prizes! |
|
4th August 2003, 00:29 | #297 | Link |
Moderator
Join Date: Oct 2001
Location: England
Posts: 3,285
|
They are two completely different decoders, libmpeg2 was designed to have a nice state oreintated approach and has good error handling. mpeg2dec3 is basically the MSSG MPEG code with nice Assembly optimisation. Hence one handles it well, the other doesn't (also mpeg2dec3 has built in repeat-field-flag code, libmpeg2 doesnt can't have everything)
Can't make out what your avatar is supposed to be but looks nice. Pf effects just with MPEGDecoder ...they could save all that money on effects and Dave could buy a few more planes -Nic |
6th August 2003, 14:07 | #298 | Link |
Registered User
Join Date: Feb 2003
Location: Riga, Latvia
Posts: 192
|
I've got a problem with AviSynth. AutoRV9, VDubMod and other programs show an "Evaluate: Unrecognised exception" error when opening a d2v file created for a vob with a filesize of over 4 gigabytes. The file system is NTFS. Is it an issue of MPEG2DEC3? Is it possible to overcome this problem?
|
6th August 2003, 19:59 | #300 | Link |
Registered User
Join Date: Feb 2003
Location: Riga, Latvia
Posts: 192
|
Well, I still can't open the file... I made sure my avs script was as primitive as possible:
It still shows the same error (tried with AutoRV9, VDubMod and WMPlayer) |
|
|