You are not logged in.

#1 2022-05-21 02:46:42

bohokash
Member
Registered: 2019-11-30
Posts: 76

Wine crash problems with ffmpeg and virtualdub

I use two windows programs with wine, ffmpeg.exe and virtualdubmod.exe

They are working, but at some point for an unknown reason ffmpeg.exe crashes with wine. For example I can encode 4 audio file, and at the fifth it crashes. After that certain point I am unable to use wine with ffmpeg.exe in the same terminal window.

If I open a blank new terminal window, like roxterm, or xfce4-terminal, mate-terminal, etc, then I can use ffmpeg with wine again, it doesn't crashes any more. They are working normally.

However if I use the -e COMMAND option of the terminal applications, like

mate-terminal -e "wine ffmpeg.exe -i myscript.avs"

and I call it from the terminal window in which wine with ffmpeg.exe crashed, then it keeps crashing again!

I call wine and the two windows programs from bash scripts, to automate video and audio procession. So I wouldn't like to open a new terminal window by hand.

The crash details:

Unhandled exception: C++ exception(object = 0x04f9e598, type = 0x1051640c) in 32-bit code (0x7b012116).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:7b012116 ESP:04f9e4c4 EBP:04f9e538 EFLAGS:00000246(   - --  I  Z- -P- )
 EAX:04f9e4d0 EBX:04f9e598 ECX:00000008 EDX:04f9e564
 ESI:e06d7363 EDI:00000000
Stack dump:
0x04f9e4c4:  00000000 1006d267 7b0385ad e06d7363
0x04f9e4d4:  00000001 00000000 7b012116 00000003
0x04f9e4e4:  19930520 04f9e598 1051640c 06011148
0x04f9e4f4:  00000401 00000000 06010d00 00000000
0x04f9e504:  04f9e520 04f9e578 00000000 0000000f
0x04f9e514:  06011100 00000000 04f9e5a4 103717a5
Backtrace:
=>0 0x7b012116 AccessCheckByTypeAndAuditAlarmW+0x11116() in kernelbase (0x04f9e538)
  1 0x70b57cb7 _Cmulcc+0x16cb7() in ucrtbase (0x04f9e578)
  2 0x1007d320 EntryPoint+0x75ddb() in avisynth (0x04f9e5b4)
  3 0x100740f2 EntryPoint+0x6cbad() in avisynth (0x04f9e5e8)
  4 0x10073fc1 EntryPoint+0x6ca7c() in avisynth (0x04f9e618)
  5 0x100763f9 EntryPoint+0x6eeb4() in avisynth (0x04f9e678)
  6 0x10085e31 EntryPoint+0x7e8ec() in avisynth (0x04f9e6f8)
  7 0x10083e2f EntryPoint+0x7c8ea() in avisynth (0x04f9ebb4)
  8 0x1009b968 EntryPoint+0x94423() in avisynth (0x04f9ec98)
  9 0x100b9a49 EntryPoint+0xb2504() in avisynth (0x04f9ecb0)
  10 0x100ba64c EntryPoint+0xb3107() in avisynth (0x04f9ece8)
0x7b012116 kernelbase+0x12116: subl	$4,%esp
Modules:
Module	Address			Debug info	Name (38 modules)
PE	00400000-04d95000	Export          ffmpeg
PE	050f0000-05a2a000	Deferred        shell32
PE	05a30000-05af7000	Deferred        winmm
PE	10000000-105bd000	Export          avisynth
PE	61740000-61783000	Deferred        advapi32
PE	62300000-6236f000	Deferred        msvcp140
PE	62fc0000-6304e000	Deferred        rpcrt4
PE	63480000-6348c000	Deferred        version
PE	63bc0000-63bda000	Deferred        shcore
PE	64a40000-64a94000	Deferred        shlwapi
PE	64ec0000-64f52000	Deferred        oleaut32
PE	66b00000-66b3f000	Deferred        win32u
PE	67340000-6741d000	Deferred        msvcr120
PE	67840000-6784a000	Deferred        psapi
PE	68500000-6855b000	Deferred        combase
PE	686c0000-686fd000	Deferred        concrt140
PE	68700000-68730000	Deferred        uxtheme
PE	68cc0000-68ccb000	Deferred        avicap32
PE	6a040000-6a062000	Deferred        msacm32
PE	6a280000-6a2c4000	Deferred        msvcrt
PE	6a400000-6a534000	Deferred        ole32
PE	6bb00000-6bb25000	Deferred        msvfw32
PE	6bc00000-6bc2c000	Deferred        sechost
PE	6bcc0000-6bd3f000	Deferred        setupapi
PE	6c9c0000-6ca46000	Deferred        gdi32
PE	6cc40000-6cd9c000	Deferred        comctl32
PE	6d780000-6d7a8000	Deferred        ws2_32
PE	6db40000-6db4f000	Deferred        imagehlp
PE	6ed00000-6eee6000	Deferred        user32
PE	6fa80000-6fafa000	Deferred        dbghelp
PE	70240000-70253000	Deferred        vcruntime140
PE	70b40000-70c18000	Dwarf           ucrtbase
PE	71200000-7121c000	Deferred        imm32
PE	71440000-71494000	Deferred        avifil32
PE	7b000000-7b25f000	Dwarf           kernelbase
PE	7b600000-7b666000	Deferred        kernel32
PE	7bc00000-7bca5000	Deferred        ntdll
PE	7e120000-7e124000	Deferred        winex11
Threads:
process  tid      prio    name (all IDs are in hex)
00000020 start.exe
	00000024    0     
00000038 services.exe
	0000003c    0     
	00000040    0     
	0000004c    0     
	00000074    0     
	000000a8    0     
	000000c0    0     
	000000d8    0     
00000044 winedevice.exe
	00000048    0     
	00000054    0     
	00000058    0     
	0000005c    0     
	00000060    0     
	000000cc    0     
00000064 explorer.exe
	00000068    0     
	00000084    0     
	00000088    0     
0000006c winedevice.exe
	00000070    0     
	00000078    0     
	0000007c    0     
	00000080    0     
	00000090    0     
	00000098    0     
	0000009c    0     
000000a0 plugplay.exe
	000000a4    0     
	000000ac    0     
	000000b0    0     
	000000b4    0     
000000b8 svchost.exe
	000000bc    0     
	000000c4    0     
	000000c8    0     
000000d0 rpcss.exe
	000000d4    0     
	000000dc    0     
	000000e0    0     
	000000e4    0     
	000000e8    0     
	000000ec    0     
000000f4 conhost.exe
	000000f8    0     
000000fc (D) C:\windows\syswow64\ffmpeg.exe
	00000100    0 <== 
	0000010c    0     
System information:
    Wine build: wine-7.7
    Platform: i386 (WOW64)
    Version: Windows XP
    Host system: Linux
    Host version: 5.16.10-zen1-1-zen

I tried typing "reset" in the terminal window, or "clear", and even "wineboot" and "winserver -k", but none of them worked.

What should I try in this situation?

Offline

#2 2022-05-21 09:27:28

lmn
Member
Registered: 2021-05-09
Posts: 67

Re: Wine crash problems with ffmpeg and virtualdub

Is there a specific reason to run ffmpeg through wine when it is available in the package repositories ?
Edit: fixed link

Last edited by lmn (2022-05-21 09:29:40)

Offline

#3 2022-05-21 18:35:20

Maniaxx
Member
Registered: 2014-05-14
Posts: 738

Re: Wine crash problems with ffmpeg and virtualdub

I had issues with VfW/DirectShow as well with VirtualDub and WinUAE/recording. Installing 'avifil32' with winetricks helped. Maybe give it a shot.
I've dropped avs in favor of VapourSynth to be on native backend. What version of avs are you running?

Last edited by Maniaxx (2022-05-21 18:40:45)


sys2064

Offline

#4 2022-05-30 04:14:04

bohokash
Member
Registered: 2019-11-30
Posts: 76

Re: Wine crash problems with ffmpeg and virtualdub

I always use latest Avisynth+ I rely much on functions which exists only in Avisynth+, for example animate(), layer() etc. As far as I know that, and many other doesn't exists in vapoursynth.

Offline

#5 2022-05-30 04:18:12

bohokash
Member
Registered: 2019-11-30
Posts: 76

Re: Wine crash problems with ffmpeg and virtualdub

I use windows version of ffmpeg to be able to read avisynth files. Avisynth+ is a 32 bit windows application, frameserver. There is a 64 bit version too, but numerous useful plugins are incompatible with the 64 bit version. So I have to use a 32 bit windows version of ffmpeg to get the frames from the avisynth files. Of course I can pipe its output to linux native ffmpeg for encoding.

Offline

Board footer

Powered by FluxBB