Re: mp4 like Adobe premiere result
Posted: Fri Sep 03, 2021 9:49 am
Ok, so, this is not gonna be over soon, so get ready for several tests.
Here are the first two tests: https://we.tl/t-s4IKA6thyq
Test 1:
Test 2:
AVS Script:
BAT File:
Here are the first two tests: https://we.tl/t-s4IKA6thyq
Test 1:
Code: Select all
General
ID : 13124 (0x3344)
Complete name : \\mibctvan000\Ingest\MEDIA\temp\output1.ts
Format : MPEG-TS
File size : 3.42 MiB
Duration : 30 s 0 ms
Overall bit rate mode : Variable
Overall bit rate : 949 kb/s
Video
ID : 336 (0x150)
Menu ID : 21862 (0x5566)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : 4 Ref Frames
Format settings, CABAC : No
Format settings, Reference frames : 4 frames
Format settings, GOP : M=4, N=25
Codec ID : 27
Duration : 30 s 80 ms
Bit rate mode : Constant
Bit rate : 126 kb/s
Nominal bit rate : 15.0 Mb/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 : MBAFF
Scan type, store method : Interleaved fields
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.002
Stream size : 463 KiB (13%)
Writing library : x264 core 162 r3053+79M cc68226 t_mod_test_xavc [(8 & 10)-bit@all X86_64]
Encoding settings : cabac=0 / ref=4 / deblock=1:-4:-4 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / fade_compensate=0.00 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=tff / bluray_compat=0 / constrained_intra=0 / fgo=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=0 / keyint=25 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=25 / rc=cbr / mbtree=1 / bitrate=15000 / ratetol=1.0 / qcomp=0.60 / qpmin=0:0:0 / qpmax=69:69:69 / qpstep=4 / vbv_maxrate=15000 / vbv_bufsize=15000 / nal_hrd=cbr / filler=1 / ip_ratio=1.40 / aq=1:1.00 / aq-sensitivity=10.00 / aq-factor=1.00:1.00:1.00 / aq2=0 / aq3=0
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio #1
ID : 337 (0x151)
Menu ID : 21862 (0x5566)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Codec ID : 3
Duration : 30 s 72 ms
Bit rate mode : Constant
Bit rate : 384 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Frame rate : 41.667 FPS (1152 SPF)
Compression mode : Lossy
Stream size : 1.38 MiB (40%)
Audio #2
ID : 338 (0x152)
Menu ID : 21862 (0x5566)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Codec ID : 3
Duration : 30 s 72 ms
Bit rate mode : Constant
Bit rate : 384 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Frame rate : 41.667 FPS (1152 SPF)
Compression mode : Lossy
Stream size : 1.38 MiB (40%)
Menu
ID : 5376 (0x1500)
Menu ID : 21862 (0x5566)
Duration : 30 s 0 ms
List : 336 (0x150) (AVC) / 337 (0x151) (MPEG Audio) / 338 (0x152) (MPEG Audio)
Service name : Avisynth
Service provider : Avisynth
Service type : digital television
Code: Select all
General
ID : 1 (0x1)
Complete name : \\mibctvan000\Ingest\MEDIA\temp\output2.ts
Format : MPEG-TS
File size : 3.65 MiB
Duration : 30 s 80 ms
Overall bit rate mode : Variable
Overall bit rate : 1 014 kb/s
Maximum Overall bit rate : 35.5 Mb/s
Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : 4 Ref Frames
Format settings, CABAC : No
Format settings, Reference frames : 4 frames
Format settings, GOP : M=4, N=25
Codec ID : 27
Duration : 30 s 80 ms
Bit rate mode : Constant
Bit rate : 188 kb/s
Nominal bit rate : 15.0 Mb/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 : MBAFF
Scan type, store method : Interleaved fields
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.004
Stream size : 689 KiB (18%)
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio #1
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Codec ID : 4
Duration : 30 s 72 ms
Bit rate mode : Constant
Bit rate : 384 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Frame rate : 41.667 FPS (1152 SPF)
Compression mode : Lossy
Stream size : 1.38 MiB (38%)
Audio #2
ID : 4353 (0x1101)
Menu ID : 1 (0x1)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Codec ID : 4
Duration : 30 s 72 ms
Bit rate mode : Constant
Bit rate : 384 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Frame rate : 41.667 FPS (1152 SPF)
Compression mode : Lossy
Stream size : 1.38 MiB (38%)
AVS Script:
Code: Select all
ColorBars(1920, 1080, pixel_type="YV12")
ch12=GetChannel(1, 2)
MergeChannels(ch12, ch12)
trim(0, 900)
ConvertFPS(50)
assumeTFF()
separatefields()
selectevery(4,0,3)
weave()
Code: Select all
x264.exe "\\mibctvan000\Ingest\MEDIA\temp\AVS Script.avs" --preset medium --profile High --level 4.1 --ref 4 --bitrate 15000 --vbv-maxrate 15000 --vbv-bufsize 15000 --deblock -4:-4 --overscan show --min-keyint 1 --keyint 25 --tff --range tv --no-cabac --log-level info --thread-input --opencl --colormatrix bt709 --transfer bt709 --colorprim bt709 --videoformat component --nal-hrd cbr --output "\\mibctvan000\Ingest\MEDIA\temp\raw_video.h264"
ffmpeg.exe -i "\\mibctvan000\Ingest\MEDIA\temp\AVS Script.avs" -c:a pcm_s24le -ar 48000 -af loudnorm=I=-24:LRA=12:tp=-2 -f wav -y "\\mibctvan000\Ingest\MEDIA\temp\audio.wav"
ffmpeg.exe -i "\\mibctvan000\Ingest\MEDIA\temp\audio.wav" -filter_complex "channelsplit=channel_layout=4.0[CH1][CH2][CH3][CH4]" -map "[CH1]" -c:a pcm_s24le -ar 48000 "\\mibctvan000\Ingest\MEDIA\temp\ch1.wav" -map "[CH2]" -c:a pcm_s24le -ar 48000 "\\mibctvan000\Ingest\MEDIA\temp\ch2.wav" -map "[CH3]" -c:a pcm_s24le -ar 48000 "\\mibctvan000\Ingest\MEDIA\temp\ch3.wav" -map "[CH4]" -c:a pcm_s24le -ar 48000 "\\mibctvan000\Ingest\MEDIA\temp\ch4.wav"
ffmpeg.exe -i "\\mibctvan000\Ingest\MEDIA\temp\ch1.wav" -i "\\mibctvan000\Ingest\MEDIA\temp\ch2.wav" -filter_complex "[0:a][1:a]join=inputs=2:channel_layout=stereo[a]" -map "[a]" -c:a libtwolame -b:a 384k -ar 48000 -f mp2 "\\mibctvan000\Ingest\MEDIA\temp\ch12.mp2"
ffmpeg.exe -i "\\mibctvan000\Ingest\MEDIA\temp\ch3.wav" -i "\\mibctvan000\Ingest\MEDIA\temp\ch4.wav" -filter_complex "[0:a][1:a]join=inputs=2:channel_layout=stereo[a]" -map "[a]" -c:a libtwolame -b:a 384k -ar 48000 -f mp2 "\\mibctvan000\Ingest\MEDIA\temp\ch34.mp2"
"C:\Program Files\MKVToolNix\mkvmerge.exe" --output "\\mibctvan000\Ingest\MEDIA\temp\raw_video.mkv" --language 0:und ^"^(^" \\mibctvan000\Ingest\MEDIA\temp\raw_video.h264 ^"^)^"
ffmpeg.exe -i "\\mibctvan000\Ingest\MEDIA\temp\raw_video.mkv" -i "\\mibctvan000\Ingest\MEDIA\temp\ch12.mp2" -i "\\mibctvan000\Ingest\MEDIA\temp\ch34.mp2" -map 0:0 -map 1:0 -map 2:0 -c:v copy -c:a copy -f mpegts -metadata provider_name="Avisynth" -metadata service_provider="Avisynth" -metadata service_name="Avisynth" -mpegts_original_network_id 0x1122 -mpegts_transport_stream_id 0x3344 -mpegts_service_id 0x5566 -mpegts_pmt_start_pid 0x1500 -mpegts_start_pid 0x150 -mpegts_service_type "digital_tv" -mpegts_flags "resend_headers" -y "\\mibctvan000\Ingest\MEDIA\temp\output1.ts"
pause