View Full Version : DSS2 script issues
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.