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 > General > Linux, Mac OS X, & Co

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th July 2011, 09:13   #1  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,368
Going from Windows To Linux, how would I...

Change this

Code:
LoadPlugin("C:\Program Files (x86)\MeGUI\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("F:\DISC_RIPS\ERGO_PROXY_ep1\ergo_ep1.d2v", info=3)
LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, interlaced=true, threads=0)
Load_Stdcall_Plugin("C:\Program Files (x86)\MeGUI\tools\yadif\yadif.dll")
SetMTMode(5)
Yadif(order=1)
crop( 4, 2, 0, 0)
Spline36Resize(720,400) # Spline36 (Neutral)
GradFun2DBmod()
toon()
MSharpen()
#denoise
Into something that I could do on Linux, I am planing on upgrading my system to a Core i7 near to Xmas/New Year when they have the sales and will use the Q6600 I have now as a server come encode box, so thought I would get a head start now
__________________
The Internet: where men are men, women are men, and children are FBI Agents
Carpo is offline   Reply With Quote
Old 15th July 2011, 10:24   #2  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
I'd use AviSynth through avs2yuv on Wine, so nothing would need to be changed in the filtering side.
nm is offline   Reply With Quote
Old 15th July 2011, 10:26   #3  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,368
is avisynth stable on wine? does dgindex dedecode work under wine?
__________________
The Internet: where men are men, women are men, and children are FBI Agents
Carpo is offline   Reply With Quote
Old 15th July 2011, 10:30   #4  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by Carpo View Post
is avisynth stable on wine?
Yes, perfectly stable.

Quote:
does dgindex dedecode work under wine?
I have only used DGAVCDec a few times and it worked fine. If there are problems with DGMPGDec, FFMS2 should work well enough.
nm is offline   Reply With Quote
Old 15th July 2011, 10:31   #5  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,368
suppose its time i compile wine and gave it a test, what would be the commandline i would have to use? could i use the linux version of x264 or would it have to use the windows version?
__________________
The Internet: where men are men, women are men, and children are FBI Agents
Carpo is offline   Reply With Quote
Old 15th July 2011, 10:49   #6  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by Carpo View Post
suppose its time i compile wine and gave it a test, what would be the commandline i would have to use? could i use the linux version of x264 or would it have to use the windows version?
With avs2yuv, you can pipe AviSynth output to any native Linux program that can read video from standard input or a named pipe. Simply put avs2yuv.exe together with AviSynth dlls and plugins to a directory and run it like this:

Code:
wine /path/to/avs2yuv.exe input.avs -o - | x264 --crf 20 --preset slower --tune film -o output.mkv --demuxer y4m -
Use a shell script to make calling easier.


Running a Windows build of x264 with AVS support on Wine should also work, but I haven't tried that myself.
nm is offline   Reply With Quote
Old 15th July 2011, 10:50   #7  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,368
sweet, will have to try it all out in a bit
__________________
The Internet: where men are men, women are men, and children are FBI Agents
Carpo is offline   Reply With Quote
Old 15th July 2011, 12:10   #8  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,368
what is the --demuxer y4m - bit for?
__________________
The Internet: where men are men, women are men, and children are FBI Agents
Carpo is offline   Reply With Quote
Old 15th July 2011, 12:25   #9  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by Carpo View Post
what is the --demuxer y4m - bit for?
Avs2yuv outputs yuv4mpeg by default. This raw format includes a header for frame size and frame rate, so they don't need to be specified on the x264 command line. --demuxer y4m tells x264 that the input is yuv4mpeg. The - part at the end means standard input (piped from avs2yuv -o -).

Last edited by nm; 15th July 2011 at 12:28.
nm is offline   Reply With Quote
Old 15th July 2011, 12:28   #10  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,368
Okay, thanks for the info - will report back any failures or success
__________________
The Internet: where men are men, women are men, and children are FBI Agents
Carpo is offline   Reply With Quote
Old 15th July 2011, 17:11   #11  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,368
ok last Q, have most running now, usually I would use MeGUI to make the avs but seeing as MeGUI doesn't work under Linux (not that i have go it working) how would i now what way to de-interlace some of the content I have.

Also how do i get around the fact its telling me it cant load avisynth.dll even though its there, do i need to add that to the .avs file?
__________________
The Internet: where men are men, women are men, and children are FBI Agents

Last edited by Carpo; 15th July 2011 at 17:36.
Carpo is offline   Reply With Quote
Old 15th July 2011, 20:11   #12  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by Carpo View Post
ok last Q, have most running now, usually I would use MeGUI to make the avs but seeing as MeGUI doesn't work under Linux (not that i have go it working) how would i now what way to de-interlace some of the content I have.
Learn to recognize the content type yourself. For example mplayer -vf il=d separates fields so that you can see what is going on. Key . (dot) advances the video one frame at a time.

Quote:
Originally Posted by Carpo View Post
Also how do i get around the fact its telling me it cant load avisynth.dll even though its there, do i need to add that to the .avs file?
Avisynth.dll doesn't need to be loaded in the script. Have you also placed devil.dll to the same directory?
nm is offline   Reply With Quote
Old 15th July 2011, 22:39   #13  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,368
devil.dll ? have not seen that dll
__________________
The Internet: where men are men, women are men, and children are FBI Agents
Carpo is offline   Reply With Quote
Old 16th July 2011, 01:02   #14  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by Carpo View Post
devil.dll ? have not seen that dll
"DevIL.dll" comes with AviSynth and gets installed to system32. If you install AviSynth with Wine, both avisynth.dll and devil.dll are put to .wine/drive_c/windows/system32 and they work from there. Alternatively you can copy them from an existing installation to the directory where avs2yuv.exe resides.

If you still have problems, post the full console output that you get from running avs2yuv.exe, and a file listing from its directory (preferably with ls -l).
nm is offline   Reply With Quote
Old 16th July 2011, 07:32   #15  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,368
Thanks, wont be today as i have a wedding to go to, and well tomorrow may be a recovery day
__________________
The Internet: where men are men, women are men, and children are FBI Agents
Carpo is offline   Reply With Quote
Old 16th July 2011, 12:12   #16  |  Link
RazrFalcon
Registered User
 
Join Date: Jun 2011
Location: Ukraine
Posts: 26
Hi, trying to use it, but get this error:
Code:
$ wine '/home/razrfalcon/.wine/drive_c/Program Files/avs2yuv/avs2yuv.exe' '/home/razrfalcon/.wine/drive_c/Program Files/AviSynth 2.5/Examples/Autors.avs' -o - | x264 --crf 20 --preset slower --tune film -o output.mkv --demuxer y4m -
failed to load avisynth.dll
x264 [error]: could not open input file `-'
Avisynth.dll and devil.dll in ~/.wine/drive_c/windows/system32/

What is wrong? Thanks.
RazrFalcon is offline   Reply With Quote
Old 16th July 2011, 12:17   #17  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by RazrFalcon View Post
Hi, trying to use it, but get this error:
Code:
$ wine '/home/razrfalcon/.wine/drive_c/Program Files/avs2yuv/avs2yuv.exe' '/home/razrfalcon/.wine/drive_c/Program Files/AviSynth 2.5/Examples/Autors.avs' -o - | x264 --crf 20 --preset slower --tune film -o output.mkv --demuxer y4m -
failed to load avisynth.dll
x264 [error]: could not open input file `-'
Avisynth.dll and devil.dll in ~/.wine/drive_c/windows/system32/
Hmm. That should work. Try copying them to the same directory with avs2yuv. Which AviSynth version do they come from?
nm is offline   Reply With Quote
Old 16th July 2011, 13:47   #18  |  Link
RazrFalcon
Registered User
 
Join Date: Jun 2011
Location: Ukraine
Posts: 26
Quote:
Try copying them to the same directory with avs2yuv.
Didn't work. Still get this error.

v.2.5.8 ST, 32-bit at SourceForge

PS: ArchLinux x32
RazrFalcon is offline   Reply With Quote
Old 16th July 2011, 15:06   #19  |  Link
RazrFalcon
Registered User
 
Join Date: Jun 2011
Location: Ukraine
Posts: 26
Fixed. I just install vcrun6 via winetricks. And move avs2yuv.exe to system32 directory.

Example:
Code:
$ wine avs2yuv.exe "/media/data/Authors.avs" -o - | x264 --crf 20 --preset slower --tune film -o output.mkv --demuxer y4m -
/media/data/Authors.avs: 448x448, 25 fps, 2562 frames
converting YUY2 -> YV12
y4m [info]: 448x448p 0:0 @ 25/1 fps (cfr)
x264 [info]: using cpu capabilities: MMX2 SSE2Slow SlowCTZ
x264 [info]: profile High, level 2.2
x264 [info]: frame I:15    Avg QP:14.52  size:  7872                           
x264 [info]: frame P:824   Avg QP:21.22  size:  1628
x264 [info]: frame B:1723  Avg QP:24.42  size:    87
x264 [info]: consecutive B-frames:  2.8%  5.8% 50.0% 41.4%
x264 [info]: mb I  I16..4: 91.9%  0.3%  7.8%
x264 [info]: mb P  I16..4:  4.8%  0.1%  0.1%  P16..4: 11.3%  2.7%  2.0%  0.0%  0.0%    skip:78.9%
x264 [info]: mb B  I16..4:  0.2%  0.0%  0.0%  B16..8:  4.9%  0.3%  0.0%  direct: 1.8%  skip:92.7%  L0:26.3% L1:39.8% BI:33.9%
x264 [info]: 8x8 transform intra:1.9% inter:48.8%
x264 [info]: direct mvs  spatial:26.8% temporal:73.2%
x264 [info]: coded y,uvDC,uvAC intra: 2.9% 17.2% 9.8% inter: 2.3% 6.5% 3.4%
x264 [info]: i16 v,h,dc,p: 94%  5%  1%  0%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  2%  4% 88%  0%  2%  1%  0%  1%  2%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 26% 26%  3%  6%  5%  6%  4% 10%
x264 [info]: i8c dc,h,v,p:  6%  4%  3% 86%
x264 [info]: Weighted P-Frames: Y:95.9% UV:2.1%
x264 [info]: ref P L0: 68.6% 13.8% 11.3%  4.6%  0.5%  0.5%  0.3%  0.1%  0.2%  0.2%
x264 [info]: ref B L0: 79.1% 18.4%  2.0%  0.3%  0.1%  0.0%  0.0%
x264 [info]: ref B L1: 62.2% 37.8%
x264 [info]: kb/s:125.65

encoded 2562 frames, 27.49 fps, 125.70 kb/s



Big thanks nm
RazrFalcon is offline   Reply With Quote
Old 16th July 2011, 15:11   #20  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Ok, I just tried it on a clean Wine installation and looks like AviSynth also needs Microsoft Visual C++ 6 libraries (mfc42.dll, msvcp60.dll and msvcrt.dll). Wine does print out an error on this though, but maybe you have error messages disabled?

Anyway, easiest way to install those libraries is by winetricks:

Code:
winetricks vcrun6sp6

Last edited by nm; 16th July 2011 at 15:12. Reason: Meh, too slow :)
nm 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 07:34.


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