I'm using Simple x264 Launcher with Avisynth MT & MT version of QTGMC. My encodings keep failing within a couple of minutes of the encoding starting. My script is pretty simple, I'm downscaling 1080i 25fps to 720p 59.94fps. I'm using the following custom parameters in Simple x264 Launcher: --sar 1:1 which means make a progressive video at the correct aspect ratio. Here's my script:
The error message in Simple x264 Launcher says:Code:setmtmode(5,9) DGSource("X:\Video.dgi") setmtmode(2) AssumeTFF() QTGMC(Preset="Super Fast") Lanczos4Resize(1280,720) ConvertFPS(59.94)
The error message in VirutalDub says:Code:WARNING: Input process exited with error code: -1073741819.
How can I fix this so it doesn't crash? I'm using 32-bit Avisynth and plugins. I use QTGMC all the time when re-encoding 720 x 480i MPEG2 to h264 and the encodings never fail so I don't understand why they're failing for HD? I'm using the latest version of DGIndexNV to index the file which is read by Simple x264 Launcher. I use DGIndex for MPEG2s.Code:An out-of-bounds memory access (access violation) occurred in module 'AviSynth'... ...reading address 00000000.
Could it be the SetMtMode? I normally use the following on SD videos and I never get any crashes:
setmtmode(5,9)
setmtmode(2)
I also tried lowering the value on the top line to this but it still crashes:
setmtmode(5,6)
I have an 8 core Intel Core i7 2700K 4.4Ghz CPU with 8GB Ram
+ Reply to Thread
Results 1 to 28 of 28
-
Last edited by VideoFanatic; 29th Dec 2013 at 13:55.
-
Try opening your script with VirtualDub. Or a media player. You may get more info.
Are you running 64 bit windows? If so, you need to use all 64 bit components _OR_ all 32 bit components. Ie, 64 bit AviSynth, 64 bit filters, and 64 bit encoder. Or 32 bit AviSynth, 32 bit filters, and 32 bit encoder. -
..
Last edited by VideoFanatic; 29th Dec 2013 at 10:10. Reason: changed 1st post to avoid confusion
-
If you look at the process with Task Manager you'll see memory is being gobbled up. A 32 bit program can only use about 3 GB of memory before it will fail. Different programs will be using different amounts of memory and accessing frames in different ways so they will crash with different numbers of threads.
Last edited by jagabo; 29th Dec 2013 at 09:36.
-
Please see my 1st post which I've updated. Memory usage on the Performance tab of Task Manager shows 6GB memory being used. The processes tab shows less than 1GB of memory usage for avs2yuv_x86.exe. Any ideas on how I can prevent the encodings from crashing. Doesn't make sense as my standard definition encodings don't crash.
-
some suggestions:
SetMemoryMac(768)
SetMTMode(5,0)
DGSource("X:\Video.dgi")
RequestLinear(rlim=50,clim=50) # from TIVTC.dll; PreRoll migh also be a possibility, but for me RequestLinear holds better performance
SetMTMode(2)
AssumeTFF()
QTGMC(Preset="Super Fast") # personally I would use a slower preset
Lanczos4Resize(1280,720) # personally I would rather use Spline36Resize, GaussResize or BicubicResize
ConvertFPS(59.94) # Why? -
I tried all that without RequestLinear and it crashed as before. I also added RequestLinear and it still crashed but said something about a runtime error. I've just encoded a 720 x 480 2 hour video and it didn't crash so I don't understand why it's crashing when making a HD video.
I'm using ConvertFPS(59.94) because I want to make an NTSC compatible Bluray. -
-
The processes tab shows less than 1GB of memory usage for avs2yuv_x86.exe which was less than when I encoded an SD video because I lowered the SetMTMode threads used. Is there something else that's using memory or is all the memory for the plugins included in the memory count for that file?
Does anyone have any suggestions for converting 1080i 25fps to 720p 59.94fps without Avisynth or do you know of a way to get Avisynth working please? -
Some samples:
Code:ffVideoSource("filename.ext") ffVideoSource("filename.ext", fpsnum=30000, fpsden=1001) ffVideoSource("filename.ext", seekmode=0)
Code:A = FFAudioSource("filename.ext") V = FFVideoSource("filename.ext") AudioDub(V, A)
Code:ffms2("filename.ext", atrack=1)
-
I downloaded FFmpegSource 2.18 RC1 and put the following files in the Avisynth plugins directory:
ffms2.dll
ffmsindex.exe
FFMS2.avsi
However it's not working. The encoding doesn't start. I get this message:
Warning: Avisynth did not respond for 60 seconds, potential deadlock...
error: ConvertFPS: New frame rate too small. Must be greater than 66.6666 Increase or use 'zone=' -
Use standard debugging techniques. Simplify the script to just ffVideoSource. If that works, move to the next step...
-
Instead I downloaded ffms-2.17. I tried this script and AvsPmod froze and Simple x264 Launcher had the same problem as before:
Code:ffVideoSource("X:\2 = New\z = WWE Late Night Smackdown full show ac3.ts") Crop(2,0,-0,-0) AddBorders(2,0,0,0, $000000)
-
What bizarre folder and file names you're using. Where do your TS files come from? Hauppuage HD PVR? Do you realize that ffVideoSource has to build an index file -- so it can take quite a while the first time you open a file with it.
-
They come from a VU+ Duo2 Satellite box. It records satellite TV and allows you to copy and paste the unencrypted recordings to your PC.
I loaded that script I posted in the previous post and it seems to be working now in AvsPmod but it's reporting a framerate of 50 FPS. How should I get it to 59.94fps after using QTGMC? -
I tried this script:
Code:setmtmode(2,6) ffVideoSource("X:\Video.ts", fpsnum=25000, fpsden=1000) setmtmode(2) AssumeTFF() QTGMC(Preset="Super Fast") Lanczos4Resize(1280,720) ConvertFPS(59.94)
Also the encoding failed after a few minutes.
I don't think Avisynth is going to work. I also tried Yadif on it's own but that didn't work either. Is there a video converter program I could use instead to convert 1080i 25fps to 720p 59.94fps?Last edited by VideoFanatic; 29th Dec 2013 at 23:49.
-
If you only knew how many people out there are trying to reverse the type of frame-blending you're inflicting on your video... If you're in a country that uses PAL for satellite, why do you want to convert it?
-
Because I have an NTSC Bluray player as well as a PAL Bluray player. I tested how the 25fps and 59.94 fps video looked when burned to Bluray and the framerate looks identical with no problems.
-
Maybe it doesn't want you to butcher your video by purposely blending it. What happens when you use ChangeFPS(59.94) instead?
But I don't really think the problem lies with the use of Yadif or ConvertFPS (or ChangeFPS). You could turn off multithreading and I'll bet it works. It beats having all those crashes. -
Crashes of QTGMC + Avisynth MT are mainly related to:
1. a bad combination of filter version, you can try the filters I use in my avisynthExtension. (see: http://www.selur.de/downloads)
2. memory consumption problems -
Such an overreaction and wrong! I converted the 1080i 25fps video to 720p 59.94 fps. I used ConvertFPS because ChangeFPS caused an unsmooth framerate when authored to a Bluray disc and played back on my PS3.
720p 50fps (framerate doubled with QTGMC) looked identical to 59.94 fps via ConvertFPS!
You were right about turning off MT. I tried Yadif on it's own non-multi-threaded and it didn't crash and it was still fast at 76 fps. So I'm just going to use that unless someone has a better solution? For a 1 hour 38 minute video using Yadif, it took 1 hour 18 minutes to encode. QTGMC on UltraFast (uses Yadif) took at least 6 hours as did QTGMC on SuperFast!
Thanks everyone for your help. -
A true "VideoFanatic" would just play the native "PAL" 1080i50 capture on the PAL BluRay player!
If downscaling to 720p and frame blending to 59.94 doesn't create any visible difference, I dread to think what your TV is doing to the picture. Some TVs detect stuttery conversions and try to unpick and restore them, but I've not seen one that really improves blended conversions. I guess some might try.
Cheers,
David. -
You can get the latest versions ffms (currently is 2.19) here https://github.com/FFMS/ffms2/releases. FFMS greatly prefers progressive video. If you use it with interlaced video, I think you are supposed to set rffmode = 1 (honor pulldown). Although, I could be wrong about that. I do know the downside is you can't add any more extra options to ffms in combination with rffmode. I would try DGsource one more time.
You should add those some of those commands (fps) to the custom x264 parameters box. In this case you are not converting frame rate, so you should not be calling that command in the avs script. That is a waste of processing power. I think what you are might be worried about is constant frame rate. A smarter filter to use (I'm NOT telling you to use it) would be fdecimate (free decimate). Avisynth frame serving will NEVER make vfr (variable frame rate) video unless you know how to force it. Even if the input is (yours is not) vfr, avisynth will not output vfr. In this situation, it would convert the fps to whatever the average is (a non-standard funky rate).
Qtgmc does not need you to specify a parity (tff), so you don't need that in your script either. It "might" help to use a slower preset and also specify edithreads=X (4?).
If qtgmc is so slow, use a different deinterlacer. Perhaps one of the decomb filters like, telecide orFieldDeinterlace.
I am not surprised your script is crashing if you don't use setmemorymax and setting the cores above physical amount.
For compatibility you might want to add: --bluray-compat --level 4.1 --keyint 60 --open-gop --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" -
Hi, I'm not sure what you're trying to say about FFMS. What does it do that I can't already do with the below script? My source is 1080i 25 fps. I want to convert to 720p but to do so you need to double the framerate otherwhise the frame rate will look choppy. I also chose 59.94 fps so that it would work in PAL and NTSC Bluray players.
Code:DGSource("X:\WWE Late Night Smackdown full show 1 hour 38 mins.dgi") Load_Stdcall_plugin("C:\Program Files (x86)\AviSynth 2.5\plugins\yadif.dll") Yadif(mode=1, order=1) Lanczos4Resize(1280,720) ConvertFPS(59.94)
-
If you are talking to me, I did say, "I would try DGsource one more time [because you are working with an interlaced source]" That being said, reasons to use ffms are: it is slightly faster as a source filter and it gets updated much more often than DGAVCDecode.
Similar Threads
-
720p vs 1080i?
By therock003 in forum Newbie / General discussionsReplies: 15Last Post: 27th Apr 2010, 21:52 -
25fps 1080i mkv convert to 24fps 1080p or 720p mkv?
By brent1a in forum Video ConversionReplies: 6Last Post: 9th Feb 2010, 09:57 -
720p vs 1080i - which is best?
By snadge in forum DVB / IPTVReplies: 19Last Post: 31st Aug 2009, 18:19 -
Confused: 1080i vs 720p
By kouras in forum Video ConversionReplies: 15Last Post: 19th Feb 2009, 06:20 -
how to convert a 720p MPEG-2 file to 1080i?
By cal888 in forum Newbie / General discussionsReplies: 4Last Post: 18th Jan 2009, 21:33