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 3rd September 2024, 01:41   #4901  |  Link
Guest
Guest
 
Posts: n/a
Quote:
Originally Posted by DMD View Post
Surely it will already be fixed in version 2.42
I read somewhere, might have been Github, that Dendraspis posted a comment that the x265 issue has already been fixed for the upcoming 2.42 build.
  Reply With Quote
Old 4th September 2024, 14:59   #4902  |  Link
DMD
Registered User
 
DMD's Avatar
 
Join Date: Jan 2006
Location: Italy
Posts: 277
Quote:
Originally Posted by FTLOY View Post
I read somewhere, might have been Github, that Dendraspis posted a comment that the x265 issue has already been fixed for the upcoming 2.42 build.
Confirmed.
https://github.com/staxrip/staxrip/issues/1457
__________________
my PC with Ryzen 7950X
DMD is offline   Reply With Quote
Old 6th September 2024, 12:44   #4903  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 1,124
Version 2.42.0 is released.
https://github.com/staxrip/staxrip/releases/tag/v2.42.0

Lots of changes, etc.
__________________
Long term RipBot264 user.

RipBot264 modded builds..
*new* x264 & x265 addon packs..
TDS is offline   Reply With Quote
Old 9th September 2024, 15:37   #4904  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 1,124
Version 2.42.1 (update) is released. (just a small fix 1.16Mb)
https://github.com/staxrip/staxrip/releases/tag/v2.42.1

Here we go again..
__________________
Long term RipBot264 user.

RipBot264 modded builds..
*new* x264 & x265 addon packs..
TDS is offline   Reply With Quote
Old 9th September 2024, 15:58   #4905  |  Link
DMD
Registered User
 
DMD's Avatar
 
Join Date: Jan 2006
Location: Italy
Posts: 277
Update needed at least for log file generation.
__________________
my PC with Ryzen 7950X
DMD is offline   Reply With Quote
Old 15th September 2024, 03:01   #4906  |  Link
Shuichiyagami
Registered User
 
Join Date: Feb 2019
Posts: 9
I got something like this when i extract staxrip. Is this okay?
Shuichiyagami is offline   Reply With Quote
Old 15th September 2024, 03:13   #4907  |  Link
Guest
Guest
 
Posts: n/a
Quote:
Originally Posted by Shuichiyagami View Post
I got something like this when i extract staxrip. Is this okay?
Try downloading it again...

And/or use 7z to unpack it.
  Reply With Quote
Old 5th October 2024, 20:26   #4908  |  Link
Bibo64
Registered User
 
Join Date: Dec 2018
Posts: 2
problems with fps conversion and deinterlacing with ffmpeg in staxrip

Hello guys,
since I changed from 2.29 to 2.42.1 last week, neither deinterlacing nor frame conversion work using ffmpeg within staxrip.
On the end of a fps conversion the program stops with an error that there were too less frames to encode. How can I tell staxrip that exactly this was my intention (I have 720p50 input which I convert to 480p25)?

And second, deinterlacing doesn't work with ffmpeg.
My command line looks like: -hwaccel cuda -hwaccel_output_format cuda -c:v h264_nvenc -profile:v high -v verbose -vf yadif,delogo=x=100:y=59:w=30:h=60,eq=gamma=0.91:saturation=1.4,crop=1920:1080:0:0,scale=1744x980:flags=lanczos,unsharp=3:3:2 -preset p6 -tune hq -rc vbr -rc-lookahead 32 -spatial-aq 1 -temporal-aq 1 -coder cabac -refs 2 -bf 4 -b_ref_mode middle -b:v 4300k

The log is this:

Quote:
------------------------- System Environment -------------------------

StaxRip : v2.42.1
Settings : v2.42.1
Windows : Windows 10 Pro 22H2 2009 (19041.1.amd64fre.vb_release.191206-1406)
Language : German (Germany)
CPU : AMD Ryzen 9 5900X 12-Core Processor
RAM : 32GB
GPU : NVIDIA GeForce RTX 4060 Ti
Resolution : 2560 x 1440
DPI : 96
Code Page : 1252

----------------------- Media Info Source File -----------------------

D:\GBlueUE4k\1\20240921 Hello_fixed.ts

General
ID : 10016 (0x2720)
Complete name : D:\GBlueUE4k\1\20240921 Hello_fixed.ts
Format : MPEG-TS
File size : 2.46 GiB
Duration : 42 min 15 s
Overall bit rate mode : Variable
Overall bit rate : 8 342 kb/s
Frame rate : 25.000 FPS

Video
ID : 6571 (0x19AB)
Menu ID : 50032 (0xC370)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format, CABAC : Yes
Format, Reference frames : 4 frames
Format, GOP : M=4, N=24
Codec ID : 27
Duration : 42 min 15 s
Bit rate : 7 478 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 FPS
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan type, store method : Separated fields
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.144
Stream size : 2.21 GiB (90%)
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 6572 (0x19AC)
Menu ID : 50032 (0xC370)
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : 6
Duration : 42 min 15 s
Bit rate mode : Constant
Bit rate : 448 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
Delay relative to video : -56 ms
Stream size : 135 MiB (5%)
Language : German
Service kind : Complete Main
Dialog Normalization : -31 dB
cmixlev : -4.5 dB
surmixlev : -6 dB
dialnorm_Average : -27 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -27 dB

----------------------------- Demux Audio -----------------------------

ffmpeg N-116758-x64-gcc14.2.0

"C:\Programme (portabel)\StaxRip-v2.42.0-x64\Apps\FrameServer\AviSynth\ffmpeg.exe" -y -hide_banner -probesize 10M -i "D:\GBlueUE4k\1\20240921 Hello_fixed.ts" -vn -sn -c:a copy "D:\GBlueUE4k\1\20240921 Hello_fixed_temp\ID1_[de] (German) -56ms.ac3"

[h264 @ 000001fe726dc340] mmco: unref short failure
Last message repeated 1 times
[h264 @ 000001fe726dc340] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
[h264 @ 000001fe726dc340] mmco: unref short failure
Last message repeated 1 times
[h264 @ 000001fe726dc340] Increasing reorder buffer to 2
Input #0, mpegts, from 'D:\GBlueUE4k\1\20240921 Hello_fixed.ts':
Duration: 00:42:15.14, start: 19074.473467, bitrate: 8342 kb/s
Program 50032
Stream #0:0[0x19ab]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn
Stream #0:1[0x19ac](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Output #0, ac3, to 'D:\GBlueUE4k\1\20240921 Hello_fixed_temp\ID1_[de] (German) -56ms.ac3':
Metadata:
encoder : Lavf61.5.101
Stream #0:0(deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 448 kb/s
Press [q] to stop, [?] for help
[out#0/ac3 @ 000001fe726dc340] video:0KiB audio:138646KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.000000%

Start: 23:49:05
End: 23:49:06
Duration: 00:00:00

General
Complete name : D:\GBlueUE4k\1\20240921 Hello_fixed_temp\ID1_[de] (German) -56ms.ac3
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
File size : 135 MiB
Duration : 42 min 15 s
Overall bit rate mode : Constant
Overall bit rate : 448 kb/s

Audio
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Duration : 42 min 15 s
Bit rate mode : Constant
Bit rate : 448 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 : 135 MiB (100%)
Service kind : Complete Main
Dialog Normalization : -31 dB
cmixlev : -4.5 dB
surmixlev : -6 dB
dialnorm_Average : -27 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -27 dB

------------------------------ Auto Crop ------------------------------

AutoCrop 2.5

"C:\Programme (portabel)\StaxRip-v2.42.0-x64\Apps\Support\AutoCrop\AutoCrop.exe" "D:\GBlueUE4k\1\20240921 Hello_fixed_temp\20240921 Hello_fixed_source.avs" 3 15 3168 3168 1000 0

0,0,0,0

Start: 23:49:09
End: 23:49:09
Duration: 00:00:00

---------------------------- Configuration ----------------------------

Template : NVENC-ffmpeg-int-TV·HD-colorEnhanced-unsharp
Video Encoder : ffmpegEnc
Video Encoder Profile : ffmpeg | Nvidia | Nvidia H.264
Container/Muxer Profile : MKV (mkvmerge)
+++++
Process Priority : BelowNormal
Delete Temp Files : Disabled
Delete Temp Files Selection : Include

--------------------------- AviSynth Script ---------------------------

AddAutoloadDir("C:\Programme (portabel)\StaxRip-v2.42.0-x64\Apps\FrameServer\AviSynth\plugins")

LoadPlugin("C:\Programme (portabel)\StaxRip-v2.42.0-x64\Apps\Plugins\Dual\L-SMASH-Works\LSMASHSource.dll")
LWLibavVideoSource("D:\GBlueUE4k\1\20240921 Hello_fixed.ts", cachefile="D:\GBlueUE4k\1\20240921 Hello_fixed_temp\temp.lwi")
FadeIO2(50)
# hardware encoder resizes

------------------------- Source Script Info -------------------------

Width : 1920
Height : 1080
Frames : 63377
Time : 42:15.080
Framerate : 25 (25/1)
Format : YUV420P8

------------------------- Target Script Info -------------------------

Width : 1920
Height : 1080
Frames : 63381
Time : 42:15.240
Framerate : 25 (25/1)
Format : YUV420P8

------------- Error Video encoding Nvidia | Nvidia H.264 -------------

ffmpeg N-116758-x64-gcc14.2.0

"C:\Programme (portabel)\StaxRip-v2.42.0-x64\Apps\FrameServer\AviSynth\ffmpeg.exe" -hwaccel cuda -hwaccel_output_format cuda -i "D:\GBlueUE4k\1\20240921 Hello_fixed.ts" -c:v h264_nvenc -profile:v high -v verbose -vf yadif,delogo=x=143:y=69:w=60:h=80,eq=gamma=0.91:saturation=1.4,crop=1920:1080:0:0,scale=1744x980:flags=lanczos,unsharp=3:3:2 -preset p6 -tune hq -rc vbr -rc-lookahead 32 -spatial-aq 1 -temporal-aq 1 -coder cabac -refs 2 -bf 4 -b_ref_mode middle -b:v 4300k -an -y -hide_banner "D:\GBlueUE4k\1\20240921 Hello_fixed_temp\20240921 Hello_fixed_out.h264"

[h264 @ 000002614951f340] Reinit context to 1920x1088, pix_fmt: yuv420p
[h264 @ 000002614951f340] mmco: unref short failure
Last message repeated 1 times
[h264 @ 000002614951f340] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
[h264 @ 000002614951f340] Increasing reorder buffer to 1
[h264 @ 000002614951f340] mmco: unref short failure
Last message repeated 1 times
[h264 @ 000002614951f340] Increasing reorder buffer to 2
[mpegts @ 0000026149514400] max_analyze_duration 5000000 reached at 5000000 microseconds st:0
Selecting decoder 'h264' because of requested hwaccel method cuda
Input #0, mpegts, from 'D:\GBlueUE4k\1\20240921 Hello_fixed.ts':
Duration: 00:42:15.14, start: 19074.473467, bitrate: 8342 kb/s
Program 50032
Stream #0:0[0x19ab]: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first, left), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn
Stream #0:1[0x19ac](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 448 kb/s
[out#0/h264 @ 000002614a6eec00] No explicit maps, mapping streams automatically...
[vost#0:0/h264_nvenc @ 00000261497e0580] Created video stream from input stream 0:0
[Parsed_delogo_1 @ 00000261495a4a80] x:100 y:59, w:30 h:60 band:1 show:0
[Parsed_scale_9 @ 000002614a7f42c0] w:1744 h:980 flags:'lanczos' interl:0
Correcting start time of Input #0 by 56000 us.
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc))
[vost#0:0/h264_nvenc @ 00000261497e0580] Starting thread...
[vf#0:0 @ 00000261495a4440] Starting thread...
[vist#0:0/h264 @ 000002614a6ed040] [dec:h264 @ 00000261495a4a80] Starting thread...
[in#0/mpegts @ 0000026149514080] Starting thread...
Press [q] to stop, [?] for help
[h264 @ 00000261496b09c0] NVDEC capabilities:
[h264 @ 00000261496b09c0] format supported: yes, max_mb_count: 65536
[h264 @ 00000261496b09c0] min_width: 48, max_width: 4096
[h264 @ 00000261496b09c0] min_height: 16, max_height: 4096
[h264 @ 00000261496b09c0] Reinit context to 1920x1088, pix_fmt: cuda
[h264 @ 000002614b0e2040] mmco: unref short failure
Last message repeated 1 times
[h264 @ 000002614b0e2040] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
[h264 @ 00000261495bb2c0] mmco: unref short failure
Last message repeated 1 times
[Parsed_delogo_1 @ 0000026149512ec0] x:100 y:59, w:30 h:60 band:1 show:0
[graph -1 input from stream 0:0 @ 000002616b157cc0] w:1920 h:1080 pixfmt:cuda tb:1/90000 fr:25/1 sar:1/1 csp:bt709 range:tv
[auto_scale_0 @ 000002616b157dc0] w:iw h:ih flags:'' interl:0
[Parsed_yadif_0 @ 000002614aef83c0] auto-inserting filter 'auto_scale_0' between the filter 'graph -1 input from stream 0:0' and the filter 'Parsed_yadif_0'
Impossible to convert between the formats supported by the filter 'graph -1 input from stream 0:0' and the filter 'auto_scale_0'
[vf#0:0 @ 00000261495a4440] Error reinitializing filters!
[vf#0:0 @ 00000261495a4440] Task finished with error code: -40 (Function not implemented)
[vf#0:0 @ 00000261495a4440] Terminating thread with return code -40 (Function not implemented)
[vost#0:0/h264_nvenc @ 00000261497e0580] Encoder thread received EOF
[vost#0:0/h264_nvenc @ 00000261497e0580] Could not open encoder before EOF
[vost#0:0/h264_nvenc @ 00000261497e0580] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_nvenc @ 00000261497e0580] Terminating thread with return code -22 (Invalid argument)
[vist#0:0/h264 @ 000002614a6ed040] [dec:h264 @ 00000261495a4a80] Decoder returned EOF, finishing
[vist#0:0/h264 @ 000002614a6ed040] [dec:h264 @ 00000261495a4a80] Terminating thread with return code 0 (success)
[vist#0:0/h264 @ 000002614a6ed040] All consumers of this stream are done
[in#0/mpegts @ 0000026149514080] All consumers are done
[in#0/mpegts @ 0000026149514080] Terminating thread with return code 0 (success)
[out#0/h264 @ 000002614a6eec00] Nothing was written into output file, because at least one of its streams received no packets.
[AVIOContext @ 00000261495a4240] Statistics: 0 bytes written, 0 seeks, 0 writeouts
[in#0/mpegts @ 0000026149514080] Input file #0 (D:\GBlueUE4k\1\20240921 Hello_fixed.ts):
[in#0/mpegts @ 0000026149514080] Input stream #0:0 (video): 36 packets read (543343 bytes); 4 frames decoded; 0 decode errors;
[in#0/mpegts @ 0000026149514080] Total: 36 packets (543343 bytes) demuxed
[AVIOContext @ 0000026149514ac0] Statistics: 4444304 bytes read, 2 seeks
Conversion failed!


Video encoding Nvidia | Nvidia H.264 returned exit code: -40 (0xFFFFFFD8)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Start: 14:33:34
End: 14:33:35
Duration: 00:00:01
Bibo64 is offline   Reply With Quote
Old 7th October 2024, 19:30   #4909  |  Link
Bibo64
Registered User
 
Join Date: Dec 2018
Posts: 2
Using ffmpeg to perform fps conversion and deinterlacing fails

I use staxrip since the very early days and always found a way for me to manage problems which occur with a new version.
But now I'm stuck...
I convert 720p50 content to 480p25 that fails because staxrip counts the frames encoded and realizes a mismatch (of course...!).

The second is a failure with deinterlacing. I use ffmpeg to impose the delogo filter and so I do all the work within an ffmpeg filter graph that fails completely.
I tried to post a few days before. It was blocked. Maybe my log file was too big?

Tanks in advance.

My command line for the deinterlacing job is: "C:\Programme (portabel)\StaxRip-v2.42.0-x64\Apps\FrameServer\AviSynth\ffmpeg.exe" -hwaccel cuda -hwaccel_output_format cuda -i "D:\GBlueUE4k\1\20240921 Hello_fixed.ts" -c:v h264_nvenc -profile:v high -v verbose -vf yadif,delogo=x=143:y=69:w=60:h=80,eq=gamma=0.91:saturation=1.4,crop=1920:1080:4:4,scale=1744x980:flags=lanczos,unsharp=3:3:2 -preset p6 -tune hq -rc vbr -rc-lookahead 32 -spatial-aq 1 -temporal-aq 1 -coder cabac -refs 2 -bf 4 -b_ref_mode middle -b:v 4300k -an -y -hide_banner "D:\GBlueUE4k\1\20240921 Hello_fixed_temp\20240921 Hello_fixed_out.h264"

error log output (excerpt):
Quote:
[Parsed_delogo_1 @ 0000026149512ec0] x:100 y:59, w:30 h:60 band:1 show:0
[graph -1 input from stream 0:0 @ 000002616b157cc0] w:1920 h:1080 pixfmt:cuda tb:1/90000 fr:25/1 sar:1/1 csp:bt709 range:tv
[auto_scale_0 @ 000002616b157dc0] w:iw h:ih flags:'' interl:0
[Parsed_yadif_0 @ 000002614aef83c0] auto-inserting filter 'auto_scale_0' between the filter 'graph -1 input from stream 0:0' and the filter 'Parsed_yadif_0'
Impossible to convert between the formats supported by the filter 'graph -1 input from stream 0:0' and the filter 'auto_scale_0'
[vf#0:0 @ 00000261495a4440] Error reinitializing filters!
[vf#0:0 @ 00000261495a4440] Task finished with error code: -40 (Function not implemented)
[vf#0:0 @ 00000261495a4440] Terminating thread with return code -40 (Function not implemented)
[vost#0:0/h264_nvenc @ 00000261497e0580] Encoder thread received EOF
[vost#0:0/h264_nvenc @ 00000261497e0580] Could not open encoder before EOF
[vost#0:0/h264_nvenc @ 00000261497e0580] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_nvenc @ 00000261497e0580] Terminating thread with return code -22 (Invalid argument)
[vist#0:0/h264 @ 000002614a6ed040] [dec:h264 @ 00000261495a4a80] Decoder returned EOF, finishing
[vist#0:0/h264 @ 000002614a6ed040] [dec:h264 @ 00000261495a4a80] Terminating thread with return code 0 (success)
[vist#0:0/h264 @ 000002614a6ed040] All consumers of this stream are done
[in#0/mpegts @ 0000026149514080] All consumers are done

Last edited by Bibo64; 7th October 2024 at 19:37.
Bibo64 is offline   Reply With Quote
Old 27th October 2024, 08:50   #4910  |  Link
DaMacFunkin
Registered User
 
Join Date: Mar 2002
Posts: 142
Hello, can someone help please?

I am trying to use Ngx-TrueHDR but i can not get a file that is 10 bit HDR on output, I have checked this thread below:
Code:
https://github.com/staxrip/staxrip/issues/1509
I have copied as ,many values as I can but always the same 8 bit output - here is my config:
Code:
"C:\Encode Plus\Staxrip 2.42\Apps\Encoders\NVEncC\NVEncC64.exe" --avhw --vbr 40000 --codec h265 --preset quality --output-depth 10 --profile main --level 5.1 --qp-init 1 --max-bitrate 40000 --aq --aq-temporal --bref-mode each --bframes 5 --lookahead 32 --gop-len 240 --multiref-l0 5 --multiref-l1 2 --strict-gop --nonrefp --vpp-colorspace matrix=bt709:bt2020nc,colorprim=bt709:bt2020,transfer=bt709:bt2020-10,range=limited:limited --vpp-ngx-truehdr --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1)" --colormatrix bt2020nc --colorprim bt2020 --transfer smpte2084 --colorrange limited --max-cll "1000,300" --chromaloc 2 --aud --repeat-headers --output-buf 64 --vbr-quality 22 --output-res 3840x2160 -i "C:\xxxx\xxxx\xxxxxx\Cowboys And Aliens (2011).mkv" -o "D:\Cache\Cowboys And Aliens (2011)_temp\Cowboys And Aliens (2011)_out.h265"
Here is my output file:
Code:
Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main@L5.1@Main
HDR format                               : SMPTE ST 2086
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 1 h 58 min
Bit rate                                 : 29.5 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 24.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 8 bits
Bits/(Pixel*Frame)                       : 0.148
Stream size                              : 24.4 GiB (92%)
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : Display P3
Mastering display luminance              : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level              : 1000 cd/m2
Maximum Frame-Average Light Level        : 300 cd/m2
I think it is just the 8bit - 10 bit conversion that is falling down but I can't figure out what the switch should be?

Thank you for any help.

Last edited by DaMacFunkin; 27th October 2024 at 08:53.
DaMacFunkin is offline   Reply With Quote
Old 27th October 2024, 16:37   #4911  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,738
Maybe the source is 8 bit ? Mediainfo please.
__________________
"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 27th October 2024, 18:14   #4912  |  Link
DaMacFunkin
Registered User
 
Join Date: Mar 2002
Posts: 142
Hi,

The source is 8 bit, but isn't the point of this to convert a 8 bit SDR to 10 bit HDR via NGX True HDR?

I also have Output set at --output-depth 10 and transfer=bt709:bt2020-10

Surely Staxrip can convert 8bit to 10bit?
DaMacFunkin is offline   Reply With Quote
Old 27th October 2024, 20:58   #4913  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,738
You got to upconvert in your script, Staxrip can not know otherwise.
__________________
"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 3rd November 2024, 15:42   #4914  |  Link
Shuichiyagami
Registered User
 
Join Date: Feb 2019
Posts: 9
Hmm... i got an error like this.
"Failed to load getVSScriptAPI function. Upgrade Vapoursynth to R55 or newer!"

And, how to upgrade Vapoursynth? I don't see any update menu on Staxrip

Last edited by Shuichiyagami; 4th November 2024 at 04:24.
Shuichiyagami is offline   Reply With Quote
Old 15th November 2024, 12:19   #4915  |  Link
Joekiwi
Registered User
 
Join Date: Oct 2019
Posts: 18
Thanks mainly use NVENC with variable bit rate - starting using the QP max in encoding, seems to work well as an overall insurance to certain std. I assume as well constraint by max bite rate , so another safety feature
Will play around a bit more to find perfect max QP for my needs
Yes it pushed size up on some encodes , but SSIM and PSNR scores went up as well ( as an aside use VMAF as well for awhile - but seemed redundant as scores all correlated well , and that one maybe takes more time to calc )

anyway anyone else using NVENC qp int , max seem to work - interesting to see how much bitrate goes up on those 1 in 10 black and white movie that always gives lower SSIM scores -they look fine on viewing
Joekiwi is offline   Reply With Quote
Old 17th November 2024, 00:37   #4916  |  Link
craigpro
Registered User
 
Join Date: Feb 2003
Posts: 71
wow.. I had no idea Staxrip was supported any more, but really happy to see it is still in development.

I just updated from v2.8.0 and my old NVenc )using Rigaya's encoder (old v5.37, new 7.66) settings for hardware encoding were:

old
--vbr 0 --codec h265 --preset P7 --output-depth 10 --multipass 2pass-full --vbr-quality 33 --aq --aq-temporal --bref-mode middle --bframes 4 --ref 5 --lookahead 32 --multiref-l0 5 --multiref-l1 4 --vpp-deband range=24,thre=6,thre_y=6,thre_cb=6,thre_cr=6,dither=24,dither_y=24,dither_c=24


so re-creating that as best I could in v2.42.2 leads to:

new
--vbr 5000 --codec h265 --preset P7 --output-depth 10 --profile main --multipass 2pass-full --max-bitrate 17500 --aq --aq-temporal --bref-mode middle --bframes 4 --ref 5 --lookahead 32 --multiref-l0 5 --multiref-l1 4 --vpp-deband range=24,thre=6,thre_y=6,thre_cb=6,thre_cr=6,dither=24,dither_y=24,dither_c=24

The only difference I can see in the command line format (when I went through each options page in v2.8.0 and recreated them in v2.42.2) is the '--vbr 0' (2.8.0) changing to '--vbr 5000' (2.42.2) and the '--vbr-quality 33' (2.8.0) and '--vbr-quality 33 -' (2.42.2) options. I'm googling to find out what the actual difference is, but so far no luck.

I did some testing with the same settings and same source file and 2.42.2 was slightly quicker (a total of 35 minutes instead of 42 minutes) and had a slightly higher VBR for video than 2.8.0, that was copying from an external USB C mechanical SATA drive to an nvme drive for the test files and audio conversion etc.

Also I found it strange that the v2.8.0 encode with MAIN10 and 10bit video output was listed as 10bit, but the 2.42.2 encode was listed as 8bit when it has the same MAIN10 and 10bit video profile encoding settings. Source file is 8 bit, so maybe the 7.66 NVenc encoder doesn't convert 8 to 10 bit but the 5.37 NVEnc encoder did?


Just wondering if anyone has any suggestions please which might improve the video quality (though to be honest I've been re-encoding DVDs and Blurays for the past 3 years using these settings and I cannot notice any quality loss).

Thank you and THANK YOU! to the dev(s) still working on this (I'm catching up reading this thread)

Last edited by craigpro; 17th November 2024 at 10:11.
craigpro is offline   Reply With Quote
Old 17th November 2024, 10:03   #4917  |  Link
craigpro
Registered User
 
Join Date: Feb 2003
Posts: 71
anyone else running 2.42.2 notice that temp files are not auto deleted after conversion?
craigpro is offline   Reply With Quote
Old 18th November 2024, 10:45   #4918  |  Link
Joekiwi
Registered User
 
Join Date: Oct 2019
Posts: 18
Craigpro, didn't know that was setting , quite like temp files as has text log and some stuff demuxed if need it - I also check SSIM scores

For DVDs I would just use H264 and CPU as so quick. For reasons i don't know - 264 is still best for DVDs.Some people use likes of Topaz AI to upscale and then encode to get smaller - Topaz isn't cheap and it's trial and error anyway

My settings are
--vbr 7000 --codec h265 --preset P7 --output-depth 10 --profile main10 --tier high --level 5.1 --multipass 2pass-full --qp-max 26 --max-bitrate 24000 --aq-temporal --bref-mode each --bframes 4 --ref 5 --lookahead 32 --gop-len 600 --slices 1 --multiref-l0 4 --multiref-l1 2 --no-b-adapt --no-i-adapt --weightp --ssim --psnr --mv-precision q-pel -i

So pretty similar to yours minus vpp-deband etc
the extra precision precision q-pel should technically improve your quality

For non clean movies mainly older - I always do KNLMeansCL light ( setting ) -denoising done on Cuda cores as well. I find the results not displeasing - will still keep filmic look and details - but really has big impact on using my VBR 7000 much better ,
Purist will hate it, but some remasters by studios are more brutal that this, wiping grain and smoothing things . Some go other way, leaving in temporal noise like sparkling - just why ??

I used to use some of the other options, but thing they work better for encodes at 2000 or 3000 bits eg B and I adapt


Just discovered the qp max - probably 26 is a bit demanding and will push bitrates out - i think for you qp max 30 maybe a good choice , will only hit those demanding parts of movie - shouldn't go over your max bitrate

Also can work kind of other way to decrease overall bitrates.
Eg if I have a modern Asian movie very clean, no noise , or modern style cartoon - I can drop my KNLMeansCL. set VBR to 3000 to 4000 and the have QP max at say 22
Ie I do encodes at 7000 and get a ssim score of .994 , so didn't really need all those bits , or pnr around 50 plus - For cartoons/anime , you should get close to perfect anyway

I do change VBR for 4K or how much I like a movie , or if it's a doco - Some movies will eat bitrates , conversely 99% of movies are perfectly fine watched at 3000 or 2000 with CPU . Some movies I think they add random noise or something to make them hard to encode with a quality factor- just my opinion - ie if noise 100% random - there is no easy way to encode it efficiently

Only shame is no open source will convert Atmos TrueHD to Dolby Digital Plus with atmos , same for DTS X - think no shrinking at moment - but DTS HD to DTS is a can do

Only problem I find Starip can't handle well is movies with variable play back speeds ie not constant - So use handbrake then- I sure there are scripts , but if i was that much into it , i would use CPU
And if say a subtitle goes for much longer that movie- Movie will play fine - just shows much longer length that has no video . just some sub wrongly timed for much later
Joekiwi is offline   Reply With Quote
Old 18th November 2024, 10:52   #4919  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,820
StaxRip

Quote:
Originally Posted by Joekiwi View Post
Only shame is no open source will convert Atmos TrueHD to Dolby Digital Plus with atmos , same for DTS X - think no shrinking at moment - but DTS HD to DTS is a can do
AFAIK and tried, even commercial ones can’t. It’s like asking to recreate a 3D scene from a 2D rastered one or have perfect C source from a binary. You can achieve “ATMOS” like but with discrete channels only and once for all.

About noise: I find BM3DCUDA much more accurate and pleasant, leaving SMDegrain to some more noisy cases.

About variable frame rates: you can extract timestamps with various tools and apply back when muxing to MKV. There is an option too in staxrip to deal with it but I never played with it enough.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 20th November 2024, 08:57   #4920  |  Link
craigpro
Registered User
 
Join Date: Feb 2003
Posts: 71
Quote:
Originally Posted by Joekiwi View Post
Craigpro, didn't know that was setting , quite like temp files as has text log and some stuff demuxed if need it - I also check SSIM scores


My settings are
--vbr 7000 --codec h265 --preset P7 --output-depth 10 --profile main10 --tier high --level 5.1 --multipass 2pass-full --qp-max 26 --max-bitrate 24000 --aq-temporal --bref-mode each --bframes 4 --ref 5 --lookahead 32 --gop-len 600 --slices 1 --multiref-l0 4 --multiref-l1 2 --no-b-adapt --no-i-adapt --weightp --ssim --psnr --mv-precision q-pel -i

So pretty similar to yours minus vpp-deband etc
the extra precision precision q-pel should technically improve your quality

Just discovered the qp max - probably 26 is a bit demanding and will push bitrates out - i think for you qp max 30 maybe a good choice , will only hit those demanding parts of movie - shouldn't go over your max bitrate

Ie I do encodes at 7000 and get a ssim score of .994 , so didn't really need all those bits , or pnr around 50 plus - For cartoons/anime , you should get close to perfect anyway
Thanks for the reply Joekiwi, I just did a test and with staxrip 2.8.0 and the settings I've been using for the past 3 years I ended up with an SSIM score of 0.966 - I can't notice anything with 1080p video on my 75" TV, so good enough for me (and the 90% reduction in file size from 26GB > 2GB is more than an acceptable transfer for me).

title : Surround 5.1
BPS-eng : 1731917
DURATION-eng : 01:37:04.160000000
NUMBER_OF_FRAMES-eng: 546015
NUMBER_OF_BYTES-eng: 1260870592
SOURCE_ID-eng : 001101
_STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2024-11-08 04:05:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
encoder : Lavc59.3.102 pcm_s16le
frame=139640 fps=151 q=-0.0 Lq=-0.0 size=N/A time=01:37:04.15 bitrate=N/A speed= 6.3x
video:120003kB audio:3276090kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[Parsed_ssim_0 @ 000001ce54676f00] SSIM Y:0.960329 (14.015279) U:0.975661 (16.136959) V:0.979870 (16.961561) All:0.966141 (14.703287)
[Parsed_psnr_1 @ 000001ce54678000] PSNR y:41.829373 u:45.371809 v:45.719316 average:42.752872 min:30.327257 max:113.058966

C:\Staxrip\StaxRip-v2.8.0-x64>

I tried the same settings in staxrip 2.42.2 and it was still around the same filesize, but it took longer.. so I think I'm going to stick with my tried and tested settings at the moment, but I will definitely give the qp max setting a bit of a test to see if I can improve it noticeably for not much increase in file size.
craigpro 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 03:41.


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