Log in

View Full Version : StaxRip x86 (development for x86 has been stopped)


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 [65] 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100

stax76
26th January 2010, 22:30
@dgeor

Please provide more details, what is your source and target format and what is the problem with the current handling.

dgeor
26th January 2010, 23:33
@dgeor

Please provide more details, what is your source and target format and what is the problem with the current handling.

it is mainly, the 2GB limit of wavs
and secondly, my obsession with fades in audio (fades simply don't work due to the automated cutting through vdubmod)
usually mp2 source and aac target

I think behappy is doing a hell of a job (just what I'd like to see in staxrip)

stax76
26th January 2010, 23:51
Doesn't the option to cut using NicAudio help? There was a request and change recently discussed few pages earlier to include all filter in the AviSynth script, not sure what the reason was, maybe it was fades, I think it's not released yet but I could send a build via mail.

MoboTech
27th January 2010, 05:41
I am running 1.1.3.0 on Windows 7 x64 and no. I do not see this.

Edit: To be clear, I am also unable to view or change the bitrate field in your screenshot.

I have the same problem.

Here's a pic:
http://s2.postimage.org/Uh2y0-a4a16ce1573a6a45463423948db85c6b.gif

Running Windows 7, but unlike dgeor, installing .Net framework 3.5 listed on the read me file did not work. Is their a fix for this?
I didn't realize it was missing until I actually had to use it.

MoboTech
27th January 2010, 05:44
Tried both 1.1.3 and 1.1.4.3

wirawan1234
27th January 2010, 13:54
click the divx plus in blue font, it will expand into many video profiles
change the video profile into 2pass - something (up to you)

V1de0Luvr
27th January 2010, 19:51
I am encoding HD TV captures to MKV with StaxRip 1.1.4.3 CLI mode and a template with width 1280, height 720, and 921600 pixels. However, after auto-cropping, it sometimes changes the size to non-standard values like 1248x736 and increases pixels to 930304. I want to encode at the standard 720p size, but to accomplish that I have to go into the GUI, set width & height back to 1280x720, open the Crop window and click Smart Crop. I set Options: Advanced, Image, Crop: Auto crop borders until proper aspect ratio is found, and Options: Advanced, Image, Crop: Auto overcrop width to limit aspest ratio to: 1.778 seems to help sometimes, but StaxRip likes to override my settings for a standard 720p encode and I have to fight with it to get what I want.

dgeor
28th January 2010, 18:17
Doesn't the option to cut using NicAudio help? There was a request and change recently discussed few pages earlier to include all filter in the AviSynth script, not sure what the reason was, maybe it was fades, I think it's not released yet but I could send a build via mail.

yep, the inclusion of filtrers in the _cutting.avs was my idea
and you did it, but it doesn't work as supposed
let me explain:

this is the log when cutting with vdubmod:

------------------------------------------------------------
Saving wave using VirtualDubMod
------------------------------------------------------------
MPEG2Source("N:\01-27-e3 temp files\01-27-e3.d2v")
Crop(0,0, -Width % 8,-Height % 8)
ConvertToYV12()
LoadCplugin("C:\Program Files\StaxRip\Applications\AviSynth plugins\Yadif\yadif.dll")
Yadif()
Crop(0,34,-4,-78)
BicubicResize(640,384,0,0.5)
FadeOut(last, 10)

VirtualDub.Open("N:\\01-27-e3 temp files\\E3antas-Otan.vy8izetai.o.kosmos.[Greek.DSR.x264.aac-Ft4U]_Cutting.avs","",0);
VirtualDub.stream[0].SetSource("N:\\01-27-e3 temp files\\01-27-e3.mp2",0x00000202,0);
VirtualDub.stream[0].SetMode(0);
VirtualDub.subset.Clear();
VirtualDub.subset.AddRange(29661, 31165);
VirtualDub.subset.AddRange(70891, 25278);
VirtualDub.subset.AddRange(111493, 21286);
VirtualDub.stream[0].Demux("N:\\01-27-e3 temp files\\01-27-e3_Cutting.mp2");
------------------------------------------------------------
Audio encoding using BeSweet
------------------------------------------------------------

what I see, is vdubmod loading video through avs, audio through it's internal filter for mp2, then cutting, then saving to wav, then encoding
what I get is no fades for audio, but I bypass the 2GB limit of wav if final video is more than 3 hours

this is the log when cutting with nicaudio:

------------------------------------------------------------
Saving wave using VirtualDubMod
------------------------------------------------------------
LoadPlugin("C:\Program Files\StaxRip\Applications\AviSynth plugins\DGDecode.dll")
LoadPlugin("C:\Program Files\StaxRip\Applications\AviSynth plugins\NicAudio.dll")
LoadCPlugin("C:\Program Files\StaxRip\Applications\AviSynth plugins\Yadif\yadif.dll")
MPEG2Source("N:\01-27-e3 temp files\01-27-e3.d2v")
Crop(0,0, -Width % 8,-Height % 8)
ConvertToYV12()
LoadCplugin("C:\Program Files\StaxRip\Applications\AviSynth plugins\Yadif\yadif.dll")
Yadif()
Crop(0,34,-4,-78)
BicubicResize(640,384,0,0.5)
FadeOut(last, 10)
AudioDub(last, NicMPG123Source("N:\01-27-e3 temp files\01-27-e3.mp2"))
Trim(29661,60826) + Trim(70891,96169) + Trim(111493,132779)

VirtualDub.Open("N:\\01-27-e3 temp files\\E3antas-Otan.vy8izetai.o.kosmos.[Greek.DSR.x264.aac-Ft4U]_Cutting.avs","",0);
VirtualDub.SaveWAV("N:\\01-27-e3 temp files\\01-27-e3_Cutting.wav");

Start: 18:47:07
End: 18:47:21
Duration: 00:00:13
Size: 284,7 MB
------------------------------------------------------------
Audio encoding using BeSweet
------------------------------------------------------------

this time, vdubmod loads the avs, then cuts, then saves as wav, then encodes
but, inside the avs, AudioDub comes after FadeOut() and FadeOut() comes before Trim(), so
what I get is no fades in audio and the 2GB limit of wav if final video is more than 3 hours

solution 1:
put the Audiodub filter right after MPEG2Source, so as all filters following (if any) affect the audio too
and
keep the sorting of the filters section intact:
FadeOut() must go after Trim() (otherwise FadeOut() goes to the end of the source video, not to the end of the target video as supposed)

solution 2:
implement on the fly encoding of audio, making use of stdout and avisynth's audio processing filters
and
keep the sorting of the filters section intact

I hope you got the point, because it is complicated :confused:

P.S. 1: loading yadif is done twice, probably a bug ;)
P.S. 2: As you can see, I am member of a Greek capping team (about 10 cappers) and we have more than 10.000 releases, all done with StaxRip :)

stax76
28th January 2010, 19:19
@V1de0Luvr

Did you check all image related options, I'll change it to write auto resize, auto crop etc. to the log file, without this it's difficult to find out what's happening.

@dgeor

Good report, thanks, I've added it to my todo bookmarks. The Yadif issue is because I didn't reset the AviSynth filter profiles because only minor changes to the defaults where made and none of them are important enough to reset the profiles.

MoboTech
29th January 2010, 02:10
I have the same problem.

Here's a pic:
http://s2.postimage.org/Uh2y0-a4a16ce1573a6a45463423948db85c6b.gif

Running Windows 7, but unlike dgeor, installing .Net framework 3.5 listed on the read me file did not work. Is their a fix for this?
I didn't realize it was missing until I actually had to use it.

stax, any solution to this issue?

stax76
29th January 2010, 02:56
@MoboTech

You are 100% sure you choose a 2pass profile instead of a constant quality profile? What was the exact profile name?

wirawan1234
29th January 2010, 04:25
stax, any solution to this issue?
I already post the solution here
http://forum.doom9.org/showthread.php?p=1368501#post1368501
Right below your previous post
Did you not try it?

MoboTech
29th January 2010, 08:50
I have a video with english and japanese audio. If using staxrip, how do i choose just the japanese audio?

flebber
30th January 2010, 01:09
Thanks Stax for adding ffms2 into the latest version it works great and it completes a great toolset for staxrip.

Is there a way I can force the use of ffms2 in a template if I know I will be opening files that require it. I only want to force it on these occasions.

MuLTiTaSK
30th January 2010, 01:38
I have a video with english and japanese audio. If using staxrip, how do i choose just the japanese audio?

http://img191.imageshack.us/img191/3593/ss20100129193223.png
http://img191.imageshack.us/img191/8742/ss20100129193433.png

Thanks Stax for adding ffms2 into the latest version it works great and it completes a great toolset for staxrip.

Is there a way I can force the use of ffms2 in a template if I know I will be opening files that require it. I only want to force it on these occasions.

http://img191.imageshack.us/img191/7416/ss20100129193521.png
http://img193.imageshack.us/img193/9444/ss20100129193649.png

stax76
30th January 2010, 02:07
@flebber

A project/job/template holds a filter setup, a filter setup holds filters, you would replace the source filter of the active project's filter setup with a source filter like FFVideoSource, usually this is done loading a filter profile and not like Multitask's screenshots show using a filter setup profile. Then you would save a template. If you have a source filter profile with FFVideoSource depends on the StaxRip version you use and if the filter profiles were reset, you might have to reset them or add filter profile FFVideoSource manually.

Here is a post describing how to use filters in StaxRip, it needs to be updated and improved but it's better then nothing.

http://forum.doom9.org/showthread.php?t=149832

There are constant changes and usually I don't remember when what changes were made.

flebber
30th January 2010, 04:52
@flebber

A project/job/template holds a filter setup, a filter setup holds filters, you would replace the source filter of the active project's filter setup with a source filter like FFVideoSource, usually this is done loading a filter profile and not like Multitask's screenshots show using a filter setup profile. Then you would save a template. If you have a source filter profile with FFVideoSource depends on the StaxRip version you use and if the filter profiles were reset, you might have to reset them or add filter profile FFVideoSource manually.

Here is a post describing how to use filters in StaxRip, it needs to be updated and improved but it's better then nothing.

http://forum.doom9.org/showthread.php?t=149832

There are constant changes and usually I don't remember when what changes were made.

Actually that helps a lot because I couldn't get the Mvtools scripts http://avisynth.org.ru/mvtools/mvtools.html to work but that explains it pretty well.

I think I understand it well enough now to give it a go.

flebber
30th January 2010, 05:22
Actually I must be misunderstanding or missing a macro command.

so if
FFVideoSource = FFVideoSource("%source_file%")%newline%Crop(0,0, -Width % 8,-Height % 8)%newline%ConvertToYV12() How do I define the output of this command so I can feed it as source to the next.

I initially tried it like this but its wrong.
MvDegrain = FFVideoSource.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1) FFVideoSource.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1) FFVideoSource.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1) FFVideoSource.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1) FFVideoSource.MVDegrain2(backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=400,idx=1)

Because ultimately I wouldn't want it tied to the source input of ffmpegsource, or mpeg-2 that should be variable and I catch its output and feed it the next yeah?

stax76
30th January 2010, 06:34
@flebber

There is a runtime variable 'last'.

http://avisynth.org/mediawiki/Runtime_environment#Special_runtime_variables_and_functions

It's not well documented, you can understand the script:

AVISource("...")
PointResize()

as shortcut for:

last = AVISource("...")
last = PointResize(last)
return last

Havokdan
30th January 2010, 12:08
The latest test version is always giving error when I try to convert aac to mp3, but just when what ffmpeg is driven to decode the file.

flebber
30th January 2010, 15:26
@flebber

There is a runtime variable 'last'.

http://avisynth.org/mediawiki/Runtime_environment#Special_runtime_variables_and_functions

It's not well documented, you can understand the script:

AVISource("...")
PointResize()

as shortcut for:

last = AVISource("...")
last = PointResize(last)
return last

Awesome stax I got it working.

MVDeGrain3 = %newline%backward_vec3 = last.MVAnalyse(isb = true, delta = 3, pel = 2, overlap=2, sharp=1, idx = 1)%newline%backward_vec2 = last.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=2, sharp=1, idx = 1)%newline%backward_vec1 = last.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=2, sharp=1, idx = 1)%newline%forward_vec1 = last.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=2, sharp=1, idx = 1)%newline%forward_vec2 = last.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=2, sharp=1, idx = 1)%newline%forward_vec3 = last.MVAnalyse(isb = false, delta = 3, pel = 2, overlap=2, sharp=1, idx = 1)%newline%last.MVDegrain3(backward_vec1,forward_vec1,backward_vec2,forward_vec2,backward_vec3,forward_vec3,thSAD=300,idx=1)

ultratoto14
30th January 2010, 21:34
Hi Stax, just a little typo, during the compressibility check, the status show progress but the title is still DGIndex

bakalism
31st January 2010, 18:55
How to use VirtualDub (with last version) instead of VirtualDub Mod ?

Where i should put a VirtualDub to ? and what else ?

because i dislike VrtualDub mod :confused:

stax76
31st January 2010, 19:32
@bakalism

VrtualDub support was removed but due to a bug the option remained in the dialog without doing anything. VirtualDubMod is old and so is VFW and it's codecs and still everything works and is used by some people. StaxRip uses VirtualDubMod for a couple of things that VirtualDub can't do I think and even if it could it's not a good idea to migrate as it would take time and might introduce problems. It's better to spent the time with modern things like x264 and mkvtoolnix instead.

V1de0Luvr
1st February 2010, 15:56
@V1de0Luvr
Did you check all image related options, I'll change it to write auto resize, auto crop etc. to the log file, without this it's difficult to find out what's happening.

Thanks, stax76, I am using the DivX Plus template with the modifications that I mentioned. Auto Crop Borders is enabled, of course. Auto Resize Image is 921600 if I did not already mention that. Auto Aspect Ratio Signaling is enabled. Maximum Aspect Ratio Signaling is 2. BT-601 is enabled. Output mod is 16. Auto correct crop values is enabled. And as mentioned earlier, Auto crop borders until proper aspect ratio is found is enabled, and Auto overcrop width to limit aspest ratio to: 1.778.

I will keep an eye out for a new preview with extra logging, thanks!

stax76
1st February 2010, 16:50
@V1de0Luvr

I'm not sure what exactly you try to achieve, IIRC Auto Resize Image Size takes the target DAR and finds a image size close to the pixel value you define. If you crop a 1080p image your target DAR might not be 16/9 any longer and thus auto resizing using 921600 pixel won't yield to 720p.

V1de0Luvr
1st February 2010, 21:19
@V1de0Luvr

I'm not sure what exactly you try to achieve, IIRC Auto Resize Image Size takes the target DAR and finds a image size close to the pixel value you define. If you crop a 1080p image your target DAR might not be 16/9 any longer and thus auto resizing using 921600 pixel won't yield to 720p.

Thanks for the tip. I unchecked Auto Resize Image Size but auto crop is still increasing the height from 720 to 752 on my test video, so I still have to set height back to 720, error goes to -4.38%, so I go into the Crop window, click Smart Crop, and all is good after that.

The video in question is from "Last Call with Carson Daly" where for some bizarre reason they show a 16x9 picture inside of a 4x3 area inside of the 1080i picture. I have no idea why they do that, but my aim is to come out with a 720p 16x9 video of just the middle of the screen.

stax76
1st February 2010, 22:09
Maybe you can upload a sample to filedropper.com, 100 MB split with DGSplit.

DodgeV83
2nd February 2010, 02:44
When converting from a mono source, the resulting file always has no audio.

In the temp folder, a .wav is successfully generated, but the .m4a (iPhone profile) generated from that is only 2k and contains no audio. When using MeGui I can set the output to Mono, or "Keep original channels", Staxrip does not allow me to do this.

I looked up the BeSweet commands for bsn (aac), and it seems it only has -downmix, which only supports a stereo input.

www.schudy.de/ccount/click.php?id=10

How can I use Staxrip on a mono source?

flebber
2nd February 2010, 13:06
When converting from a mono source, the resulting file always has no audio.

In the temp folder, a .wav is successfully generated, but the .m4a (iPhone profile) generated from that is only 2k and contains no audio. When using MeGui I can set the output to Mono, or "Keep original channels", Staxrip does not allow me to do this.

I looked up the BeSweet commands for bsn (aac), and it seems it only has -downmix, which only supports a stereo input.

www.schudy.de/ccount/click.php?id=10

How can I use Staxrip on a mono source?

Have you tried forcing Directshow as Decoder in Options -> Advanced ?

As these are the besweet core switches http://besweet.notrace.dk/core.html

Another option would be to edit the audio profile to specify the channel output. Such as

"%application:BeSweet%" -core( -input "%input%" -output "%output%" ) -azid( -c normal -L -3db ) -ota( -d %delay% -g max ) -bsn( -2ch -abr %bitrate% -aacprofile_hev2 )

I am just reading bsn options from the pdf here http://www.schudy.de/dts/download/besweet%20commandline%20reference%202005-03-23.pdf

V1de0Luvr
2nd February 2010, 15:34
Maybe you can upload a sample to filedropper.com, 100 MB split with DGSplit.

http://www.filedropper.com/staxripcarsondalysample

stax76
2nd February 2010, 16:29
@DodgeV83

Right now I hardly have time for anything uncommon, if somebody would explain exactly and detailed the problem plus solution then there would be a chance.

@V1de0Luvr

Thanks for uploading the sample. I understand the problem now but don't have a idea for a solution so far. I'm not sure if there is clean solution without a change or addition to StaxRip but I'm not sure yet how it would look like. Workarounds are possible most of the time, like putting auto crop and resize into the source filter so StaxRip sees 720p as source.

MuLTiTaSK
2nd February 2010, 20:26
@stax76

neuron2's response regarding stdout support in DGDecNV (bit.ly/6aVfOY)

I'm in a bit of a pickle about it. The way it is implemented now in DGIndex kills Win2000 compatibility and now some other issues are being raised. But the alternative, AllocConsole(), pops up an extra DOS window. I only absorbed this as a contribution from someone else and to be honest I am not motivated to spend a lot of time on it. So, if you describe a good way to implement it, I will be happy to pay attention.

stax76
2nd February 2010, 21:43
@MuLTiTaSK

Interesting, are there even Cuda drivers for w2k?

MuLTiTaSK
2nd February 2010, 22:07
@stax76

doesnt seem like it

stax76
2nd February 2010, 22:22
@MuLTiTaSK

Supporting w2k seem to be pointless then.

MuLTiTaSK
3rd February 2010, 21:22
@stax76

did AnyDVD (SlySoft Inc.) people ever get back to you?

Azazel4
3rd February 2010, 23:17
@Azazel4

comment out cropping and resizing load the script and set the cropping and resizing in StaxRip or try with one of the newer preview builds
DGDecode_mpeg2source("C:\Fansubbing\Encoding\R_555_1\VTS_01_1.d2v", info=3)
ColorMatrix(hints=true, interlaced=true, threads=0)
TomsMoComp(1,5,1)
#crop( 6, 4, -6, 0)
#Spline36Resize(720,404) # Lanczos (Sharp)
Undot()
tweak(sat=1.14,bright=-5,cont=1.05)

ChangeFPS(29.97)

I tried the newest preview build and it still does the same thing for that res, thanks for looking into it anyway, everything else is working great

MuLTiTaSK
4th February 2010, 06:09
@Azazel4

you try? -> StaxRip 1.1.4.3 (http://bit.ly/7Y1wXp)

chagos
4th February 2010, 18:12
Hi,
I have a source dvd encoded @29.97 fps. I don't see an option to change fps in StaxRip. In this case, I will use changefps in an avisynth script. But exactly how?

MuLTiTaSK
5th February 2010, 23:06
@chagos

you can load your .avs script into StaxRip as the source or custom add ChangeFPS (bit.ly/atnVhA) into StaxRip filters by right clicking in the filters box

Atak_Snajpera
5th February 2010, 23:11
Stupid idea! Source is most likely telecined. So you must use inversetelecine function in order to get correct 23.976.

MuLTiTaSK
5th February 2010, 23:35
@Atak_Snajpera

if he wants to use that function in his script who are you to tell him he cant ?

watch your insults towards me go dictate people that use your code to boost your ego thanks

stax76
5th February 2010, 23:40
Did he even tell the target rate? Maybe he wants 25.

chagos
5th February 2010, 23:43
Did he even tell the target rate? Maybe he wants 25.
I want to change it to 23.976.
I will try tomorrow. Thanks for replies.

MuLTiTaSK
5th February 2010, 23:48
@stax76

i thought you left us:(

did the people over at AnyDVD get back to you?

my license offer still stands if you need one i'am glad to see you still active my friend;)

stax76
6th February 2010, 00:19
@MuLTiTaSK

I did not get I reply from the SlySoft employee I contacted. Regardless of this I currently have no interest in AnyDVD, I use MakeMKV.

Atak_Snajpera
6th February 2010, 00:30
Did he even tell the target rate? Maybe he wants 25.
29.97 -> 25 ??? Another stupid idea. Unless you love blended frames and so on.

stax76
6th February 2010, 00:45
I better refrain from further commenting on NTSC. :)

MuLTiTaSK
6th February 2010, 01:02
@stax76

MakeMKV 1.4.12 Released – Pay Model On The Way (bit.ly/a8wSEI)