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 18th January 2014, 17:43   #181  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
OK, I'll fix that. Thanks for reporting it.

On the libmfxsw32.dll loading, the Intel Media SDK just will not load from a direct specified path, or using the method I described above. I'll put this on the back burner and maybe ask at the Intel forum about it later.
Guest is offline   Reply With Quote
Old 18th January 2014, 17:48   #182  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
Pity. But thanks for having tried.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 18th January 2014, 17:55   #183  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Never mind, I got it working to load libmfxsw32.dll from the plugin folder.

New beta coming shortly...
Guest is offline   Reply With Quote
Old 18th January 2014, 18:09   #184  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
Great!
I will not test it today, because I go to a fiesta soon, but I will check it tomorrow...
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 18th January 2014, 18:29   #185  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Have fun at your fiesta. I wish I could join you!

Please re-download dgmvcsource.zip to get the new beta 3. It fixes jdobbs' reported problem and it loads the libmfxsw32 from the Avisynth plugin directory. It won't look elsewhere, so it has to be there.

http://neuron2.net/misc/dgmvcsource.zip
Guest is offline   Reply With Quote
Old 18th January 2014, 18:59   #186  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
I've reverse engineered the muxing required to combine streams. Here is a schematic of how the muxing is done, showing all the NALUs and where they come from.

Code:
base			combined			dependent
------------------------------------------------------------------

---------------------------------
9			9
                        				24
7			7
			15				15
8			8
			8				8
5			5
5			5
5			5
5			5
5			5
5			5
			20				20
			20				20
			20				20
			20				20
			20				20
			20				20
---------------------------------
repeat for all access units
Now I will write a stand-alone combiner to test this and then implement it in the filter.
Guest is offline   Reply With Quote
Old 18th January 2014, 20:05   #187  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
I will make the first source code release when the separate stream support is complete.
Guest is offline   Reply With Quote
Old 18th January 2014, 20:13   #188  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Hi neuron2, just tried beta 3 with the included sample and everything seems good so far.
one very small thing, the examples in readme name the included sample as "combined_mvc.264" when it should be "combined.264".
Regardless good work!


P.S. looking forward to DGDecQS! :-D
Reel.Deel is offline   Reply With Quote
Old 18th January 2014, 20:17   #189  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by Reel.Deel View Post
P.S. looking forward to DGDecQS!
You are very naughty. No dessert for you.
Guest is offline   Reply With Quote
Old 18th January 2014, 21:25   #190  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by neuron2 View Post
Do you have working code that I can put in an Avisynth filter DLL that prints the path of that DLL file?
Code:
#include "targetver.h"

#define WIN32_LEAN_AND_MEAN
#include <windows.h>

HMODULE g_instance;

BOOL APIENTRY DllMain(HMODULE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved)
{
	switch (ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH:
		g_instance = hModule;
	case DLL_THREAD_ATTACH:
	case DLL_THREAD_DETACH:
	case DLL_PROCESS_DETACH:
		break;
	}
	return TRUE;
}

/*Returns the directory where *this* DLL is located
__declspec(dllexport) int getDllDirectory(wchar_t *outBuffer, size_t len)
{
	size_t i = GetModuleFileNameW(g_instance, outBuffer, len);

	if((i < 1) || (i == ERROR_INSUFFICIENT_BUFFER))
	{
		return 0;
	}

	while(i > 0)
	{
		wchar_t c = outBuffer[i];
		outBuffer[i--] = L'\0';
		if((c == L'\\') || (c == L'/'))
		{
			return 1;
		}
	}

	return 0;
}
Quote:
Originally Posted by neuron2 View Post
If so, I can temporarily change the current directory for the IM SDK init to allow it to find the co-located libmfxsw32.dll.
I think AddDllDirectory() would be a better choice than relying on "current" directory.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 18th January 2014, 21:32   #191  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Too late, I already released a beta with my own implementation. But thank you anyway.
Guest is offline   Reply With Quote
Old 18th January 2014, 22:28   #192  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,973
I like the way it works too... all I have to do is put the two dlls in the same folder and point to dgmvcsource.dll with LoadPlugin().

Thanks.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net
jdobbs is offline   Reply With Quote
Old 19th January 2014, 00:53   #193  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
The plugin or avisynth seems to report half frame rate only i.e. 11.988fps (12000/1001) for a 23.976 MVCcombined footage.
(It gets adjusted when I set --fps 23.976 in x264 for encoding).

If at all, I think it should actually report double the framerate because a stereo combo consists of the left and right picture or frame.....

Last edited by Sharc; 19th January 2014 at 01:02.
Sharc is offline   Reply With Quote
Old 19th January 2014, 01:07   #194  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by Sharc View Post
The plugin or avisynth seems to report half frame rate only i.e. 11.988fps (12000/1001) for a 23.976 MVCcombined footage.
I'm not seeing that. Please give me your script.
Guest is offline   Reply With Quote
Old 19th January 2014, 01:14   #195  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Quote:
Originally Posted by neuron2 View Post
I'm not seeing that. Please give me your script.
Script:
Code:
Video = DGMVCsource("c:\Users\Movies\Test_Movie\3-D samples\DG_combined.264",frames=1350,view=0)
V1 = SelectEven(video)
V2 = SelectOdd(video)
return StackHorizontal(horizontalreduceby2(V1),horizontalreduceby2(V2))
Command:
Code:
x264.exe  "c:\Program Files Video\DGMVCSource_.avs" --bluray-compat --crf 20 --vbv-bufsize 15000 --vbv-maxrate 15000 --sar 1:1 --fps 23.976 --output "C:\temp\scratch\DGMVCsourceTox264.h264"
Sharc is offline   Reply With Quote
Old 19th January 2014, 01:26   #196  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
OK, I see. I will double the frame rate reported to Avisynth when delivering interleaved. Thank you for pointing it out.

Last edited by Guest; 19th January 2014 at 01:31.
Guest is offline   Reply With Quote
Old 19th January 2014, 01:36   #197  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
I think it should just be reported as 23.976fps - i.e. same as base view. What irritated me was the 11.988 fps.
Sharc is offline   Reply With Quote
Old 19th January 2014, 01:41   #198  |  Link
vivan
/人 ◕ ‿‿ ◕ 人\
 
Join Date: May 2011
Location: Russia
Posts: 643
Quote:
Originally Posted by Sharc View Post
I think it should just be reported as 23.976fps - i.e. same as base view. What irritated me was the 11.988 fps.
If it will report 23.976 fps, then SelectOdd/SelectEven will halve it and resulting fps will be 11.988. That's exactly what's happening now.
vivan is offline   Reply With Quote
Old 19th January 2014, 01:43   #199  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
I see, thanks.
Sharc is offline   Reply With Quote
Old 19th January 2014, 02:14   #200  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,973
Quote:
Originally Posted by Sharc View Post
I see, thanks.
I always add "AssumeFPS()" as the last line in the file when I know the source framerate.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net
jdobbs is offline   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 09:22.


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