Bug Report Local recording does not work / conflict with LSMASHSource

Evolfox

New Member
Hi,

Local recording does not work. I have an error message I have already tried to change directory, reinstall OBS, reinstall GPU drivers with DDU, disable the antivirus but all this does not work.

Code:
15:13:02.019: CPU Name: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
15:13:02.019: CPU Speed: 4008MHz
15:13:02.020: Physical Cores: 4, Logical Cores: 8
15:13:02.020: Physical Memory: 16324MB Total, 8662MB Free
15:13:02.020: Windows Version: 10.0 Build 17134 (revision: 48; 64-bit)
15:13:02.020: Running as administrator: true
15:13:02.020: Aero is Enabled (Aero is always on for windows 8 and above)
15:13:02.020: Windows 10 Gaming Features:
15:13:02.020:     Game Bar: Off
15:13:02.020:     Game DVR: Off
15:13:02.020:     Game DVR Background Recording: Off
15:13:02.021: Sec. Software Status:
15:13:02.022:     Antivirus Windows Defender: disabled (AV)
15:13:02.022:     Bitdefender Antivirus: temporarily disabled (AV)
15:13:02.023:     Pare-feu Windows: enabled (FW)
15:13:02.023:     Antivirus Windows Defender: disabled (ASW)
15:13:02.023:     Bitdefender Antispyware: temporarily disabled (ASW)
15:13:02.023: Portable mode: false
15:13:02.395: OBS 21.1.2 (64bit, windows)
15:13:02.395: ---------------------------------
15:13:02.396: ---------------------------------
15:13:02.396: audio settings reset:
15:13:02.396:     samples per sec: 44100
15:13:02.396:     speakers:        2
15:13:02.397: ---------------------------------
15:13:02.397: Initializing D3D11...
15:13:02.397: Available Video Adapters:
15:13:02.398:     Adapter 1: NVIDIA GeForce GTX 980
15:13:02.398:       Dedicated VRAM: 4250206208
15:13:02.398:       Shared VRAM:    4263665664
15:13:02.398:       output 1: pos={0, 0}, size={3840, 2160}, attached=true
15:13:02.398:       output 2: pos={-5760, 0}, size={2880, 1620}, attached=true
15:13:02.398:       output 3: pos={-2880, 0}, size={2880, 1620}, attached=true
15:13:02.400: Loading up D3D11 on adapter NVIDIA GeForce GTX 980 (0)
15:13:02.433: D3D11 loaded successfully, feature level used: 45056
15:13:03.083: ---------------------------------
15:13:03.083: video settings reset:
15:13:03.083:     base resolution:   1920x1080
15:13:03.083:     output resolution: 1920x1080
15:13:03.083:     downscale filter:  Bicubic
15:13:03.083:     fps:               30/1
15:13:03.083:     format:            NV12
15:13:03.083:     YUV mode:          601/Partial
15:13:03.084: Audio monitoring device:
15:13:03.084:     name: Par défaut
15:13:03.084:     id: default
15:13:03.084: ---------------------------------
15:13:03.085: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
15:13:03.086: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
15:13:03.109: [AMF] AMF Test failed due to one or more errors.
15:13:03.109: Failed to initialize module 'enc-amf.dll'
15:13:03.120: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
15:13:03.121: LoadLibrary failed for '../../obs-plugins/64bit/libEGL.dll': (null) (127)
15:13:03.121: Module '../../obs-plugins/64bit/libEGL.dll' not loaded
15:13:03.121: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
15:13:03.122: [browser_source: 'Version: 1.31.0']
15:13:03.124: NVENC supported
15:13:03.201: VLC found, VLC video source enabled
15:13:03.204: No blackmagic support
15:13:03.207: ---------------------------------
15:13:03.207:   Loaded Modules:
15:13:03.207:     win-wasapi.dll
15:13:03.207:     win-mf.dll
15:13:03.207:     win-dshow.dll
15:13:03.207:     win-decklink.dll
15:13:03.207:     win-capture.dll
15:13:03.207:     vlc-video.dll
15:13:03.207:     text-freetype2.dll
15:13:03.207:     rtmp-services.dll
15:13:03.207:     obs-x264.dll
15:13:03.207:     obs-vst.dll
15:13:03.207:     obs-transitions.dll
15:13:03.207:     obs-text.dll
15:13:03.207:     obs-qsv11.dll
15:13:03.207:     obs-outputs.dll
15:13:03.207:     obs-filters.dll
15:13:03.207:     obs-ffmpeg.dll
15:13:03.207:     obs-browser.dll
15:13:03.207:     image-source.dll
15:13:03.207:     frontend-tools.dll
15:13:03.207:     enc-amf.dll
15:13:03.207:     coreaudio-encoder.dll
15:13:03.207: ---------------------------------
15:13:03.207: ==== Startup complete ===============================================
15:13:03.214: All scene data cleared
15:13:03.214: ------------------------------------------------
15:13:03.258: WASAPI: Device 'Haut-parleurs (Realtek High Definition Audio)' initialized
15:13:03.263: [WASAPISource::TryInitialize]:[Microphone (Sennheiser 3D G4ME1)] Failed to get initialize audio client: 80070005
15:13:03.263: [WASAPISource::WASAPISource] Device 'default' not found.  Waiting for device
15:13:03.270: Switched to scene 'Scène'
15:13:03.271: ------------------------------------------------
15:13:03.271: Loaded scenes:
15:13:03.271: - scene 'Scène':
15:13:03.271:     - source: 'Capture d'écran' (monitor_capture)
15:13:03.271: ------------------------------------------------
15:13:03.545: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
15:13:47.640: Settings changed (outputs)
15:13:47.640: ------------------------------------------------
15:14:03.357: ---------------------------------
15:14:03.357: [x264 encoder: 'simple_h264_recording'] preset: veryfast
15:14:03.357: [x264 encoder: 'simple_h264_recording'] profile: high
15:14:03.357: [x264 encoder: 'simple_h264_recording'] settings:
15:14:03.357:     rate_control: CRF
15:14:03.357:     bitrate:      0
15:14:03.357:     buffer size:  0
15:14:03.357:     crf:          23
15:14:03.357:     fps_num:      30
15:14:03.357:     fps_den:      1
15:14:03.357:     width:        1920
15:14:03.357:     height:       1080
15:14:03.357:     keyint:       250
15:14:03.357:
15:14:03.361: ---------------------------------
15:14:03.361: [FFmpeg aac encoder: 'simple_aac_recording'] bitrate: 128, channels: 2, channel_layout: 3
15:14:03.361:
15:14:03.366: ==== Recording Start ===============================================
15:14:03.366: [ffmpeg muxer: 'simple_file_output'] Writing file 'D:/EvolFox/Videos/2018-06-12 15-14-03.flv'...
15:14:04.322: [ffmpeg muxer: 'simple_file_output'] os_process_pipe_write for packet data failed
15:14:04.323: [ffmpeg muxer: 'simple_file_output'] Output of file 'D:/EvolFox/Videos/2018-06-12 15-14-03.flv' stopped
15:14:04.323: Output 'simple_file_output': stopping
15:14:04.323: Output 'simple_file_output': Total frames output: 1
15:14:04.323: Output 'simple_file_output': Total drawn frames: 29
15:14:04.323: ==== Recording Stop ================================================

Thanks

Edit: I finally identify the bug : https://obsproject.com/forum/threads/local-recording-does-not-work.86101/post-356256
 
Last edited:

Suslik V

Active Member
Do you have enough free space on your drive? Can you copy any large file into this dir (folder)?
 

Evolfox

New Member
I finally identify the bug.

There is a conflict with LSMASHSource for avisynth. To use LSMASHSource, you need to copy DLL into system32/syswow64
(https://i.imgur.com/eMQjxQq.jpg). When they are installed, OBS does not work. I need LSMASHSource to do video encoding. Can you fix this bug?
 

Suslik V

Active Member
So fast? I need to take a look at LSMASHSource, what is this first, and what you updated in your system that prevents OBS Studio to function normally.
 

Evolfox

New Member
LSMASHSource is not used in OBS. LSMASHSource is a source plugin for avisynth. For it to work properly in avisyth, you must copy the dll into system32/syswow64. But when these dll are present in system32/syswow64, OBS does not work.
 

Suslik V

Active Member
The only reason I asked for more info is because nobody likes when you point to their faults. When you posted that you needed to write some files in the system dir - it was clear that plugin was installed incorrectly. No one plugin of AviSynth require such actions. It is bad that I need to explain it in such manner but, look:

For AviSynth 2.6 (32bit)
You need to make new folder named "plugins" (if it already not exist) in AviSynth's folder, so you'll see
  • Docs
  • Examples
  • License Translations
  • plugins
  • gpl.txt
  • lgpl_for_used_libs.txt
  • Uninstall.exe

then you need to download from the plugin's download page the file named "LSMASHSource-AviSynth-plugin-r929-msvc-32bit.7z" and unpack its contents (usually, LSMASHSource.dll only required) to this new folder you have created, so you'll see
  • Docs
  • Examples
  • License Translations
  • plugins
    • LSMASHSource.dll
  • gpl.txt
  • lgpl_for_used_libs.txt
  • Uninstall.exe

Now you need to manually delete all this files you copied to the system folders of your Windows:
LSMASHSource.dll (Edit: I totally forgot about it)
swscale-4.dll
avutil-55.dll
avresample-3.dll
avformat-57.dll
avcodec-57.dll

Restart PC, and try OBS Studio again.
 
Last edited:

Evolfox

New Member
Obviously you do not know how Avisynth works. Here is a screen that proves that the files must be in system32 / syswow64. You can check it yourself with AVSMeter which will test all the plugins of Avisynth.

You can see on the screen that the DLLs in the plugins folder do not work. They must be copied to the system folder.

Ah6QCky[1].jpg
 

Suslik V

Active Member
Really? And how you found it? Isn't it the "LSMASHSource-AviSynth-plugin-r929-msvc-32bit.7z" (see above)?
 

Evolfox

New Member
No, it's custom build by hydra3333. The use of static libs remains mandatory because obs does not use its shared dll correctly? it's been a long time since I have the shared libs version and I had no problem with other software.
 

Suslik V

Active Member
Actually, I loaded this plugin in AviSynth even from the different folder via LoadPlugin("Full_path_to_the_LSMASHSource.dll") as the first string in the .avs script. And only the mentioned file is required...
 
Top