View Single Post
Old 13th February 2018, 02:40   #3  |  Link
`Orum
Registered User
 
Join Date: Sep 2005
Posts: 178
Quote:
Originally Posted by sneaker_ger View Post
Post MediaInfo of source, your complete AviSynth script, AviSynth and source filter and avs2yuv version, and avs2yuv + x265 command-line.
MediaInfo of the source:
Code:
Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, RefFrames               : 4 frames
Muxing mode                              : Container profile=@0.0
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 25 min 41 s
Bit rate mode                            : Variable
Bit rate                                 : 21.6 Mb/s
Maximum bit rate                         : 39.0 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.434
Stream size                              : 3.87 GiB (98%)
Default                                  : No
Forced                                   : No
The entire script:
Code:
LWLibavVideoSource("01_video.mkv")
ColorYUV(levels="TV->PC")
AssumeFPS("ntsc_film")
Scripted_MDegrain(thSAD=150, tr=2, thSCD1=300, debugSCD=false, lsb=true)
f3kdb(input_mode=1, input_depth=16, output_mode=1, output_depth=16, dither_algo=2, grainY=16, grainC=16)
ConvertFromStacked(16)
Prefetch(2)
AviSynth version: AviSynth+ 0.1 r2580, MT, x86_64
Not sure on the exact version of LSMASHSource, but does it really matter?
avs2yuv version: Avs2YUV 0.24bm5

Edit: Whoops, forgot the command line. It is:
Code:
"C:\Program Files\avs2yuv\avs2yuv64.exe" -depth 16 -seek 5000 -frames 1000 "01_vid.avs" -o - | "C:\Program Files\x265\x265-10b8b-PGO.exe" -p veryslow
--crf 32 -F 4 -D 10 -I 240 --open-gop -b 10 --aq-mode 3 --aq-strength 0.9 --psy-rdoq 5.0 -o test.hevc --input - --fps 24000/1001 --input-res 1920x1080
As I said I've been testing with and without -depth 16, though.

Quote:
Originally Posted by sneaker_ger View Post
If you put ConvertBits(8) below ConvertFromStacked() and open it in e.g. VirtualDub does the image look correct?
Yes, that looks fine in AvsPmod. I can also open the actual 16-bit (without downconverting to 8-bit) output in MPC-HC. The problem appears to be between AviSynth and avs2yuv, or between avs2yuv and x265, or both. Apologies if this isn't the correct forum for the question, but I'm really not sure what the "right" one would be.
__________________
My filters: DupStep | PointSize

Last edited by `Orum; 13th February 2018 at 02:47.
`Orum is offline   Reply With Quote