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. |
10th November 2012, 15:26 | #1 | Link |
Registered User
Join Date: Jul 2012
Posts: 6
|
using qtgmc in ffmpeg
Is there any way to use qtgmc instead of the built-in yadif filter? My video files are mpeg2, and that should be Directshow compatible. My avs ("A.avs") looks like this:
Code:
SetMemoryMax(1600) SetMTMode(3,8) video=DirectShowSource("S:\TEST5\A.m2v") SetMTMode(2) video=video.AssumeTFF() video=video.QTGMC(Preset="Slow") video=video.SelectEven() video=video.Lanczos4Resize(1920,1080) video2=BlankClip(video,length=102) return(video+video2) Code:
ffmpeg -v verbose -y -i "S:\TEST5\A.avs" -c:v libx264 -preset slow -b:v 7550k -r:v 30000/1001 -x264opts open-gop:b-pyramid=strict:slices=4:qpmax=51:nr=250 -f rawvideo "S:\TEST5\A.264" Code:
DirectshowSource("S:\TEST5\A.m2v") |
11th November 2012, 00:55 | #3 | Link | |
Registered User
Join Date: Jul 2012
Posts: 6
|
Quote:
I changed the longer avs script to what I'm used to- using DGIndex as a frameserver: Code:
LoadPlugin("C:\Program Files (x86)\DGMPGDec\DGDecode.dll") SetMemoryMax(1600) SetMTMode(3,8) video=MPEG2Source("S:\TEST5\A.d2v") SetMTMode(2) video=video.AssumeTFF() video=video.QTGMC(Preset="Slow") video=video.SelectEven() video=video.Lanczos4Resize(1920,1080) video2=BlankClip(video,length=102) return(video+video2) EDIT: It is also giving the error "x264 [error]: malloc of size 8294400 failed" Last edited by agni451; 11th November 2012 at 02:05. |
|
11th November 2012, 02:14 | #4 | Link |
Registered User
Join Date: Dec 2002
Posts: 5,565
|
You may be running out of memory, try switching to a pipe:
avs2pipemod -y4mp script.avs | ffmpeg -f yuv4mpegpipe -i - -c:v libx264 -preset slow -b:v 7550k -r:v 30000/1001 -x264opts open-gop:b-pyramid=strict:slices=4:qpmax=51:nr=250 -f rawvideo "S:\TEST5\A.264" You can also keep using ffmpeg 64 bit this way. (Faster and can use more memory.) |
14th November 2012, 16:25 | #5 | Link |
typo lover
Join Date: May 2009
Posts: 595
|
Since only 8 MB of memory is not allocatable, it will crash even if divides process.
save number of threads from 8 to 4 or less.
__________________
my repositories |
16th November 2012, 13:31 | #7 | Link | |
Registered User
Join Date: Jul 2012
Posts: 6
|
Quote:
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|