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

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 4th April 2020, 09:03   #1621  |  Link
Patman
Registered User
 
Patman's Avatar
 
Join Date: Jan 2015
Posts: 286
Quote:
Originally Posted by chipsteps View Post
thank you very muck! So chromaloc customizations are the default and can't be manually set?
You can change chromaloc under x265 options -> VUI 2 if you want.
__________________
Tools for StaxRip | x264 - x265
Patman is offline  
Old 4th April 2020, 16:38   #1622  |  Link
Zetti
Registered User
 
Join Date: Dec 2015
Posts: 306
MKVToolNix v45.0.0 is released.
Zetti is offline  
Old 4th April 2020, 16:43   #1623  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
Originally Posted by Zetti View Post
MKVToolNix v45.0.0 is released.
Thanks, I've bookmarked your post.
stax76 is offline  
Old 5th April 2020, 00:02   #1624  |  Link
impei
Registered User
 
Join Date: Nov 2010
Posts: 4
Hi, I'm using Staxrip 2.0.8.0 stable, and I can't crop more than 40% from any given side. Is there a way to fix this? I've looked through the settings and can't find anything. Thanks.
impei is offline  
Old 5th April 2020, 00:51   #1625  |  Link
chipxtreme
Registered User
 
Join Date: Feb 2019
Posts: 47
MKVToolNix 45.0.0 is out.

Latest beta's haven't had NVEnc upgraded either.
chipxtreme is offline  
Old 5th April 2020, 06:54   #1626  |  Link
JKyle
App Digger
 
JKyle's Avatar
 
Join Date: Sep 2018
Posts: 411
Two errors

@Stax

I'd like to report two errors.


1) Opening/Remuxing TS to MKV failure

I opened an issue about this error on GitHub, so please take a look.


2) qaac fails to encode some flac files

I ran into this weird error (pop-up message) while encoding a 6 channel flac audio stream in a video file into a stereo aac stream using qaac.

Code:
------------------- Audio encoding 1 using qaac 2.68 -------------------

D:\Utilities\StaxRip\Apps\Audio\qaac\qaac64.exe --tvbr 62 --delay -0.001 --normalize "D:\Work\tmp\test_temp\test ID1 -1ms Japanese.flac" -o "D:\Work\tmp\test_temp\test ID1 Japanese_a1.m4a"

qaac 2.68, CoreAudioToolbox 7.10.9.0
test ID1 Japanese_a1.m4a
ERROR: m_module.stream_decoder_seek_absolute(m_decoder.get(), count)

StaxRip.ErrorAbortException: Audio encoding 1 using qaac 2.68 returned error exit code: 2 (0x2)

It's unclear what the exit code means, in case it's a Windows system error then it possibly means:

The system cannot find the file specified


------------------- Audio encoding 1 using qaac 2.68 -------------------

D:\Utilities\StaxRip\Apps\Audio\qaac\qaac64.exe --tvbr 62 --delay -0.001 --normalize "D:\Work\tmp\test_temp\test ID1 -1ms Japanese.flac" -o "D:\Work\tmp\test_temp\test ID1 Japanese_a1.m4a"

qaac 2.68, CoreAudioToolbox 7.10.9.0
test ID1 Japanese_a1.m4a
ERROR: m_module.stream_decoder_seek_absolute(m_decoder.get(), count)


   at StaxRip.Proc.Start() in D:\Projekte\VB\staxrip\General\Proc.vb:line 394
   at StaxRip.GUIAudioProfile.Encode() in D:\Projekte\VB\staxrip\General\AudioProfile.vb:line 676
   at StaxRip.GlobalClass._Closure$__._Lambda$__31-0() in D:\Projekte\VB\staxrip\General\GlobalClass.vb:line 101
   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:\Projekte\VB\staxrip\General\GlobalClass.vb:line 133
The original video file is here and the log file is here.

I never had an error when I re-encoded aac streams with 2 channels using qaac even if I set the decoding method to FLAC.

Thanks in advance.
JKyle is offline  
Old 5th April 2020, 08:33   #1627  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Quote:
Originally Posted by JKyle View Post
2) qaac fails to encode some flac files
It's probably because the file was split at some point without re-creating FLAC headers/re-encoding the FLAC part. This was discussed very recently in the MKVToolNix thread. If you use --delay option of qaac it tries seeking and will fail. (Piping from the mkv using ffmpeg should still work.)

https://gitlab.com/mbunkus/mkvtoolni...-not-supported

Last edited by sneaker_ger; 5th April 2020 at 08:35.
sneaker_ger is offline  
Old 5th April 2020, 09:06   #1628  |  Link
JKyle
App Digger
 
JKyle's Avatar
 
Join Date: Sep 2018
Posts: 411
Quote:
Originally Posted by sneaker_ger View Post
Piping from the mkv using ffmpeg should still work.
Thanks for your advice.

You're right. Setting the decoding method to Pipe solved the problem by piping the flac file via ffmpeg.



In this setting, qaac encodes the wav file piped via ffmpeg instead of directly dealing with the flac file.

Quote:
D:\Utilities\StaxRip\Apps\Encoders\ffmpeg\ffmpeg.exe -i "D:\Work\tmp\test_temp\test ID1 -1ms Japanese.flac" -ac 2 -loglevel fatal -hide_banner -f wav - | D:\Utilities\StaxRip\Apps\Audio\qaac\qaac64.exe --tvbr 62 --delay -0.001 --normalize --gain 5.4 - -o "D:\Work\tmp\test_temp\test ID1 Japanese_a1.m4a"
JKyle is offline  
Old 5th April 2020, 09:08   #1629  |  Link
taulen
Registered User
 
Join Date: Nov 2017
Posts: 4
Quote:
Originally Posted by Z'Hadum View Post
Why do you not simply create two jobs for this? If you start staxrip two times, you get also your parallel processing....
Are you able to do this ?
Whenever I try to do two encoding instances of the same source file it always crashes both instances. This is when doing 2-pass x264 cpu encoding at least.
taulen is offline  
Old 5th April 2020, 10:22   #1630  |  Link
craigpro
Registered User
 
Join Date: Feb 2003
Posts: 68
Hi all,

I downloaded 2.1.0.2 beta as I was having issues with NeroEnc freezing in 2.0.8.0 stable and I noticed this error when encoding a video tonight:

C:\Staxrip\Apps\Encoders\NVEnc\NVEncC64.exe --cqp 18:20:22 --codec h265 --preset quality --level 5.1 --output-depth 10 --qp-init 20 --qp-max 22 --qp-min 18 --aq --aq-temporal --gop-len 240 --lookahead 16 --slices 2 --multiref-l0 4 --multiref-l1 4 --strict-gop --nonrefp --weightp -i D:\Temp\videosource_temp\videosource.avs -o D:\Temp\videosource_temp\videosource_out.h265

--------------------------------------------------------------------------------------------------------------------------------------------
D:\Temp\videosource_temp\videosource_out.h265
--------------------------------------------------------------------------------------------------------------------------------------------
nvenc : Error on nvEncGetEncodePresetConfig: 4 (NVENC this indicates that device passed to the API call is invalid)
multiref(L1) is lowered 4 -> 3 due to HEVC spec.
weighted prediction with B frames unsupported.
NVEncC (x64) 4.68 (r1402) by rigaya, Mar 7 2020 13:54:44 (VC 1916/Win/avx2)
OS Version Windows 10 x64 (18363)
CPU AMD Ryzen 7 3700X 8-Core Processor (8C/16T)
GPU #0: GeForce RTX 2060 (1920 cores, 1710 MHz)[PCIe3x16][445.75]
NVENC / CUDA NVENC API 9.1, CUDA 11.0, schedule mode: auto
Input Buffers CUDA, 32 frames
Input Info Avisynth+ 2.60(yv12)->nv12 [AVX2], 1280x720, 24000/1001 fps
Vpp Filters copyHtoD
cspconv(nv12 -> p010)
Output Info H.265/HEVC main10 @ Level 5.1
1280x720p 1:1 23.976fps (24000/1001fps)
Encoder Preset quality
Rate Control CQP I:18 P:20 B:22
Lookahead on, 16 frames, Adaptive I, B Insert
GOP length 240 frames
B frames 3 frames [ref mode: disabled]
Ref frames 3 frames, MultiRef L0:4 L1:3
AQ on
CU max / min auto / auto
Others mv:auto nonrefp

what does the error mean please?

Should I be using other NVenc settings?

Sorry for my noobidity. Thank you.

EDIT: nvidia driver 445.75

Last edited by craigpro; 5th April 2020 at 11:35.
craigpro is offline  
Old 5th April 2020, 18:34   #1631  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
MKVToolNix v45.0.0 is released.
Quote:
MKVToolNix 45.0.0 is out.

Latest beta's haven't had NVEnc upgraded either.
Thanks, updated.

Quote:
Hi, I'm using Staxrip 2.0.8.0 stable, and I can't crop more than 40% from any given side. Is there a way to fix this? I've looked through the settings and can't find anything. Thanks.
I don't want to waste time and add useless code so it would need a request with explanation why it's not sufficient, in the Options dialog there is a crop section where values can be edited.

Quote:
Opening/Remuxing TS to MKV failure
It's hardly possible to handle everything perfectly by default. In this case you can customize the command line at:

Main Menu > Tools > Settings > Pre Processing > ffmpeg: Re-mux TS to MKV > Edit

Command: powershell.exe

Arguments: -nologo -file "D:\ffmpegTsToMkv.ps1" "%source_file%" "%temp_file%.mkv"

Code:

Code:
$muxingMode = Get-MediaInfoValue ($args[0]) -Kind Audio -Parameter MuxingMode

if ($muxingMode -eq 'ADTS')
{
    $bsf = '-bsf:a', 'aac_adtstoasc'
}

ffmpeg -hide_banner -analyzeduration 100M -probesize 50M -i $args[0] -map 0 -c copy @bsf -y $args[1]
You need to install Get-MediaInfo and add ffmpeg to the path env var or use the full path or use the build from today, it adds all exe tools to the path env var of the process and adds all macros as env vars.

Quote:
Are you able to do this ?
Whenever I try to do two encoding instances of the same source file it always crashes both instances. This is when doing 2-pass x264 cpu encoding at least.
You can process it with one instance sequentially or maybe use the Event Command feature where you can run a command line or powershell script.

Quote:
nvenc : Error on nvEncGetEncodePresetConfig
I can't help with it but you can use the nvenc tracker:

Main Menu > Help > Apps > nvenc > Online > Issues


Code:
2.1.0.5 Beta
------------

- new: the global setting 'Add filter to convert chroma subsampling to 4:2:0'
       uses now ConvertToYUV420 instead of ConverttoYV12
- new: in custom command line based demuxers and in the ExecuteCommandLine
       command the path environment variable of the process has all exe tools
       added and all macros are available as environment variables
- new: AviSynth filter profile using ColorYUV function

- update: mkvtoolnix 45.0.0
- update: nvenc 4.69
- update: DFTTest 1.9.5 Clang
- update: L-Smash-Works 2020-03-22 HolyWu
- update: ffms2 89bd1e1 StvG

- fix: the MediaInfo Folder view did not work unless Get-MediaInfo was installed,
       now it should work even without being installed, please try and give feedback
https://www.dropbox.com/sh/4ctl2y928...dd3yqcAHa?dl=0

https://1drv.ms/u/s!ArwKS_ZUR01g0kH4...3GaKe?e=qbOfGS
stax76 is offline  
Old 5th April 2020, 19:40   #1632  |  Link
Patman
Registered User
 
Patman's Avatar
 
Join Date: Jan 2015
Posts: 286
Quote:
Originally Posted by stax76 View Post
Thanks, updated.
Code:
2.1.0.5 Beta
------------

- new: the global setting 'Add filter to convert chroma subsampling to 4:2:0'
       uses now ConvertToYUV420 instead of ConverttoYV12
- new: in custom command line based demuxers and in the ExecuteCommandLine
       command the path environment variable of the process has all exe tools
       added and all macros are available as environment variables
- new: AviSynth filter profile using ColorYUV function

- update: mkvtoolnix 45.0.0
- update: nvenc 4.69
- update: DFTTest 1.9.5 Clang
- update: L-Smash-Works 2020-03-22 HolyWu
- update: ffms2 89bd1e1 StvG

- fix: the MediaInfo Folder view did not work unless Get-MediaInfo was installed,
       now it should work even without being installed, please try and give feedback
What are the diffrences between 2.1.04 beta and 2.1.0.5 beta?
Some tools were updated... DFTTest 1.9.6, L-Smash-Works 2020-03-28 HolyWu (L-Smash-Works 2020-03-22 HolyWu is buggy), Xvid_encraw 1.3.7 (My Builds).
__________________
Tools for StaxRip | x264 - x265
Patman is offline  
Old 5th April 2020, 23:29   #1633  |  Link
Atlantis
Registered User
 
Join Date: Feb 2002
Posts: 758
In the log, what does Avg QP mean? If it's higher does it mean the picture quality of the encoded file is better?
Atlantis is offline  
Old 5th April 2020, 23:47   #1634  |  Link
JKyle
App Digger
 
JKyle's Avatar
 
Join Date: Sep 2018
Posts: 411
Quote:
Originally Posted by Atlantis View Post
In the log, what does Avg QP mean? If it's higher does it mean the picture quality of the encoded file is better?
Nope, it's the opposite.
QP = quantization parameter.
JKyle is offline  
Old 5th April 2020, 23:48   #1635  |  Link
JKyle
App Digger
 
JKyle's Avatar
 
Join Date: Sep 2018
Posts: 411
Quote:
Originally Posted by Patman View Post
Some tools were updated... DFTTest 1.9.6, L-Smash-Works 2020-03-28 HolyWu (L-Smash-Works 2020-03-22 HolyWu is buggy), Xvid_encraw 1.3.7 (My Builds).
Thanks for the info.

And QSVEnc is updated to 4.00.
JKyle is offline  
Old 6th April 2020, 02:14   #1636  |  Link
jlw_4049
Registered User
 
Join Date: Sep 2018
Posts: 391
Reporting a bug @Stax76
I'm on version 2.0.8.0



The issue is circled in red.

No matter how many times I create an audio profile with the name that I want it to be. It defaults right back to taking on the track name of what it's encoding from. I have tried creating the profile many different ways and times.

Thanks!

EDIT: Found another bug.

I'm trying to setup some batch encode profiles.
When I setup the profile and set my bitrate here
https://i.imgur.com/4wYNilT.jpg
it will not carry over to the encode if I do multiple files with the same settings (batch)

If i force the command with a custom command it does however work here
https://i.imgur.com/3YRA0kv.png

Last edited by jlw_4049; 6th April 2020 at 04:43.
jlw_4049 is offline  
Old 6th April 2020, 02:43   #1637  |  Link
taulen
Registered User
 
Join Date: Nov 2017
Posts: 4
Quote:
Originally Posted by stax76 View Post
You can process it with one instance sequentially or maybe use the Event Command feature where you can run a command line or powershell script.
This is what I do, but with a AMD 3950x it only uses about 50-60% of the CPU, so doing multiple instances REALLY shortens the time. So currently I copy the source file temporarily and run it 2 times that way. But its a bit of a pain tbh :P

What do you mean by the second part of your reply, Im no expert so that went a bit over my head. And thanks for keeping Staxrip alive ! <3
taulen is offline  
Old 6th April 2020, 06:41   #1638  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
What are the diffrences between 2.1.04 beta and 2.1.0.5 beta?
There was a bug where Main Menu > Folders showed an error, the underlying function is probably used by other features as well.

Quote:
Some tools were updated... DFTTest 1.9.6, L-Smash-Works 2020-03-28 HolyWu (L-Smash-Works 2020-03-22 HolyWu is buggy), Xvid_encraw 1.3.7 (My Builds).
I've updated it except xvid for which I've removed the binaries because it's very old, the xvid encoder has still a profile in the video encoder menu and people that try to use it will see the Apps dialog, the download button is linked to your folder so it's easy for people to download.

Quote:
And QSVEnc is updated to 4.00.
Also updated

Quote:
No matter how many times I create an audio profile with the name that I want it to be. It defaults right back to taking on the track name of what it's encoding from. I have tried creating the profile many different ways and times.
I've changed it now that it uses the title of the source only when the title in the profile is empty.

Quote:
This is what I do, but with a AMD 3950x it only uses about 50-60% of the CPU, so doing multiple instances REALLY shortens the time. So currently I copy the source file temporarily and run it 2 times that way. But its a bit of a pain tbh :P
Maybe try chunk encoding with ripbot or mediacoder, staxrip does not have such a feature and I don't have interest at this time. Building an app capable of it might not be terribly difficult for an experienced programmer, maybe a day or two for a prototype, it should be possible to build it as a console app that can be used as drop in replacement with identical CLI as the encoder.

Quote:
What do you mean by the second part of your reply, Im no expert so that went a bit over my head.
There are some advanced features for power users, unfortunately there is no documentation and I usually only help advanced users with it these days. I have a plan to write documentation, some projects have really awesome documentation, for instance mpv or x265.

https://mpv.io/manual/master

https://x265.readthedocs.io/en/latest/cli.html

Last edited by stax76; 6th April 2020 at 06:43.
stax76 is offline  
Old 6th April 2020, 11:30   #1639  |  Link
taulen
Registered User
 
Join Date: Nov 2017
Posts: 4
Quote:
Originally Posted by stax76 View Post
Maybe try chunk encoding with ripbot or mediacoder, staxrip does not have such a feature and I don't have interest at this time. Building an app capable of it might not be terribly difficult for an experienced programmer, maybe a day or two for a prototype, it should be possible to build it as a console app that can be used as drop in replacement with identical CLI as the encoder.


There are some advanced features for power users, unfortunately there is no documentation and I usually only help advanced users with it these days. I have a plan to write documentation, some projects have really awesome documentation, for instance mpv or x265.

https://mpv.io/manual/master

https://x265.readthedocs.io/en/latest/cli.html
No worries, I manage fine using Staxrip, which I have used for a few years by now, and really like. I was just curious if it was a feature that was "hidden away" or something, and I fully understand that you wont take the time to do it. I think I remember seeing you taking a break or "leaving" behind Staxrip at an earlier point, so Im just glad you continue the updating in any way you can and find the time for, thanks ! =)
taulen is offline  
Old 6th April 2020, 11:40   #1640  |  Link
Atlantis
Registered User
 
Join Date: Feb 2002
Posts: 758
An interesting observation I have made with encoding x265 4K. Encoding with a lower CRF takes more time. CRF 21 is a little slower than CRF 22 and CRF 20 is significantly slower.

I would have thought that if you wanted a better quality and use less compression, it should be faster to encode but it is the opposite. So, it is interesting on how to decide which CRF to use. Not only it depends on the quality you want, you have to consider how slow the encoding will be. I'm thinking that for me 4K CRF 20 is a no go for me. Too slow.
Atlantis is offline  
Closed Thread

Tags
aac, hdr, hevc, nvenc, staxrip, x264, x265

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 18:24.


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