FranceBB
15th May 2019, 21:33
Hi,
I have a rather nasty aliasing issue.
The troupe went out to shoot and I've got completely messed up levels (which I'm gonna adjust in encoding) and some pretty bad aliasing.
They shot in H.264 4:2:0 yv12 planar 8bit FULL HD 50fps progressive.
Since we internally work in XDCAM, I gotta encode it in MPEG-2 50 Mbit/s CBR 8bit 4:2:2 yv16 planar 25i.
Source:
General
Complete name : C:\Users\bucciantinif\Desktop\DJI_0015.MP4
Format : MPEG-4
Format profile : JVT
Codec ID : avc1 (avc1/isom)
File size : 106 MiB
Duration : 22 s 100 ms
Overall bit rate mode : Variable
Overall bit rate : 40.2 Mb/s
Encoded date : UTC 2019-05-14 15:01:42
Tagged date : UTC 2019-05-14 15:01:42
Comment : 0.9.138
©gpt : -174.90
©gyw : +83.20
©grl : +0.00
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 1 Ref Frames
Format settings, CABAC : Yes
Format settings, RefFrames : 1 frame
Format settings, GOP : M=1, N=8
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 22 s 100 ms
Bit rate mode : Variable
Bit rate : 40.0 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 50.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.386
Stream size : 106 MiB (100%)
Title : DJI.AVC
Language : English
Encoded date : UTC 2019-05-14 15:01:42
Tagged date : UTC 2019-05-14 15:01:42
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : mp4a-40-2
Duration : 22 s 80 ms
Bit rate mode : Constant
Bit rate : 64.0 kb/s
Nominal bit rate : 128 kb/s
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 173 KiB (0%)
Title : DJI.AAC
Language : English
Encoded date : UTC 2019-05-14 15:01:42
Tagged date : UTC 2019-05-14 15:01:42
As always, I have just divided in fields the 50fps progressive in order to get 25i, however I get a lot of aliasing as soon as I divide in fields.
video=FFVideoSource("DJI_0015.MP4")
audiook=FFAudioSource("DJI_0015.MP4")
audio=MergeChannels(audiook, audiook, audiook, audiook)
AudioDub(video, audio)
ResampleAudio(48000)
Normalize(0.22)
ConvertAudioTo24bit()
Limiter(min_luma=16, max_luma=235, min_chroma=16, max_chroma=240)
assumeTFF()
separatefields()
selectevery(4,0,3)
weave()
Converttoyv16(matrix="Rec709", interlaced=true)
So I've tried to use a ridiculous amount of antialiasing on the source, but it didn't help much, however as soon as I blurred the hell out of the source, the output has got way less aliasing:
video=FFVideoSource("DJI_0015.MP4")
audiook=FFAudioSource("DJI_0015.MP4")
audio=MergeChannels(audiook, audiook, audiook, audiook)
AudioDub(video, audio)
Blur(1.58)
ResampleAudio(48000)
Normalize(0.22)
ConvertAudioTo24bit()
Limiter(min_luma=16, max_luma=235, min_chroma=16, max_chroma=240)
maa2(mask=1, chroma=true, ss=2.0, aa=280, show=0)
assumeTFF()
separatefields()
selectevery(4,0,3)
weave()
Converttoyv16(matrix="Rec709", interlaced=true)
ffmpeg.exe -hwaccel dxva2 -i "AVS Script.avs" -threads 28 -pix_fmt yuv422p -vcodec mpeg2video -s 1920:1080 -aspect 16:9 -flags +ildct+ilme -r 25 -b:v 50000k -minrate 50000k -maxrate 50000k -bufsize 36408333 -acodec pcm_s24le -ar 48000 -g 12 -bf 2 -profile:v 0 -level:v 2 -color_range 1 -color_primaries 1 -color_trc 1 -colorspace 1 -f mxf "output.mxf"
bmxtranswrap.exe -p -y 10:00:00:00 -t op1a -o "final.mxf" "output.mxf"
PAUSE
Why is that? Is there a way I can divide in fields and avoid to get aliasing like I've got in this example? Whenever I have to encode in interlaced, I generally use that script.
You'll find three files:
1) Source
2) Encode
3) Encode with Antialiasing and Blur
https://we.tl/t-MvZmS3KNPr
I have a rather nasty aliasing issue.
The troupe went out to shoot and I've got completely messed up levels (which I'm gonna adjust in encoding) and some pretty bad aliasing.
They shot in H.264 4:2:0 yv12 planar 8bit FULL HD 50fps progressive.
Since we internally work in XDCAM, I gotta encode it in MPEG-2 50 Mbit/s CBR 8bit 4:2:2 yv16 planar 25i.
Source:
General
Complete name : C:\Users\bucciantinif\Desktop\DJI_0015.MP4
Format : MPEG-4
Format profile : JVT
Codec ID : avc1 (avc1/isom)
File size : 106 MiB
Duration : 22 s 100 ms
Overall bit rate mode : Variable
Overall bit rate : 40.2 Mb/s
Encoded date : UTC 2019-05-14 15:01:42
Tagged date : UTC 2019-05-14 15:01:42
Comment : 0.9.138
©gpt : -174.90
©gyw : +83.20
©grl : +0.00
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 1 Ref Frames
Format settings, CABAC : Yes
Format settings, RefFrames : 1 frame
Format settings, GOP : M=1, N=8
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 22 s 100 ms
Bit rate mode : Variable
Bit rate : 40.0 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 50.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.386
Stream size : 106 MiB (100%)
Title : DJI.AVC
Language : English
Encoded date : UTC 2019-05-14 15:01:42
Tagged date : UTC 2019-05-14 15:01:42
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : mp4a-40-2
Duration : 22 s 80 ms
Bit rate mode : Constant
Bit rate : 64.0 kb/s
Nominal bit rate : 128 kb/s
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 173 KiB (0%)
Title : DJI.AAC
Language : English
Encoded date : UTC 2019-05-14 15:01:42
Tagged date : UTC 2019-05-14 15:01:42
As always, I have just divided in fields the 50fps progressive in order to get 25i, however I get a lot of aliasing as soon as I divide in fields.
video=FFVideoSource("DJI_0015.MP4")
audiook=FFAudioSource("DJI_0015.MP4")
audio=MergeChannels(audiook, audiook, audiook, audiook)
AudioDub(video, audio)
ResampleAudio(48000)
Normalize(0.22)
ConvertAudioTo24bit()
Limiter(min_luma=16, max_luma=235, min_chroma=16, max_chroma=240)
assumeTFF()
separatefields()
selectevery(4,0,3)
weave()
Converttoyv16(matrix="Rec709", interlaced=true)
So I've tried to use a ridiculous amount of antialiasing on the source, but it didn't help much, however as soon as I blurred the hell out of the source, the output has got way less aliasing:
video=FFVideoSource("DJI_0015.MP4")
audiook=FFAudioSource("DJI_0015.MP4")
audio=MergeChannels(audiook, audiook, audiook, audiook)
AudioDub(video, audio)
Blur(1.58)
ResampleAudio(48000)
Normalize(0.22)
ConvertAudioTo24bit()
Limiter(min_luma=16, max_luma=235, min_chroma=16, max_chroma=240)
maa2(mask=1, chroma=true, ss=2.0, aa=280, show=0)
assumeTFF()
separatefields()
selectevery(4,0,3)
weave()
Converttoyv16(matrix="Rec709", interlaced=true)
ffmpeg.exe -hwaccel dxva2 -i "AVS Script.avs" -threads 28 -pix_fmt yuv422p -vcodec mpeg2video -s 1920:1080 -aspect 16:9 -flags +ildct+ilme -r 25 -b:v 50000k -minrate 50000k -maxrate 50000k -bufsize 36408333 -acodec pcm_s24le -ar 48000 -g 12 -bf 2 -profile:v 0 -level:v 2 -color_range 1 -color_primaries 1 -color_trc 1 -colorspace 1 -f mxf "output.mxf"
bmxtranswrap.exe -p -y 10:00:00:00 -t op1a -o "final.mxf" "output.mxf"
PAUSE
Why is that? Is there a way I can divide in fields and avoid to get aliasing like I've got in this example? Whenever I have to encode in interlaced, I generally use that script.
You'll find three files:
1) Source
2) Encode
3) Encode with Antialiasing and Blur
https://we.tl/t-MvZmS3KNPr