View Full Version : DSS2 script issues
wcwman18
10th August 2012, 17:06
DSS2 now causes my x264 to hang at only 2 seconds left of the encode. I have cleaned my plugins folder and reinstalled. Here is my current script.
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\avss.dll")
LoadPlugin("C:\Users\Owner\Desktop\pack\DG\DGAVCDecode.dll")
Load_STDCall_Plugin("C:\Program Files (x86)\AviSynth 2.5\plugins\yadif.dll")
DSS2("tonight.ts")
ConvertToYV12()
Yadif(0,1)
Lanczos4Resize(1280,720,6,6,-6,-6)
Would this be the proper script to try FFMS2?
LoadPlugin("C:\Users\Owner\Desktop\pack\DG\DGAVCDecode.dll")
Load_STDCall_Plugin("C:\Program Files (x86)\AviSynth 2.5\plugins\yadif.dll")
Import("C:\Program Files\AviSynth 2.5\plugins\FFMS2.avsi")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\ffms2.dll")
A = FFAudioSource(tonight_new.ts)
V = FFVideoSource(tonight_new.ts)
AudioDub(V, A)
ConvertToYV12()
Yadif(0,1)
Lanczos4Resize(704,400,6,6,-6,-6)
If my files are full HD .TS files what might be the best script to use, this?
LoadPlugin("C:\Users\Owner\Desktop\pack\DG\DGAVCDecode.dll")
Load_STDCall_Plugin("C:\Program Files (x86)\AviSynth 2.5\plugins\yadif.dll")
AVCSource("tonight.dga")
ConvertToYV12()
Yadif(0,1)
Lanczos4Resize(704,400,6,6,-6,-6)
Blue_MiSfit
11th August 2012, 09:09
Yeah, I've had issues like this with DSS2 as well. I don't use it anymore.
I'd suggest not using DGAVCDecode either, as it doesn't support common broadcast features like MBAFF, and is built on very old libavcodec. The tool's author neuron2 has withdrawn it and actively discourages others from using it....
Unfortunately, transport streams are tough to do properly. You may have good luck with ffms2, but maybe not. If you can buy DGDecNV, it's quite competent and comes highly reccomended. If not, I'd suggest remuxing them to mkv, and then using directshowsource or ffms2.
Derek
Atak_Snajpera
11th August 2012, 11:01
just use plain DirectShowSource()
Guest
11th August 2012, 12:47
I'd suggest not using DGAVCDecode either, as it doesn't support common broadcast features like MBAFF No, it's PAFF that it has problems with.
wcwman18
11th August 2012, 13:49
Yeah, I've had issues like this with DSS2 as well. I don't use it anymore.
I'd suggest not using DGAVCDecode either, as it doesn't support common broadcast features like MBAFF, and is built on very old libavcodec. The tool's author neuron2 has withdrawn it and actively discourages others from using it....
Unfortunately, transport streams are tough to do properly. You may have good luck with ffms2, but maybe not. If you can buy DGDecNV, it's quite competent and comes highly reccomended. If not, I'd suggest remuxing them to mkv, and then using directshowsource or ffms2.
Derek
Would this be the proper script to try FFMS2?
LoadPlugin("C:\Users\Owner\Desktop\pack\DG\DGAVCDecode.dll")
Load_STDCall_Plugin("C:\Program Files (x86)\AviSynth 2.5\plugins\yadif.dll")
Import("C:\Program Files\AviSynth 2.5\plugins\FFMS2.avsi")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\ffms2.dll")
A = FFAudioSource(tonight_new.ts)
V = FFVideoSource(tonight_new.ts)
AudioDub(V, A)
ConvertToYV12()
Yadif(0,1)
Lanczos4Resize(704,400,6,6,-6,-6)
Doesn't seem to work so must be missing something.
wcwman18
11th August 2012, 19:19
You'd better use ffmpeg/libav remux ts to mkv first, and then use ffms2 on that mkv.
Can you give me an example script?
Blue_MiSfit
11th August 2012, 20:02
No, it's PAFF that it has problems with.
My mistake! Duly noted.
wcwman18
11th August 2012, 22:58
Can some one give me a example script to try ffms2?
Groucho2004
11th August 2012, 23:40
In your previous thread where people tried to explain to you how to use FFMS2 - after 66 posts - you still could not make it work. I suggested that you acquire at least some basic knowledge about Avisynth (I posted a link, by the way) but I guess reading manuals is just uncool nowadays.
Enough rambling - my point is that you will not make it work no matter how many people explain it to you over and over again - you're flying blind.
Lastly, how does your statement "Doesn't seem to work" help track down your problem?
wcwman18
11th August 2012, 23:47
In your previous thread where people tried to explain to you how to use FFMS2 - after 66 posts - you still could not make it work. I suggested that you acquire at least some basic knowledge about Avisynth (I posted a link, by the way) but I guess reading manuals is just uncool nowadays.
Enough rambling - my point is that you will not make it work no matter how many people explain it to you over and over again - you're flying blind.
Lastly, how does your statement "Doesn't seem to work" help track down your problem?
This is what I mean by does not seem to work
avs [error]: Import: couldn't open "C:\Program Files\AviSynth 2.5\plugins\FFMS2.
avsi"
(sd_x264.avs, line 1)
Groucho2004
11th August 2012, 23:50
What if you use this simple script:
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\ffms2.dll")
FFVideoSource(tonight_new.ts)
wcwman18
12th August 2012, 00:08
What if you use this simple script:
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\ffms2.dll")
FFVideoSource(tonight_new.ts)
avs [error]: I don't know what "sd1" means
(sd_x264.avs, line 3)
x264 [error]: could not open input file `sd_x264.avs'
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\ffms2.dll")
Load_STDCall_Plugin("C:\Program Files (x86)\AviSynth 2.5\plugins\yadif.dll")
FFVideoSource(sd1.ts)
ConvertToYV12()
Yadif(0,1)
Lanczos4Resize(704,400,6,6,-6,-6)
Groucho2004
12th August 2012, 00:10
Just run the script. Use AVSMeter.
wcwman18
12th August 2012, 00:23
Just run the script. Use AVSMeter.
I use this
Load_Stdcall_Plugin("C:\Program Files (x86)\AviSynth 2.5\plugins\yadif.dll")
a = FFAudioSource("sd1.ts")
v = FFVideoSource("sd1.ts")
AudioDub(v,a)
ConvertToYV12()
Yadif(0,1)
Lanczos4Resize(704,400,6,6,-6,-6) It causes x264 to crash
Groucho2004
12th August 2012, 00:29
Any attempt to help you appears to be pointless.
wcwman18
12th August 2012, 00:57
Any attempt to help you appears to be pointless.
Did I not do what you asked?
AVSMeter v 1.21
Avisynth 2.60 build may 25th 2011
Guest
12th August 2012, 00:59
Any attempt to help you appears to be pointless. Um, you left off required quotes here:
http://forum.doom9.org/showthread.php?p=1586674#post1586674
wcwman18
12th August 2012, 01:06
Um, you left off required quotes here:
http://forum.doom9.org/showthread.php?p=1586674#post1586674
Does thos look right?
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\ffms2.dll")
Load_STDCall_Plugin("C:\Program Files (x86)\AviSynth 2.5\plugins\yadif.dll")
FFVideoSource("sd1.ts")
ConvertToYV12()
Yadif(0,1)
Lanczos4Resize(704,400,6,6,-6,-6)
It seems to want to encode however right before starting it crashes x264
Guest
12th August 2012, 01:06
Try this:
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\ffms2.dll")
FFVideoSource("sd1.ts")
Open that script in VirtualDub. Report what happens.
Groucho2004
12th August 2012, 01:06
Um, you left off required quotes here:
http://forum.doom9.org/showthread.php?p=1586674#post1586674
Yeah, that happens when you just copy and paste. I still don't think it would make any difference in the grand scheme of things.
Guest
12th August 2012, 01:07
I'll have a go at it. Stand down for a while.
Groucho2004
12th August 2012, 01:10
I'll have a go at it. Stand down for a while.
Yes Sir, neuron2, Sir!
Guest
12th August 2012, 01:11
Just trying to calm the waters a little, no need to get sarcastic.
wcwman18
12th August 2012, 01:13
Try this:
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\ffms2.dll")
FFVideoSource("sd1.ts")
Open that script in VirtualDub. Report what happens.
I open in vdub and side 1 is grey and side 2 the video looks scrambled.
Groucho2004
12th August 2012, 01:13
Just trying to calm the waters a little, no need to get sarcastic.
Calm down, it was a joke.
Guest
12th August 2012, 01:21
I open in vdub and side 1 is grey and side 2 the video looks scrambled. OK, that is not good. Can you upload the source file sd1.ts to mediafire.com and post the link here? If it is too big, open it in DGSplit and cut the first 50MBytes. Upload that.
Also, explain what you mean by "scrambled". We cannot read minds here. A screenshot will be useful.
Uploading the stream will allow us to help you very quickly.
Guest
12th August 2012, 01:25
Calm down, it was a joke. It's cool, I am quite calm. :cool:
wcwman18
12th August 2012, 01:28
OK, that is not good. Can you upload the source file sd1.ts to mediafire.com and post the link here? If it is too big, open it in DGSplit and cut the first 50MBytes. Upload that.
Also, explain what you mean by "scrambled". We cannot read minds here. A screenshot will be ideal.
Uploading the stream will allow us to help you very quickly.
http://i48.tinypic.com/9u41td.jpg
Guest
12th August 2012, 01:32
That's not what any reasonable person would call "scrambled"!
Please upload the stream as I requested. There is no way to help you without it.
wcwman18
12th August 2012, 01:59
That's not what any reasonable person would call "scrambled"!
Please upload the stream as I requested. There is no way to help you without it.
raring the files and going to upload
wcwman18
12th August 2012, 03:44
http://www.sendspace.com/file/rrp606
Thanks in advance
Groucho2004
12th August 2012, 10:05
http://www.sendspace.com/file/rrp606
That clip works perfectly fine with this script (also without "threads = 1"):
LoadPlugin("ffms2.dll")
FFVideoSource("test_0.ts", threads = 1)
or this:
LoadPlugin("ffms2.dll")
v = FFVideoSource("test_0.ts")
a = FFAudioSource("test_0.ts")
return AudioDub(v, a)
I used the latest Beta of FFMS2.DLL (http://code.google.com/p/ffmpegsource/downloads/detail?name=ffms2-r683.7z&can=2&q=).
If you still have trouble, you should try a MKV container as already suggested (de-multiplex with eac3to, multiplex with mkvmerge).
wcwman18
12th August 2012, 10:38
That clip works perfectly fine with this script (also without "threads = 1"):
LoadPlugin("ffms2.dll")
FFVideoSource("test_0.ts", threads = 1)
or this:
LoadPlugin("ffms2.dll")
v = FFVideoSource("test_0.ts")
a = FFAudioSource("test_0.ts")
return AudioDub(v, a)
I used the latest Beta of FFMS2.DLL (http://code.google.com/p/ffmpegsource/downloads/detail?name=ffms2-r683.7z&can=2&q=).
If you still have trouble, you should try a MKV container as already suggested (de-multiplex with eac3to, multiplex with mkvmerge).
Thank you. I will try the above and report back
wcwman18
12th August 2012, 12:12
That clip works perfectly fine with this script (also without "threads = 1"):
LoadPlugin("ffms2.dll")
FFVideoSource("test_0.ts", threads = 1)
or this:
LoadPlugin("ffms2.dll")
v = FFVideoSource("test_0.ts")
a = FFAudioSource("test_0.ts")
return AudioDub(v, a)
I used the latest Beta of FFMS2.DLL (http://code.google.com/p/ffmpegsource/downloads/detail?name=ffms2-r683.7z&can=2&q=).
If you still have trouble, you should try a MKV container as already suggested (de-multiplex with eac3to, multiplex with mkvmerge).
Any idea why I get this error?
x264 [info]: profile High, level 3.1
avs [error]: FFVideoSource: Insanity detected: decoder returned an empty frame o
ccurred while reading frame 49
x264 [info]: frame I:1 Avg QP:10.00 size: 18731
x264 [info]: frame P:48 Avg QP:21.75 size: 93
x264 [info]: consecutive B-frames: 100.0% 0.0% 0.0% 0.0%
x264 [info]: mb I I16..4: 91.4% 8.2% 0.4%
x264 [info]: mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.1% 0.0% 0.0% 0.0% 0
.0% skip:99.9%
x264 [info]: 8x8 transform intra:8.2% inter:12.0%
x264 [info]: coded y,uvDC,uvAC intra: 42.4% 0.4% 0.2% inter: 0.0% 0.0% 0.0%
x264 [info]: i16 v,h,dc,p: 71% 21% 7% 1%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 18% 62% 0% 0% 0% 0% 0% 0%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 52% 21% 0% 0% 0% 0% 0% 0%
x264 [info]: Weighted P-Frames: Y:0.0%
x264 [info]: kb/s:226.97
encoded 49 frames, 16.65 fps, 233.84 kb/s
LoRd_MuldeR
12th August 2012, 12:51
FFVideoSource: Insanity detected: decoder returned an empty frame occurred while reading frame 49
Obviously FFMS2 has encountered an internal error, probably related to parsing the TS stream.
As others have suggested before, you may want to extract the "raw" streams from the TS container (e.g. using tsMuxeR (http://www.videohelp.com/tools/tsMuxeR)) and then mux them into an MKV container using MKVToolnix (http://www.videohelp.com/tools/MKVtoolnix).
BTW: If you want the actual problem in FFMS2 fixed, you should provide a "minimal" sample (TS file plus script) to reproduce the problem in the FFMS2 thread...
wcwman18
12th August 2012, 13:47
Obviously FFMS2 has encountered an internal error, probably related to parsing the TS stream.
As others have suggested before, you may want to extract the "raw" streams from the TS container (e.g. using tsMuxeR (http://www.videohelp.com/tools/tsMuxeR)) and then mux them into an MKV container using MKVToolnix (http://www.videohelp.com/tools/MKVtoolnix).
BTW: If you want the actual problem in FFMS2 fixed, you should provide a "minimal" sample (TS file plus script) to reproduce the problem in the FFMS2 thread...
I would demux with tsmuxer?
LoRd_MuldeR
12th August 2012, 13:56
I would demux with tsmuxer?
Yes. Make sure you select the "Demux" option under "Output".
wcwman18
12th August 2012, 14:04
Yes. Make sure you select the "Demux" option under "Output".
Ok, gonna test that now with a mkv file made
C:\_capture\ufcppv>x264.exe --threads 12 --crf 14 --vbv-bufsize 4650 --vbv-maxra
te 4700 --direct auto --level 3.1 --ref 5 --subme 9 --weightp 2 --b-adapt 2 --b-
pyramid strict --me umh --keyint 300 --min-keyint 30 --aud --output ppv-720p.avs
.video.mkv ppv-720p.avs
avs [info]: 1920x1080p 0:0 @ 60001/1001 fps (cfr)
x264 [warning]: frame MB size (120x68) > level limit (3600)
x264 [warning]: DPB size (5 frames, 15667200 bytes) > level limit (2 frames, 691
2000 bytes)
x264 [warning]: MB rate (489119) > level limit (108000)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
x264 [info]: profile High, level 3.1
avs [error]: FFVideoSource: Insanity detected: decoder returned an empty frame o
ccurred while reading frame 2
avs [error]: FFVideoSource: Insanity detected: decoder returned an empty frame o
ccurred while reading frame 3
x264 [info]: frame I:1 Avg QP:15.48 size: 23593
x264 [info]: frame P:1 Avg QP:17.40 size: 409
x264 [info]: consecutive B-frames: 100.0% 0.0% 0.0% 0.0%
x264 [info]: mb I I16..4: 87.2% 4.1% 8.7%
x264 [info]: mb P I16..4: 2.3% 0.0% 0.0% P16..4: 1.6% 0.0% 0.0% 0.0% 0
.0% skip:96.1%
x264 [info]: 8x8 transform intra:4.1% inter:66.7%
x264 [info]: coded y,uvDC,uvAC intra: 15.5% 2.5% 1.3% inter: 0.0% 0.1% 0.0%
x264 [info]: i16 v,h,dc,p: 89% 6% 4% 1%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 22% 31% 4% 2% 3% 2% 3% 4%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 55% 28% 12% 1% 1% 1% 1% 1% 1%
x264 [info]: Weighted P-Frames: Y:0.0%
x264 [info]: kb/s:5754.82
encoded 2 frames, 9.05 fps, 5923.14 kb/s
Still got an error. Will post my script and upload a sample.
Load_STDCall_Plugin("C:\Program Files (x86)\AviSynth 2.5\plugins\yadif.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\ffms2.dll")
v = FFVideoSource("ppv.mkv")
a = FFAudioSource("ppv.mkv")
return AudioDub(v, a)
ConvertToYV12()
Yadif(0,1)
Lanczos4Resize(1280,720,6,6,-6,-6)
Sample
http://www.sendspace.com/file/s6niti
LoRd_MuldeR
12th August 2012, 17:52
Something seems to be wrong with that snippet. It crashed both, tsRemuxeR and TsRemux.
FFMS2 fails for me on that file with an "Short read while reading frame" error - whatever that is supposed to mean. Maybe the number of bytes read was shorter than expected/required?
Anyway, DGIndexNV/DGDecodeNV was able to properly decode 1260 frames from the file...
[UPDATE]
With DirectShowSource() using Haali Media Splitter plus CoreAVC 1.9.5 the number frames was detect MUCH higher (like 600000!), but decoding locked up at 1255. An issue with Haali?
wcwman18
12th August 2012, 18:07
Something seems to be wrong with that snippet. It crashed both, tsRemuxeR and TsRemux.
FFMS2 fails for me on that file with an "Short read while reading frame" error - whatever that is supposed to mean. Maybe the number of bytes read was shorter than expected/required?
Anyway, DGIndexNV/DGDecodeNV was able to properly decode 1260 frames from the file...
[UPDATE]
With DirectShowSource() using Haali Media Splitter plus CoreAVC 1.9.5 the number frames was detect MUCH higher (like 600000!), but decoding locked up at 1255. An issue with Haali?
So, what might be my best way to encode here? Directshowsource works but only get about 15fps encoding with that. Would MPEG source work maybe?
Groucho2004
12th August 2012, 18:21
Directshowsource works but only get about 15fps encoding with that.
OK, but what decoding speed do you get? We've been through this and it seems we're running in circles...
wcwman18
12th August 2012, 18:27
OK, but what decoding speed do you get? We've been through this and it seems we're running in circles...
ffdshow and Haali decode down in my system tray but does not give me a decoding speed
min 14.68 max 16.95 avg 15.73
LoRd_MuldeR
12th August 2012, 18:36
To benchmark DirectSHow decoders, use timeCodec by Haali:
http://haali.su/mkv/timeCodec.exe
To benchmark your complete AVS script, and after all that is what matters, you can use AvsMeter. It has been mentioned several times in your threads...
wcwman18
12th August 2012, 18:39
To benchmark DirectSHow decoders, use timeCodec by Haali:
http://haali.su/mkv/timeCodec.exe
To benchmark your complete AVS script, and after all that is what matters, you can use AvsMeter. It has been mentioned several times in your threads...
min 14.68 max 16.95 avg 15.73
Update with time codec
Error cannot connect decoder to renderer their is no common media type between these pins.
wcwman18
12th August 2012, 21:15
Something seems to be wrong with that snippet. It crashed both, tsRemuxeR and TsRemux.
FFMS2 fails for me on that file with an "Short read while reading frame" error - whatever that is supposed to mean. Maybe the number of bytes read was shorter than expected/required?
Anyway, DGIndexNV/DGDecodeNV was able to properly decode 1260 frames from the file...
[UPDATE]
With DirectShowSource() using Haali Media Splitter plus CoreAVC 1.9.5 the number frames was detect MUCH higher (like 600000!), but decoding locked up at 1255. An issue with Haali?
Might a M2TS recording work better?
Groucho2004
12th August 2012, 22:12
Take a step back for now and use this exact script with your mkv file (adjust paths if necessary):
LoadPlugin("ffms2.dll")
FFVideoSource("ppv.mkv", threads = 1)
I'm rather sure that FFMS2 can handle your stream (it worked for me). Forget the audio for now and make sure you are using the correct FFMS2.DLL.
Load the script in VirtualDub and step through it.
Guest
12th August 2012, 22:20
@wcwman18
Did you cut an MKV file with DGSplit? You cannot do that. You can do that only for stream files without global headers.
Groucho2004
12th August 2012, 22:44
ffdshow and Haali decode down in my system tray but does not give me a decoding speed
min 14.68 max 16.95 avg 15.73
For reference:
Using your first sample on my ancient Core 2 Duo laptop (2.5 GHz):
loadplugin("f:\test\ffms2.dll")
ffvideosource("source\test.ts", threads = 1)
//75 fps
loadplugin("f:\test\ffms2.dll")
loadcplugin("f:\test\yadif.dll")
ffvideosource("source\test.ts", threads = 1)
ConvertToYV12()
Yadif(0,1)
//40 fps
wcwman18
12th August 2012, 23:13
Take a step back for now and use this exact script with your mkv file (adjust paths if necessary):
LoadPlugin("ffms2.dll")
FFVideoSource("ppv.mkv", threads = 1)
I'm rather sure that FFMS2 can handle your stream (it worked for me). Forget the audio for now and make sure you are using the correct FFMS2.DLL.
Load the script in VirtualDub and step through it.
How can I make sure I have the right DLL?
Groucho2004
12th August 2012, 23:43
How can I make sure I have the right DLL?
I posted the link earlier (https://forum.doom9.org/showthread.php?p=1586724#post1586724).
wcwman18
13th August 2012, 00:19
For reference:
Using your first sample on my ancient Core 2 Duo laptop (2.5 GHz):
loadplugin("f:\test\ffms2.dll")
ffvideosource("source\test.ts", threads = 1)
//75 fps
loadplugin("f:\test\ffms2.dll")
loadcplugin("f:\test\yadif.dll")
ffvideosource("source\test.ts", threads = 1)
ConvertToYV12()
Yadif(0,1)
//40 fps
Using the above script when the encode starts should something be happening in the background? my hard drive is going but encode has yet to start.
Groucho2004
13th August 2012, 00:41
Using the above script when the encode starts should something be happening in the background? my hard drive is going but encode has yet to start.
I don't understand why you keep talking about encoding when you haven't yet been able to get your frame server up and running.
poisondeathray
13th August 2012, 00:59
Maybe he's talking about the ffms2 indexing?
There might be a bit of a wait the 1st time you open the script as the index is generated
wcwman18
13th August 2012, 01:20
I don't understand why you keep talking about encoding when you haven't yet been able to get your frame server up and running.
http://i49.tinypic.com/i4rd6d.png
loadplugin("C:\Program Files (x86)\AviSynth 2.5\plugins\ffms2.dll")
loadcplugin("C:\Program Files (x86)\AviSynth 2.5\plugins\yadif.dll")
ffvideosource("ppv.ts", threads = 1)
ConvertToYV12()
Yadif(0,1)
Lanczos4Resize(1280,720,6,6,-6,-6)
Groucho2004
13th August 2012, 01:31
I wish you would read my posts. I asked you to use the video stream multiplexed to mkv.
Does this crash as well?
poisondeathray
13th August 2012, 01:31
Just use directshowsource, since it works for you ok and it seems like your last resort (unless you have a compatible nvidia card and decide to go the DGNVTools route)
Groucho2004
13th August 2012, 01:34
Just use directshowsource, since it works for you ok and it seems like your last resort (unless you have a compatible nvidia card and decide to go the DGNVTools route)
It works for him (apparently) but it's ridiculously slow for some reason.
poisondeathray
13th August 2012, 01:39
heh - I'd argue slow is better than nothing :)
(15fps is not the end of the world IMO)
wcwman18
13th August 2012, 05:15
For reference:
Using your first sample on my ancient Core 2 Duo laptop (2.5 GHz):
loadplugin("f:\test\ffms2.dll")
ffvideosource("source\test.ts", threads = 1)
//75 fps
loadplugin("f:\test\ffms2.dll")
loadcplugin("f:\test\yadif.dll")
ffvideosource("source\test.ts", threads = 1)
ConvertToYV12()
Yadif(0,1)
//40 fps
I get no where the speed you do no matter what I try.
About 16fps
minaust
13th August 2012, 10:14
I get no where the speed you do no matter what I try.
About 16fps
Given your source material, your filtering, and your system, what you're getting is what you're going to get. My system is very similar to yours, and the following script:
LoadPlugin ("C:\Program Files\AviSynth 2.5\plugins\C\ffms2.Dll")
ffvideosource("C:\Newdl\test2_0\test2_0.mkv", threads = 1)
Gives me about 40 fps. When I add your filtering, my frame rate drops down close to yours. On a high-end gaming system, your script encoded at just under 150 fps. However that system's CPU alone probably cost more than your (and my) entire system.
Bottom line? Live with what you've got, or spend more money on a faster system. A Ferrari is faster than a VW Beetle.
One last thought - your source appears to be 60 fps. Do you need 60 fps? Halving the frame rate won't raise your encoding frame rate, but it will halve your encoding time - half as many frames to encode. Just a thought.
wcwman18
13th August 2012, 15:21
Given your source material, your filtering, and your system, what you're getting is what you're going to get. My system is very similar to yours, and the following script:
LoadPlugin ("C:\Program Files\AviSynth 2.5\plugins\C\ffms2.Dll")
ffvideosource("C:\Newdl\test2_0\test2_0.mkv", threads = 1)
Gives me about 40 fps. When I add your filtering, my frame rate drops down close to yours. On a high-end gaming system, your script encoded at just under 150 fps. However that system's CPU alone probably cost more than your (and my) entire system.
Bottom line? Live with what you've got, or spend more money on a faster system. A Ferrari is faster than a VW Beetle.
One last thought - your source appears to be 60 fps. Do you need 60 fps? Halving the frame rate won't raise your encoding frame rate, but it will halve your encoding time - half as many frames to encode. Just a thought.
I use a HD PVR 1212 I will have to see how to drop the frame rate down.
I have avs 2.5.8 Haali splitter and CCC Pack. Any settings within any of these that I should change? My PC is a AMD 6 core system.
poisondeathray
13th August 2012, 15:26
You're already dropping the frame rate (1/2 frames, 1/2 fps)
Yadif(0,1) means mode=0, order=1
mode=0 means single rate deinterlacing (29.97p)
mode=1 would mean bobbing (it would return 59.94p)
wcwman18
13th August 2012, 15:47
You're already dropping the frame rate (1/2 frames, 1/2 fps)
Yadif(0,1) means mode=0, order=1
mode=0 means single rate deinterlacing (29.97p)
mode=1 would mean bobbing (it would return 59.94p)
So I assume that is set up right then.
poisondeathray
13th August 2012, 15:52
Yes
But is your 15fps from AVSMeter ? Or is it encoding fps speed from x264 ?
If it's encoding speed, then what settings are you using ?
poisondeathray
13th August 2012, 15:56
When you originally used DSS2, what kinds of fps were you getting? (and was this in reference to encoding speed or avsmeter speed?)
What version of haali (there was an older one that had bugs and very slow fps with transport streams, but it's been "fixed" in the most recent version ) . Eitherway, you might try lav splitter instead
wcwman18
13th August 2012, 16:12
Yes
But is your 15fps from AVSMeter ? Or is it encoding fps speed from x264 ?
If it's encoding speed, then what settings are you using ?
Encoding speed
--threads 12 --crf 19 --vbv-bufsize 1450 --vbv-maxrate 1500 --direct auto --level 3.1 --ref 5 --subme 9 --weightp 2 --b-adapt 2 --b-pyramid strict --me umh --keyint 300 --min-keyint 30 --aud --output %1.video.mkv %1
wcwman18
13th August 2012, 16:14
When you originally used DSS2, what kinds of fps were you getting? (and was this in reference to encoding speed or avsmeter speed?)
What version of haali (there was an older one that had bugs and very slow fps with transport streams, but it's been "fixed" in the most recent version ) . Eitherway, you might try lav splitter instead
1.11.96.14.
22fps
Where would I go in the settings to try lav splitter?
poisondeathray
13th August 2012, 16:50
1.11.96.14.
22fps
Where would I go in the settings to try lav splitter?
I think the previous posters were listing AVSMeter numbers, not encoding speed numbers. So your fps might be expected
In theory DSS2, and DSS should produce similar numbers, so not sure why you're getting the lower fps
To try Lav, you would uninstall haali and install Lav Splitter instead. You might have to do something else with the codec pack (I would just uninstall it anyway and install only the filters you need)
http://forum.doom9.org/showthread.php?t=156191
LoRd_MuldeR
13th August 2012, 17:53
Where would I go in the settings to try lav splitter?
If you feed DirectShowSource() with a media file, it will build the filter chain automatically, which makes it impossible to manually select the splitter/decoder filters.
You may try to fiddle with the filter merit values... But it may be more straight forward to build the desired filter chain in GraphStudio (http://blog.monogram.sk/janos/tools/monogram-graphstudio/), save it as .GRF file and feed that file into DirectShowSource().
(Be sure that you disconnect the decoder filter from the video renderer before saving the .GRF file. DirectShowSource() will need a "free" pin to connect to)
wcwman18
14th August 2012, 01:53
If you feed DirectShowSource() with a media file, it will build the filter chain automatically, which makes it impossible to manually select the splitter/decoder filters.
You may try to fiddle with the filter merit values... But it may be more straight forward to build the desired filter chain in GraphStudio (http://blog.monogram.sk/janos/tools/monogram-graphstudio/), save it as .GRF file and feed that file into DirectShowSource().
(Be sure that you disconnect the decoder filter from the video renderer before saving the .GRF file. DirectShowSource() will need a "free" pin to connect to)
http://i48.tinypic.com/6ntvg7.jpg
Would I need Load_STDCall_Plugin("C:\Program Files (x86)\AviSynth 2.5\plugins\yadif.dll")
ConvertToYV12()
Yadif(0,1) if I am using LAVF
LoRd_MuldeR
14th August 2012, 13:24
Yadif is a deinterlace filter. It's not related to the source filter, no matter what source filter you use.
If your source is interlaced and you want to deinterlace it using Yadif, then (and only then) you need to load the Yadif DLL.
BTW: Your screenshot of GraphStudio doesn't show what demuxer/splitter you are using. The "Text Information" window, as shown on my screenshot, has that info!
Furthermore, you can kick out all the audio stuff and you have to disconnect the video renderer, before saving the .GRF file.
wcwman18
14th August 2012, 16:41
Yadif is a deinterlace filter. It's not related to the source filter, no matter what source filter you use.
If your source is interlaced and you want to deinterlace it using Yadif, then (and only then) you need to load the Yadif DLL.
BTW: Your screenshot of GraphStudio doesn't show what demuxer/splitter you are using. The "Text Information" window, as shown on my screenshot, has that info!
Furthermore, you can kick out all the audio stuff and you have to disconnect the video renderer, before saving the .GRF file.
http://i45.tinypic.com/16hl0uc.jpg
How do I kick things out and disconnect what I don't need?
LoRd_MuldeR
14th August 2012, 23:17
Simply remove the filters you don't need. Or don't add them in the firs place ;)
It should be sufficient to insert the filter "LAV Splitter Source" from the "Graph -> Insert Filter" menu and when it asks for the input file, select your source TS file.
Then insert the "CoreAVC Video Decoder" filter (or whatever decoder you want to try) the same way.
Finally connect the "Video" output pin of the source filter with the "Input" pin of the decoder filter, as shown in my screenshot above, and save the GRF file...
(It is not required to add any audio decoder or to insert an audio or video renderer - the splitter and the video decoder filter are all you need)
wcwman18
16th August 2012, 03:07
If you feed DirectShowSource() with a media file, it will build the filter chain automatically, which makes it impossible to manually select the splitter/decoder filters.
You may try to fiddle with the filter merit values... But it may be more straight forward to build the desired filter chain in GraphStudio (http://blog.monogram.sk/janos/tools/monogram-graphstudio/), save it as .GRF file and feed that file into DirectShowSource().
(Be sure that you disconnect the decoder filter from the video renderer before saving the .GRF file. DirectShowSource() will need a "free" pin to connect to)
When I save the .grf file do I add that like this?
DirectShowSource("feed.grf")
Lanczos4Resize(704,400,6,6,-6,-6)
http://i46.tinypic.com/345h84l.jpg
How would I encode with this?
poisondeathray
16th August 2012, 04:36
When I save the .grf file do I add that like this?
DirectShowSource("feed.grf")
Lanczos4Resize(704,400,6,6,-6,-6)
How would I encode with this?
yes , save the script and add audio=false
But you probably want to deinterlace before resizing (yadif or whatever if this is the same video)
DirectShowSource("feed.grf", audio=false)
#some deinterlacer
Lanczos4Resize(704,400,6,6,-6,-6)
But it makes me think that you got 22fps with haali as the splitter (since dss2 got 22fps, and dss2 always uses haali) . So you can construct graphs and do your own testing to see which splitters & decoders give you better results
wcwman18
16th August 2012, 04:54
yes , save the script and add audio=false
But you probably want to deinterlace before resizing (yadif or whatever if this is the same video)
DirectShowSource("feed.grf", audio=false)
#some deinterlacer
Lanczos4Resize(704,400,6,6,-6,-6)
But it makes me think that you got 22fps with haali as the splitter (since dss2 got 22fps, and dss2 always uses haali) . So you can construct graphs and do your own testing to see which splitters & decoders give you better results
Simple x264 launcher did not want to accept the grf file.
poisondeathray
16th August 2012, 06:12
Simple x264 launcher did not want to accept the grf file.
give it the avs file that references the grf
wcwman18
16th August 2012, 14:54
give it the avs file that references the grf
I did that and still would not work
DirectShowSource("feed.grf")
poisondeathray
16th August 2012, 15:21
I did that and still would not work
DirectShowSource("feed.grf")
The avs is
DirectShowSource("feed.grf", audio=false)
Yadif(0,1)
Lanczos4Resize(704,400,6,6,-6,-6)
A directshow graph cannot be used for audio & video when used like this (you need separate grf for audio & video, that's why audio=false)
Guest
16th August 2012, 15:22
You were told to add audio=false. Why did you ignore that?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.