Log in

View Full Version : StaxRip


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 101

fredlkrue
5th May 2017, 18:38
Hi stax76, on StaxRip 1.3.7.8 I can set the file size to 176MB and it encodes at that size that I set, but for some reason using the latest build it the encode ends up sizing 197MB. On both encodes I am using the same settings, x264 2 pass, audio passthrough.

LOG from new build: https://pastebin.com/i2SPeWGH

I am not sure if the audio file size is being ignore or something about the calculation was changed.

stax76
5th May 2017, 19:55
You should get a video bitrate about 930 instead of 1060 so it didn't account your 130 kbits audio file at all, look at the mediainfo of your mkv, there is no BitRate property for the audio so staxrip assumes the bitrate is 0, there is only a FromStats_BitRate property, next build will read that if the BitRate property is missing. 'Options > Audio > Demux Audio: None' is probably not the best choice, if you have a real audio file instead of mkv staxrip will calculate the bitrate from the file size.


General
Unique ID : 0 (0x0)
Complete name : F:\Organize\Naruto\[HorribleSubs] Naruto Shippuuden - 378.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 315 MiB
Duration : 23 min 9 s
Overall bit rate : 1 902 kb/s
Encoded date : UTC 2010-02-22 21:41:29
Writing application : no_variable_data
Writing library : no_variable_data

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 23 min 9 s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 spf)
Compression mode : Lossy
Language : Japanese
Default : Yes
Forced : No
Statistics Tags Issue : no_variable_data 1970-01-01 00:00:00 / no_variable_data 2010-02-22 21:41:29
FromStats_BitRate : 128000
FromStats_Duration : 00:23:09.946000000
FromStats_FrameCount : 59860
FromStats_StreamSize : 22239143

fredlkrue
5th May 2017, 20:20
Thanks could it also be a reason that I am batch encoding?, so it creates a project before extracting?.. I hope this issue gets resolve, thank you.

stax76
5th May 2017, 20:32
default is:

Options > Audio > Demux Audio: Show Dialog

batch mode cannot show a dialog so it won't demux in batch mode I guess, I've not looked at the code but it would explain it.


I like this options:

Options > Audio > Demux Audio: All

Filters > Source > Automatic (which filter is used for which file type can be configured in the settings)

Natty
5th May 2017, 20:37
This should work :

right click on the audio field and " Open " your flac file.
select the audio output format profile and right click again on the audio field and selet " Execute "

https://img4.hostingpics.net/pics/21687520170505132453.png

This should just process the flac file and convert it to the desired output format.

thank you very much. now staxrip is my complete solution. i used foobar to do that till now.

fredlkrue
5th May 2017, 20:41
default is:

Options > Audio > Demux Audio: Show Dialog

batch mode cannot show a dialog so it won't demux in batch mode I guess, I've not looked at the code but it would explain it.


I like this options:

Options > Audio > Demux Audio: All

Filters > Source > Automatic (which filter is used for which file type can be configured in the settings)

Thanks, I will give it a try when I have a chance.

EDIT 1: I did some testing; even using the old build when doing batch encode it gives a wrong file size.. but encoading/adding one by one it gives exact size. When I do avi batch mode gives correct set file size.

EDIT 2: Using Options > Audio > Demux Audio: All, encoding via batch mode it sets the correct file size. THANKS!!!

stax76
6th May 2017, 15:39
When i use some avisynth external script, Staxrip keep all temp files at same directory from avs script and video file, it dont even create temp file directory or delete files at end. With normal video encoding without usage of avs script temp folder creation works fine. I try changing temp file directory but everytime it reset and all temp files are stored in avs script directory.

Next build will always create a temp dir.

chummy
6th May 2017, 22:34
Next build will always create a temp dir.
Great. This will help a lot. :thanks:

aegisofrime
11th May 2017, 10:43
Hi stax76, do you think you could add DGSourceNV as a source filter for Vapoursynth as well?

stax76
11th May 2017, 12:26
Hi stax76, do you think you could add DGSourceNV as a source filter for Vapoursynth as well?

I don't know if it can be added easily, let me see example code and DGSourceNV version and build/change date. As far as I know recent builds don't have native VS support and there are 2 workarounds, wrapper API and virtual file system.


You can define a custom source filter here:

'Filters > Filter Setup > VapourSynth' and then 'Filters > Profiles: Source'


and then define for which file type your custom source filter should be called:

Tools > Settings > Source Filters > VapourSynth

Yanak
11th May 2017, 15:29
Hello Stax,
i am testing the last 1.4.3.6 build and got some questions please :

- I start with a profile having a custom muxer profile in a form of a command line, when using the new re-mux script it does not change the muxing profile to mp4 or mkv, it stays on the command line muxing profile, not sure if normal or not but seems like it cannot switch to mkv or mp4 when a custom command line for muxer is set, seems ot work fine when any other profile other than a command line is set.

- Still about muxing: using a mkv container we can use the attachment option and add a txt file or picture or even an .exe to a mkv.
https://s14.postimg.org/voudqrvc1/97711720170511154222.png


When adding such file containing an attachment as source into staxrip the attachments, if there is some, are extracted directly into the temp folder.
When selecting manually your "Demux" tool where we can select to extract attachments or not there ( will be nice to get the attachments files listed there if there is some in a mkv file btw )

https://s14.postimg.org/olmib5xm9/38216320170511154636.png


Not sure if something can be done when using a Mkv as source file to show that there is an attachment and ask the user if he wants it extracted or not.

Could also be possible to extend this for .mp4's using mp4box and extract picture cover if there is one using the command :
mp4box.exe -dump-cover videoInput.mp4
For easy tests of adding a cover picture to a MP4 go the the mp4 container option like in the first picture > command line > edit menu > and add this :
Add Cover = -itags cover="$browse_file$"
Also possible to drop chapters using -dump-chap and few more options for dumping stuff but i never really tried those, might be useful for your demux tool that support only audio for mp4's if i make no error.
also mp4box.exe -raw trackID fileInput.mp4 Or the one i use a lot to extract all content of a MP4 with mp4box.exe -raw * fileinput.mp4
I set this as custom menu for mp4's and mov's: "%app:MP4Box%" -dump-cover -raw * "%source_file%" dumps all tracks and cover . Those might help.

( mp4box allows me to store multiple video tracks in a single mp4 + add a cover to the mp4 for better visual identification on pc, useful to keep original raw video untouched next to the one i encoded or modified, like a backup of original raw data inside a single mp4 file, i can later extract and use again the original an unmodified video if needed )


Speaking of audio i saw you added this : "ffmpeg demuxing GUI added, only audio is supported so far, input types can be configured in the settings, default is avi, ts, flv"
Maybe i understand something incorrectly but where is the GUI? I mean how to trigger it please ? For now i could not find it, probably doing something wrong or misunderstanding something about this new feature.

As always thanks a lot for all the work on this nice tool.

stax76
11th May 2017, 16:50
@Yanak

Next build will have a v2 version of the re-mux script.


It was probably a stupid idea to use a separate code base for a demuxing tool, please use the tracker on github for feature requests.


I didn't reset demuxing settings so you need:

Tools > Settings > Demuxing > Restore

or

Tools > Settings > Demuxing > Add

Yanak
11th May 2017, 17:44
Hi, I'll wait for the next version then.

I will make a request on github later at night or most probably tomorrow for an improved demux interface with a bit more options possible for viewing and extracting attachments in Mkv's or covers from mp4's and mov's, thanks a lot.

I have reset the demuxing options, if i open an avi or ts file that if i understood correctly should use a new ffmpeg demux GUI for audio but i still see the same as before, I'm not sure if it should be like this or if i am missing something. Spent some time and done all my settings again in this new version instead of importing them just in case something could have been messed up.


One last thing, when using the Mkv container and checking file with media info i see that there is the tags for "Writing frontend : StaxRip 1.4.3.6" coming from the .xml file. I'm not too familiar with mkv muxing and while you fully deserve all recognition possible for the great work on this tool, i would like to know if there a way to disable this for once in a while i need to get a very neutral output file ?


Btw you can add a similar stuff for mp4's with mp4box using this : -itags encoder="StaxRip":Tool="%version%" , will get out in mediafinfo as "Writing application : StaxRip / 1.4.3.6"

But if you lock this one as mkv seems to be, i will not be able to add more tags or add a cover as all stuff needs to be added in a single "-itags" parameter, for example this is what i use for my mp4's when i don't need neutral files ( cover picture is taken in preview mode with SaveJpgByPath command and "%working_dir%%source_name%.jpg" for path ):

-itags encoder="StaxRip":tool="%version%":cover="%working_dir%%source_name%.jpg":comment="Some text comment + the GPS data from the original footage video etc..."

Maybe leaving this as a possibility the end user can select in the container options in the command line menu, with -itags encoder="StaxRip":Tool="%version%" set and applied by default but possible to be edited in the command line options or removed when not needed, i don't know, might add this in github too :p

Thanks again for all.

stax76
11th May 2017, 21:31
I have reset the demuxing options, if i open an avi or ts file that if i understood correctly should use a new ffmpeg demux GUI for audio but i still see the same as before, I'm not sure if it should be like this or if i am missing something.

Before there wasn't any AVI or TS demuxing, now there should be the same GUI as used for mkvmerge and mp4box.

One last thing, when using the Mkv container and checking file with media info i see that there is the tags for "Writing frontend : StaxRip 1.4.3.6" coming from the .xml file. I'm not too familiar with mkv muxing and while you fully deserve all recognition possible for the great work on this tool, i would like to know if there a way to disable this for once in a while i need to get a very neutral output file ?

There is a new MKV muxer dialog option in the last build.

Btw you can add a similar stuff for mp4's with mp4box using this : -itags encoder="StaxRip":Tool="%version%" , will get out in mediafinfo as "Writing application : StaxRip / 1.4.3.6"

I added the encoder tag as default for the custom switches.

Yanak
11th May 2017, 22:08
- Oh i see, mostly using avi's with avisource for input and rarely using ts files so i never noticed before searching for it whne seeing the option added to the list ... i understand now.

- Fantastic, really nice to have this now, i don't know how i can thank you enough for all the stuff you do on this tool and how accessible you are for requests like this, nowadays i'm almost always having pits in my pockets but the day i will be able to do it i will make a donation for sure.

- I saw it yes, i use it and will continue to use it the majority of the times.

Noticed the re-mux2 script and it's partially working only, posted on github explaining the issue.

Will add request for better options in demuxing later at night or tomorrow too.

Thanks again for all this fantastic job.

aegisofrime
12th May 2017, 16:30
I don't know if it can be added easily, let me see example code and DGSourceNV version and build/change date. As far as I know recent builds don't have native VS support and there are 2 workarounds, wrapper API and virtual file system.


You can define a custom source filter here:

'Filters > Filter Setup > VapourSynth' and then 'Filters > Profiles: Source'


and then define for which file type your custom source filter should be called:

Tools > Settings > Source Filters > VapourSynth

Hi, thanks for your reply. I followed the steps as described and when I load the dgi file, Staxrip still tries to load the source files using ffms...

Well, there isn't a Native Vapoursynth version, although VS is able to load the AVS dll easily as so:

http://rationalqm.us/board/viewtopic.php?f=8&t=441&start=20

fredlkrue
12th May 2017, 18:43
One issue I have with the latest build is that when I set the source to automatically, StaRip crashes.

stax76
12th May 2017, 18:44
any error message?

fredlkrue
13th May 2017, 00:22
any error message?

Sorry, I should have posted the error message that I got:

https://pastebin.com/CyR6Hf5Q

I check the Runtimes, all Visual C++ are up to date, according to StaxRip.

PS. I am running Windows 7 64bits.

stax76
13th May 2017, 00:43
Could not load type 'System.ValueTuple

It requires .NET 4.7, next build will show a warning.

fredlkrue
13th May 2017, 04:00
It requires .NET 4.7, next build will show a warning.

Thanks, I will be testing the new build.

lotnybartek
13th May 2017, 11:37
Got a laptop with switchable GPUS. StaxRiP see only Intel. Any way to use Nvidia (940mx in this case).?

Schattenspieler
14th May 2017, 14:55
Version 1.4.3.7 does not accept a changed path to MKVToolnix, or it just ignores it.
I have MKVToolnix installed in another path, because it updates much more often and is not only used by staxrip. But since 1.4.3.7 (didn't try any other since 1.3.x.x) it always pops up the settings dialog for the programs loctions, despite having already set it up correct (F11). Only if I copy the MKVToolnix files to the location, where staxrip wants them (within it's own apps folder), can I get going.

When updating I overwrote every file exept "StaxRip.pdb" in the program folder. Could that be the reason for such weird behaviour? And why?

stax76
15th May 2017, 17:03
@aegisofrime

Automatic filter selection should work, first you have to load a VapourSynth filter setup and after that change the source filter to Automatic. If you change the source filter to Manual the last build will offer VapourSynth DGSource/DGSourceIM in the filter selection dialog.

I improved the code that adds the required LoadPlugin calls, in the last build you can use code like this:

clip = core.avs.DGSource(r"%source_file%")
clip = core.avs.yadifmod2(clip)

and staxrip automatically adds:

core.avs.LoadPlugin(r"D:\Software\Medien\DGDecNV_2052\DGDecodeNV.dll")
core.avs.LoadPlugin(r"D:\Projekte\VS\VB\StaxRip\bin\Apps\Plugins\avs\yadifmod2\yadifmod2.dll")

Got a laptop with switchable GPUS. StaxRiP see only Intel. Any way to use Nvidia (940mx in this case).?

Maybe the NVEnc author can help: https://github.com/rigaya/NVEnc/issues

Version 1.4.3.7 does not accept a changed path to MKVToolnix, or it just ignores it.
I have MKVToolnix installed in another path, because it updates much more often and is not only used by staxrip. But since 1.4.3.7 (didn't try any other since 1.3.x.x) it always pops up the settings dialog for the programs loctions, despite having already set it up correct (F11). Only if I copy the MKVToolnix files to the location, where staxrip wants them (within it's own apps folder), can I get going.

It's fixed in the last build.

When updating I overwrote every file exept "StaxRip.pdb" in the program folder. Could that be the reason for such weird behaviour? And why?

The file contains debug symbols for crash diagnostics. If you want to be safe it's best to only use the exact content of the download.

stax76
16th May 2017, 14:26
Today I rewrote the manual source filter selection dialog:

It don't show AviSynth and VapourSynth together but rather only AviSynth or VapourSynth depending on what scripting engine is active (the script engine can be changed with: Filters > Filter Setup, to make it default after startup use: Project > Safe As Template > Load template on startup)

The shown filters are not hardcoded but rather taken from the filter profiles, if you have two DGSource VapourSynth filter profiles for instance both should show in the dialog.

It has a much more lightweight look and feel.

https://github.com/stax76/staxrip/blob/master/md/test-build.md

Natty
18th May 2017, 22:44
whats up with all these bugs in new test builds ? i am still on 1.4.3.2 and i didnt upgrade because there were several files missing in staxrip's folder and i want to upgrade asap. what i think is that there are compatibility issues with c++2017 and dot net 4.7.

stax76
18th May 2017, 23:04
What files were missing? With the removal of C# scripting support lot's of DLLs are no longer needed.

Systems prior Creators Update need .NET 4.7. I've added a requirements section in the test build page.

https://github.com/stax76/staxrip/blob/master/md/test-build.md

stax76
20th May 2017, 13:59
To address the issue with high memory usage I changed the job processing in the build from today:

job processing is now always done in a new instance

after every finished job the instance shuts done and starts a new instance before in case there are more jobs to process

Havokdan
20th May 2017, 17:33
How do I use the following programs in portable mode along with StaxRip:

Python
Vapoursynth
Avisynth+

?

stax76
20th May 2017, 17:57
You can't, portable mode isn't supported and I don't plan to support it in the future.

Havokdan
20th May 2017, 18:36
Ok, thanks.

stax76
21st May 2017, 21:40
Again I totally rewrote job processing today, I hope it's much better now.

https://github.com/stax76/staxrip/blob/master/md/test-build.md

stax76
22nd May 2017, 22:44
I modified much layout and scaling related code today and could need some help with testing because I want to release a stable build this week finally and pause for some time.

https://github.com/stax76/staxrip/blob/master/md/test-build.md

AMED
23rd May 2017, 01:11
Hi Stax,

I'm currently testing 1.4.5.1 and i'm setting this error. Only seems to happen on my W7 machine, W10 is fine.

Exception

Could not load type 'System.ValueTuple`3' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

System.TypeLoadException: Could not load type 'System.ValueTuple`3' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at StaxRip.MainForm.ModifyFilters()
at StaxRip.MainForm.OpenVideoSourceFiles(IEnumerable`1 files, Boolean isNotEncoding) in D:\Projekte\VS\VB\StaxRip\Forms\MainForm.vb:line 1689

EDIT: fixed the problem by installing .net 4.7 from https://www.microsoft.com/en-us/download/details.aspx?id=55170

AMED
25th May 2017, 04:23
Hi Stax,

I've been testing 1.4.5.3 and this error appeared. The error didn't stop staxrip encoding and it's still happily going through the jobs.

http://i65.tinypic.com/xehbfm.png

the error on the left is the original error, the error on the right was after clicking the copy message link from the original error window.

StaxRip x64 : 1.4.5.3
OS : Windows 10 Pro 1703
Language : English (New Zealand)
CPU : Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
GPU : Radeon (TM) RX 480 Graphics

stax76
25th May 2017, 14:33
@AMED

Clicking on 'Copy Message' was supposed to copy the error message to the clipboard and show a message box 'Error was copied to clipboard'. Even though I couldn't understand why (something threading related I think) it didn't work, I think it is fixed now.

The exception that was happening is hopefully fixed too.

https://github.com/stax76/staxrip/blob/master/md/test-build.md

stax76
26th May 2017, 18:58
If everything goes right then I'll release a stable version this Sunday, last one is already 7 months old.

Test build from today:

https://github.com/stax76/staxrip/blob/master/md/test-build.md

Natty
26th May 2017, 20:43
what was the last build with worked fine without .net 4.7 ? on my win 10 installation of 4.7 is blocked and it says os not supported. whenever u make the stable release, please if possible, make a build which can work fine without 4.7 also. thanks.

stax76
26th May 2017, 20:46
Did you consider updating to creators update?

Natty
26th May 2017, 21:59
Did you consider updating to creators update?

i think new builds of staxrip will force me to do it :helpful::devil:

mcjordan
26th May 2017, 22:06
What about DPI scaling in last build /1.4.5.5 on LTSB 14393/? I've a "little bit" non-scalable StaxRip in miniature window on my 4K monitor? See - https://postimg.org/image/i14fqov07/a4653bec/
Hmm... and on Creators Update on my other machine - same behaviour. Оn both systems are installed .NET 4.7 /on CU machine it is by default/.

Zetti
26th May 2017, 23:01
what was the last build with worked fine without .net 4.7 ? on my win 10 installation of 4.7 is blocked and it says os not supported. whenever u make the stable release, please if possible, make a build which can work fine without 4.7 also. thanks.

No need to updating to creators update.

Just download .net 4.7 and install.

https://www.microsoft.com/en-us/download/details.aspx?id=55167

Magik Mark
26th May 2017, 23:58
Hi Stax:

In windows 10 you can have several desktops. I have 2. When using staxrip I usually do that in "Desktop 2". I realized that everytime it finishes a job, staxrip would move to "Desktop 1" then continue with the next job. Is there way for staxrip to remain in "Desktop 2" until it finishes all the jobs?

stax76
27th May 2017, 00:19
@mcjordan

What's your DPI setting?


@Magik Mark

I don't know if there is an API or something to control this.

stax76
27th May 2017, 01:23
There was a StaxRip.exe.config file missing and the function that restores the windows positions was accidentally removed.

https://github.com/stax76/staxrip/blob/master/md/test-build.md

Zetti
27th May 2017, 01:29
#stax76

Which x264 have you included in StaxRip??

x264 Vanilla, x264 kmod or other one.

stax76
27th May 2017, 06:35
Next build includes 0.150.2833 Vanilla both 10 and 8 bit.

Zetti
27th May 2017, 11:21
Ok thanks.

mcjordan
27th May 2017, 11:51
Sorry for delay. I must have to sleep from time to time ;-) My setting based on standart scaling factor - 150%.
Anyway, last build 1.4.5.7 and the new config file work together seamlessly. Thank you, Frank, and sorry for disturbance.

qjb2016
28th May 2017, 03:32
ParseException

所在位置 行:1 字符: 1
+ Using namespace StaxRip;
+ ~~~~~
此语言版本中不支持“using”关键字。

所在位置 行:2 字符: 1
+ Using namespace StaxRip.UI;
+ ~~~~~
此语言版本中不支持“using”关键字。



System.Management.Automation.ParseException: 所在位置 行:1 字符: 1
+ Using namespace StaxRip;
+ ~~~~~
此语言版本中不支持“using”关键字。

所在位置 行:2 字符: 1
+ Using namespace StaxRip.UI;
+ ~~~~~
此语言版本中不支持“using”关键字。


在 System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
在 StaxRip.Scripting.RunPowershell(String code) 位置 D:\Projekte\VS\VB\StaxRip\General\Scripting.vb:行号 26