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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 2nd February 2025, 01:09   #1661  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,596
qyot27, StvG, thank you both again for your indefatigability. I would have given up on me a long time ago. I have now successfully - if still somewhat mystifyingly - built LSMASHSource.dll.

Unfortunately while it does create a .lwi file, VirtualDub2 simply ends without an error when I try to open a file with it.

I can't build a Debug version; I can build RelWithDebInfo, but when I try to Start Debugging I get this:

https://i.imgur.com/oYtxTi5.png

even though I specified VirtualDub2 as the program to launch for debugging
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is online now   Reply With Quote
Old 2nd February 2025, 01:13   #1662  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 533
You can build a Debug version but change in VS->C/C++->Code Generation->Runtime library to MD instead MDd.

Open VirtualDub2 (without loading anything), in VS->Debug->Attach to process and choose VirtualDub2, then load the script in VD2.
StvG is offline   Reply With Quote
Old 2nd February 2025, 01:20   #1663  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,596
I had no idea you could attach like that. Useful!

That tells me:

Code:
Exception thrown at 0x00007FF94535F270 (LSMASHSource.dll) in VirtualDub64.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.
but also

Code:
Source information is missing from the debug information for this module
so I don't know where in the code the problem is happening.

I'll try again tomorrow.
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is online now   Reply With Quote
Old 2nd February 2025, 01:24   #1664  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 533
Quote:
Originally Posted by wonkey_monkey View Post
I had no idea you could attach like that. Useful!

That tells me:

Code:
Exception thrown at 0x00007FF94535F270 (LSMASHSource.dll) in VirtualDub64.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.
but also

Code:
Source information is missing from the debug information for this module
so I don't know where in the code the problem is happening.

I'll try again tomorrow.
If you build RelWithDebInfo version you probably better to disable the optimizations from O2 to Od so it will be almost the same as Debug version.
Put some break point in the lsmashworks code and see if it's hit - if it's hit with f10 go from there and see where the crash is, if it's not hit put the break point somewhere before in order to be hit.
Btw you can share a sample of the problematic video.
StvG is offline   Reply With Quote
Old 2nd February 2025, 17:32   #1665  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,596
Here, apparently, is the problem:

https://i.imgur.com/PuTNmAc.png

To clarify, the videos I'm trying to open all work fine with the distributed LSMASHSource.dll; it's just the one I've built that isn't working.
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is online now   Reply With Quote
Old 2nd February 2025, 19:44   #1666  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 533
Are you trying to open HEVC video?

Also go to "msys64\ucrt64\include\_mingw.h" - find the line "# define _CRTIMP __declspec(dllimport)" and uncomment it if its not.
StvG is offline   Reply With Quote
Old 2nd February 2025, 20:32   #1667  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 533
Here you can download L-SMASH-Works 1194 source code with included external libs ("deps_lsmash" folder). Just open "build" folder and the solution file.

Your build can crash because of the some later commits after the latest release. Also the ffmpeg version is different - the latest version, older version for 1194.

Last edited by StvG; 2nd February 2025 at 20:35.
StvG is offline   Reply With Quote
Old 3rd February 2025, 23:25   #1668  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,596
Thanks for the download - but I'm afraid I'm still too dim

I tried opening LSMASHSourceVCX.sln, added the deps_lsmash\x64-Release\include and deps_lsmash\x64-Release\lib directories but got 107 unresolved externals, all seemingly MinGW related.

I also tried just opening the main folder in VS, but CMake generation fails:

Code:
1> [CMake]   Could NOT find FFMPEG (missing: FFMPEG_INCLUDE_DIRS FFMPEG_LIBRARIES
1> [CMake]   avcodec avformat swscale swresample avutil)
Please feel free to give up - I had to remux all of my video files anyway to remove superfluous tracks to save space, which gave me the opportunity to change them from .mkv to .mp4, which works around the issue I was having with FFMpegSource in the first place, so I can use that instead for now.
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is online now   Reply With Quote
Old 4th February 2025, 01:35   #1669  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 533
You don't open the solution file from folder build - https://i.ibb.co/cXND9wFG/Untitled.png
You don't need to add the path of the external libs. They are already configured for the correct paths.

Last edited by StvG; 4th February 2025 at 01:41.
StvG is offline   Reply With Quote
Old 4th February 2025, 15:26   #1670  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,596
Like I said... dim...

It now works, thank you!
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 22:51.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.