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 30th March 2020, 22:50   #1601  |  Link
Joekiwi
Registered User
 
Join Date: Oct 2019
Posts: 14
Just like to say a big thanks to Patman for all your effort
Joekiwi is offline  
Old 31st March 2020, 06:21   #1602  |  Link
JKyle
App Digger
 
JKyle's Avatar
 
Join Date: Sep 2018
Posts: 411
A Simple HDR to SDR Re-encoding Speed Test with Different x264 Builds by Patman

I speed-tested different builds of x264 by Patman in a very similar way to this post.

The source video is the same UHD HDR video from 4kmedia.org and remuxing to mkv is the same.
The only different part is applying ConvertBits and DGHDRtoSDR in the AviSynth script and x264 encoding.

Here's the detail.


■ System Environment

StaxRip : 2.1.0.2
Windows : Windows 10 Home 2004
CPU : Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz


■ Source Video

LG: New York HDR


■ Remuxing of the original ts to mkv

Quote:
ffmpeg -hide_banner -analyzeduration 100M -probesize 50M -i "LG New York HDR UHD 4K Demo.ts" -map 0 -c copy -bsf:a aac_adtstoasc -y "LG New York HDR UHD 4K Demo.mkv"

■ AviSynth Script

LG New York HDR UHD 4K Demo.avs

Quote:
LoadPlugin("D:\Utilities\StaxRip\Apps\Plugins\Dual\DGHDRtoSDR\DGHDRtoSDR.dll")
LoadPlugin("D:\Utilities\StaxRip\Apps\Plugins\Dual\ffms2\ffms2.dll")
FFVideoSource("D:\Work\tmp\LG New York HDR UHD 4K Demo.mkv", cachefile = "D:\Work\tmp\LG New York HDR UHD 4K Demo_temp\LG New York HDR UHD 4K Demo.ffindex")
#AssumeFPS(25)
Spline64Resize(1920, 1080)
ConvertBits(16)
DGHDRtoSDR(mode="pq",white=2500)

■ Video encoding command line (avs2pipe, x264)

Quote:
D:\Utilities\StaxRip\Apps\Support\avs2pipemod\avs2pipemod64.exe -y4mp "D:\Work\tmp\LG New York HDR UHD 4K Demo_temp\LG New York HDR UHD 4K Demo.avs" | D:\Utilities\StaxRip\Apps\Encoders\x264\x264.exe --crf 23 --profile high --aq-mode 3 --me umh --direct auto --merange 24 --b-adapt 2 --colorprim bt709 --colormatrix bt709 --transfer bt709 --aud --deblock -1:-1 --demuxer y4m --frames 1806 --output "D:\Work\tmp\LG New York HDR UHD 4K Demo_temp\LG New York HDR UHD 4K Demo_out.h264" -

■ Result (from slowest to fastest)

x264-159-r2991-1771b55-gcc9.3.0
10.83 fps

x264-159-r2991M-1771b55-gcc9.3.0
12.36 fps

x264-159-r2991-1771b55-gcc10.0.1
12.39 fps

x264-159-r2991M-1771b55-gcc10.0.1
12.48 fps
JKyle is offline  
Old 31st March 2020, 10:49   #1603  |  Link
Mertiz88
Registered User
 
Join Date: Mar 2020
Posts: 4
@Joekiwi, thanks for your reply, I think I'll ask this question in Avisynth thread.

@AMED, That's my question. I ask if I can apply any filter without doing enocde again.
Mertiz88 is offline  
Old 31st March 2020, 11:26   #1604  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
are you able to just apply the filter on the software your using for playback?
mpv is the player with the best support for it, it allows:


ffmpeg filters:

https://mpv.io/manual/master/#video-filters


vapoursynth filters:

https://mpv.io/manual/master/#video-filters-vapoursynth


per file configuration:

https://mpv.io/manual/master/#file-s...guration-files


mpv.net supports almost all mpv features.
stax76 is offline  
Old 31st March 2020, 17:00   #1605  |  Link
Patman
Registered User
 
Patman's Avatar
 
Join Date: Jan 2015
Posts: 286
Quote:
Originally Posted by Joekiwi View Post
Just like to say a big thanks to Patman for all your effort
You're welcome. Currently Stax is here the machine and updates StaxRip quite regularly! A big thanks for that!
__________________
Tools for StaxRip | x264 - x265
Patman is offline  
Old 31st March 2020, 18:06   #1606  |  Link
Lynx_TWO
Registered User
 
Join Date: Aug 2005
Posts: 37
Feature request - Ability to encode 720p and 1080p at once after processing?

@Stax and everyone else - So many thanks for this great tool!

Is it possible to implement a feature that would encode a video stream at two different resolutions while only processing once with plugins?

I'd love to the ability to denoise deinterlace, etc. on a 1080p file and then output a stream to 720p and 1080p mp4 file simultaneously with the same CRF settings, audio streams, subtitles, etc. Basically just resizing the processed raw 1080p output to 720p and encode it at the same time it's encoding the 1080p version. Would save a bunch of time and use a multicore system more efficiently I would think, esp. if using x264

Lynx_TWO is offline  
Old 1st April 2020, 05:50   #1607  |  Link
Z'Hadum
Registered User
 
Join Date: Dec 2018
Posts: 22
Quote:
Originally Posted by Lynx_TWO View Post
@Stax and everyone else - So many thanks for this great tool!

Is it possible to implement a feature that would encode a video stream at two different resolutions while only processing once with plugins?

Why do you not simply create two jobs for this? If you start staxrip two times, you get also your parallel processing....
Z'Hadum is offline  
Old 1st April 2020, 07:34   #1608  |  Link
chipsteps
Registered User
 
Join Date: Mar 2020
Posts: 13
How can we set "chromaloc-top = 2" and "chromaloc-bottom = 2", "scenecut-bias = 0.05"
I set it, but look in the info section "chromaloc-top = 1" and "chromaloc-bottom = 1", "scenecut-bias = 0.00"
Help me! Thank you very much! (StaxRip Ver: 2.0.8.0)

chipsteps is offline  
Old 1st April 2020, 16:56   #1609  |  Link
shodan5000
Registered User
 
Join Date: Sep 2018
Posts: 33
Why is it that Vapoursynth scripts crash anytime time I have a video file with an apostrophe anywhere in the name? Avisynth scripts do not do this.
shodan5000 is offline  
Old 1st April 2020, 19:40   #1610  |  Link
Patman
Registered User
 
Patman's Avatar
 
Join Date: Jan 2015
Posts: 286
Quote:
Originally Posted by chipsteps View Post
How can we set "chromaloc-top = 2" and "chromaloc-bottom = 2", "scenecut-bias = 0.05"
I set it, but look in the info section "chromaloc-top = 1" and "chromaloc-bottom = 1", "scenecut-bias = 0.00"
Help me! Thank you very much! (StaxRip Ver: 2.0.8.0)
I think there is no possibility to set these values. Scenecut-bias used 0.5 steps and chromaloc can general be set without the options bottom or top.
__________________
Tools for StaxRip | x264 - x265
Patman is offline  
Old 1st April 2020, 22:28   #1611  |  Link
AMED
Registered User
 
AMED's Avatar
 
Join Date: Sep 2004
Location: Auckland, New Zealand
Posts: 466
Quote:
Originally Posted by shodan5000 View Post
Why is it that Vapoursynth scripts crash anytime time I have a video file with an apostrophe anywhere in the name? Avisynth scripts do not do this.
What version of StaxRip are you running. I'm pretty sure this was fixed after 2.0.6.0 stable.

for now all you need to do is

open StaxRip, right click in the VS filters section and select profiles.

and change this
Code:
[Source]
Automatic = # can be configured at: Tools > Settings > Source Filters
AVISource = clip = core.avisource.AVISource(r'%source_file%')
d2vsource = clip = core.d2v.Source(r'%source_file%')
DGSource = clip = core.dgdecodenv.DGSource(r'%source_file%')

ffms2 =
    clip = core.ffms2.Source(r'%source_file%', cachefile=r'%source_temp_file%.ffindex')
    #clip = core.std.AssumeFPS(clip, None, 25, 1)

LibavSMASHSource =
    clip = core.lsmas.LibavSMASHSource(r'%source_file%')
    #clip = core.std.AssumeFPS(clip, None, 25, 1)

LWLibavSource =
    clip = core.lsmas.LWLibavSource(r'%source_file%', cachefile=r'%source_temp_file%.lwi')
    #clip = core.std.AssumeFPS(clip, None, 25, 1)

Manual = # shows filter selection dialog
to this
Code:
[Source]
Automatic = # can be configured at: Tools > Settings > Source Filters
AVISource = clip = core.avisource.AVISource(r"%source_file%")
d2vsource = clip = core.d2v.Source(r"%source_file%")
DGSource = clip = core.dgdecodenv.DGSource(r"%source_file%")

ffms2 =
    clip = core.ffms2.Source(r"%source_file%", cachefile=r"%source_temp_file%.ffindex")
    #clip = core.std.AssumeFPS(clip, None, 25, 1)

LibavSMASHSource =
    clip = core.lsmas.LibavSMASHSource(r"%source_file%")
    #clip = core.std.AssumeFPS(clip, None, 25, 1)

LWLibavSource =
    clip = core.lsmas.LWLibavSource(r"%source_file%", cachefile=r"%source_temp_file%.lwi")
    #clip = core.std.AssumeFPS(clip, None, 25, 1)

Manual = # shows filter selection dialog
__________________
A Man Eating Duck

Last edited by AMED; 1st April 2020 at 22:33.
AMED is offline  
Old 2nd April 2020, 11:26   #1612  |  Link
shodan5000
Registered User
 
Join Date: Sep 2018
Posts: 33
Quote:
Originally Posted by AMED View Post
What version of StaxRip are you running. I'm pretty sure this was fixed after 2.0.6.0 stable.
I'm using version 2.1.0.1 but went ahead and tried your fix. It worked. Thank you very much. Maybe there was some old code that made its way back into that beta version?
shodan5000 is offline  
Old 2nd April 2020, 12:24   #1613  |  Link
JKyle
App Digger
 
JKyle's Avatar
 
Join Date: Sep 2018
Posts: 411
Quote:
Originally Posted by shodan5000 View Post
Maybe there was some old code that made its way back into that beta version?
That's why you need to reset(restore) the profiles whenever you suspect there's old trash in them.



JKyle is offline  
Old 2nd April 2020, 17:15   #1614  |  Link
shodan5000
Registered User
 
Join Date: Sep 2018
Posts: 33
Quote:
Originally Posted by JKyle View Post
That's why you need to reset(restore) the profiles whenever you suspect there's old trash in them.
I never knew that. Thanks for the tip.
shodan5000 is offline  
Old 2nd April 2020, 21:10   #1615  |  Link
chipsteps
Registered User
 
Join Date: Mar 2020
Posts: 13
Quote:
Originally Posted by Patman View Post
I think there is no possibility to set these values. Scenecut-bias used 0.5 steps and chromaloc can general be set without the options bottom or top.
thank you very muck! So chromaloc customizations are the default and can't be manually set?
chipsteps is offline  
Old 3rd April 2020, 00:09   #1616  |  Link
AMED
Registered User
 
AMED's Avatar
 
Join Date: Sep 2004
Location: Auckland, New Zealand
Posts: 466
Quote:
Originally Posted by shodan5000 View Post
I'm using version 2.1.0.1 but went ahead and tried your fix. It worked. Thank you very much. Maybe there was some old code that made its way back into that beta version?
Did you use the same settings directory from a previous version of StaxRip when you started using v2.1.0.1?
__________________
A Man Eating Duck
AMED is offline  
Old 3rd April 2020, 00:24   #1617  |  Link
Atlantis
Registered User
 
Join Date: Feb 2002
Posts: 758
AviSynth+ 3.5.1 released.
Atlantis is offline  
Old 3rd April 2020, 05:12   #1618  |  Link
JKyle
App Digger
 
JKyle's Avatar
 
Join Date: Sep 2018
Posts: 411
@Stax

Just FYI, there's a small typo in the x264 Options window (2.1.0.2 Beta).



As you know, HDR(high dynamic range) is not HRD(hypothetical reference decoder), which is equal to VBV(video buffering verifier).

Plz fix this in order to prevent confusion.

JKyle is offline  
Old 3rd April 2020, 19:12   #1619  |  Link
Zetti
Registered User
 
Join Date: Dec 2015
Posts: 306
MediaInfo v20.03 is released.
Zetti is offline  
Old 4th April 2020, 05:04   #1620  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Code:
2.1.0.3 Beta
------------

- new: check added that blocks source files with too long path or filename. A setting
       that allows to change the limit exists and there is also a explanation as tooltip:
       In theory Windows supports paths that are longer than 260 characters, in reality
       neither Windows, nor the .NET Framework or the used tools have full long path support.
- new: in order to support unicode the command line based encoder used by XviD uses
       now cmd.exe directly without creating a batch file. This command line based encoder
       is not only useful for XviD but can be used for any command line based encoder
- new: very basic SVT-AV1 encoder support added

- update: MediaInfo 20.03
- update: AviSynth 3.5.1
- update: ffmpeg N-97107-g33c106d411-g72be5d4661+2-gcc9.3.0 Patman

- fix: 2 reported typos
https://staxrip.readthedocs.io/intro.html#download
stax76 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 21:25.


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