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 5th January 2025, 01:18   #4941  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,928
Sounds familiar: I had the -1 frame problem with Topaz and certain more recent builds (uvz4073) of AviSynth.
pinterf's r4066 worked. I read r4003 from your log.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."

Last edited by Emulgator; 5th January 2025 at 01:20.
Emulgator is offline   Reply With Quote
Old 10th January 2025, 15:09   #4942  |  Link
K.i.N.G
Registered User
 
Join Date: Aug 2009
Posts: 91
When using vapoursynth in staxrip, how can i adjust a filter parameter on specific frames and/or apply filters only to specific frames?

For example increase denoising strength on single frame flashes that seem hard to denoise (like muzzleflashes of guns in grainy footage).

I asked chatgpt and it keeps telling me to do it this way (i used a convert to greyscale to as a quicktest):

Code:
# Function to apply filter to specific frames
def filter_selected_frames(n, clip):
    if n in [100, 200, 300]:  # Apply filter only to frames 100, 200, and 300
        return core.resize.Bicubic(clip, format=vs.GRAY8)  # Apply the filter
    return clip  # Return unmodified frame for others

# Apply the conditional filter and store the result back in 'clip'
clip = core.std.FrameEval(clip, filter_selected_frames, prop_src=clip)
But it doesnt work in staxrip...

The UI itself gives no error in the statusbox below, but when i run the script i get this:

Code:
Error Video encoding (v2.44.1)

x265 x265-4.1+54+9-0c07fe364-.Mod-by-Patman.-x64-alderlake-gcc14.2.0

C:\Tools\StaxRip-v2.44.1-x64\Apps\Encoders\x265\x265.exe --reader-options library=C:\Tools\StaxRip-v2.44.1-x64\Apps\FrameServer\VapourSynth\VSScript.dll --crf 17 --preset slower --output-depth 10 --profile main10 --level-idc 5 --high-tier --rd-refine --psy-rdoq 1.33 --rskip-edge-threshold 4 --ctu 32 --qcomp 0.65 --nr-intra 10 --nr-inter 20 --vbv-bufsize 40000 --vbv-maxrate 40000 --merange 60 --max-merge 3 --rc-lookahead 48 --keyint 360 --master-display "G(8500,39850)B(6550,2300)R(35400,14600)WP(15635,16450)L(10000000,1)" --hdr10 --colorprim bt2020 --colormatrix bt2020nc --transfer smpte2084 --range limited --hdr10-opt --chromaloc 2 --repeat-headers --aud --hrd --deblock -3:-3 --no-sao --output "D:\0\CUT_4-normalx265Settings_6_out.hevc" --input "D:\0\CUT_4-normalx265Settings_6.vpy"

vpy  [INFO]: using external VapourSynth library from: "C:\Tools\StaxRip-v2.44.1-x64\Apps\FrameServer\VapourSynth\VSScript.dll" 
vpy  [INFO]: VapourSynth Core R70
vpy  [FLAW]: 
Traceback (most recent call last):
  File "src\\cython\\vapoursynth.pyx", line 3216, in vapoursynth.publicFunction
  File "src\\cython\\vapoursynth.pyx", line 3218, in vapoursynth.publicFunction
  File "src\\cython\\vapoursynth.pyx", line 834, in vapours occurred while getting frame 0
x265 [FLAW]: unable to open input file <D:\0\CUT_4-normalx265Settings_6.vpy>


Video encoding returned exit code: 1 (0x1)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

StaxRip.ErrorAbortException: x265 x265-4.1+54+9-0c07fe364-.Mod-by-Patman.-x64-alderlake-gcc14.2.0

C:\Tools\StaxRip-v2.44.1-x64\Apps\Encoders\x265\x265.exe --reader-options library=C:\Tools\StaxRip-v2.44.1-x64\Apps\FrameServer\VapourSynth\VSScript.dll --crf 17 --preset slower --output-depth 10 --profile main10 --level-idc 5 --high-tier --rd-refine --psy-rdoq 1.33 --rskip-edge-threshold 4 --ctu 32 --qcomp 0.65 --nr-intra 10 --nr-inter 20 --vbv-bufsize 40000 --vbv-maxrate 40000 --merange 60 --max-merge 3 --rc-lookahead 48 --keyint 360 --master-display "G(8500,39850)B(6550,2300)R(35400,14600)WP(15635,16450)L(10000000,1)" --hdr10 --colorprim bt2020 --colormatrix bt2020nc --transfer smpte2084 --range limited --hdr10-opt --chromaloc 2 --repeat-headers --aud --hrd --deblock -3:-3 --no-sao --output "D:\0\CUT_4-normalx265Settings_6_out.hevc" --input "D:\0\CUT_4-normalx265Settings_6.vpy"

vpy  [INFO]: using external VapourSynth library from: "C:\Tools\StaxRip-v2.44.1-x64\Apps\FrameServer\VapourSynth\VSScript.dll" 
vpy  [INFO]: VapourSynth Core R70
vpy  [FLAW]: 
Traceback (most recent call last):
  File "src\\cython\\vapoursynth.pyx", line 3216, in vapoursynth.publicFunction
  File "src\\cython\\vapoursynth.pyx", line 3218, in vapoursynth.publicFunction
  File "src\\cython\\vapoursynth.pyx", line 834, in vapours occurred while getting frame 0
x265 [FLAW]: unable to open input file <D:\0\CUT_4-normalx265Settings_6.vpy>


Video encoding returned exit code: 1 (0x1)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


   at StaxRip.Proc.Start() in D:\Code\Github\staxrip\staxrip\Source\General\Proc.vb:line 366
   at StaxRip.x265Enc.Encode(String passName, String commandLine, ProcessPriorityClass priority) in D:\Code\Github\staxrip\staxrip\Source\Encoding\x265Enc.vb:line 109
   at StaxRip.x265Enc.Encode() in D:\Code\Github\staxrip\staxrip\Source\Encoding\x265Enc.vb:line 79
   at StaxRip.GlobalClass._Closure$__._Lambda$__141-7() in D:\Code\Github\staxrip\staxrip\Source\General\GlobalClass.vb:line 367
   at System.Threading.Tasks.Parallel.<>c__DisplayClass4_0.<Invoke>b__0()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at StaxRip.GlobalClass.ProcessJob(String jobPath) in D:\Code\Github\staxrip\staxrip\Source\General\GlobalClass.vb:line 376

Last edited by K.i.N.G; 10th January 2025 at 15:14.
K.i.N.G is offline   Reply With Quote
Old 12th January 2025, 22:16   #4943  |  Link
DMD
Registered User
 
DMD's Avatar
 
Join Date: Jan 2006
Location: Italy
Posts: 286
Quote:
Originally Posted by -QfG- View Post
If you have a new x264.exe you can send it to me and i will modify the file .
New version x264-0.164.3204+8-8241910-[Mod-by-Patman]
https://github.com/Patman86/x264-Mod...0.164.3204%2B8

If it is also possible with this file.
Thank you
__________________
my PC with Ryzen 7950X
DMD is offline   Reply With Quote
Old 16th January 2025, 15:31   #4944  |  Link
Trench
Registered User
 
Join Date: Sep 2015
Posts: 17
(Originally posted as https://forum.videohelp.com/threads/...24#post2764022.)

I think I've googled sufficiently to say it doesn't exist, but doesn't hurt to ask: Is there any existing way I could convince existing StaxRip releases to add the "-no-check" parameter to any MP4Box command line it needs to generate when demuxing?

I've encountered more than one MP4 container which ends up throwing error, specifically about "not enough bytes in box colr: 6 left, reading 7":

Code:
StaxRip.ErrorAbortException: MP4Box 2.5-DEV-rev1021-g49a598895-x64-msvc1942

[isom] not enough bytes in box colr: 6 left, reading 7 (file H:\repos\gpac\src\isomedia\iff.c, line 226) - try specifying -no-check (might crash)
[iso file] Read Box "colr" (start 10855184763) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "avc1" (start 10855184623) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "stsd" (start 10855184607) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "stbl" (start 10855184599) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "minf" (start 10855184535) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "mdia" (start 10855184450) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "trak" (start 10855184314) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "moov" (start 10855184198) failed (Invalid IsoMedia File) - skipping
Which stops any further processing. In my particular instances, the MP4 files play fine as-is, and even the demux generates valid exports of all the track types when I manually figure out the needed MP4Box commands and then add "-no-check". I'm about to do it for a second time, so I just wanted to ask whether StaxRip might already have a way to add this without me manually doing the work to demux the MP4.

If it's not already there, does this seem worthy of me making a bug in the tracker, or is there a better place for "enhancement requests." Clearly for any MP4 I'm in control of generating, I would instead want to solve why the generated MP4 isn't valid. But for users of StaxRip receiving an MP4 which they can't otherwise "fix", perhaps having the "use -no-check" option would save them some grief and let StaxRip help them potentially get past the issue.

Oh, the idea didn't come to mind until writing this: Can I get StaxRip to reveal all the demux command lines it intends to generate for the current file? Because that's really "the issue"; because StaxRip processing aborts on the first demux command line that fails, I can't just "look at the StaxRip log" to see all the command lines needed and add -no-check to them to run them manually myself. Only the first failed command line is in the log. StaxRip is willing to preview me the command lines for the encodings it intends to perform, but if it will preview me the demux command lines, I've missed it.
Trench is offline   Reply With Quote
Old 6th February 2025, 17:29   #4945  |  Link
lexx2
Registered User
 
Join Date: Jan 2025
Posts: 1
Question! Can Staxrip make use of the ssimulacra2 implementation in vapoursynth? Having viewed a bunch of encoding quality metrics and apps, I'm convinced that for high fidelity, VMAF is useless and ssimulacra2 is what I need to use. I haven't been able to find any implementation of it where I can compare an original file to a transcoded file and get output metrics. Then I saw that Staxrip can use vapoursynth in...some way... and there's an implementation of ssimulacra2 for vapoursynth.

//I'm in way over my head here. I'm...basically...familiar with CLI syntax, but not Linux shells, regular expressions, etc.
lexx2 is offline   Reply With Quote
Old 16th February 2025, 13:48   #4946  |  Link
Shuichiyagami
Registered User
 
Join Date: Feb 2019
Posts: 14
Why my staxrip always ask "The target file already exist" like this every time after done encoding. Even though it really a new name file and not same like the raw file.

Shuichiyagami is offline   Reply With Quote
Old 16th February 2025, 15:11   #4947  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,928
Unlucky wording, I guess, and I found it so from the first day I used StaxRip.
Maybe to keep you from pressing Accept/Next button again and overwriting the just finished encode.
Could be changed to "Target file encoded", and green, and only switching to abovementioned behaviour when Accept/Next button is pressed again.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."
Emulgator is offline   Reply With Quote
Old 24th February 2025, 12:52   #4948  |  Link
Magik Mark
Registered User
 
Join Date: Dec 2014
Posts: 667
I have been trying to search for a guide that would convert DOVI to HDR. Can someone point me to the right direction?

Thanks
__________________
Asus ProArt Z790 - 13th Gen Intel i9 - RTX 3080 - DDR5 64GB Predator - LG OLED C9 - Yamaha A3030 - Windows 11 x64 - PotPlayerr - Lav - MadVR
Magik Mark is offline   Reply With Quote
Old 6th March 2025, 21:15   #4949  |  Link
salvo00786
Registered User
 
Join Date: Feb 2022
Posts: 22
Hi... I updated to the latest version of Staxrip, but I don't know how to use Super Resolution or Nvidia VSR in encoder NVEncC options.

First of all, what are the differences between NVIDIA Super Resolution and NVIDIA VSR, what isthe best between these two?

If i select these in encoder options/resize, the file is not upscaled. How can I enable the upscale?
salvo00786 is offline   Reply With Quote
Old 7th March 2025, 09:59   #4950  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,928
--output-res <int>x<int>[,<string>=<string>]
Set output resolution. When it is different from the input resolution, HW/GPU resizer will be activated automatically.
All other available resizer parameters and their dependencies see
https://github.com/rigaya/NVEnc/blob..._Options.en.md
These are a lot, and this may change daily with availability of implementations, so I better link to.
Just use CTRL+F vpp-resize in your browser and you will land somewhere in the last quarter.
Which algo is best you will tell after applying and reporting.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."

Last edited by Emulgator; 7th March 2025 at 10:13.
Emulgator is offline   Reply With Quote
Old 31st March 2025, 19:43   #4951  |  Link
lordalibaski
Registered User
 
Join Date: May 2016
Posts: 98
Just installed the latest version and got this error

Code:
DirectoryNotFoundException (v2.46.1)

Could not find a part of the path 'D:\01 - My VHS and DVD\02 - ITF DJ Championships\1997 ITF USA Championships Advancement Class Eliminations Tape 2\1997 ITF USA Championships Advancement Class Eliminations Tape 2.mpeg_temp\1997 ITF USA Championships Advancement Class Eliminations Tape 2_staxrip.log'.

System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\01 - My VHS and DVD\02 - ITF DJ Championships\1997 ITF USA Championships Advancement Class Eliminations Tape 2\1997 ITF USA Championships Advancement Class Eliminations Tape 2.mpeg_temp\1997 ITF USA Championships Advancement Class Eliminations Tape 2_staxrip.log'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
   at StaxRip.StringExtensions.WriteFile(String instance, String path, Encoding encoding) in D:\Code\Github\staxrip\staxrip\Source\General\Extensions.vb:line 609
lordalibaski is offline   Reply With Quote
Old 31st March 2025, 23:03   #4952  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,928
Path too long (266 characters)
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."

Last edited by Emulgator; 31st March 2025 at 23:05.
Emulgator is offline   Reply With Quote
Old 1st April 2025, 22:55   #4953  |  Link
lordalibaski
Registered User
 
Join Date: May 2016
Posts: 98
Why I didn't notice that I don't know, just checked the last time I converted it the title was just 1997 ITF USA Championships Advancement Class.
__________________
System - AMD 9950x3D, Kingston FURY Beast 64GB, MSI MAG X870E Tomahawk, Samsung 990 Pro 1TB M.2, Kingston FURY Renegade 500GB M.2, Antec HCG 1000 Pro Platinum, Thermalright Peerless Assassin 120 SE.
lordalibaski is offline   Reply With Quote
Old 8th April 2025, 07:49   #4954  |  Link
TR-7970X
Registered User
 
TR-7970X's Avatar
 
Join Date: Jan 2025
Posts: 74
Quote:
Originally Posted by lordalibaski View Post
Why I didn't notice that I don't know, just checked the last time I converted it the title was just 1997 ITF USA Championships Advancement Class.
Check your sig, are you sure you have an AMD 9550x3D ??
__________________
Main Systems:-
Threadripper 7970X on Asus Pro WS TRX50-Sage WiFi
Ryzen 9 9950X3D on MSI Carbon X670E
Ryzen 9 7950X on Gigabyte Aorus Elite B650
Intel 13900KF on MSI Tomahawk B660
TR-7970X is offline   Reply With Quote
Old 9th April 2025, 00:13   #4955  |  Link
lordalibaski
Registered User
 
Join Date: May 2016
Posts: 98
I am sure why?

You sure you have all those running as your main systems!!
__________________
System - AMD 9950x3D, Kingston FURY Beast 64GB, MSI MAG X870E Tomahawk, Samsung 990 Pro 1TB M.2, Kingston FURY Renegade 500GB M.2, Antec HCG 1000 Pro Platinum, Thermalright Peerless Assassin 120 SE.

Last edited by lordalibaski; 9th April 2025 at 00:23.
lordalibaski is offline   Reply With Quote
Old 9th April 2025, 00:30   #4956  |  Link
TR-7970X
Registered User
 
TR-7970X's Avatar
 
Join Date: Jan 2025
Posts: 74
Quote:
Originally Posted by lordalibaski View Post
I am sure why?

You sure you have all those running as your main systems!!
I've never heard of a 9550X3D, that's all.

Absolutely !!!
__________________
Main Systems:-
Threadripper 7970X on Asus Pro WS TRX50-Sage WiFi
Ryzen 9 9950X3D on MSI Carbon X670E
Ryzen 9 7950X on Gigabyte Aorus Elite B650
Intel 13900KF on MSI Tomahawk B660
TR-7970X is offline   Reply With Quote
Old 9th April 2025, 00:59   #4957  |  Link
lordalibaski
Registered User
 
Join Date: May 2016
Posts: 98
You haven't heard of one but you have it in your sig!!

https://www.amd.com/en/products/proc...9-9950x3d.html

I actually got it on launch from overclockers.co.uk this will probably be my last system I purchase being the old fart I am.
__________________
System - AMD 9950x3D, Kingston FURY Beast 64GB, MSI MAG X870E Tomahawk, Samsung 990 Pro 1TB M.2, Kingston FURY Renegade 500GB M.2, Antec HCG 1000 Pro Platinum, Thermalright Peerless Assassin 120 SE.
lordalibaski is offline   Reply With Quote
Old 9th April 2025, 01:04   #4958  |  Link
TR-7970X
Registered User
 
TR-7970X's Avatar
 
Join Date: Jan 2025
Posts: 74
Quote:
Originally Posted by lordalibaski View Post
You haven't heard of one but you have it in your sig!!

https://www.amd.com/en/products/proc...9-9950x3d.html

I actually got it on launch from overclockers.co.uk this will probably be my last system I purchase being the old fart I am.
OK, well that just proves that you can't see the typo you've made!!!

Hey, I'm an old fart too
__________________
Main Systems:-
Threadripper 7970X on Asus Pro WS TRX50-Sage WiFi
Ryzen 9 9950X3D on MSI Carbon X670E
Ryzen 9 7950X on Gigabyte Aorus Elite B650
Intel 13900KF on MSI Tomahawk B660
TR-7970X is offline   Reply With Quote
Old 9th April 2025, 01:09   #4959  |  Link
lordalibaski
Registered User
 
Join Date: May 2016
Posts: 98
I do now you've said lol bit like my stupid mistake with my other post not noticing the character length.

Will change it now I have noticed it.
__________________
System - AMD 9950x3D, Kingston FURY Beast 64GB, MSI MAG X870E Tomahawk, Samsung 990 Pro 1TB M.2, Kingston FURY Renegade 500GB M.2, Antec HCG 1000 Pro Platinum, Thermalright Peerless Assassin 120 SE.
lordalibaski is offline   Reply With Quote
Old 9th April 2025, 01:26   #4960  |  Link
TR-7970X
Registered User
 
TR-7970X's Avatar
 
Join Date: Jan 2025
Posts: 74
Quote:
Originally Posted by lordalibaski View Post
I do now you've said lol bit like my stupid mistake with my other post not noticing the character length.

Will change it now I have noticed it.
Nice.

So that's not a bad little system you've got there, are you a "gamer" or more of a "creator" ?

What did have before ?

I have to say, I'm slightly disappointed at the uplift in encoding speed between the 7950X and the 9950X3d...
__________________
Main Systems:-
Threadripper 7970X on Asus Pro WS TRX50-Sage WiFi
Ryzen 9 9950X3D on MSI Carbon X670E
Ryzen 9 7950X on Gigabyte Aorus Elite B650
Intel 13900KF on MSI Tomahawk B660
TR-7970X is offline   Reply With Quote
Reply

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 23:19.


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