mp4 like Adobe premiere result

Questions and answers on how to get the most out of FFAStrans
User avatar
FranceBB
Posts: 264
Joined: Sat Jun 25, 2016 3:43 pm
Contact:

Re: mp4 like Adobe premiere result

Post by FranceBB »

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:

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 


Test 2:

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()
BAT File:

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
User avatar
Wahyu
Posts: 49
Joined: Sun Nov 15, 2020 12:27 am

Re: mp4 like Adobe premiere result

Post by Wahyu »

I've tried those 2 files and still can't work in playout. I'm also trying a few things and it's still not working either.

thank you for helping
emcodem
Posts: 1811
Joined: Wed Sep 19, 2018 8:11 am

Re: mp4 like Adobe premiere result

Post by emcodem »

What's the playout brand/model?
emcodem, wrapping since 2009 you got the rhyme?
User avatar
Wahyu
Posts: 49
Joined: Sun Nov 15, 2020 12:27 am

Re: mp4 like Adobe premiere result

Post by Wahyu »

I use Vigor IP, Previously in November 2020, I was given an example of a file that was run by them, and they used mediaconcept. since then I tried to make it with ffastrans until I finally tested it using adobe premiere.
User avatar
FranceBB
Posts: 264
Joined: Sat Jun 25, 2016 3:43 pm
Contact:

Re: mp4 like Adobe premiere result

Post by FranceBB »

Well it's not over, get ready to receive more files as I'm not giving up eheheheh

I'll be back.

Out of curiosity, does it say anything when you try to play those files? Any error message? Is it just black? Is it a generic error?

Besides, do you have any official PDF depicting all the specs?

I know that the file you gave us works, but I'm just trying to understand if there's any feasible workaround.
User avatar
Wahyu
Posts: 49
Joined: Sun Nov 15, 2020 12:27 am

Re: mp4 like Adobe premiere result

Post by Wahyu »

FranceBB wrote: Sat Sep 04, 2021 1:01 pm Well it's not over, get ready to receive more files as I'm not giving up eheheheh
I'm ready to accept and try it, :D :D because I'm also curious but haven't succeeded yet.
FranceBB wrote: Sat Sep 04, 2021 1:01 pm Out of curiosity, does it say anything when you try to play those files? Any error message? Is it just black? Is it a generic error?

Besides, do you have any official PDF depicting all the specs?
if I use the clip, cue media fails and nothing happens to playout. because this is doing an test and is being stopped due to the pandemic, I haven't gotten a pdf document from them. I used the Vigor IP passthrough channel, then they were informed that the clip must match the input channel. input ch stream only informs the use of H.264 with mp2 audio.
emcodem
Posts: 1811
Joined: Wed Sep 19, 2018 8:11 am

Re: mp4 like Adobe premiere result

Post by emcodem »

I think we should try quicksync or nvnenc h264 encoder with paff to test out if paff is really the disturbing factor here.
On the other hand @Wayhu said nvenc was already tried, were you able to get a paff file out of it - so one that basically matches exactly the first mediainfo you posted from a working file?
emcodem, wrapping since 2009 you got the rhyme?
User avatar
Wahyu
Posts: 49
Joined: Sun Nov 15, 2020 12:27 am

Re: mp4 like Adobe premiere result

Post by Wahyu »

emcodem wrote: Sun Sep 05, 2021 1:20 pm I think we should try quicksync or nvnenc h264 encoder with paff to test out if paff is really the disturbing factor here.
On the other hand @Wayhu said nvenc was already tried, were you able to get a paff file out of it - so one that basically matches exactly the first mediainfo you posted from a working file?
I submitted a workflow using custom ffmpeg with codec h264_nvenc. I think this is close to the premiere result if you look at the media info, but it still doesn't work.
Attachments
TESTBARS-NVENC.png
TESTBARS-NVENC.png (45.47 KiB) Viewed 6064 times
Create_TS_2.json
(8.3 KiB) Downloaded 299 times
emcodem
Posts: 1811
Joined: Wed Sep 19, 2018 8:11 am

Re: mp4 like Adobe premiere result

Post by emcodem »

OK thanks, great!
Unfortunately i cannot encode with your settings because obviously on Touring Cards they disabled interlaced encoding, those suckers.
Anyway, i see there is some stuff in your nvenc meiainfo that dont match the original video at all, e.g. M/N of the GOP and Bitrate. So this one is considered to be not very close to the original working file. Even the files that @francebb created for you before do not really match the working example's config, they are VBR and totally different bitrates than the input file.

Just for clarification: the working file sample is the one you uploaded from permiere, the ts version with 2 mp2 audio tracks, is this correct? So the working file's name is TESTBARS-TS.mpg, right?

As i cannot use the nvenc encoder currently because i only have touring available, i tried to create a quicksync version for you, please download it at
ffastrans.com/share go to "samples->h264_qsv"
Also, it would be good if you work without ffastrans to get your ffmpeg commandline done. It is much faster and more accurate this way as you see all the warnings and such from ffmpeg.

The commandline i used for this qsv encoded sample is:
ffmpeg -f lavfi -i smptebars=duration=10:size=1920x1080:rate=50 -f lavfi -i "sine=frequency=1000:duration=10" -map 0 -map 1 -map 1 -ac 2 -c:a libtwolame -ar 48000 -flags:v +ildct -top 1 -dpb_size 4 -profile:v high -level:v 41 -vsync:v cfr -pix_fmt yuv420p -g 25 -cbr true -r 25 -brand mp42 -async 1 -c:v h264_qsv -b:v 20M -minrate 20M -maxrate 20M -refs 4 -bf 2 -muxrate 20M c:\temp\10s_source.ts
emcodem, wrapping since 2009 you got the rhyme?
User avatar
Wahyu
Posts: 49
Joined: Sun Nov 15, 2020 12:27 am

Re: mp4 like Adobe premiere result

Post by Wahyu »

emcodem wrote: Mon Sep 06, 2021 10:23 am OK thanks, great!
Unfortunately i cannot encode with your settings because obviously on Touring Cards they disabled interlaced encoding, those suckers.
Anyway, i see there is some stuff in your nvenc meiainfo that dont match the original video at all, e.g. M/N of the GOP and Bitrate. So this one is considered to be not very close to the original working file. Even the files that @francebb created for you before do not really match the working example's config, they are VBR and totally different bitrates than the input file.
Usually M=3, N=15 but I don't know where to set M in h264_nvenc and I don't think it affects much, because when I try in premiere with different M/N the playout works.
emcodem wrote: Mon Sep 06, 2021 10:23 am Just for clarification: the working file sample is the one you uploaded from permiere, the ts version with 2 mp2 audio tracks, is this correct? So the working file's name is TESTBARS-TS.mpg, right?
yes, right!
emcodem wrote: Mon Sep 06, 2021 10:23 am As i cannot use the nvenc encoder currently because i only have touring available, i tried to create a quicksync version for you, please download it at
ffastrans.com/share go to "samples->h264_qsv"
Also, it would be good if you work without ffastrans to get your ffmpeg commandline done. It is much faster and more accurate this way as you see all the warnings and such from ffmpeg.
Okay, Thanks for info
The sample you sent is still not working.
Post Reply