xvid rendering problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • matt2971
    Junior Member
    Junior Member
    • Jul 2003
    • 16

    xvid rendering problem

    I have a couple of xvid avi files that cause me problems. When I try to watch them using various players (zoom, media player classic, WMP) they either totally freeze my OS and I have to reboot, or occasionally they play but so stuttery you cannot watch them with the cpu usage of the player at very high levels.

    I've used GSpot to render the file and see what codec is being used. 4cc = xvid as does name. When I render the file it says this for "video path" - (S) --> AVI Splitter --> XviD MPEG-4 Video Decoder --> (R)

    I have the latest xvid codec (nics build) installed. I also tried installing ffdshow (gspot confirmed it was trying to use it) and the same thing happens.

    The only media player that will play the files seems to Video LAN - which I believe uses its own codecs (?), but even then - this is only sometimes - other times this also freezes my system.

    I have been unable to replicate the freeze using any of my other files (various mpeg, indeo and divx formats) and my system is stable in every other way.

    Both files (each in two parts) were downloaded from the web. I've entertained the possibility that the only two (or four actually - each fim was in two parts) xvid files i've ever d/ld are all corrupt - but it seems a little coincidental. If anyone knows where I can download a clean test file please let me know....

    And any other ideas appreciated!

    Matt
  • UncasMS
    Super Moderator
    • Nov 2001
    • 9047

    #2
    you could either create a clean testfile yourself or even better: scan these files with virtualdubmod for errors!

    open avi in vdmod => video => scan for stream errors

    Comment

    • matt2971
      Junior Member
      Junior Member
      • Jul 2003
      • 16

      #3
      thx for the swift reply. i don't have virtualdubmod (looking at it now), but I do have the latest version of the original virtualdub, and used that to open the file. It showed no errors on the file (nor did "divxrepair")

      I know nothing about ecoding files - I only watch them and don't have a DVD drive... but I opened up a small (5mb) avi in virtualdub that showed as a divX4 type, changed "compression" to Xvid and then saved it. I used gspot to confirm it now showed as Xvid - which it did - and tried to play it in Media Player Classic.

      On the first attempt it opened, played in an extremely jerky fashion and hogged my CPU.

      I closed it and opened it again, and it froze my OS completely as with the other file (no mouse movement or number lock).

      This leads me to conclude that there is nothing wrong with the xvid files, there is nothing wrong with the media player (since i've tried a few), and I'm not sure there is anything wrong with the codec (as i've repeatedly reinstalled after cleaning the reg now - and also tried that ffdshow thing)... so what is it - my PC?

      I'm running W2K SP4 on a PIII 500mhz with 512mb RAM with a 32mb nvidea graphics card - is this just not good enough a spec?

      i tried using vdub to change the compression from xvid to divx4 on the offending file, saved a part of it and played it back - that worked fine, so i've left my PC converting the whole movie to divx.

      I can use this as a workaround now - but am still wondering why I cant play any xvid movies!
      Last edited by matt2971; 30 Jul 2003, 04:58 PM.

      Comment

      • UncasMS
        Super Moderator
        • Nov 2001
        • 9047

        #4
        matt, 500mhz arent powerful enough for playback of high resolution mpeg-4 formats.

        xvid in particular does not run as smooth as divx.

        Comment

        • matt2971
          Junior Member
          Junior Member
          • Jul 2003
          • 16

          #5
          aha... that would do it. Certainly it would explain the jerky playback. I wouldn't expect lack of processing power to completely freeze the OS permanently... but well, you live and learn!

          Sorry I didn't mention the PC specs first. I guess i'll just convert any movies i can only get in vidx to divx or another formatcbefore playing them - the test i did showed little lack of perceivable quality - but then I don't even own a DVD player and am only playing them on a 17" PC screen, so what do I know!!!

          Thanks for you help.

          Comment

          • matt2971
            Junior Member
            Junior Member
            • Jul 2003
            • 16

            #6
            hmmm... got back home and virtualdub had crached while trying to convert the movie. Ran it through divxrepair and got the same vdub crash:

            "Crash context:
            An integer division by zero occurred in module 'xvid'...

            ...while decompressing video frame 68360 with "XviD MPEG-4 Codec" [biCompression=44495658] (VideoSource.cpp:1516)...

            ...while running thread "Processing" (thread.cpp:105)."

            Does this mean, in addition to having a PC that won't run vidx because it's too slow - I also have a dodgy vidx file (or 4)?


            FULL TEXT:

            VirtualDub crash report -- build 16297 (release)
            --------------------------------------

            Disassembly:
            01b80300: 0003 add [ebx], al
            01b80302: c28b4c ret 4c8b
            01b80305: 245c and al, 5c
            01b80307: 99 cdq
            01b80308: f7f9 idiv eax, ecx
            01b8030a: 8b542460 mov edx, [esp+60]
            01b8030e: b901000000 mov ecx, 00000001
            01b80313: 8b5c240c mov ebx, [esp+0c]
            01b80317: 668902 mov [edx], ax
            01b8031a: 8b742460 mov esi, [esp+60]
            01b8031e: 8b7c2458 mov edi, [esp+58]
            01b80322: 0fbf444d0e movsx eax, word ptr [ebp+ecx*2+0e]
            01b80327: 85c0 test eax, eax
            01b80329: 7415 jz 01b80340
            01b8032b: 0fafc3 imul eax, ebx
            01b8032e: 85c0 test eax, eax
            01b80330: 7e4e jle 01b80380
            01b80332: 8bd7 mov edx, edi
            01b80334: d1fa sar edx, 1
            01b80336: 03d0 add edx, eax
            01b80338: 8bc2 mov eax, edx
            01b8033a: 99 cdq
            01b8033b: f7ff idiv eax, edi
            01b8033d: eb03 jmp 01b80342
            01b8033f: 90 nop
            01b80340: 33c0 xor eax, eax
            01b80342: 6689044e mov [esi+ecx*2], ax
            01b80346: 41 inc ecx
            01b80347: 83f908 cmp ecx, 08
            01b8034a: 72d6 jc 01b80322
            01b8034c: 83c42c add esp, 2c
            01b8034f: 5b pop ebx
            01b80350: 5d pop ebp
            01b80351: 5e pop esi
            01b80352: 5f pop edi
            01b80353: c3 ret
            01b80354: 8bd7 mov edx, edi
            01b80356: d1fa sar edx, 1
            01b80358: 2bc2 sub eax, edx
            01b8035a: 99 cdq
            01b8035b: f7ff idiv eax, edi
            01b8035d: e960ffffff jmp 01b802c2
            01b80362: 8db42600000000 lea esi, [esi+00]
            01b80369: 8dbc2700000000 lea edi, [edi+00]
            01b80370: 2bd0 sub edx, eax
            01b80372: 8bc2 mov eax, edx
            01b80374: 8b5c245c mov ebx, [esp+5c]
            01b80378: 99 cdq
            01b80379: f7fb idiv eax, ebx
            01b8037b: e902ffffff jmp 01b80282
            01b80380: 8bd7 mov edx, edi
            01b80382: d1fa sar edx, 1
            01b80384: 2bc2 sub eax, edx
            01b80386: 99 cdq
            01b80387: f7ff idiv eax, edi <-- FAULT
            01b80389: ebb7 jmp 01b80342
            01b8038b: 90 nop
            01b8038c: 8d742600 lea esi, [esi+00]
            01b80390: 2bd0 sub edx, eax
            01b80392: 8bc2 mov eax, edx
            01b80394: 8b4c245c mov ecx, [esp+5c]
            01b80398: 99 cdq
            01b80399: f7f9 idiv eax, ecx
            01b8039b: e96affffff jmp 01b8030a
            01b803a0: f7da neg edx
            01b803a2: e9aafeffff jmp 01b80251
            01b803a7: f7df neg edi
            01b803a9: e996feffff jmp 01b80244
            01b803ae: 8b442420 mov eax, [esp+20]
            01b803b2: 85c0 test eax, eax
            01b803b4: 7406 jz 01b803bc
            01b803b6: 8d685a lea ebp, [eax+5a]
            01b803b9: 8d701e lea esi, [eax+1e]
            01b803bc: 8bca mov ecx, edx
            01b803be: 8b442458 mov eax, [esp+58]
            01b803c2: 89442408 mov [esp+08], eax
            01b803c6: e968feffff jmp 01b80233
            01b803cb: 8bea mov ebp, edx
            01b803cd: 8b442458 mov eax, [esp+58]
            01b803d1: 8b54241c mov edx, [esp+1c]
            01b803d5: 8944240c mov [esp+0c], eax
            01b803d9: 85d2 test edx, edx
            01b803db: 0f8452feffff jz 01b80233
            01b803e1: 8bc2 mov eax, edx
            01b803e3: 8d485a lea ecx, [eax+5a]
            01b803e6: 8d703c lea esi, [eax+3c]
            01b803e9: e945feffff jmp 01b80233
            01b803ee: 8b442420 mov eax, [esp+20]
            01b803f2: 85c0 test eax, eax
            01b803f4: 7403 jz 01b803f9
            01b803f6: 8d681e lea ebp, [eax+1e]
            01b803f9: 8b44241c mov eax, [esp+1c]
            01b803fd: 85c0 test eax, eax
            01b803ff: 74 db 74

            Windows 5.0 (Windows 2000 build 2195) [Service Pack 4]

            EAX = 00000000
            EBX = 00000000
            ECX = 00000003
            EDX = 00000000
            EBP = 02cc2000
            DS:ESI = 0023:06a5f56c
            ES:EDI = 0023:00000000
            SS:ESP = 0023:06a5eec8
            CS:EIP = 001b:01b80387
            FS = 0038
            GS = 0000
            EFLAGS = 00010246
            FPUCW = ffff027f
            FPUTW = ffffaaaa

            MM0 = 01ec01ec01ec01ec
            MM1 = d029e2e5058432bf
            MM2 = ff57ff66ff81ffa5
            MM3 = b542b8fcbfdfc8de
            MM4 = 014100f6006cffb7
            MM5 = ffc3000e0098014d
            MM6 = 01ad019e0183015f
            MM7 = 01a301990185011c

            Crash reason: Integer Divide-by-Zero

            Crash context:
            An integer division by zero occurred in module 'xvid'...

            ...while decompressing video frame 68360 with "XviD MPEG-4 Codec" [biCompression=44495658] (VideoSource.cpp:1516)...

            ...while running thread "Processing" (thread.cpp:105).

            Thread traces:

            Thread 00000608 (Main thread)
            C:\p4root\dev\VirtualDub\source\Init.cpp(265)
            C:\p4root\dev\VirtualDub\source\Init.cpp(284)
            C:\p4root\dev\VirtualDub\source\Init.cpp(302)
            C:\p4root\dev\VirtualDub\source\Init.cpp(365)
            C:\p4root\dev\VirtualDub\source\Main.cpp(208)
            C:\p4root\dev\VirtualDub\source\Main.cpp(231)
            C:\p4root\dev\VirtualDub\source\VideoSource.cpp(58 8)
            C:\p4root\dev\VirtualDub\source\VideoSource.cpp(61 6)
            C:\p4root\dev\VirtualDub\source\FilterSystem.cpp(4 24)
            C:\p4root\dev\VirtualDub\source\FilterSystem.cpp(5 60)
            C:\p4root\dev\VirtualDub\source\FilterSystem.cpp(4 24)
            Thread 00000200 (FastWriteStream)
            Thread 00000428 (Processing)
            C:\p4root\dev\VirtualDub\source\VideoSource.cpp(15 47)
            C:\p4root\dev\VirtualDub\source\Dub.cpp(3060)
            C:\p4root\dev\VirtualDub\source\VideoSequenceCompr essor.cpp(359)
            C:\p4root\dev\VirtualDub\source\VideoSequenceCompr essor.cpp(374)
            C:\p4root\dev\VirtualDub\source\Dub.cpp(3218)
            C:\p4root\dev\VirtualDub\source\Dub.cpp(3402)
            C:\p4root\dev\VirtualDub\source\Dub.cpp(3055)
            C:\p4root\dev\VirtualDub\source\VideoSource.cpp(15 14)
            C:\p4root\dev\VirtualDub\source\VideoSource.cpp(15 47)
            C:\p4root\dev\VirtualDub\source\Dub.cpp(3060)
            C:\p4root\dev\VirtualDub\source\VideoSequenceCompr essor.cpp(359)
            C:\p4root\dev\VirtualDub\source\VideoSequenceCompr essor.cpp(374)
            C:\p4root\dev\VirtualDub\source\Dub.cpp(3218)
            C:\p4root\dev\VirtualDub\source\Dub.cpp(3402)
            C:\p4root\dev\VirtualDub\source\Dub.cpp(3055)
            C:\p4root\dev\VirtualDub\source\VideoSource.cpp(15 14)
            Thread 000003a8 (Dub-I/O)

            Thread call stack:01b80387: xvid!xvid_init [01b60000+a9cc+159bb]
            01b6b209: xvid!xvid_init [01b60000+a9cc+83d]
            01ffff9f: xvid!encore [01b60000+4ca88+453517]
            01b6c209: xvid!xvid_init [01b60000+a9cc+183d]
            01b82354: xvid!xvid_init [01b60000+a9cc+17988]
            01b6b979: xvid!xvid_init [01b60000+a9cc+fad]
            01b6a983: xvid!xvid_decore [01b60000+a94c+37]
            01b66fce: xvid!00006fce
            01b6a667: xvid!DriverProc [01b60000+a480+1e7]
            77f89964: ntdll!CsrCaptureMessageBuffer [77f80000+9778+1ec]
            77fcc882: ntdll!RtlFreeHeap [77f80000+4c7d3+af]
            05558d34: DivX412!encore [05550000+7f20+e14]
            77fcc780: ntdll!RtlAllocateHeap [77f80000+4c2ad+4d3]
            77fcc59d: ntdll!RtlAllocateHeap [77f80000+4c2ad+2f0]
            77fcc5b4: ntdll!RtlAllocateHeap [77f80000+4c2ad+307]
            7c4eaa8f: KERNEL32!QueryPerformanceCounter [7c4e0000+aa7d+12]
            05554a2b: DivX412!DriverProc [05550000+3dd0+c5b]
            77fcc59d: ntdll!RtlAllocateHeap [77f80000+4c2ad+2f0]
            77fcc5b4: ntdll!RtlAllocateHeap [77f80000+4c2ad+307]
            0555408b: DivX412!DriverProc [05550000+3dd0+2bb]
            6a8f17f8: MSVFW32!ICSendMessage [6a8f0000+17c4+34]
            6a8f4ee9: MSVFW32!ICDecompress [6a8f0000+4eae+3b]
            0041ae54: VideoSourceAVI::streamGetFrame()
            0040bdf3: AVIOutputFile::writeIndexedChunk()
            0046f88e: FastWriteStream::_Put()
            004ad490: ceil()
            0046a522: Dubber::WriteVideoFrame()
            004098ef: AVIAudioOutputStream::write()
            00460a9a: AVIPipe::getReadBuffer()
            0046b2b4: Dubber::ThreadRun()
            004a3658: VDThread::StaticThreadStart()
            004aea4a: _threadstartex@4()
            7c4e987c: KERNEL32!SetThreadExecutionState [7c4e0000+9655+227]

            -- End of report

            Comment

            • UncasMS
              Super Moderator
              • Nov 2001
              • 9047

              #7
              faulty files are not seldom when downloaded

              Comment

              • matt2971
                Junior Member
                Junior Member
                • Jul 2003
                • 16

                #8
                lol - point taken

                Comment

                Working...