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).
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.