FFAStrans 1.4.0.x Audio to MXF Encoding issue

Here you can submit bugreports
Post Reply
artjuice
Posts: 38
Joined: Mon Mar 20, 2023 11:33 pm

FFAStrans 1.4.0.x Audio to MXF Encoding issue

Post by artjuice »

Hello

Found new issue for a workflow: Monitoring (folder with mp3, wav audio) -> Encode (to XDCAM-HD) -> Deliver (to folder, ftp)
Result file, MXF had a doubled duration. If audio was 60sec, MXF will be 120sec (audio track + audio track again).

If needed can attach workflow and samples.
2024-04-22_Remote Desktop Manager-002624.png
2024-04-22_Remote Desktop Manager-002624.png (82.62 KiB) Viewed 7141 times
User avatar
FranceBB
Posts: 266
Joined: Sat Jun 25, 2016 3:43 pm
Contact:

Re: FFAStrans 1.4.0.x Audio to MXF Encoding issue

Post by FranceBB »

I can reproduce.

Source test file:

General
Complete name : \\mibctvan000\Ingest\MEDIA\temp\ch12.wav
Format : Wave
Format settings : WaveFormatExtensible
File size : 43.4 MiB
Duration : 2 min 38 s
Overall bit rate mode : Constant
Overall bit rate : 2 304 kb/s
Writing application : Lavf61.0.100

Audio
Format : PCM
Format settings : Little / Signed
Codec ID : 00000001-0000-0010-8000-00AA00389B71
Duration : 2 min 38 s
Bit rate mode : Constant
Bit rate : 2 304 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Bit depth : 24 bits
Stream size : 43.4 MiB (100%)


Workflow:
Simple XDCAM-50 encoding node followed by a delivery node
Screenshot from 2024-04-24 08-20-05.png
Screenshot from 2024-04-24 08-20-05.png (38.48 KiB) Viewed 7104 times

Output:
General
Complete name : \\mibctsda001\TG24_Media_Ingest\OUTPUT Avisynth Server 1\Node1\ch12.mxf
Format : MXF
Commercial name : XDCAM HD422
Format version : 1.3
Format profile : OP-1a
Format settings : Closed / Complete
File size : 2.21 GiB
Duration : 5 min 16 s
Overall bit rate : 60.0 Mb/s
Frame rate : 25.000 FPS
Encoded date : 2024-04-24 07:21:07.484
Writing application : BBC bmx 1.2.0.0.0
Writing library : libMXF (Win64) 1.2.0.0.0

Video
ID : 2
Format : MPEG Video
Commercial name : XDCAM HD422
Format version : Version 2
Format profile : 4:2:2@High
Format settings : CustomMatrix / BVOP
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : M=3, N=12
Format settings, picture structure : Frame
Format settings, wrapping mode : Frame
Codec ID : 0D01030102046001-0401020201040300
Duration : 5 min 16 s
Bit rate mode : Constant
Bit rate : 50.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:2
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.965
Time code of first frame : 00:00:00:00
Time code source : Group of pictures header
GOP, Open/Closed : Closed
Stream size : 1.84 GiB (83%)
Title : V1
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio #1
ID : 4
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 5 min 16 s
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 25.000 FPS (1920 SPF)
Bit depth : 24 bits
Stream size : 43.4 MiB (2%)
Title : A1
Locked : Yes

Audio #2
ID : 5
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 5 min 16 s
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 25.000 FPS (1920 SPF)
Bit depth : 24 bits
Stream size : 43.4 MiB (2%)
Title : A2
Locked : Yes

Audio #3
ID : 6
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 5 min 16 s
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 25.000 FPS (1920 SPF)
Bit depth : 24 bits
Stream size : 43.4 MiB (2%)
Title : A3
Locked : Yes

Audio #4
ID : 7
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 5 min 16 s
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 25.000 FPS (1920 SPF)
Bit depth : 24 bits
Stream size : 43.4 MiB (2%)
Title : A4
Locked : Yes

Audio #5
ID : 8
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 5 min 16 s
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 25.000 FPS (1920 SPF)
Bit depth : 24 bits
Stream size : 43.4 MiB (2%)
Title : A5
Locked : Yes

Audio #6
ID : 9
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 5 min 16 s
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 25.000 FPS (1920 SPF)
Bit depth : 24 bits
Stream size : 43.4 MiB (2%)
Title : A6
Locked : Yes

Audio #7
ID : 10
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 5 min 16 s
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 25.000 FPS (1920 SPF)
Bit depth : 24 bits
Stream size : 43.4 MiB (2%)
Title : A7
Locked : Yes

Audio #8
ID : 11
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 5 min 16 s
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 25.000 FPS (1920 SPF)
Bit depth : 24 bits
Stream size : 43.4 MiB (2%)
Title : A8
Locked : Yes

Other #1
ID : 1-Material
Type : Time code
Format : MXF TC
Frame rate : 25.000 FPS
Time code of first frame : 00:00:00:00
Time code of last frame : 00:05:16:03
Time code settings : Material Package
Time code, stripped : Yes
Title : TC1

Other #2
ID : 1-Source
Type : Time code
Format : MXF TC
Frame rate : 25.000 FPS
Time code of first frame : 00:00:00:00
Time code of last frame : 00:05:16:03
Time code settings : Source Package
Time code, stripped : Yes
Title : TC1

Other #3
Type : Time code
Format : SMPTE TC
Muxing mode : SDTI
Frame rate : 25.000 FPS
Time code of first frame : 00:00:00:00



So, the file is indeed twice as long as 2 min 38 s twice is 5 min 16 s.
The audio however isn't going faster or slower, it stays in sync with the clip from the beginning to the end
Screenshot from 2024-04-24 08-28-11.png
Screenshot from 2024-04-24 08-28-11.png (738 KiB) Viewed 7104 times
Once it reaches 2 minutes 38 seconds (i.e the end of the clip), it starts again from the very beginning.

From the command line I can see:

Code: Select all

ffmpeg 
started on 2024-04-24 at 09:21:06
Report written to "\\avisynth\TempFiles\20231006-1102-4905-1400-d59e5bacce01\20240424-0920-5832-2559-f575da87bf6a\1-1-1~240424092106533~6280~20211027-1343-5191-72e8-bd03dcae9912~enc_av_xdcamhd.mxf~ffreport.txt"
Log level: 32
Command line:
"\\avisynth\processors\FFMpeg\x64\ffmpeg.exe" -analyzeduration 33554432 -stream_loop 1 -stats_period 1.7 -hide_banner -i "A:\MEDIA\temp\ch12.wav" -f lavfi -i "aevalsrc=0" -f lavfi -i "color=color=black:size=1920x1080" -shortest -map_metadata -1 -map 2:v -filter_complex "[0:0]pan=1|c0=c0[a1],[0:0]pan=1|c0=c1[a2],[0:0]pan=1|c0=0*c0[a3],[0:0]pan=1|c0=0*c0[a4],[0:0]pan=1|c0=0*c0[a5],[0:0]pan=1|c0=0*c0[a6],[0:0]pan=1|c0=0*c0[a7],[0:0]pan=1|c0=0*c0[a8],[a1]amerge=1[astr1],[a2]amerge=1[astr2],[a3]amerge=1[astr3],[a4]amerge=1[astr4],[a5]amerge=1[astr5],[a6]amerge=1[astr6],[a7]amerge=1[astr7],[a8]amerge=1[astr8]" -map "[astr1]" -c:a:0 pcm_s24le -ar:a:0 48000 -map "[astr2]" -c:a:1 pcm_s24le -ar:a:1 48000 -map "[astr3]" -c:a:2 pcm_s24le -ar:a:2 48000 -map "[astr4]" -c:a:3 pcm_s24le -ar:a:3 48000 -map "[astr5]" -c:a:4 pcm_s24le -ar:a:4 48000 -map "[astr6]" -c:a:5 pcm_s24le -ar:a:5 48000 -map "[astr7]" -c:a:6 pcm_s24le -ar:a:6 48000 -map "[astr8]" -c:a:7 pcm_s24le -ar:a:7 48000 -timecode 00:00:00:00 -c:v mpeg2video -r 25/1 -pix_fmt yuv422p -b:v 50000000 -minrate 50000000 -maxrate 50000000 -intra_vlc 1 -dc 10 -g 12 -bf 2 -mpv_flags +strict_gop -qmin 5 -qmax 28 -qsquish 99 -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range tv -seq_disp_ext 1 -video_format component -chroma_sample_location topleft -signal_standard 4 -field_order tt -top 1 -alternate_scan 1 -flags +ildct+ilme+cgop -sc_threshold 1000000000 -intra_matrix 8,10,22,27,29,37,37,40,9,12,14,28,29,37,39,40,9,14,27,31,34,37,40,48,12,22,27,29,34,37,40,58,26,27,29,34,37,38,48,58,26,27,29,36,38,38,48,69,18,27,34,36,38,38,48,69,26,26,34,34,38,40,58,79 -inter_matrix 16,20,22,26,28,32,32,36,18,20,22,28,28,32,34,36,18,22,26,30,30,32,36,38,20,22,26,28,30,32,36,42,24,26,28,30,32,34,38,40,24,26,28,32,34,34,38,42,24,26,30,32,34,34,38,42,24,24,30,30,34,36,40,44 -non_linear_quant 1 -f mxf -max_muxing_queue_size 700 -map_metadata -1 -metadata "creation_time=now" -
ffmpeg stats and -progress period set to 1.7.
Input #0, wav, from 'A:\MEDIA\temp\ch12.wav':
  Metadata:
    encoder         : Lavf61.0.100
  Duration: 00:02:38.08, bitrate: 2304 kb/s
  Stream #0:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s32 (24 bit), 2304 kb/s
Input #1, lavfi, from 'aevalsrc=0':
  Duration: N/A, start: 0.000000, bitrate: 2822 kb/s
  Stream #1:0: Audio: pcm_f64le, 44100 Hz, mono, dbl, 2822 kb/s
Input #2, lavfi, from 'color=color=black:size=1920x1080':
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #2:0: Video: wrapped_avframe, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn
[vost#0:0/mpeg2video @ 000001a80847ec80] -top is deprecated, use the setfield filter instead
Stream mapping:
  Stream #0:0 (pcm_s24le) -> pan:default (graph 0)
  Stream #2:0 -> #0:0 (wrapped_avframe (native) -> mpeg2video (native))
  amerge:default (graph 0) -> Stream #0:1 (pcm_s24le)
Press [q] to stop, [?] for help
[mpeg2video @ 000001a807e8a840] Automatically choosing VBV buffer size of 746 kbyte
[Parsed_pan_0 @ 000001a807e396c0] Pure channel mapping detected: 0
[Parsed_pan_2 @ 000001a807e39ac0] Pure channel mapping detected: M
Output #0, mxf, to 'pipe:':
  Metadata:
    timecode        : 00:00:00:00
    creation_time   : now
    encoder         : Lavf60.17.100
  Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 50000 kb/s, 25 fps, 25 tbn
    Metadata:
      encoder         : Lavc60.33.100 mpeg2video
    Side data:
      cpb: bitrate max/min/avg: 50000000/50000000/50000000 buffer size: 6111232 vbv_delay: N/A
  Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels (FL), s32, 1152 kb/s (default)
    Metadata:
      encoder         : Lavc60.33.100 pcm_s24le
  Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels (FL), s32, 1152 kb/s
    Metadata:
      encoder         : Lavc60.33.100 pcm_s24le
  Stream #0:3: Audio: pcm_s24le, 48000 Hz, 1 channels (FL), s32, 1152 kb/s
    Metadata:
      encoder         : Lavc60.33.100 pcm_s24le
  Stream #0:4: Audio: pcm_s24le, 48000 Hz, 1 channels (FL), s32, 1152 kb/s
    Metadata:
      encoder         : Lavc60.33.100 pcm_s24le
  Stream #0:5: Audio: pcm_s24le, 48000 Hz, 1 channels (FL), s32, 1152 kb/s
    Metadata:
      encoder         : Lavc60.33.100 pcm_s24le
  Stream #0:6: Audio: pcm_s24le, 48000 Hz, 1 channels (FL), s32, 1152 kb/s
    Metadata:
      encoder         : Lavc60.33.100 pcm_s24le
  Stream #0:7: Audio: pcm_s24le, 48000 Hz, 1 channels (FL), s32, 1152 kb/s
    Metadata:
      encoder         : Lavc60.33.100 pcm_s24le
  Stream #0:8: Audio: pcm_s24le, 48000 Hz, 1 channels (FL), s32, 1152 kb/s
    Metadata:
      encoder         : Lavc60.33.100 pcm_s24le
frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
frame=  137 fps= 77 q=2.0 size=   39625kB time=00:00:05.58 bitrate=58133.3kbits/s speed=3.14x    
frame= 4058 fps= 75 q=2.0 size= 1188550kB time=00:02:42.42 bitrate=59944.2kbits/s speed=   3x    
frame= 4242 fps= 76 q=2.5 size= 1242755kB time=00:02:49.80 bitrate=59956.1kbits/s speed=3.04x    
[out#0/mxf @ 000001a807e43b40] video:1929501kB audio:355680kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.341641%
frame= 7904 fps= 89 q=2.0 Lsize= 2315840kB time=00:05:16.14 bitrate=60007.9kbits/s speed=3.54x    


However indexing the file and going through Avisynth helps, in fact adding the A/V Decoder set to "No Decode" (i.e leverage on ffms2) before the XDCAM encoding node fixes the issue:
Screenshot from 2024-04-24 08-51-55.png
Screenshot from 2024-04-24 08-51-55.png (8.55 KiB) Viewed 7104 times
Checking the logs, we can see that FFAudioSource() was called to index the .wav file

Code: Select all

_ffas_video = "\\mibctvan000\Ingest\MEDIA\temp\audio - Copy.wav"
_ffas_audio = "\\mibctvan000\Ingest\MEDIA\temp\audio - Copy.wav"
_ffas_width = 16
_ffas_height = 16
_ffas_work_fdr = "\\avisynth\TempFiles\20240305-1240-4485-0b9c-de46d3cf0fcb\20240424-0949-1727-7fe0-4b1ad1939fbd"
Import("\\avisynth\processors\AVS_plugins\avsi\mtmodes.avsi")
Import("\\avisynth\processors\AVS_plugins\avsi\_ffas_helpers.avsi")
LoadPlugin("\\avisynth\processors\AVS_plugins\ffms2\x64\ffms2.dll")
LoadPlugin("\\avisynth\processors\AVS_plugins\bas\x64\BestAudioSource.dll")
LoadPlugin("\\avisynth\processors\AVS_plugins\JPSDR\x64\plugins_JPSDR.dll")
video = BlankClip(length=3953, width=16, height=16, color=$000000, channels=1, audio_rate=48000)
audio_null = BlankClip(length=3953, width=16, height=16, color=$000000, channels=1, audio_rate=48000, fps=25)
audio_1 = audio_null
audio_2 = audio_null
audio_3 = audio_null
audio_4 = audio_null
audio = FFAudioSource(_ffas_video, 0, cachefile = "\\avisynth\TempFiles\20240305-1240-4485-0b9c-de46d3cf0fcb\20240424-0949-1727-7fe0-4b1ad1939fbd\1-11-11~240424094923132~13152~20240424-0948-2849-102f-ae186e71f0ea~dec_avmedia~ffindex.dat").ResampleAudio(48000).ConvertAudioTo24bit()
audio_1 = GetChannel(audio, 1)
audio_2 = GetChannel(audio, 2)
audio_3 = GetChannel(audio, 3)
audio_4 = GetChannel(audio, 4)
audio = MergeChannels(audio_1, audio_2, audio_3, audio_4)
Global m_clip = AudioDub(video, audio)
m_clip = AssumeFieldBased(m_clip)
Return m_clip

and after that FFMpeg correctly encoded the file as it was reading the AVS Script instead of the file directly:

Code: Select all

ffmpeg started on 2024-04-24 at 09:49:31
Report written to "\\avisynth\TempFiles\20240305-1240-4485-0b9c-de46d3cf0fcb\20240424-0949-1727-7fe0-4b1ad1939fbd\1-11-11~240424094930818~13152~20240424-0948-0301-7184-bc27ffd531e7~enc_av_xdcamhd.mxf~ffreport.txt"
Log level: 32
Command line:
"\\avisynth\processors\FFMpeg\x64\ffmpeg.exe" -stats_period 1.7 -hide_banner -i "\\avisynth\TempFiles\20240305-1240-4485-0b9c-de46d3cf0fcb\20240424-0949-1727-7fe0-4b1ad1939fbd\1-11-11~240424094925485~13152~20240424-0948-0301-7184-bc27ffd531e7~enc_av_xdcamhd.avs" -f lavfi -i "aevalsrc=0" -f lavfi -i "color=color=black:size=1920x1080" -shortest -map_metadata -1 -map 0:0 -filter_complex "[0:1]pan=1|c0=c0[a1],[0:1]pan=1|c0=c1[a2],[0:1]pan=1|c0=c2[a3],[0:1]pan=1|c0=c3[a4],[0:1]pan=1|c0=0*c0[a5],[0:1]pan=1|c0=0*c0[a6],[0:1]pan=1|c0=0*c0[a7],[0:1]pan=1|c0=0*c0[a8],[a1]amerge=1,apad[astr1],[a2]amerge=1,apad[astr2],[a3]amerge=1,apad[astr3],[a4]amerge=1,apad[astr4],[a5]amerge=1,apad[astr5],[a6]amerge=1,apad[astr6],[a7]amerge=1,apad[astr7],[a8]amerge=1,apad[astr8]" -map "[astr1]" -c:a:0 pcm_s24le -ar:a:0 48000 -map "[astr2]" -c:a:1 pcm_s24le -ar:a:1 48000 -map "[astr3]" -c:a:2 pcm_s24le -ar:a:2 48000 -map "[astr4]" -c:a:3 pcm_s24le -ar:a:3 48000 -map "[astr5]" -c:a:4 pcm_s24le -ar:a:4 48000 -map "[astr6]" -c:a:5 pcm_s24le -ar:a:5 48000 -map "[astr7]" -c:a:6 pcm_s24le -ar:a:6 48000 -map "[astr8]" -c:a:7 pcm_s24le -ar:a:7 48000 -vf "sidedata=delete,metadata=delete,setrange=pc,format=yuv444p,colorspace=fast=1:ispace=gbr:itrc=bt709:iprimaries=bt709:all=bt709,scale=w=1080:h=1080:flags=lanczos,fps=50,tinterlace=mode=4,scale=interl=1,format=yuv422p,pad=w=1920:h=1080:x=420:y=0,setfield=tff,setsar=r=1:max=1" -timecode 00:00:00:00 -c:v mpeg2video -r 25/1 -pix_fmt yuv422p -b:v 50000000 -minrate 50000000 -maxrate 50000000 -intra_vlc 1 -dc 10 -g 12 -bf 2 -mpv_flags +strict_gop -qmin 5 -qmax 28 -qsquish 99 -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range tv -seq_disp_ext 1 -video_format component -chroma_sample_location topleft -signal_standard 4 -field_order tt -top 1 -alternate_scan 1 -flags +ildct+ilme+cgop -sc_threshold 1000000000 -intra_matrix 8,10,22,27,29,37,37,40,9,12,14,28,29,37,39,40,9,14,27,31,34,37,40,48,12,22,27,29,34,37,40,58,26,27,29,34,37,38,48,58,26,27,29,36,38,38,48,69,18,27,34,36,38,38,48,69,26,26,34,34,38,40,58,79 -inter_matrix 16,20,22,26,28,32,32,36,18,20,22,28,28,32,34,36,18,22,26,30,30,32,36,38,20,22,26,28,30,32,36,42,24,26,28,30,32,34,38,40,24,26,28,32,34,34,38,42,24,26,30,32,34,34,38,42,24,24,30,30,34,36,40,44 -non_linear_quant 1 -f mxf -max_muxing_queue_size 700 -map_metadata -1 -metadata "creation_time=now" -
ffmpeg stats and -progress period set to 1.7.
Input #0, avisynth, from '\\avisynth\TempFiles\20240305-1240-4485-0b9c-de46d3cf0fcb\20240424-0949-1727-7fe0-4b1ad1939fbd\1-11-11~240424094925485~13152~20240424-0948-0301-7184-bc27ffd531e7~enc_av_xdcamhd.avs':
  Duration: 00:02:44.71, start: 0.000000, bitrate: 0 kb/s
  Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra(pc, gbr/unknown/unknown), 16x16, 24 fps, 24 tbr, 24 tbn
  Stream #0:1: Audio: pcm_s24le, 48000 Hz, 4.0, s32 (24 bit), 4608 kb/s
Input #1, lavfi, from 'aevalsrc=0':
  Duration: N/A, start: 0.000000, bitrate: 2822 kb/s
  Stream #1:0: Audio: pcm_f64le, 44100 Hz, mono, dbl, 2822 kb/s
Input #2, lavfi, from 'color=color=black:size=1920x1080':
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #2:0: Video: wrapped_avframe, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn
[vost#0:0/mpeg2video @ 000001f9804e63c0] -top is deprecated, use the setfield filter instead
Stream mapping:
  Stream #0:1 (pcm_s24le) -> pan:default (graph 0)
  Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg2video (native))
  apad:default (graph 0) -> Stream #0:1 (pcm_s24le)
Press [q] to stop, [?] for help
[Parsed_pan_0 @ 000001f9804c6940] Pure channel mapping detected: 0
[Parsed_pan_4 @ 000001f9847d2900] Pure channel mapping detected: M
[mpeg2video @ 000001f9804e6680] Automatically choosing VBV buffer size of 746 kbyte
Output #0, mxf, to 'pipe:':
  Metadata:
    timecode        : 00:00:00:00
    creation_time   : now
    encoder         : Lavf60.17.100
  Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 50000 kb/s, 25 fps, 25 tbn
    Metadata:
      encoder         : Lavc60.33.100 mpeg2video
    Side data:
      cpb: bitrate max/min/avg: 50000000/50000000/50000000 buffer size: 6111232 vbv_delay: N/A
  Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels (FL), s32, 1152 kb/s (default)
    Metadata:
      encoder         : Lavc60.33.100 pcm_s24le
  Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels (FL), s32, 1152 kb/s
    Metadata:
      encoder         : Lavc60.33.100 pcm_s24le
  Stream #0:3: Audio: pcm_s24le, 48000 Hz, 1 channels (FL), s32, 1152 kb/s
    Metadata:
      encoder         : Lavc60.33.100 pcm_s24le
  Stream #0:4: Audio: pcm_s24le, 48000 Hz, 1 channels (FL), s32, 1152 kb/s
    Metadata:
      encoder         : Lavc60.33.100 pcm_s24le
  Stream #0:5: Audio: pcm_s24le, 48000 Hz, 1 channels (FL), s32, 1152 kb/s
    Metadata:
      encoder         : Lavc60.33.100 pcm_s24le
  Stream #0:6: Audio: pcm_s24le, 48000 Hz, 1 channels (FL), s32, 1152 kb/s
    Metadata:
      encoder         : Lavc60.33.100 pcm_s24le
  Stream #0:7: Audio: pcm_s24le, 48000 Hz, 1 channels (FL), s32, 1152 kb/s
    Metadata:
      encoder         : Lavc60.33.100 pcm_s24le
  Stream #0:8: Audio: pcm_s24le, 48000 Hz, 1 channels (FL), s32, 1152 kb/s
    Metadata:
      encoder         : Lavc60.33.100 pcm_s24le
frame=    0 fps=0.0 q=0.0 size=       0kB time=N/A bitrate=N/A speed=N/A    
frame=  175 fps= 81 q=2.5 size=   50759kB time=00:00:07.00 bitrate=59402.7kbits/s speed=3.23x    
[out#0/mxf @ 000001f9804e3740] video:1004940kB audio:185232kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.345040%
frame= 4117 fps=132 q=1.7 Lsize= 1206181kB time=00:02:44.60 bitrate=60030.6kbits/s speed= 5.3x  


and indeed the output file has the right length:

General
Complete name : \\mibctvan000.avid.mi.bc.sky.it\Ingest\MEDIA\temp\audio - Copy.mxf
Format : MXF
Commercial name : XDCAM HD422
Format version : 1.3
Format profile : OP-1a
Format settings : Closed / Complete
File size : 1.15 GiB
Duration : 2 min 44 s
Overall bit rate : 60.0 Mb/s
Frame rate : 25.000 FPS
Encoded date : 2024-04-24 07:49:32.692
Writing application : BBC bmx 1.2.0.0.0
Writing library : libMXF (Win64) 1.2.0.0.0

Video
ID : 2
Format : MPEG Video
Commercial name : XDCAM HD422
Format version : Version 2
Format profile : 4:2:2@High
Format settings : CustomMatrix / BVOP
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : M=3, N=12
Format settings, picture structure : Frame
Format settings, wrapping mode : Frame
Codec ID : 0D01030102046001-0401020201040300
Duration : 2 min 44 s
Bit rate mode : Constant
Bit rate : 50.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:2
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.965
Time code of first frame : 00:00:00:00
Time code source : Group of pictures header
GOP, Open/Closed : Closed
Stream size : 982 MiB (83%)
Title : V1
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio #1
ID : 4
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 2 min 44 s
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 25.000 FPS (1920 SPF)
Bit depth : 24 bits
Stream size : 22.6 MiB (2%)
Title : A1
Locked : Yes

Audio #2
ID : 5
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 2 min 44 s
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 25.000 FPS (1920 SPF)
Bit depth : 24 bits
Stream size : 22.6 MiB (2%)
Title : A2
Locked : Yes

Audio #3
ID : 6
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 2 min 44 s
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 25.000 FPS (1920 SPF)
Bit depth : 24 bits
Stream size : 22.6 MiB (2%)
Title : A3
Locked : Yes

Audio #4
ID : 7
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 2 min 44 s
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 25.000 FPS (1920 SPF)
Bit depth : 24 bits
Stream size : 22.6 MiB (2%)
Title : A4
Locked : Yes

Audio #5
ID : 8
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 2 min 44 s
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 25.000 FPS (1920 SPF)
Bit depth : 24 bits
Stream size : 22.6 MiB (2%)
Title : A5
Locked : Yes

Audio #6
ID : 9
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 2 min 44 s
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 25.000 FPS (1920 SPF)
Bit depth : 24 bits
Stream size : 22.6 MiB (2%)
Title : A6
Locked : Yes

Audio #7
ID : 10
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 2 min 44 s
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 25.000 FPS (1920 SPF)
Bit depth : 24 bits
Stream size : 22.6 MiB (2%)
Title : A7
Locked : Yes

Audio #8
ID : 11
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 2 min 44 s
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 25.000 FPS (1920 SPF)
Bit depth : 24 bits
Stream size : 22.6 MiB (2%)
Title : A8
Locked : Yes

Other #1
ID : 1-Material
Type : Time code
Format : MXF TC
Frame rate : 25.000 FPS
Time code of first frame : 00:00:00:00
Time code of last frame : 00:02:44:16
Time code settings : Material Package
Time code, stripped : Yes
Title : TC1

Other #2
ID : 1-Source
Type : Time code
Format : MXF TC
Frame rate : 25.000 FPS
Time code of first frame : 00:00:00:00
Time code of last frame : 00:02:44:16
Time code settings : Source Package
Time code, stripped : Yes
Title : TC1

Other #3
Type : Time code
Format : SMPTE TC
Muxing mode : SDTI
Frame rate : 25.000 FPS
Time code of first frame : 00:00:00:00
Post Reply