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 10th September 2023, 09:27   #4761  |  Link
Atlantis
Registered User
 
Join Date: Feb 2002
Posts: 748
I bet obviously not.
Atlantis is offline   Reply With Quote
Old 10th September 2023, 12:20   #4762  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,467
Feed the following avisynth script matched to your requirements (don't know if .avs import works again)
Code:
source=last
faultframeno=<your faulty frameno here>
repair=source.<your repairalgo here>
Trim(source,0,faultframeno-1)++Trim(repair,faultframeno,faultframeno)++Trim(source,faultframeno+1,0)
__________________
"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 10th September 2023, 17:56   #4763  |  Link
Atlantis
Registered User
 
Join Date: Feb 2002
Posts: 748
Which means you have to re-encode the whole video. It is not just replacing a frame.
Atlantis is offline   Reply With Quote
Old 10th September 2023, 22:48   #4764  |  Link
Pulp Catalyst
Registered User
 
Join Date: May 2006
Posts: 296
Haven't asked for a while, Can stax do auto HDR to SDR tone mapping automatically without user interaction yet.

I mean Stax will detect and use best settings based on Source?

if so, what would the sequence be inside the stax gui (where would it sit, at the end, middle, just after the source)

Thanks
Pulp Catalyst is offline   Reply With Quote
Old 17th September 2023, 19:47   #4765  |  Link
laserbones
Registered User
 
Join Date: Sep 2023
Posts: 2
I've having no luck searching for this answer and feel like I'm blind. Are there simple variable and constant bitrate settings in Staxrip? Where can I control these settings? in x264 options there are 3 rate controls. Are these the setting I need to learn? I'm used to just selecting VBR or CBR in handbrake or adding a -q:v flag in ffmpeg.
laserbones is offline   Reply With Quote
Old 20th September 2023, 15:31   #4766  |  Link
Khun_Doug
Registered User
 
Join Date: Jul 2016
Posts: 98
Are you asking about these values for hardware (GPU) encoding? Or are you looking at software encoders, x264 and s265? That makes a difference in how you adjust the encoder and what quality you expect to get. It could also be the type of job you are trying to accomplish. If this is just final archiving of material and detail encoding isn't the goal, then hardware encoders are the way to go.

If you are looking for speed, GPU encoders are generally better. If you are interested in getting more control on how the encoder does its job, the software encoders are the way to go. I personally think software encoders, while they may take more time, are a much better choice.
Khun_Doug is offline   Reply With Quote
Old 23rd September 2023, 19:15   #4767  |  Link
N'Cha
Registered User
 
Join Date: Sep 2023
Posts: 28
Hi

I see a lot of choices of filters in StaxRip but it's very complicated to find comparison online about each filters and their pros/cons, especially on anime
For anime (1080p) what are the best filters to use for each of these categories?
- Upscaler
- Sharpen
- Anti-Aliasing
- Denoise
- Degrain
- Deblock
- Dehalo
- Dering

I know, some will say "it depends on the anime" but by "best" I mean the filters the brings a mix of "good enough (visible improvement vs the source file) + not too slow + versatile (fit for most anime)

Also, do the order of filters matter?

Thanks in advance
N'Cha is offline   Reply With Quote
Old 24th September 2023, 06:52   #4768  |  Link
laserbones
Registered User
 
Join Date: Sep 2023
Posts: 2
Quote:
Originally Posted by Khun_Doug View Post
Are you asking about these values for hardware (GPU) encoding? Or are you looking at software encoders, x264 and s265? That makes a difference in how you adjust the encoder and what quality you expect to get. It could also be the type of job you are trying to accomplish. If this is just final archiving of material and detail encoding isn't the goal, then hardware encoders are the way to go.

If you are looking for speed, GPU encoders are generally better. If you are interested in getting more control on how the encoder does its job, the software encoders are the way to go. I personally think software encoders, while they may take more time, are a much better choice.
I'm assuming I'm using software encoding. I'm selecting x264 from the encoding profiles. I'm not selecting NVEenC or any other hardware profile. Am I able to control if I'm using VBR or CBR? I actually just want to know what the x264 profile uses. I'm used to having a more direct option in Adobe Media Encoder or Handbrake to select CBR or VBR. I'm assuming these setting are different in Staxrip. I've gone through the settings and I'm confused on what settings control these options.

Last edited by laserbones; 24th September 2023 at 06:54.
laserbones is offline   Reply With Quote
Old 24th September 2023, 16:04   #4769  |  Link
N'Cha
Registered User
 
Join Date: Sep 2023
Posts: 28
What would be the best "source" choice between FFVideoSource (default) FFM2, LWLibAvVideoSource and L-Smash? I don't understand the pros and cons in term of quality, speed, features, compression etc. for encoding .mkv of anime (from Bluray remux)

Also, is it possible (if yes, how?) to add DGDecodeNV as source filter in Staxrip?

Thanks for the help

Last edited by N'Cha; 28th September 2023 at 05:38.
N'Cha is offline   Reply With Quote
Old 29th September 2023, 14:02   #4770  |  Link
seagate
Registered User
 
Join Date: May 2010
Posts: 26


The Train 1964 UHD100 2160p HEVC HDR10 DoVi DTS-HD MA 2.0

Quote:
Complete name : 00004.m2ts
Format : BDAV
Format/Info : Blu-Ray Video
File size : 91,6 GB
Duration : 2 h 13 min
Overall bit rate mode : Variable
Overall bit rate : 98,6 Mb/s
Maximum Overall bit rate : 109 Mb/s
Frame rate : 24,000 FPS

Video #1
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : SMPTE ST 2086, HDR10 compatible
Codec ID : 36
Duration : 2 h 13 min
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate : 24,000 FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color pri : BT.2020
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 1015 cd/m2
Maximum Frame-Average Light : 154 cd/m2

Video #2
ID : 4117 (0x1015)
Menu ID : 1 (0x1)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : SMPTE ST 2086, HDR10 compatible
Codec ID : 36
Duration : 2 h 13 min
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 24,000 FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color pri : BT.2020
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2

Audio #1
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : DTS XLL
Format/Info : Digital Theater Systems
Commercial name : DTS-HD Master Audio
Muxing mode : Stream extension
Codec ID : 134
Duration : 2 h 13 min
Bit rate mode : Variable
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48,0 kHz
Frame rate : 93,750 FPS (512 SPF)
Bit depth : 18 bits
Compression mode : Lossless

Audio #2
ID : 4353 (0x1101)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : 129
Duration : 2 h 13 min
Bit rate mode : Constant
Bit rate : 384 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48,0 kHz
Frame rate : 31,250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 365 MB (0%)
Service kind : Complete Main

Audio #3
ID : 4354 (0x1102)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : 129
Duration : 2 h 13 min
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48,0 kHz
Frame rate : 31,250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 122 MB (0%)
Service kind : Complete Main

Audio #4
ID : 4355 (0x1103)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : 129
Duration : 2 h 13 min
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48,0 kHz
Frame rate : 31,250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 122 MB (0%)
Service kind : Complete Main

Audio #5
ID : 4356 (0x1104)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : 129
Duration : 2 h 13 min
Bit rate mode : Constant
Bit rate : 192 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48,0 kHz
Frame rate : 31,250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 183 MB (0%)
Service kind : Complete Main

Text
ID : 4768 (0x12A0)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144

v.2.29.0 - error log
seagate is offline   Reply With Quote
Old 30th September 2023, 09:25   #4771  |  Link
Trench
Registered User
 
Join Date: Sep 2015
Posts: 16
I had re-created my templates in StaxRip over the past few releases since it seemed wise, but now I'm encountering an issue which I'm not sure whether its new behavior of updated underlying tools, or something I forgot to include in my settings.

I have existing .MP4 files with x265 video and AAC audio. Using these as the source file in StaxRip, I make a project that uses Copy/Mux on the video track (I'm not re-encoding or changing anything in the video), but I will re-encode the audio track to make a 2-channel AAC version in addition to the existing 5.1 AAC audio track. The result is saved back to .MP4 format again.

The problem is that the resulting .MP4 can no longer seek during playback. It will play fine from the beginning, but attempting to seek hangs things up. Playing the ORIGINAL .MP4 FILE seeks just fine & successfully, which to me meant the x265 encode had everything it needed to seek.

So I'm keeping/muxing the video track from the .MP4 where seeking works successfully. But my re-packaged .MP4 using this Copy/Muxed video track now fails to seek, like some flag of the MP4 container is now missing even though the x265 encoding itself is unmodified.

Any hints for how I could have broken seeking when using StaxRip Copy/Mux with an MP4 source and destination container & a x265 video track would be appreciated.
Trench is offline   Reply With Quote
Old 16th October 2023, 15:16   #4772  |  Link
Glarioo
Registered User
 
Join Date: Dec 2011
Posts: 148
Bit depth is 8 Bits instead of 10 Bits

Why does this happen?
Log file attached
Attached Images
 
Attached Files
File Type: txt MEN_IN_BLACK_4_INTERNATIONAL_new_staxrip.txt (17.6 KB, 2 views)

Last edited by Glarioo; 16th October 2023 at 15:22.
Glarioo is offline   Reply With Quote
Old 16th October 2023, 21:33   #4773  |  Link
Glarioo
Registered User
 
Join Date: Dec 2011
Posts: 148
Quote:
Originally Posted by Glarioo View Post
Why does this happen?
Log file attached
Found. Profile was set to main instead of main10.
Glarioo is offline   Reply With Quote
Old 22nd October 2023, 00:26   #4774  |  Link
katzenjoghurt
Registered User
 
Join Date: Feb 2007
Posts: 128
Has someone run into this yet?



Sorry, the second part of the log message is German as it seems to come from the system.
Essentially it is saying that the process can't access the Settings.dat file as it's already used by another process.

Happens to me SOMETIMES while batch processing multiple jobs...
It's super-annoying: I return to my PC expecting to see the result of my jobs... and instead I see this window.
I can then click retry and batch processing of the next StaxRip project would continue.

Probably it's got something to do with my setup though...
- I linked to my own installation of VapourSynth R64 and Python 3.11
- I added some VS functions to the profiles

Unless it's a common problem, I guess one of the two is triggering it.

I resetted/deleted the Settings.dat and also set up StaxRip completely anew... but the problem returned.

Totally looks like a race condition issue - like StaxRip is SOMETIMES blocking itself from accessing the settings file while switching to a new job.

Whether StaxRip is on HDD or SSD doesn't seem to matter.


Again - anyone ever seen that?
The randomness makes it so nasty to debug and fix....



edit: I looked at the respective code, looks all well handled with mutexes, and compiled my own version that should do a retry after two seconds and show a warning popup.
But the problem didn’t reoccur yet… hum.

Maybe NOD32 (my virus scanner) is/was sometimes locking the settings file briefly after it’s saved and before it’s reloaded?
Still puzzled…

Last edited by katzenjoghurt; 23rd October 2023 at 13:55.
katzenjoghurt is offline   Reply With Quote
Old 24th October 2023, 19:12   #4775  |  Link
Atlantis
Registered User
 
Join Date: Feb 2002
Posts: 748
I had to cut out a part of a video. I used trim and imported external audio which should be in sync after the trimming.

After a long encode I discovered that the audio is out of sync.
Is trimming with the preview windows also cut the audio? The audio is correct I don't want to touch it.
Atlantis is offline   Reply With Quote
Old 25th October 2023, 10:54   #4776  |  Link
katzenjoghurt
Registered User
 
Join Date: Feb 2007
Posts: 128
Quote:
Originally Posted by Atlantis View Post
I had to cut out a part of a video. I used trim and imported external audio which should be in sync after the trimming.

After a long encode I discovered that the audio is out of sync.
Is trimming with the preview windows also cut the audio? The audio is correct I don't want to touch it.
It should be fine in 99% of all cases.
I've been using an older StaxRip version until recently and there I sometimes (!) also ran into async audio when reencoding older/odd clips, like interlaced DVD extras or so.

I would try with a different source filter in your case and a quick test encode (lower resolution / fast encoder settings).
Maybe you also notice a slight change in the reported fps after changing the source filter - that would be a good sign that that is the solution.

Another idea: as you imported an external audio track manually - maybe for the original audio track some delay was defined in the container that is lost after you add it manually?

Last edited by katzenjoghurt; 25th October 2023 at 10:58.
katzenjoghurt is offline   Reply With Quote
Old 25th October 2023, 14:44   #4777  |  Link
Atlantis
Registered User
 
Join Date: Feb 2002
Posts: 748
The trimming video does also trim the audio. Found these in the log

----------------- Create avi file for audio cutting 1 -----------------

---------------- Create avi file for subtitle cutting ----------------

As I said, the audio is correct, It did not need to be cut.
Maybe there should be an option that when you trim the video, you can disable trimming the audio and subtitles.
Atlantis is offline   Reply With Quote
Old 25th October 2023, 21:22   #4778  |  Link
katzenjoghurt
Registered User
 
Join Date: Feb 2007
Posts: 128
Quote:
Originally Posted by Atlantis View Post
As I said, the audio is correct, It did not need to be cut.
Maybe there should be an option that when you trim the video, you can disable trimming the audio and subtitles.
Ahh, you were trying to trim a video and add an external audio track that ALREADY was pre-cut to fit just into the section you were about to trim.

Yes, in that case you had to mux the audio track in as a second step after cutting the video stream / reencoding a trimmed section.
But you found that out yourself.
And it should be a quick process too.

Your use case sounds like a real edge case to me though.
katzenjoghurt is offline   Reply With Quote
Old 25th October 2023, 23:01   #4779  |  Link
Atlantis
Registered User
 
Join Date: Feb 2002
Posts: 748
For example to want to have both SDR and HDR track in a video which is a main stream case, having both SDR and HDR for maximum quality.
I had to cut one second from the SDR version to sync it with the HDR version.
Atlantis is offline   Reply With Quote
Old 26th October 2023, 00:23   #4780  |  Link
katzenjoghurt
Registered User
 
Join Date: Feb 2007
Posts: 128
Quote:
Originally Posted by Atlantis View Post
For example to want to have both SDR and HDR track in a video which is a main stream case, having both SDR and HDR for maximum quality.
I had to cut one second from the SDR version to sync it with the HDR version.
Hm. You need an external Muxer anyway then to combine the two video streams and the audio stream.

So you can use StaxRip to just cut the first second of the video stream and ignore audio in your case completely.

Some lossless cutting tool would be better in this case though, so you don‘t have to reencode everything just to cut the first second. But the somewhat working ones I’m aware of cost money.

Theoretically there‘s also the option to delay the video stream in MKVToolnix by a negative 1000ms. That would mean the first second would be skipped.
Not sure how well this is supported by (hardware) players though.
katzenjoghurt 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 17:50.


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