View Full Version : StaxRip
stax76
26th June 2017, 15:39
@Natty
I can add more options but in order to make it more manageable I'm refactoring a lot code which might result in new bugs and reset settings.
@Ma
I have a automated test that is checking for common problems and compares my code file against the help console output of x265, nvenc, qsvenc and vceenc, theoretically staxrip is in sync 100%, there are some small issues sometimes but generally the CLI interface and documentation of most encoders are fantastic.
https://github.com/stax76/staxrip/blob/323f7c6ec4cd0df5c595909f1b6dd02c1701ea33/General/GlobalCommands.vb#L349
craigpro
26th June 2017, 16:28
stax76 - how do I batch resize a folder please? I have a folder of 1080p content which I want to resize to 720p. Thank you.
I have a automated test that is checking for common problems and compares my code file against the help console output of x265 [...]
I see, so the error messages:
x265.exe: unknown option -- analysis-file
x265.exe: unknown option -- refine-level
are from StaxRip. Impressive!
I just remind that:
old option name ==> new option name
--analysis-mode ==> --analysis-reuse-mode
--analysis-file ==> --analysis-reuse-file
--refine-level ==> --analysis-reuse-level
From ver. 2.4+85 up to 2.4+87 doesn't work 2-pass encoding (we are waiting for a patch).
stax76
26th June 2017, 18:32
I think the newest test build has everything changed correctly but I'll double check it when the patch is here.
https://github.com/stax76/staxrip/blob/master/Encoding/x265Enc.vb#L790
https://github.com/stax76/staxrip/blob/master/Encoding/x265Enc.vb#L976
stax76
26th June 2017, 21:51
hey, can delete temp file/folder delete the files permanently? as the temp folder can be as much as 40 G.B. mere moving to recycle bin doesnt save disk space. thanks.
I've forgotten there is already a setting under: Tools > Settings > System > Use recycle bin...
In the next build I move both to the settings as menu:
Disabled
Recycle Bin
Permanent
how do I batch resize a folder please? I have a folder of 1080p content which I want to resize to 720p. Thank you.
It's simple I believe, first you setup your empty project and then you add the source files in file batch mode, it then creates a job for every source file.
https://www.dropbox.com/s/gpr2yhowoxibpdj/2017-06-26%2022_48_37-StaxRip.png?dl=0
Natty
26th June 2017, 22:33
--analysis-mode ==> --analysis-reuse-mode
--analysis-file ==> --analysis-reuse-file
--refine-level ==> --analysis-reuse-level
From ver. 2.4+85 up to 2.4+87 doesn't work 2-pass encoding (we are waiting for a patch).
oh renamed commands were causing those issues. a lot of modifications in x265 lately. and thanks a ton for ur avx2 builds.
Natty
26th June 2017, 22:36
Disabled
Recycle Bin
Permanent
perfect . thanks :thanks::):)
suspiciousBob
27th June 2017, 21:13
It should work with the build from today.
Thank you for the fix; staxrip has taken every audio i have thrown at it and processed it as expected. great stuff
Another small bug (in 1.5.0.0 at least); it seems that staxrip can't burn in .sup subtitles (don't understand why, but fair enough). In tools > advanced > hardcoded subs, the extension filter has *.sup (and others) in the list but when a .sup file is selected stax throws "only idx, srt and ass file types are supported" error dialog.
stax76
27th June 2017, 21:29
It could probably be more intuitive and more clear, unfortunately AviSynth has no sup filter, only VapourSynth. At the moment I cannot change it as I'm trying to implement parallel audio processing, the code quality of this area is a total mess. :(
gonca
27th June 2017, 23:26
unfortunately AviSynth has no sup filter,
Suptitle
NikosD
28th June 2017, 07:48
Hello Frank.
A new QSVEncC v2.70 is available: (with a few new options and bug fixes)
https://onedrive.live.com/?id=6BDD4375AC8933C6%21482&cid=6BDD4375AC8933C6
ABDO
28th June 2017, 13:21
Hi Frank
just want to thank you for your great and hard work in staxrip ، and we strongly appreciate that
thank you very mush 😍👍
alter4
28th June 2017, 22:46
Excuse me guys, might be stupid question but I am newbie to StaxRip. Is recent "unstable" version really unstable? I like cutting edge software and what to try recent version if it is "beta" and not "alpha" quality.
burfadel
29th June 2017, 07:08
Seems for me Staxrip is preventing the monitor to turn off after the 5 minutes I have it set to. Not standby, just monitor off. Using knlmeanscl, but was never an issue before with earlier builds. Using latest test build, but was happening with the previous one as well.
stax76
29th June 2017, 10:31
@gonca
As far as I know there isn't a AviSynth+ x64 compatible sup filter that is working in a .NET client app. There is a filter from somebody who also worked on a player but it's discontinued and don't work in StaxRip.
A new QSVEncC v2.70 is available: (with a few new options and bug fixes)
https://onedrive.live.com/?id=6BDD43...DD4375AC8933C6
I'm getting:
D3D9Device: Failed CreateDeviceEx: -2005530516.
Failed to initialize HW Device. : null pointer.
Failed to CreateHWDevice. : null pointer.
QSVEncC.exe finished with error!
2.66 is working, maybe my driver is old, in device manager it shows as: 21.20.16.4534
@ABDO
You're welcome.
Excuse me guys, might be stupid question but I am newbie to StaxRip. Is recent "unstable" version really unstable? I like cutting edge software and what to try recent version if it is "beta" and not "alpha" quality.
Some are more stable than others, unless you want x265 2pass encoding the last test build should be fine. One issue the stable release for instance has is with mp4box muxing.
Seems for me Staxrip is preventing the monitor to turn off after the 5 minutes I have it set to. Not standby, just monitor off. Using knlmeanscl, but was never an issue before with earlier builds. Using latest test build, but was happening with the previous one as well.
I've not changed the code since it was added. I've changed a flag now and tested it successfully afterwards (without knlmeanscl), new flag is called PowerRequestExecutionRequired, old was PowerRequestSystemRequired.
burfadel
29th June 2017, 11:10
After some playing around it seems to be fine now! Must be one of those little glitches in Windows because of the use of the video card with knlmeanscl.
NikosD
29th June 2017, 11:25
2.66 is working, maybe my driver is old, in device manager it shows as: 21.20.16.4534
My Haswell Core i3 works fine using latest 15.40 drivers which is 4624 (compatible with Broadwell/ Haswell)
Take a look here:
https://downloadcenter.intel.com/product/81497
For Skylake/ Kabylake latest 15.45 drivers you can download 4678 version from here:
https://downloadcenter.intel.com/product/98909/Intel-HD-Graphics-630
stax76
29th June 2017, 11:48
Thanks for the link, with the new driver neither worked, after a second look at the error:
D3D9Device: Failed CreateDeviceEx: -2005530516
I remembered there are related options so I tried --d3d11 and this works.
NikosD
29th June 2017, 11:59
Ah OK.
I have my only GPU (iGPU) connected directly to the monitor, so D3D9 always works fine.
I think you need the latest driver/API and Kabylake for some new features of 2.70 to work, anyway.
JohnLai
29th June 2017, 13:35
Dear stax76,
Where did the 'fixed bitrate' option at Project Options go?
stax76
29th June 2017, 14:35
Dear stax76,
Where did the 'fixed bitrate' option at Project Options go?
It's set automatically depending on which text box (bitrate/size) was edited last.
stax76
29th June 2017, 18:40
Requirements
.NET 4.7 is required on systems prior Windows 10 Version 1703 (Creators Update)
https://www.microsoft.com/en-us/download/details.aspx?id=55170
Download
https://drive.google.com/open?id=0B-gPKiJYuKuITld4dzhuTC1WWWM
https://onedrive.live.com/redir?resid=604D4754F64B0ABC!4140&authkey=!ANUm9V3vTPmEFNI&ithint=folder%2c7z
1.5.1.5 unstable test build
new: parallel audio processing
new: added setting to define how many projects to keep under: 'Main Menu > Project > Recent', the setting is located at: Main Menu > Tools > Settings > General
new: added new thumbnail generation options
new: added new feature to archive log files in the settings directory, by default the last 50 log files are keept, this number can be customized at: 'Main Menu > Tools > Settings > General', the folder can be opened with the windows file explorer at: Main Menu > Tools > Folders > Log Files
new: qsvenc options --fade-detect and --repartition-check
fix: wrong fps display in main form for 50/60 fps
fix: version detection disabled for all VC++ runtimes because of issues with file projection via hardlinks and WINSXS
fix: two issues in x264 command line generation
change: renamed and reset setting to minimize to tray
change: nvenc vpp deband support improved
change: Option to delete temp files moved to: Tools > Settings > System
change: scaling and layout improved for numeric up down control and custom menu editor
change: code refactoring of dynamically generated dialogs (settings/options/codecs), this has let to changed data types and a reset of video encoder profiles
change: the mkv title tag in the container options isn't overwritten by a title tag of the source file when the source is loaded
update: mkvtoolnix 13.0.0.0
update: qsvenc 2.70
update: AviSynth+ 2508
update: x265 2.4+89
stax76
29th June 2017, 19:41
1.5.1.6 fixes some issues with the new process management.
JohnLai
30th June 2017, 04:33
It's set automatically depending on which text box (bitrate/size) was edited last.
Oh...Okay.
Thanks for the parallel audio processing feature.:thanks:
Unfortunately I can only test it on next week.
I lent my external hdd to my friend yesterday.
My decrypted dvd stuff is inside it.
Just few questions on parallel audio processing, how many instances of audio are being processed at once? Two instances or as many as available? Can audio processing instances be specified? Worried it gonna overload older generation of dual core CPU (very unlikely to happen :devil:) or those with slow HDD (input/output bottleneck, all hail RAMdisk and SSD)
Magik Mark
30th June 2017, 09:30
Stax,
Nice work on parallel processing of video & audio!
Magik Mark
30th June 2017, 09:32
Stax,
No pressure, how are we doing in:
--analysis-mode ==> --analysis-reuse-mode
--analysis-file ==> --analysis-reuse-file
--refine-level ==> --analysis-reuse-level
How will this be implemented in Staxrip? Do we have to use "save" in first pass then "load" on the 2nd pass
stax76
30th June 2017, 10:58
Just few questions on parallel audio processing, how many instances of audio are being processed at once? Two instances or as many as available?
Only the two audio files from the main dialog are parallelized so together with video encoding max three processes run in parallel. I hope I can implement a option shortly. Meanwhile I noticed the last build is pretty alpha, I hope can improve it shortly, threading is tricky, the design is still not great but it will be a good improvement in the end.
@Mark
So far I only tested if two pass works, if there is nothing in the next built please create a issue on the tracker, most feature requests there are implemented within two weeks at times I'm dedicated to staxrip.
Yups
30th June 2017, 21:20
https://abload.de/img/unbenanntk7j1o.png
Can I disable this message somehow? Because it's quite annoying when I test different settings for a video and I have to close this window over and over again.
When I use Avisynth decoder Staxrips shows me the remaining time but with ffmpeg DVXA2 as a decoder which is faster I don't see the remaining encoding time. Is this Staxrip related?
https://abload.de/img/unbenannt2knu6f.png
https://abload.de/img/unbenannt3q6uk6.png
stax76
1st July 2017, 04:15
Can I disable this message somehow? Because it's quite annoying when I test different settings for a video and I have to close this window over and over again.
Yes, it can be disabled in Options > Video and Options > Audio
When I use Avisynth decoder Staxrips shows me the remaining time but with ffmpeg DVXA2 as a decoder which is faster I don't see the remaining encoding time. Is this Staxrip related?
It's qsvenc related, the status line is always a 1:1 copy of the console output.
You can also do hardware decoding with DSS2 (DXVA copy back in LAV Filters) or with DGDecNV.
Requirements
.NET 4.7 is required on systems prior Windows 10 Version 1703 (Creators Update)
https://www.microsoft.com/en-us/download/details.aspx?id=55170
Download
https://drive.google.com/open?id=0B-gPKiJYuKuITld4dzhuTC1WWWM
https://onedrive.live.com/redir?resid=604D4754F64B0ABC!4140&authkey=!ANUm9V3vTPmEFNI&ithint=folder%2c7z
1.5.1.7 unstable test build
new: setting added to define the maximum number of parallel processes (Tools > Settings > General)
fix: parallel process management hopefully much more stable
update: mvtools2 2.7.21.22
update: x265 2.4+96
burfadel
1st July 2017, 04:43
Thanks! I was just about to report a bug, it's probably been fixed now with the process management fixes. If it is still an issue I'll try my best to explain what is happening :).
burfadel
1st July 2017, 13:36
Unfortunately the problem is still there. I have set Staxrip to go to the system tray, and have multiple files in queue and just doing single encodes at a time for this lot. The staxrip window comes up fine for the first encode, but I believe on encode changes the interface gets stuffed, such that Staxrip will just go to the taskbar but with no window showing so you have no control and can't see progress etc. Only way I know an encode is still going is by the task manager.
I'll leave it in the taskbar and see what happens when it goes on to the next encode. Even the taskbar is completely blank and does not show progress like it normally does.
stax76
1st July 2017, 13:41
You have multiple jobs in the jobs list and can't show the job processing window when you click on the tray icon, is that right?
burfadel
1st July 2017, 14:12
I mean the whole Staxrip window will not show. I believe it happens when it is in the system tray (not taskbar), and it completes a task and goes on to the next one. If you click on the system tray icon Staxrip appears in the taskbar area but with no window showing. Before anyone suggests, no it isn't off the edge of the screen or on a different monitor :). In the case that did happen, it's still a bug because it should show back in the location it was before it was sent to the system tray.
Basically, when you click on the system tray icon, this is all that shows. The encode I believe is about 85 percent through, and still going in the background, but I have no idea of the exact progress.
http://i.imgur.com/c5LXydo.jpg
Just realised I slightly cropped the bottom of the image which is why it doesn't quite look right.
That is with the peek preview where you mouse over the taskbar icon and it shows a miniature display of the programs window. As there is no program window it just show the Staxrip icon.
Example with Firefox that I moved the taskbar icon over to it:
http://i.imgur.com/ahvbhkr.jpg
I have the background change every minute (thousands of scenery etc pics), which is why the taskbar looks different.
I left MPC-BE next to it open in thet taskbar paused to show the progress indicator of the file (yellow because it is paused). Staxrip normally shows the progress like this as well.
stax76
1st July 2017, 14:17
OK, I hope I can easily reproduce and fix it later today.
burfadel
1st July 2017, 15:40
It finished that task and went on to the next one, the Staxrip window reset and shows properly.
I forgot to mention in my previous post that it's happened multiple times, and was what I was referring to immediately after the 1.5.1.7 post. I think it was introduced with the changes in 1.5.1.5, as 1.5.1.4 worked fine.
Thanks for the link, with the new driver neither worked, after a second look at the error:
D3D9Device: Failed CreateDeviceEx: -2005530516
I remembered there are related options so I tried --d3d11 and this works.
It was a bug, he fixed that in QSVEnc 2.71.
stax76
1st July 2017, 17:44
@Yups
That's good news.
@burfadel
I'm currently debugging it.
stax76
1st July 2017, 19:17
Requirements
.NET 4.7 is required on systems prior Windows 10 Version 1703 (Creators Update)
https://www.microsoft.com/en-us/download/details.aspx?id=55170
Download
https://drive.google.com/open?id=0B-gPKiJYuKuITld4dzhuTC1WWWM
https://onedrive.live.com/redir?resid=604D4754F64B0ABC!4140&authkey=!ANUm9V3vTPmEFNI&ithint=folder%2c7z
1.5.1.8 unstable test build
fix: unable to show processing window from tray
update: qsvenc 2.71
burfadel
2nd July 2017, 15:12
Works great now, thanks for the speedy update!
fredlkrue
2nd July 2017, 16:12
Small cosmetic bug:
https://s15.postimg.org/ycyleh86j/50fps.png (https://postimg.org/image/72da6k59j/)
StaxRip-x64-1.5.0.6-test shows correct fps.
I still get wrong frame rate display for 29.76fps and 23.976fps (displays 23.976023fps) files using latest StaxRip build under windows 7.
25fps files displays fine, I haven't try other frame rates.
How do I cut the audio? When I cut the video using preview, the video gets cut, but the audio doesn't get cut. It remains the same.
stax76
2nd July 2017, 17:51
I still get wrong frame rate display for 29.76fps and 23.976fps (displays 23.976023fps) files using latest StaxRip build under windows 7.
It's fine, the value is returned from avs/vs, if there is something wrong then it's the source filter or another filter in your script.
How do I cut the audio? When I cut the video using preview, the video gets cut, but the audio doesn't get cut. It remains the same.
signature, log file
fredlkrue
2nd July 2017, 18:23
It's fine, the value is returned from avs/vs, if there is something wrong then it's the source filter or another filter in your script.
The issue is the display, but the end encoded file is fine, its not a big deal, thanks.
stax76
2nd July 2017, 18:26
The issue is the display, but the end encoded file is fine, its not a big deal, thanks.
The display is fine too, avs/vs/vfw use num/denum 24000/1001, staxrip uses system.double and truncates after 6 decimal digits and mediainfo truncates after 3 decimal digits.
Zetti
2nd July 2017, 20:53
x264 r2851 is released.
stax76
2nd July 2017, 22:53
x264 r2851 is released.
Thanks, next built has it included.
How do I cut the audio? When I cut the video using preview, the video gets cut, but the audio doesn't get cut. It remains the same.
signature, log file
I think I figured it out. It was because I was using split and manually editing the cutting filter instead of setting cut start and end in the preview.
mcjordan
5th July 2017, 14:47
NVEncC 3.14
CPU usage reduction etc. It may be suppressed considerably less when decoding HW.
[NVEnc.auo / NVEncC common]
- Reduce CPU utilization. Especially, CPU usage rate when using HW decoder is greatly reduced.
- Added option to specify CUDA scheduling mode. (-cuda-schedule <string>)
Mainly determines the behavior of the CPU when waiting for GPU task completion. The default is sync.
- auto - Leave the mode decision to the driver of CUDA.
- spin - Always run the CPU and monitor the end of the GPU task. The latency of restoration is the smallest, it is the fastest, but always uses the CPU usage for one core.
- yield - Basically it is the same as spin, but it gives over to other threads if there is one.
- sync - leep thread until GPU task is finished. Instead of slightly degrading performance, especially when using HW decoding, greatly reduce CPU usage.
- Adjust the way to synchronize CPU / GPU.
- Display the CUDA version at runtime in the log.
[NVEncC]
- Fixed the place where help display was wrong.
- Progress display garbage should not remain at the end of encoding.
- Use NVML to get information such as GPU usage rate. Only x64 version.
ENiGMA59
5th July 2017, 17:13
Problem muxing mp4 :scared:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Muxing using MP4Box 0.7.2-DEV-rev37 x64
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
"C:\Program Files\Staxrip\Apps\MP4Box\MP4Box.exe" -add "C:\Users\ENiGMA59\Desktop\RS 2\rs.2_temp\rs.2_new_out.h264#video" -add "C:\Users\ENiGMA59\Desktop\RS 2\rs.2_temp\rs.2_out1.ac3#audio:lang=fre:name=French DTS 1509kbps" -add "C:\Users\ENiGMA59\Desktop\RS 2\rs.2_temp\rs.2 ID4 French French.srt:lang=fre:name= " -chap "C:\Users\ENiGMA59\Desktop\RS 2\rs.2_temp\rs.2_chapters.xml" -itags encoder="StaxRip 1.5.0.0" -new "C:\Users\ENiGMA59\Desktop\RS 2\rs.2_new.mp4"
[32m[avc-h264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent.
[0m[32mAVC-H264 import - frame size 1280 x 528 at 23.976 FPS
[32mAVC Import results: 153963 samples (157820 NALUs) - Slices: 2152 I 47621 P 104190 B - 1 SEI - 1928 IDR
[0m[32mStream uses forward prediction - stream CTS offset: 2 frames
[0m[32mAC3 import - sample rate 48000 - 5.1 channels
[32mTimed Text (SRT) import - text track 1280 x 528, font Serif (size 18)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Error Muxing using MP4Box 0.7.2-DEV-rev37 x64
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Muxing using MP4Box 0.7.2-DEV-rev37 x64 failed with exit code: -1073741819 (0xC0000005)
The exit code might be a system error code: L'instruction à 0xp emploie l'adresse mémoire 0xp. L'état de la mémoire ne peut pas être s.
[32m[avc-h264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent.
[0m[32mAVC-H264 import - frame size 1280 x 528 at 23.976 FPS
[32mAVC Import results: 153963 samples (157820 NALUs) - Slices: 2152 I 47621 P 104190 B - 1 SEI - 1928 IDR
[0m[32mStream uses forward prediction - stream CTS offset: 2 frames
[0m[32mAC3 import - sample rate 48000 - 5.1 channels
[32mTimed Text (SRT) import - text track 1280 x 528, font Serif (size 18)
Start: 17:55:13
End: 17:55:13
Duration: 00:00:00
Help me please , thanx in adcance
stax76
5th July 2017, 19:27
@mcjordan
Thanks, I'll update it.
@ENiGMA59
The newest staxrip test build has a newer mp4box build, I hope that it was fixed meanwhile.
https://github.com/stax76/staxrip/blob/master/md/test-build.md
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.