Skip to content

DShow: libvlccore.dll causes Visual C++ runtime error and appcrash when quitting transcode/rtmp stream

When using the command line to transcode and RTMP stream (using ffmpeg/libav), the libvlccore.dll causes a Visual C++ runtime error, "This application has requested the Runtime to terminate it in an unusual way" and crashes. This is also replicated in the VLC Media Player.

Command line I'm using is: :sout=#duplicate{dst=display,dst="transcode{venc=x264{keyint=60,profile=high,tune=zerolatency,min-keyint=60,scenecut=0,vbv-maxrate=960,vbv-bufsize=1920},vcodec=x264,vb=960,scale=1,threads=2,acodec=mp4a,ab=64,channels=2,samplerate=44100}:duplicate{dst=std{access=rtmp,mux=ffmpeg{mux=flv},dst='rtmp://rtmp.server.com:1935/path/to/stream'},dst=file{dst='C:<filelocation\filename',mux=mp4}}"} :dshow-adev=Microphone (HD Pro Webcam C920) :dshow-vdev=Logitech HD Pro Webcam C920 :dshow-size=640x480 :dshow-fps=

This only happens with the 2.2.x and 3.0 libraries. It does not happen with 2.1.x. Unfortunately, the 2.1.x libraries are not stable with the RTMP stream.

Edited by Jean-Baptiste Kempf
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information