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:
I also tried lowering the value on the top line to this but it still crashes:
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 14: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 11:10. Reason: changed 1st post to avoid confusion
Last edited by jagabo; 29th Dec 2013 at 10: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.
RequestLinear(rlim=50,clim=50) # from TIVTC.dll; PreRoll migh also be a possibility, but for me RequestLinear holds better performance
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?
ffVideoSource("filename.ext") ffVideoSource("filename.ext", fpsnum=30000, fpsden=1001) ffVideoSource("filename.ext", seekmode=0)
A = FFAudioSource("filename.ext") V = FFVideoSource("filename.ext") AudioDub(V, A)
I downloaded FFmpegSource 2.18 RC1 and put the following files in the Avisynth plugins directory:
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...
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?
ffVideoSource("filename.ext", fpsnum=25000, fpsden=1000)
I tried this script:
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; 30th Dec 2013 at 00: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.
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.
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.
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.
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.
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.