Hello guest, if you like this forum, why don't you register? https://fanrestore.com/member.php?action=register (December 14, 2021) x


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[In progress] Face / Off and Broken Arrow
#11
Sorry I had a few beers last night (Guinness to be precise) and thought I should go into more detail about what Ive been doing.
Id like the audio files to accompany my final renders of the following 

Ive just done a blanket CC using Avisynth that I can play in realtime through MPC-HC.
Ive been leaning toward these of late and not rendering out a final video but instead having all my sources in a folder and running the script.
That way I can always play around / tweek some more.
I originally started doing this to DVD's I had where I would FPS convert, clean up and upscale but ive found alot of the old BD masters also benefit from the process.
Code:
PAL DVD to HD Using dgmpgdec158 and AVIsynth + 64
V=MPEG2Source(".d2v").TFM().spline64resize(1024, 576)
A=LWLibavAudioSource(".ac3")
AudioDub(V,A)
Assumefps(23.976, sync_audio = true)
FFT3Dgpu(sigma=1.5, plane=4, bt=4, mode=1, bw=16, bh=16, precision=2, ow=8, oh=8)
SuperResXBR(4, Str=1, Soft=0.2, XbrStr=3, XbrSharp=1.5,ConvertYuv=false, fWidth=1920, fHeight=1080, PlanarOut=true)
prefetch(8)

With the titles mentioned in the op I'm thinking of doing a final render, using the method in the Face/Off script below.

Original BD
[Image: i5fw.jpg]

Project
[Image: i5f2.jpg]

Code:
V1=avisource("L:\Broken Arrow\00000.avi").crop(0,134,-0,-134).FFT3Dgpu(sigma=1.5, plane=4, bt=4, mode=1, bw=16, bh=16, precision=2, ow=8, oh=8).SuperResXBR(2, Str=1, Soft=0.2, XbrStr=3, XbrSharp=1.5,ConvertYuv=false, fWidth=1920, fHeight=812, PlanarOut=true)
V2=avisource("L:\Broken Arrow\00000.avi").crop(0,134,-0,-134)
V=Average(V1,0.50,V2,0.50).KillAudio().ColorYUV(gamma_y=5, off_y=-2, off_u=2, off_v=-4)
A=FFMS2("L:\Broken Arrow\82761059_BROKEN_ARROW_F1\BDMV\STREAM\00000.m2ts", atrack=1)
AudioDub(V,A)
addborders(0, 134, 0, 134)
prefetch(8)

I pre-rendered the film as a straight transcode (native 8bit 4:2:0) to a lossless MagicYUV video file.
ffms2 has frame accuracy problems and as you can see I'm averaging.

Ive done the same with Face / Off.

Original BD
[Image: i5fT.jpg]

Project
[Image: i5fW.jpg]

Here is my Final Render script (when I'm happy)
This will not play in realtime an my PC, but im still rocking a 8 year old i7 3770 with an RX480.
Im sure a more updated PC could handle it with ease.

Code:
Clip1=AVIsource("paramount.avi").converttoyv24().convertbits(16).trim(40, 0).KillAudio()
Clip2=AVIsource("00003.avi").crop(2,132,-2,-132).converttoyv24().convertbits(16).SuperResXBR(2, Str=1, Soft=0.2, XbrStr=3, XbrSharp=1.5,ConvertYuv=false, fWidth=1920, fHeight=820, PlanarOut=true).trim(440, 1000).KillAudio().ColorYUV(gamma_y=5, off_y=-2, off_u=2, off_v=-4)
V1=AviSource("00001.avi").crop(2,132,-2,-132).converttoYV24().FFT3Dgpu(sigma=1.5, plane=4, bt=4, mode=1, bw=16, bh=16, precision=2, ow=8, oh=8).convertbits(16).SuperResXBR(2, Str=1, Soft=0.2, XbrStr=3, XbrSharp=1.5,ConvertYuv=false, fWidth=1920, fHeight=820, PlanarOut=true)
V2=AviSource("00001.avi").crop(2,132,-2,-132).converttoyv24().convertbits(16).spline64resize(1920, 820)
Clip3=Average(V1,0.50,V2,0.50).trim(1000, 199735).KillAudio().ColorYUV(gamma_y=5, off_y=-2, off_u=2, off_v=-4)
Clip4=AVIsource("paramount-End.avi").converttoyv24().convertbits(16).KillAudio()
Clip5=AviSource("00003.avi").crop(2,132,-2,-132).converttoyv24().convertbits(16).spline64resize(1920, 820).trim(199888, 0).KillAudio()
V=AlignedSplice(Clip1, Clip2, Clip3, Clip4, Clip5)
A=FFMS2("L:\Face - Off\Face - Off EUR\BDMV\STREAM\00001.m2ts", atrack=1)
AudioDub(V,A)
addborders(0, 130, 0, 130)
convertbits(8, dither=1).converttoYV12()
prefetch(8)

Clip1 and 4 are pre-rendered Paramount Logo's taken from the Braveheart UHD
Clip2 is the US Blu of Face/Off for the 'Paramount Pictures Presents' credit.
The main source is the Russian Blu mentioned earlier.

Working in 16bit (a restriction of the SuperResXBR process or id go 32bit float) 4:4:4 does produce better results than staying in it's native 8bit 4:2:0

Again this is just a WIP but Im fairly happy Wink
Reply
Thanks given by: PDB , captainsolo
#12
My 2c:

I always use
  • TFM(d2v="filename.d2v")
  • ffaudiosource for audio and ffvideosource for video
Also use
Code:
ColorMatrix(Source=2, dest=0)
when convert rec.601 to rec.709 - even if sometimes I felt it unnecessary.
Reply
Thanks given by: CSchmidlapp
#13
(2020-04-11, 01:43 PM)spoRv Wrote: My 2c:

I always use
  • TFM(d2v="filename.d2v")
  • ffaudiosource for audio and ffvideosource for video
Also use
Code:
ColorMatrix(Source=2, dest=0)
when convert rec.601 to rec.709 - even if sometimes I felt it unnecessary.

Thanks bud Smile
Ill give this a whirl, completely forgot about the REC.609 to REC.709 conversion!
A new version of ColorMatrix seems to handle REC.2020 to REC.709 also.

Does the (d2v="filename.d2v") line in TFM mean it reads the data from the DGDecode process?

I see that is also an option with ColorMatrix
ColorMatrix (d2v="filename.d2v")
But your saying you force it and disregard the data in the .d2v process?
Reply
Thanks given by:
#14
(2020-04-11, 02:23 PM)CSchmidlapp Wrote: Does the (d2v="filename.d2v") line in TFM mean it reads the data from the DGDecode process?

Yep! Ok

Quote:I see that is also an option with ColorMatrix
ColorMatrix (d2v="filename.d2v")
But your saying you force it and disregard the data in the .d2v process?

Sometimes I feel the colors after conversion "wrong", so I disregard it...
Reply
Thanks given by: CSchmidlapp
#15
When I convert the audio from a PAL DVD I normally use eac3to with the slowdown method for a final render.
When using a AVIsynth script I do it with the Assumefps command

Assumefps(23.976, sync_audio = true)

This needs additional processing also like a conversion to 48000kHz (I get a lower rate when left alone) and pitch to be correct.
What do you recommend to do this in AVIsynth?

EDIT: I know i'm going of topic considering my OP, could this thread be moved into the Complete projects - In progress area and Ill update the OP to reflect this.
Reply
Thanks given by:
#16
I moved it.

Love to see the results CSchmidlapp
Reply
Thanks given by: CSchmidlapp
#17
So Ive rendered both using my GPU Encoder (AMD RX480 8GB) to low bitrate H264 - AAC.
These a purely Work In Progress, and to be honest Ive probably gone way overboard on the 'green' Smile
Not Theatrically accurate by any means, but I do like the look.
I have found during my research and time on FanRes that other 35mm release prints from back in the day do reflect my choices.

PM me for details Smile
Reply
Thanks given by:
#18
(2020-04-11, 03:08 PM)spoRv Wrote:
(2020-04-11, 02:23 PM)CSchmidlapp Wrote: I see that is also an option with ColorMatrix
ColorMatrix (d2v="filename.d2v")
But your saying you force it and disregard the data in the .d2v process?

Sometimes I feel the colors after conversion "wrong", so I disregard it...

I can not get ColorMatrix to work inside Avisynth + 64bit!
Is there a 64bit version available that you know of (searching Google as we speak)?
Reply
Thanks given by:
#19
(2020-04-11, 04:04 PM)CSchmidlapp Wrote: When I convert the audio from a PAL DVD...

https://fanrestore.com/thread-1125.html Happy
Reply
Thanks given by:
#20
(2020-04-11, 04:39 PM)CSchmidlapp Wrote: I can not get ColorMatrix to work inside Avisynth + 64bit!
Is there a 64bit version available that you know of (searching Google as we speak)?

Well, FFMS2 is actually FFvideosource+FFaudiosource - I'm so used to use almost always FFvideosource only that I forgot it! Big Grin

Answer to your question: https://code.google.com/archive/p/avisyn...Links.wiki
Reply
Thanks given by: CSchmidlapp


Forum Jump:


Users browsing this thread: 3 Guest(s)