Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 Encoder GUIs

Reply
 
Thread Tools Search this Thread Display Modes
Old 2nd May 2021, 16:48   #19081  |  Link
kempodragon
Registered User
 
Join Date: Feb 2002
Location: Biddeford, Me USA
Posts: 167
Calling Ripbot from another application

I recently started converting my 3d movies to play on my Oculus Quest with BD3D2MK3D. The encoder that it uses, while doing an excellent job, doesn't make full use of my Threadripper. I only get about 48fps at ~30% CPU usage. BD3D2MK3D does allow an external encoder to be used, so I want to call Ripbot using the command line and take advantage of its distributed encoding. I looked at using the avs script that BD3 generates, but Ripbot doesn't support level 5.0, which is needed for the full SBS files that I make. I've read the help file, but it doesn't say if EncodingClient.exe or EncondingServer.exe is called. You help is greatly appreciated.
kempodragon is offline   Reply With Quote
Old 3rd May 2021, 01:05   #19082  |  Link
Pauly Dunne
Grumpy Old Man.
 
Pauly Dunne's Avatar
 
Join Date: Jul 2019
Location: Out There....
Posts: 692
I've always wanted to know how old certain Forum members were, and then I stumbled across this, thanks to "kempodragon".

https://forum.doom9.org/showthread.php?t=176546

BTW kempo, why don't you just use RipBot to start with !!!!
__________________
Not poorly done, just doin' it my way !!!
Live every day like it's your last, because one day, it will be !! (M$B)
Pauly Dunne is offline   Reply With Quote
Old 3rd May 2021, 20:19   #19083  |  Link
kempodragon
Registered User
 
Join Date: Feb 2002
Location: Biddeford, Me USA
Posts: 167
Two reasons I can't use Ripbot directly:
1: Ripbot can't decode MVC streams that are in 3d Blu-rays. Rolz created BD3D2MK3D to convert 3d Blurays, but he uses the MeGui encoder.

2: Ripbot's gui doesn't go up level 5.0 which is what I need for full SBS encodes.

Importing the scripts that BD3D2MK3D creates was my first choice, but I don't know how to force the encoder to use level 5.0. I prefer full SBS because a VR headset is essentially a full SBS viewer.
kempodragon is offline   Reply With Quote
Old 4th May 2021, 02:33   #19084  |  Link
Pauly Dunne
Grumpy Old Man.
 
Pauly Dunne's Avatar
 
Join Date: Jul 2019
Location: Out There....
Posts: 692
Quote:
Originally Posted by kempodragon View Post
Two reasons I can't use Ripbot directly:
1: Ripbot can't decode MVC streams that are in 3d Blu-rays. Rolz created BD3D2MK3D to convert 3d Blurays, but he uses the MeGui encoder.

2: Ripbot's gui doesn't go up level 5.0 which is what I need for full SBS encodes.

Importing the scripts that BD3D2MK3D creates was my first choice, but I don't know how to force the encoder to use level 5.0. I prefer full SBS because a VR headset is essentially a full SBS viewer.
Hi kempo,

Well, it just so happens I have played around a fair bit with MVC 3D's, and yes, RipBot does not recognise them.

But why are you wanting to run them thru RipBot anyway ??

Also, you might be able to answer a question I have had about MVC tracks, are they a "proper" video track, or are they just the 3D component of the AVC track, to produce the 3D affect ??

Also, if you had a "grainy" MVC 3D movie, and ran it thru RipBot to clean it up, then remuxed the MVC track back in, would that cause problems ???

So here's what I know, you CAN demux the MVC track with tsmuxer (the newer nightly builds), I think you can also "up" the level's...then you could run it thru RipBot do what you want to the AVC track & maybe audio track, them mux them back together with tsmuxer, and IF you still needed to, use BD3D2MK3D to achieve your FULL SBS, there's the process.

Of course tsmuxer only output's .ts, .m2ts & .iso files !!

MKVToolnix, MKVmerge, (whatever you want to call it), also doesn't like MVC tracks, if I remember correctly.

And you can also increase the level's in RipBot, it's the x264 or x265 command line.

This is what I use in RipBot :-

for x264:- --level 5.2 --aud --nal-hrd vbr --vbv-bufsize 300000 --vbv-maxrate 300000

for x265:- --level 5.2 --profile main10 --output-depth 10

All you have to do is go to the Profiles folder in the main RipBot264 folder, and edit the .txt files found under avc & hevc, then they will become available in the drop down within RipBot
__________________
Not poorly done, just doin' it my way !!!
Live every day like it's your last, because one day, it will be !! (M$B)

Last edited by Pauly Dunne; 4th May 2021 at 03:53.
Pauly Dunne is offline   Reply With Quote
Old 4th May 2021, 16:05   #19085  |  Link
Ripmann
Registered User
 
Join Date: Nov 2019
Posts: 72
Is there a way to change the default values for the denoise settings? The KNLMeansCL ones are too strong for me, even at KNLMeansCL1. I usually change them in the JobX.avs files, but I'd prefer to just set up the defaults and forget about it if possible. (sometimes I forget and have to redo a ten-hour job because of it.)
Ripmann is offline   Reply With Quote
Old 4th May 2021, 16:28   #19086  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,806
Quote:
Originally Posted by Ripmann View Post
Is there a way to change the default values for the denoise settings? The KNLMeansCL ones are too strong for me, even at KNLMeansCL1. I usually change them in the JobX.avs files, but I'd prefer to just set up the defaults and forget about it if possible. (sometimes I forget and have to redo a ten-hour job because of it.)
In next version You will have that...
Atak_Snajpera is offline   Reply With Quote
Old 4th May 2021, 16:31   #19087  |  Link
Ripmann
Registered User
 
Join Date: Nov 2019
Posts: 72
Quote:
Originally Posted by Atak_Snajpera View Post
In next version You will have that...
Who-hoo, Atak is back!
Ripmann is offline   Reply With Quote
Old 4th May 2021, 16:44   #19088  |  Link
Pauly Dunne
Grumpy Old Man.
 
Pauly Dunne's Avatar
 
Join Date: Jul 2019
Location: Out There....
Posts: 692
Quote:
Originally Posted by Ripmann View Post
Is there a way to change the default values for the denoise settings? The KNLMeansCL ones are too strong for me, even at KNLMeansCL1. I usually change them in the JobX.avs files, but I'd prefer to just set up the defaults and forget about it if possible. (sometimes I forget and have to redo a ten-hour job because of it.)
Why don't you make your own, and save it as a Custom filter ???

And why are you using KNLMeansCL anyway ???
__________________
Not poorly done, just doin' it my way !!!
Live every day like it's your last, because one day, it will be !! (M$B)
Pauly Dunne is offline   Reply With Quote
Old 4th May 2021, 17:07   #19089  |  Link
JKyle
App Digger
 
JKyle's Avatar
 
Join Date: Sep 2018
Posts: 411
Since @Atak_Snajpera seems to be back, I'd like to take this opportunity to ask him AGAIN if he doesn't object to redistributing this custom filter script (originally composed by him(?) for RipBot264) in StaxRip.

(Meanwhile, I've renamed the filter to CASm and modified some portion for maintenance in StaxRip.)

Code:
# CASm
#
# An improved sharpening script based on CAS and aWarpSharp2
#
# Original work by Atak_Snajpera for RipBot264
# Renamed and modded by JKyle 2021-04-22 for StaxRip
#
# ---Requirements---
#
# Core plugins:
#    CAS
#    aWarpSharp2
#
# ---Parameters---
# 
# float "strength" (default: 1.0)
# ----------------------------
# Same as CAS's parameter.
# Must be between 0.0 and 1.0.
#

function CASm(clip video, float "strength")
{
strength = default(strength, 1.0)

LevelLimit = (video.BitsPerComponent == 8) ? 255 : 1023
IntensityMask = ConvertToY(video).Levels(0, 2, LevelLimit, 0, LevelLimit, coring = false)
EdgeMask = aSobel(IntensityMask, chroma = 0, thresh = 255, SetAffinity = false).invert.Levels(0, 2, LevelLimit, 0, LevelLimit, coring=false).Blur(1)
SharpMask = Overlay(IntensityMask, EdgeMask, mode = "Multiply", opacity = 1.0)
SharpenedVideo = CAS(video, strength)
video = Overlay(video, SharpenedVideo, mask = SharpMask, opacity = 1.0)

return video
}
It will be saved as CASm.avsi and included in the default filter profiles in StaxRip.

Thanks in advance.
JKyle is offline   Reply With Quote
Old 4th May 2021, 17:15   #19090  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,806
Quote:
Originally Posted by JKyle View Post
Since @Atak_Snajpera seems to be back, I'd like to take this opportunity to ask him AGAIN if he doesn't object to redistributing this custom filter script (originally composed by him(?) for RipBot264) in StaxRip.

(Meanwhile, I've renamed the filter to CASm and modified some portion for maintenance in StaxRip.)

Code:
# CASm
#
# An improved sharpening script based on CAS and aWarpSharp2
#
# Original work by Atak_Snajpera for RipBot264
# Renamed and modded by JKyle 2021-04-22 for StaxRip
#
# ---Requirements---
#
# Core plugins:
#    CAS
#    aWarpSharp2
#
# ---Parameters---
# 
# float "strength" (default: 1.0)
# ----------------------------
# Same as CAS's parameter.
# Must be between 0.0 and 1.0.
#

function CASm(clip video, float "strength")
{
strength = default(strength, 1.0)

LevelLimit = (video.BitsPerComponent == 8) ? 255 : 1023
IntensityMask = ConvertToY(video).Levels(0, 2, LevelLimit, 0, LevelLimit, coring = false)
EdgeMask = aSobel(IntensityMask, chroma = 0, thresh = 255, SetAffinity = false).invert.Levels(0, 2, LevelLimit, 0, LevelLimit, coring=false).Blur(1)
SharpMask = Overlay(IntensityMask, EdgeMask, mode = "Multiply", opacity = 1.0)
SharpenedVideo = CAS(video, strength)
video = Overlay(video, SharpenedVideo, mask = SharpMask, opacity = 1.0)

return video
}
It will be saved as CASm.avsi and included in the default filter profiles in StaxRip.

Thanks in advance.
Sure do whatever you want with that script.
Atak_Snajpera is offline   Reply With Quote
Old 4th May 2021, 17:30   #19091  |  Link
JKyle
App Digger
 
JKyle's Avatar
 
Join Date: Sep 2018
Posts: 411
Quote:
Originally Posted by Atak_Snajpera View Post
Sure do whatever you want with that script.
JKyle is offline   Reply With Quote
Old 4th May 2021, 18:24   #19092  |  Link
Ripmann
Registered User
 
Join Date: Nov 2019
Posts: 72
Quote:
Originally Posted by Pauly Dunne View Post
And why are you using KNLMeansCL anyway ???
Why? What's the problem with it? have almost no knowledge of denoising algorithms, but from my own experimentation, I seem to get the best results from combining MDegrain 1 or 2 (depending on the grain amount) with an additional, very light denoise from KNLMeansCL. Using slightly different parameters, MDegrain removes the main grain and KNLMeansCL slightly optimizes the video for downsampling. I'm sure there can be a better way, I but haven't found one yet.

Last edited by Ripmann; 4th May 2021 at 18:33.
Ripmann is offline   Reply With Quote
Old 4th May 2021, 19:24   #19093  |  Link
Pauly Dunne
Grumpy Old Man.
 
Pauly Dunne's Avatar
 
Join Date: Jul 2019
Location: Out There....
Posts: 692
Quote:
Originally Posted by Ripmann View Post
Why? What's the problem with it? have almost no knowledge of denoising algorithms, but from my own experimentation, I seem to get the best results from combining MDegrain 1 or 2 (depending on the grain amount) with an additional, very light denoise from KNLMeansCL. Using slightly different parameters, MDegrain removes the main grain and KNLMeansCL slightly optimizes the video for downsampling. I'm sure there can be a better way, I but haven't found one yet.
Well.I think SMDegrain does a better job than either !!!

I have been using that for a few weeks, and like it a lot !!!
__________________
Not poorly done, just doin' it my way !!!
Live every day like it's your last, because one day, it will be !! (M$B)
Pauly Dunne is offline   Reply With Quote
Old 4th May 2021, 19:28   #19094  |  Link
Ripmann
Registered User
 
Join Date: Nov 2019
Posts: 72
Quote:
Originally Posted by Pauly Dunne View Post
Well.I think SMDegrain does a better job than either !!!

I have been using that for a few weeks, and like it a lot !!!

Thanks for the advice, I'll look into it.
Ripmann is offline   Reply With Quote
Old 4th May 2021, 19:58   #19095  |  Link
kempodragon
Registered User
 
Join Date: Feb 2002
Location: Biddeford, Me USA
Posts: 167
Pauly, MVC is indeed the 3d only info of the frame. I don't know about your second question. Personally, I dislike the very concept of MVC. Since the movie is played frame sequentially on 3d Blu-rays, with the left eye generally being the main frame and the right eye frame having the 3d info, I feel it should be stored as a true frame sequential. Dark Shikari created a lossless frame sequential test file with left and right full frames awhile back. Thanks for tip on the command line, I'll test it out this weekend.
kempodragon is offline   Reply With Quote
Old 4th May 2021, 23:29   #19096  |  Link
Ripmann
Registered User
 
Join Date: Nov 2019
Posts: 72
Pauly, is there a chance you can help me with installing/using the SMDegrain plugin? A sample script, perhaps? I downloaded SMDegrain.avsi to test it, placed it into AviSynth plugins, and then tried calling the function in a custom script. I tried several variations, but it went something like this:

Code:
LoadPlugin("[INSTALLATION PATH]\RipBot264\Tools\AviSynth plugins\SMDegrain.avsi")
video=SMDegrain(tr=2,thSAD=300,contrasharp=true,refinemotion=true,lsb=true)
But it keeps failing. I'm sure I'm missing something embarrasingly basic, but I never bothered to learn AviSynth and its scripting so I'm shooting in the dark here.
Ripmann is offline   Reply With Quote
Old 5th May 2021, 02:29   #19097  |  Link
Ripmann
Registered User
 
Join Date: Nov 2019
Posts: 72
Quote:
Originally Posted by Pauly Dunne View Post
Well, well, well....

Nice try, and you're definitely on the right track, but it's not that simple, it needs other "dependencies" to work.

May I draw your attention to this post :-

https://forum.doom9.org/showthread.p...89#post1941489
Oh, right, the dependencies. Zs_RF_Shared and the rest. Totally missed that. I'll see if I can install them manually before bothering you again. Thanks!
Ripmann is offline   Reply With Quote
Old 21st May 2021, 21:39   #19098  |  Link
Ryushin
Registered User
 
Ryushin's Avatar
 
Join Date: Mar 2011
Posts: 431
Looks like MKVToolNix is going to support Dolby Vision soon.
https://gitlab.com/mbunkus/mkvtoolnix/-/issues/2784
Ryushin is offline   Reply With Quote
Old 23rd May 2021, 08:28   #19099  |  Link
Pauly Dunne
Grumpy Old Man.
 
Pauly Dunne's Avatar
 
Join Date: Jul 2019
Location: Out There....
Posts: 692
RipBot does NOT like this file...

It's a VP9 with Opus in mkv container....decoder error

https://www.mediafire.com/file/q1wcs...Geneva.7z/file
__________________
Not poorly done, just doin' it my way !!!
Live every day like it's your last, because one day, it will be !! (M$B)
Pauly Dunne is offline   Reply With Quote
Old 23rd May 2021, 09:17   #19100  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,806
Remove "★" and "ü" from file name.
Atak_Snajpera is offline   Reply With Quote
Reply

Tags
264, 265, appletv, avchd, bluray, gui, iphone, ipod, ps3, psp, ripbot264, x264 2-pass, x264 gui, x264_64, x265, xbox360

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 16:51.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.