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

JKyle
29th March 2021, 00:46
v2.3.0 (https://github.com/staxrip/staxrip/releases/tag/v2.3.0) is released just now.

Among the many changes, these will improve ts/m2ts reading significantly.


Disable eac3to preprocessing by default and extend re-muxing with ffmpeg to m2ts files
Fix ffmpeg not being able to re-mux files with menus
Fix ffmpeg demux issues
Add missing parameters to ffmpeg calls


Now, you'll see a lot less critical errors than before if you choose ffmpeg as the ts/m2ts handler.

But there is a small error that wasn't checked enough before release. ffmpeg: Re-mux (M2)TS to MKV preprocessor in Settings > Preprocessing is missing one parameter: -map 0. Without this option, only one stream per type(video/audio/text subtitle) will be remuxed to mkv (if you turn on the preprocessor).

So click Edit... and insert the option as follows:

https://i.imgur.com/vdVKaG9.jpg

jinkazuya
29th March 2021, 17:02
Maybe there's room for performance improvement of QTGMC.

Check if your CPU supports AVX2 (using CPU-Z and the like). If so, replace the shipped plugins_JPSDR.dll(in <StaxRip-Folder>\Apps\Plugins\AVS\JPSDR\) file with the AVX2 version in plugins_JPSDR_v3_2_5.7z (https://github.com/jpsdr/plugins_JPSDR/releases/tag/3.2.5). (The one in x64\Release_clang_W7_AVX2 is recommended.) See if it makes any change.

StaxRip ships with AVX version in consideration of backwards compatibility for more users.

Thanks but does it really work? The reason I am saying this is because I am now using vapoursynth for encoding instead of Avisynth. With vapoursynth I could encode the videos without having to resort to setting any multithreads because it is already multithreaded to begin with.

This is the info of the video encoding


--------------------------- Video encoding ---------------------------

x264 x264

"C:\Users\Desktop\StaxRip\StaxRip-v2.3.0-x64\Apps\FrameServer\VapourSynth\vspipe.exe"
"C:\Users\Desktop\Encoded Videos\ The Witness HDTV 1080i x264_temp\The Witness Ep01 20201019 HDTV 1080i x264.vpy"
- --y4m | "C:\Users\Desktop\StaxRip\StaxRip-v2.3.0-x64\Apps\Encoders\x264\x264.exe"
--crf 18 --colorprim bt709 --colormatrix bt709 --transfer bt709 --demuxer y4m --frames 131290 --output
"C:\Users\Desktop\Encoded Videos\The Witness HDTV 1080i x264_temp\The Witness HDTV 1080i x264_out.h264" -

Script exceeded memory limit. Consider raising cache size.
y4m [info]: 1280x720p 0:0 @ 50/1 fps (cfr)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 3.2, 4:2:0, 8-bit

JKyle
29th March 2021, 18:25
Thanks but does it really work? The reason I am saying this is because I am now using vapoursynth for encoding instead of Avisynth. With vapoursynth I could encode the videos without having to resort to setting any multithreads because it is already multithreaded to begin with.

You're right. I wrote the post for general users in mind, but maybe I wasn't clear about it. Sorry about the confusion. :rolleyes:

However, maybe you can try it out on AviSynth+ instead of VapourSynth and compare which performs better.

Multithreading QTGMC in AviSynth+ is not difficult. This example on an AviSynth Wiki Page (http://avisynth.nl/index.php/SetFilterMTMode) may be helpful:

(Suppose you have 4 logical cores.)

# This line causes all filters that don't have an MT mode explicitly use mode 2 by default.
# Mode 2 is a relatively safe choice until you don't know most of your calls to be either mode 1 or 3.
# Compared with mode 1, mode 2 trades memory for MT-safety, but only a select few filters will work with mode 1.

SetFilterMTMode("DEFAULT_MT_MODE", 2)

# FFVideoSource(), like most of all source filters, needs MT mode 3.

# Note: starting with AviSynth+ r2069, it will now automatically recognize source filters.
# If it sees a source filter which has no MT-mode specified at all, it will automatically use
# mode 3 instead of the default MT mode.

SetFilterMTMode("FFVideoSource", 3)

# Now comes your script as usual

FFVideoSource(...)
Trim(...)
QTGMC(Preset="Medium", EdiThreads=2)
...

# Enable MT!

Prefetch(5)


You can put SetFilterMTMode("DEFAULT_MT_MODE", 2) and SetFilterMTMode("FFVideoSource", 3)(if needed) before the source filter in `Options` > `Filters` > `Code inserted at top of scripts:`.

And Prefetch filter is in the `Misc` > `MTMode` category.

For a small tip, just edit filters and project options without any source file and save it as a template. Then you can avoid the annoying task of redoing filter/option selection for later jobs.

jinkazuya
30th March 2021, 01:51
You're right. I wrote the post for general users in mind, but maybe I wasn't clear about it. Sorry about the confusion. :rolleyes:

However, maybe you can try it out on AviSynth+ instead of VapourSynth and compare which performs better.

Multithreading QTGMC in AviSynth+ is not difficult. This example on an AviSynth Wiki Page (http://avisynth.nl/index.php/SetFilterMTMode) may be helpful:

(Suppose you have 4 logical cores.)

# This line causes all filters that don't have an MT mode explicitly use mode 2 by default.
# Mode 2 is a relatively safe choice until you don't know most of your calls to be either mode 1 or 3.
# Compared with mode 1, mode 2 trades memory for MT-safety, but only a select few filters will work with mode 1.

SetFilterMTMode("DEFAULT_MT_MODE", 2)

# FFVideoSource(), like most of all source filters, needs MT mode 3.

# Note: starting with AviSynth+ r2069, it will now automatically recognize source filters.
# If it sees a source filter which has no MT-mode specified at all, it will automatically use
# mode 3 instead of the default MT mode.

SetFilterMTMode("FFVideoSource", 3)

# Now comes your script as usual

FFVideoSource(...)
Trim(...)
QTGMC(Preset="Medium", EdiThreads=2)
...

# Enable MT!

Prefetch(5)


You can put SetFilterMTMode("DEFAULT_MT_MODE", 2) and SetFilterMTMode("FFVideoSource", 3)(if needed) before the source filter in `Options` > `Filters` > `Code inserted at top of scripts:`.

And Prefetch filter is in the `Misc` > `MTMode` category.

For a small tip, just edit filters and project options without any source file and save it as a template. Then you can avoid the annoying task of redoing filter/option selection for later jobs.

It seems that the avisynth does not have detailsharpen. BTW, is there a way to import script for avisynth with StaxRip? This is something I do not really know how to do. Sorry about the inconvenient.

JKyle
30th March 2021, 04:12
It seems that the avisynth does not have detailsharpen.

SharpenDetail is the AVS version of DetailSharpen, and like I said in the previous post (https://forum.doom9.org/showthread.php?p=1938966#post1938966), it's not available on x64. Use other alternatives instead.

Atlantis
31st March 2021, 08:12
New bug introduced in 2.3.0.

External subtitles do not load automatically.

movie.mkv
movie.English.srt

The subtitle does not load automatically like before. You have to add them manually which slows the work.

stax76
31st March 2021, 09:41
That's probably not a bug, please have a look at the subtitle options, we've worked on the related code recently because of a missing feature and tested everything afterwards.

Atlantis
31st March 2021, 10:53
The options are correct. The only thing is that I didn't go clean install from the previous version. It was like only 3-4 days between the two. I will try a clean install later.

44vince44
31st March 2021, 11:50
@Atlantis, the modification that were made are exactly the kind that require resetting your settings.
The new options have been completely rewritten by Stax76 and Dendraspis.

However I CONFIRM THERE IS A PROBLEM:

-> Add Hardcoded Subtitles does not work when "Demux preferred languages but don't include them".
But it works when "Demux and Include..." is selected

stax76
31st March 2021, 12:09
The options are correct. The only thing is that I didn't go clean install from the previous version. It was like only 3-4 days between the two. I will try a clean install later.

StaxRip has many features, we don't know which options were used, please make a screenshot of the subtitle options or tell us your preferred subtitle languages and the subtitle mode chosen in the dropdown.

Atlantis
31st March 2021, 13:11
I'm in an encoding job that takes a day. I will do a clean install after that.

Was this change between 2.2.0. and 2.3.0? I didn't see anything major change in the description and that's why going from 2.2.0. to 2.3.0 I kept the settings.

44vince44
31st March 2021, 22:49
It's not a clean install problem, I could confirm this bug (see my previous post), and a commit was done today by Dendraspis to fix that!

Atlantis
31st March 2021, 22:56
Thanks. Now I'm not going to clean anything!

my option is
show dialog to choose subtitles to be included

In the language I have several but when I open a file and open options, I see that the language part is erased!

In the meantime, is there a working hotfix exe file? Because it is kind of a major thing.

JKyle
1st April 2021, 08:11
I posted two very basic how-to documents on the Wiki regarding QTGMC usage for AviSynth+ in StaxRip.


How to optimize JPSDR for AVX2 supporting CPU: a recommended step for using QTGMC in AviSynth (https://github.com/staxrip/staxrip/wiki/How-to-optimize-JPSDR-for-AVX2-supporting-CPU%3A-a-recommended-step-for-using-QTGMC-in-AviSynth)
How to set up a simple multithreaded QTGMC template for AviSynth (https://github.com/staxrip/staxrip/wiki/How-to-set-up-a-simple-multithreaded-QTGMC-template-for-AviSynth)


Hope they can be of help for beginners. :)

Atlantis
1st April 2021, 08:20
How faster this makes QTGMC compared to the normal use?

stax76
1st April 2021, 11:07
@Atlantis

For the subtitle issue please use the GitHub issue tracker.

44vince44
1st April 2021, 13:51
@Atlantis,
I have already opened an issue and it has been fixed.
But YOU should have done that.

Now you can still request the hotfix, in the issue I have opened. Do not double post please.
here is the link to the issue: https://github.com/staxrip/staxrip/issues/643

@JKyle, thanks for the new guides !!

Atlantis
2nd April 2021, 18:52
Don't worry, I will never post on the GitHub, and I have never double posted anything.

@44vince44, I SHOULD have done that? Nope. Who says I SHOULD have done that?
I already reported the problem here and that is enough.

There is no you should do anything anywhere. Give me a break.

Tonysa
2nd April 2021, 20:18
Hi everyone, I have been using staxRip for many years and have always enjoyed it. Lately I am having trouble converting an mp4 file, coming from a TV recording (agptek video grabber), I get a file with audio sync issues. I have tried many versions of staxrip including the latest 2.3.0, without solving the problem ... I have tried to change video (h264, h265) and audio (aac, mp3, opus) settings and codecs without solving the problem. The same file is successfully converted by other software such as handbrake or avidemux. anyone can help me? sorry for my poor english.

44vince44
3rd April 2021, 07:36
@Atlantis, we wish to work on Github, and take requests and bug reports there, and keep this place for discussions between users, because this forum is more adapted to discussions and announcements.
After that @Stax76, then I, have asked you to do so, then if you still don't wish to go to Github, you're free to do so, but we might not answer or even check here one day.

And as per your answer "Give me a break", I tell you: no one is forcing you to use Staxrip. We are the developing team (personaly I'm only involved in testing), and we make such decisions for the software.

44vince44
3rd April 2021, 07:43
@Tonysa:
Your problem can come from two possible reasons:
1) The Video Source (the first filter in the filter list): Staxrip will use LSMASH for mp4s, you can change it to FFVideoSource, it works better for some mp4s and will possibly fix your problem
2) If for some reason you still have AV sync problems, then maybe your mp4s are using variable frame rate. In this case there is a guide here:
https://github.com/staxrip/staxrip/wiki/How-to-edit-a-VFR%28Variable-Frame-Rate%29-video-%28from-smartphones%2C-etc%29-avoiding-audio-sync-issues-in-StaxRip

But I think the solution 1 will work in your case.

Atlantis
3rd April 2021, 11:40
It seems you don't understand. I'm not expecting anything and I am not expecting any answers. I'm doing you a favor. I am helping you.

It is very idiotic to say to post on the github. It could not be a bug, it could be only me, it could be my problem only which is exactly why this place is the correct place to report.
It's for discussions. Experts here can see and test to see if it is a REAL bug and if it is, they can open an issue on the github not to waste people's time.

44vince44
3rd April 2021, 14:22
It seems actually you don't understand: I have confirmed your bug twice here, and posted an issue on Github, and the issue was fixed while you were still discussing here, although I informed you about that and Github, and @Stax76 invited you to post there.
Next time, if you want to follow-up bug corrections, and get a hotfix, then please go to github.
And even better, you want to help? Please create the issue on github when the bug is confirmed.
Not sure it is a bug? discuss it here, or simply post a ticket using the "question" template on github. Once it is confirmed there, it will be tagged as a bug, otherwise you'll get a useful and kind answer.
So: it is not idiotic to post a "possible bug" on github.

We are only willing to to manage everything from a single location, which is Github. Please help us do so.

Khun_Doug
3rd April 2021, 16:01
Hi everyone, I have been using staxRip for many years and have always enjoyed it. Lately I am having trouble converting an mp4 file, coming from a TV recording (agptek video grabber), I get a file with audio sync issues. I have tried many versions of staxrip including the latest 2.3.0, without solving the problem ... I have tried to change video (h264, h265) and audio (aac, mp3, opus) settings and codecs without solving the problem. The same file is successfully converted by other software such as handbrake or avidemux. anyone can help me? sorry for my poor english.

Take a look at the FPS of the source. I have a VHS video capture that reports the wrong FPS, causing the sound to be out of sync. I use the AssumeFPS and equivalent tools to force the FPS to the proper speed. That eliminates the sound being out of sync.

stax76
4th April 2021, 13:15
@Atlantis

I won't comment the argument except that arguments sometimes happen for different reasons and in the best case people get along afterwards.

Regarding the issue tracker, forum support can work for a small or simple app but for a large or complex app it can be difficult, video encoding in general is a difficult field, there are too many formats, tools and features. In order to understand a request it can be necessary to have a lot of information and to ask many questions. There can be times when 5 different users post about 5 different issues in a support thread, addressing everything and not forgetting anything and anybody is too difficult here.

Issue trackers are designed to address requests, the GitHub tracker is very good, additionally to the tracker there is also a new discussions feature which is popular among staxrip users.

Large or complex apps like staxrip or mpv ask users to fill out an issue template because it can be necessary to have a sample file, a log file, media info and a step by step description how to reproduce the problem and various other information.

In your particular case it was relevant to know media info to know the container format and the amount, format and language of the subtitles. The used subtitle mode 'Show dialog' was relevant and also which subtitles were checked in the dialog. A bug report with 2-3 sentences can only work when the bug area isn't complex and the user is experienced enough to provide the relevant info.

JKyle
4th April 2021, 18:37
I couldn't agree more with @stax76.

Following up on each and every post in this forum is very time-consuming and sometimes, painful.

This is a little off-topic, but I'd like to point this out:
We're living in an age of multimedia, and we're talking about a tool that deals with multimedia.
Isn't it sort of an irony that our conversation is mostly made up of texts only?
It's really easy to miss what the writer wants to talk about if there's no other supporting material.

Besides, so many topics are scattered here and there in this SINGLE thread. Sigh...
That makes us easily forget previous topics unless we search for them intentionally.

Please, be a little bit more supportive in this regard.

abban270
5th April 2021, 11:18
hi every one
am asking for good preset to encode small videos size of home videos without losing most of quality
am using Staxrip
and this this an sample
https://www.mediafire.com/file/vp1x7sh0qe0zmze/test.mp4/file
thanks in advance

Andy
6th April 2021, 11:49
Greetings, I have a problem with StaxRip 2.3.0:
When encoding NVENC, VBR and Multipass appears in the encoding window, but I do not have active, I have VBRHQ and NO multipass.
So it's just an error in the setting or NVENC encodes how it is in the window?
I first recorded this error in version 2.1.8.0
In version 2.1.3.0 it still worked correctly.

https://abload.de/thumb/staxripseetings6sk06.jpg (https://abload.de/image.php?img=staxripseetings6sk06.jpg)

https://abload.de/thumb/staxripwindowl3k7k.jpg (https://abload.de/image.php?img=staxripwindowl3k7k.jpg)

JKyle
6th April 2021, 22:53
...I have VBRHQ and NO multipass.

VBRHQ/CBRHQ do NOT exist any more as rate control modes as of NVEnc 5.29.
See the corresponding part on the NVEnc online manual (https://github.com/rigaya/NVEnc/blob/master/NVEncC_Options.en.md#encode-mode-options).

This definitely needs to be fixed in StaxRip. Thanks for the info.

Andy
7th April 2021, 08:01
Yes you're right. NVenc from version 5.10 supports API in version 10.0. However, this is conditional on the driver 445.87 and higher.
If the driver is older, API 9.0,9.1 is automatically used, where VBRHQ still works.
Thank you for directions. :thanks:

https://github.com/rigaya/NVEnc/releases/tag/5.10

Pulp Catalyst
7th April 2021, 11:13
How does someone do a hevc (bluray remux mkv) to hevc tonemapping,

i use ripbot which has a simple tonemap on and off (works really well, but sometimes ripbot seems to crash and stops processing frames)

does stax have the ability just add a filter to a job, and a scripts takes over the automation of dealing with what to do?

for example there are things like b2020 and 2086, or something like that.

i'm hoping that stax has a filter that is turned on and it does what it needs to?

if not has anyone here developed a script (filter) that i could have that does what i'm after.

thanks

44vince44
7th April 2021, 17:25
@Pulp Catalyst:

JKyle wrote this guide to show you how to add DGToneMap and DGHDRtoSDR to Staxrip.
https://github.com/staxrip/staxrip/wiki/How-to-register-DGTonemap-&-DGHDRtoSDR-filters-in-StaxRip

Those filters are amazing, but their license type does not allow free redistribution, so they require the user to download the filter.

If you are converting HDR to SDR, then remember to set the VUI parameters of x265 to standard SDR values (e.g. BT709 etc): this usually removes all VUI switches form the encoding command. If you don't, then Staxrip will import the VUI relating to HDR which is not suitable for the resulting SDR stream.

Tonysa
8th April 2021, 18:59
@Tonysa:
Your problem can come from two possible reasons:
1) The Video Source (the first filter in the filter list): Staxrip will use LSMASH for mp4s, you can change it to FFVideoSource, it works better for some mp4s and will possibly fix your problem
2) If for some reason you still have AV sync problems, then maybe your mp4s are using variable frame rate. In this case there is a guide here:
https://github.com/staxrip/staxrip/wiki/How-to-edit-a-VFR%28Variable-Frame-Rate%29-video-%28from-smartphones%2C-etc%29-avoiding-audio-sync-issues-in-StaxRip

But I think the solution 1 will work in your case.

Thanks for the help but it didn't work ... i tried to use FFVideoSource but without success. The mp4 video source is actually VFR, I followed the guide indicated ... but nothing, the result is always out of sync

JKyle
10th April 2021, 00:07
How to change Audio FPS (not Video) from 23.976 to 25.000 or 25.000 to 23.976 while encoding a video in StaxRip's Latest Version?

Audio frame rate has nothing to do with video frame rate, and AFAIK, it's very marginal info in almost all cases.

To adjust the playtime of an audio, you need to apply an audio filter that stretches/squeezes the audio, instead of dealing with the (unrelated) audio frame rate.

For example, atempo filter is very useful if you encode the audio track/file using ffmpeg.

(StaxRip employs ffmpeg for all audio codecs except AAC. For AAC, there are four encoders - qaac, fdkaac, NeroAAC, and ffmpeg - but only ffmpeg is available in the shipped release version due to license issues.)

If you'd like to slow down the play speed of an audio by 0.9, you just need to put -af "atempo=0.9" in the Custom field of Audio Settings window as follows.

https://i.imgur.com/XDvIOAk.jpg

You need to make sure that the encoder is ffmpeg.

For more info on atempo, see here (https://ffmpeg.org/ffmpeg-filters.html#atempo).

Pulp Catalyst
10th April 2021, 00:11
@Pulp Catalyst:

JKyle wrote this guide to show you how to add DGToneMap and DGHDRtoSDR to Staxrip.
https://github.com/staxrip/staxrip/wiki/How-to-register-DGTonemap-&-DGHDRtoSDR-filters-in-StaxRip

Those filters are amazing, but their license type does not allow free redistribution, so they require the user to download the filter.

If you are converting HDR to SDR, then remember to set the VUI parameters of x265 to standard SDR values (e.g. BT709 etc): this usually removes all VUI switches form the encoding command. If you don't, then Staxrip will import the VUI relating to HDR which is not suitable for the resulting SDR stream.


Thanks for the guide, i did set this up once, but if i recall it started asking questions... like white colour...or something like that...is this like ripbot, you turn it on, and it is ready to go (in other words, default settings are already implemented)?

thanks

JKyle
10th April 2021, 00:30
...is this like ripbot, you turn it on, and it is ready to go (in other words, default settings are already implemented)?

Nope. You need to do some setup on your side referring to the filter manuals.

But most of all, you need to learn some basics about colorspace/pixel formats and the difference b/w HDR and SDR.

Unfortunately, StaxRip is not a one-shot automated solution to all video related jobs. The convenience it provides is limited in some respect.

I'm thinking about writing a how-to on this topic, but, boy... it's really cumbersome. :rolleyes:

JKyle
10th April 2021, 04:01
The mp4 video source is actually VFR, I followed the guide indicated ... but nothing, the result is always out of sync

In my experience, the audio desync issue of many VFR or irregular frame rate videos is better handled by ffmpeg than by AviSynth/VapourSynth. This is partly because ffmpeg processes video/audio streams concurrently based on timestamps, while AviSynth/VapourSynth process them separately and focus on video frames based on the frame indexes.

In some uncommon cases, the video frame rate variability is so wide that after converting it to CFR, the audio becomes out of sync here and there in the middle of the video even if the start and end become synchronous. In that case, AFAIK, there is no alternative but to process the source using ffmpeg to avoid the desync issue.

In many common cases, though, remuxing to an mkv file via ffmpeg before loading in StaxRip, or following the guide (https://github.com/staxrip/staxrip/wiki/How-to-edit-a-VFR%28Variable-Frame-Rate%29-video-%28from-smartphones%2C-etc%29-avoiding-audio-sync-issues-in-StaxRip) is usually helpful.

JKyle
10th April 2021, 07:04
I've added two new wiki documents.


If QTGMC raises errors right after the fresh install... (https://github.com/staxrip/staxrip/wiki/If-QTGMC-raises-errors-right-after-the-fresh-install...)
How to tonemap HDR to SDR (https://github.com/staxrip/staxrip/wiki/How-to-tonemap-HDR-to-SDR)


If you have no idea what 'pixel format' or 'colorspace' means, please search and study. :rolleyes:

Lupissimo
10th April 2021, 09:27
I have been a Stax-User for many years and enjoy its continuing improvements!
Presently I am using 2.1.8.0 and have 2 questions:
1. After testing the "Noise" functions I found mclean in most cases to do the best job even though it runs with 2..4fps/s on my computer. But it crashes in ca. every 3..4th encode. Is there anything I can do to avoid it?
2. I have used the tweak function in the older Stax versions which allowed to adjust brightness, contrast, saturation and hue. The present tweak version does not allow this anymore. Is there another function to do the job or a way to go back to the "old" tweak?

DavidRyan
10th April 2021, 11:46
Thanks for the help but it didn't work ... i tried to use FFVideoSource but without success. The mp4 video source is actually VFR, I followed the guide indicated ... but nothing, the result is always out of sync
Just want to check, did you try DSS2 as an input filter or only FFVideoSource? I ask because I use that as a fallback option with variable frame rate sync issues and it generally keeps things in sync I find.

You may need to judge which is the best frame rate to output and change it from default if necessary, eg if you decide that 23.976 is the best fit in terms of playback you would amend the source filter to:
DSS2("%source_file%", fps=23.976)

Setting that frame rate wrong won't affect sync, but you may lose frames or end up with more duplicate frames than necessary as it will just add/remove frames to stay in sync, at least that's what I noticed from testing it.

44vince44
10th April 2021, 15:39
@LUPISSIMO:
Please download version 2.4.0 it has the tweak that you want. Remember, this version is very different, so you must not use previous settings (either you delete previous settings or chose a new folder for the settings).
You'll find the Tweak filter in Color > Tweak > choose "Neutral" then edit the parameters

@Pulp Catalyst
There is no easy way to do the HDR to SDR conversion. I personally use DGHDRtoSDR and tweak the white value by selecting a couple of frames displaying the darkest and brightest intensities (brightest usually explosions, gunshots). I use a colorpicker that gives me the RGB values at the position of the mouse pointer. I check that the darkest areas are visible, and that the brightest areas don't get saturated. If the result seems lacking "contrast" then I slightly change the value of gamma. Then I would also change the blue value because it has a higher default than the red and green values (only if the global hue seems blueish). This could take some time, but the result is very good.

@DavidRyan I agree, I find it strange that Tonysa didn't succeed. I've already converted tens of VFR files and it worked everytime...

@Probrosam the solution that JKyle gave you is good (if 23.976 to 25.000 then -af "atempo=1.0427" and if 25.000 to 23.976 then -af "atempo=0.959" ). And as usual, JKyle taught me somthing new :-).
But if you want to achieve something at a high professional standard, you need to edit the audio separately in a DAW and apply some timestretching with very specific algorithms. if you do a resampling, then the pitch will be changed, and any attentive ear will notice it (it has been done many times for TV shows in the past, but the result is imho unacceptable). Timestretching algorithms don't have this pitch change issue, but they are not perfect, although preferable to resampling. If your audio is multichannel, then consider definitely inserting/deleting frames (like with ChangeFPS) and keeping the time index unchanged.


@JKyle HUGE THANKS for the new guides :-)

Andy
10th April 2021, 18:08
I've added two new wiki documents.


How to tonemap HDR to SDR (https://github.com/staxrip/staxrip/wiki/How-to-tonemap-HDR-to-SDR)


Thank you for this manual, I did it wrong :goodpost:

tppytel
10th April 2021, 18:27
New to Staxrip... apologies if I'm missing something obvious...

Can I return to the main project menu while encoding? Like say I have a long Encode A running and want to go load up a short Encode B to run ahead of it. I can see how to pause a running job, but I can't see how to get back to the main menu.

44vince44
10th April 2021, 19:29
@tppytel

Once the job list is being executed, you can not return to the main window (unless you abort or wait the job to finish)
However, you can open a new instance of StaxRip and prepare any new encode, and even run the new encode at the same time the other encode is running.

tppytel
10th April 2021, 20:31
Gotcha - thanks for the reply!

Baconce
11th April 2021, 17:49
Audio frame rate has nothing to do with video frame rate, and AFAIK, it's very marginal info in almost all cases.

To adjust the playtime of an audio, you need to apply an audio filter that stretches/squeezes the audio, instead of dealing with the (unrelated) audio frame rate.

For example, atempo filter is very useful if you encode the audio track/file using ffmpeg.

(StaxRip employs ffmpeg for all audio codecs except AAC. For AAC, there are four encoders - qaac, fdkaac, NeroAAC, and ffmpeg - but only ffmpeg is available in the shipped release version due to license issues.)

If you'd like to slow down the play speed of an audio by 0.9, you just need to put -af "atempo=0.9" in the Custom field of Audio Settings window as follows.

https://i.imgur.com/XDvIOAk.jpg

You need to make sure that the encoder is ffmpeg.

For more info on atempo, see here (https://ffmpeg.org/ffmpeg-filters.html#atempo).
Thanks a lot !!!!!!!

Andy
12th April 2021, 08:11
How to change Audio FPS (not Video) from 23.976 to 25.000 or 25.000 to 23.976 while encoding a video in StaxRip's Latest Version?
To transfer the audio frame rate (23.976-> 24-> 25, 25->24->23.976) I do not use StaxRip, but EAC3TO.
https://forum.doom9.org/showthread.php?t=125966
The video then "stretch" in Mkvtoolnix and mux with audio.
For small differences from video and audio (for example: 23,976 - 23.98, etc.) is a great program "Audacity".

JKyle
12th April 2021, 09:50
As a side note, the concept of 'frame' in audio is unrelated to that in video.
See this note (https://larsimmisch.github.io/pyalsaaudio/terminology.html).

Atlantis
13th April 2021, 00:56
v2.4.0.
It seems it doesn't recognize forced subtitles like before.
adding xxxxxxx.English.Forced.srt does not make the Forced box checked.

JKyle
15th April 2021, 02:50
There is a "Sharpen / Sharpen Script" on RipBot264 v1.26.0. Is there any way to use it on StaxRip?

What's the script code? :script: