# build_all.py — C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\scripts\build_all.py
# task: broadcast_deliverable_conform | fps=25 slate=100f program=1075f total=1175f
[sources] A.mp4 exists, skip
[sources] B.mp4 exists, skip
[sources] C.mp4 exists, skip
[inputs] EDL events=4 program_frames=1075 total_frames=1175

=== [slate] $ ffmpeg -hide_banner -y -f lavfi -i color=black:s=1920x1080:r=25:d=4 -f lavfi -i anullsrc=r=48000:cl=stereo -shortest -c:v libx264 -preset veryfast -crf 10 -pix_fmt yuv420p -c:a pcm_s16le C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\evidence\work\00_slate.mov
Input #0, lavfi, from 'color=black:s=1920x1080:r=25:d=4':
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: wrapped_avframe, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn
Input #1, lavfi, from 'anullsrc=r=48000:cl=stereo':
  Duration: N/A, start: 0.000000, bitrate: 768 kb/s
  Stream #1:0: Audio: pcm_u8, 48000 Hz, stereo, u8, 768 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (wrapped_avframe (native) -> h264 (libx264))
  Stream #1:0 -> #0:1 (pcm_u8 (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[libx264 @ 000001addbb50ac0] using SAR=1/1
[libx264 @ 000001addbb50ac0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000001addbb50ac0] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 000001addbb50ac0] 264 - core 165 r3223 0480cb0 - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=24 lookahead_threads=8 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=10.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mov, to 'C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\evidence\work\00_slate.mov':
  Metadata:
    encoder         : Lavf63.1.100
  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 12800 tbn
    Metadata:
      encoder         : Lavc63.1.100 libx264
    Side data:
      CPB properties: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
  Stream #0:1: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s
    Metadata:
      encoder         : Lavc63.1.100 pcm_s16le
[out#0/mov @ 000001addbb4c940] video:8KiB audio:748KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.465558%
frame=  100 fps=0.0 q=-1.0 Lsize=     760KiB time=00:00:03.98 bitrate=1559.6kbits/s speed=17.3x elapsed=0:00:00.23    
[libx264 @ 000001addbb50ac0] frame I:1     Avg QP: 0.00  size:   432
[libx264 @ 000001addbb50ac0] frame P:25    Avg QP: 0.00  size:    73
[libx264 @ 000001addbb50ac0] frame B:74    Avg QP: 0.00  size:    71
[libx264 @ 000001addbb50ac0] consecutive B-frames:  1.0%  0.0%  3.0% 96.0%
[libx264 @ 000001addbb50ac0] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 000001addbb50ac0] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:100.0%
[libx264 @ 000001addbb50ac0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%
[libx264 @ 000001addbb50ac0] 8x8 transform intra:0.0%
[libx264 @ 000001addbb50ac0] coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0% inter: 0.0% 0.0% 0.0%
[libx264 @ 000001addbb50ac0] i16 v,h,dc,p: 99%  0%  1%  0%
[libx264 @ 000001addbb50ac0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 100%  0%  0%  0%  0%  0%  0%
[libx264 @ 000001addbb50ac0] i8c dc,h,v,p: 100%  0%  0%  0%
[libx264 @ 000001addbb50ac0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000001addbb50ac0] kb/s:14.97

--- ok

=== [event 1 (A frames 250..560)] $ ffmpeg -hide_banner -y -i C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\input\sources\A.mp4 -vf trim=start_frame=250:end_frame=560,setpts=PTS-STARTPTS -af atrim=start_sample=480000:end_sample=1075200,asetpts=PTS-STARTPTS -c:v libx264 -preset veryfast -crf 10 -pix_fmt yuv420p -c:a pcm_s16le -ar 48000 -ac 2 C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\evidence\work\01_A.mov
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\input\sources\A.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf63.1.100
  Duration: 00:00:40.00, start: 0.000000, bitrate: 8244 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 8060 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc63.1.100 libx264
  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 178 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[libx264 @ 000002691f6a4d80] using SAR=1/1
[libx264 @ 000002691f6a4d80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000002691f6a4d80] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 000002691f6a4d80] 264 - core 165 r3223 0480cb0 - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=24 lookahead_threads=8 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=10.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mov, to 'C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\evidence\work\01_A.mov':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf63.1.100
  Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 12800 tbn (default)
    Metadata:
      encoder         : Lavc63.1.100 libx264
      handler_name    : VideoHandler
    Side data:
      CPB properties: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
  Stream #0:1(und): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      encoder         : Lavc63.1.100 pcm_s16le
      handler_name    : SoundHandler
frame=   52 fps=0.0 q=15.0 size=    3584KiB time=00:00:02.18 bitrate=13459.9kbits/s speed=4.26x elapsed=0:00:00.51    
frame=  210 fps=205 q=15.0 size=   14336KiB time=00:00:08.53 bitrate=13754.0kbits/s speed=8.33x elapsed=0:00:01.02    
[out#0/mov @ 000002691f6a42c0] video:18734KiB audio:2325KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.032777%
frame=  310 fps=242 q=-1.0 Lsize=   21065KiB time=00:00:12.40 bitrate=13916.8kbits/s speed= 9.7x elapsed=0:00:01.27    
[libx264 @ 000002691f6a4d80] frame I:2     Avg QP: 1.61  size: 90217
[libx264 @ 000002691f6a4d80] frame P:220   Avg QP: 4.61  size: 64560
[libx264 @ 000002691f6a4d80] frame B:88    Avg QP: 8.84  size: 54531
[libx264 @ 000002691f6a4d80] consecutive B-frames: 56.5%  6.5% 31.9%  5.2%
[libx264 @ 000002691f6a4d80] mb I  I16..4: 88.9%  0.3% 10.8%
[libx264 @ 000002691f6a4d80] mb P  I16..4:  8.6%  0.2%  0.8%  P16..4:  2.8%  2.6%  3.6%  0.0%  0.0%    skip:81.4%
[libx264 @ 000002691f6a4d80] mb B  I16..4:  0.3%  0.0%  0.1%  B16..8:  5.5%  3.2%  2.6%  direct: 2.4%  skip:85.9%  L0:37.2% L1:30.4% BI:32.3%
[libx264 @ 000002691f6a4d80] 8x8 transform intra:1.7% inter:4.2%
[libx264 @ 000002691f6a4d80] coded y,uvDC,uvAC intra: 11.6% 18.6% 17.4% inter: 5.6% 8.9% 8.4%
[libx264 @ 000002691f6a4d80] i16 v,h,dc,p: 96%  3%  1%  0%
[libx264 @ 000002691f6a4d80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 26% 33%  8%  2%  2%  5%  5%  6%
[libx264 @ 000002691f6a4d80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 26% 28%  4%  2%  2%  3%  3%  4%
[libx264 @ 000002691f6a4d80] i8c dc,h,v,p: 80%  8% 11%  1%
[libx264 @ 000002691f6a4d80] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000002691f6a4d80] kb/s:12375.76

--- ok

=== [event 2 (B frames 145..405)] $ ffmpeg -hide_banner -y -i C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\input\sources\B.mp4 -vf trim=start_frame=145:end_frame=405,setpts=PTS-STARTPTS -af atrim=start_sample=278400:end_sample=777600,asetpts=PTS-STARTPTS -c:v libx264 -preset veryfast -crf 10 -pix_fmt yuv420p -c:a pcm_s16le -ar 48000 -ac 2 C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\evidence\work\02_B.mov
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\input\sources\B.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf63.1.100
  Duration: 00:00:30.00, start: 0.000000, bitrate: 7619 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 7422 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc63.1.100 libx264
  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 191 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[libx264 @ 000001dc2f9a1040] using SAR=1/1
[libx264 @ 000001dc2f9a1040] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000001dc2f9a1040] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 000001dc2f9a1040] 264 - core 165 r3223 0480cb0 - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=24 lookahead_threads=8 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=10.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mov, to 'C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\evidence\work\02_B.mov':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf63.1.100
  Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 12800 tbn (default)
    Metadata:
      encoder         : Lavc63.1.100 libx264
      handler_name    : VideoHandler
    Side data:
      CPB properties: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
  Stream #0:1(und): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      encoder         : Lavc63.1.100 pcm_s16le
      handler_name    : SoundHandler
frame=   84 fps=0.0 q=15.0 size=    5120KiB time=00:00:03.50 bitrate=11979.2kbits/s speed=6.83x elapsed=0:00:00.51    
[out#0/mov @ 000001dc31ed6f00] video:14601KiB audio:1950KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.037360%
frame=  260 fps=0.0 q=-1.0 Lsize=   16557KiB time=00:00:10.40 bitrate=13042.2kbits/s speed=10.7x elapsed=0:00:00.97    
[libx264 @ 000001dc2f9a1040] frame I:2     Avg QP: 1.75  size: 97872
[libx264 @ 000001dc2f9a1040] frame P:163   Avg QP: 4.75  size: 61393
[libx264 @ 000001dc2f9a1040] frame B:95    Avg QP: 8.12  size: 49980
[libx264 @ 000001dc2f9a1040] consecutive B-frames: 44.6%  6.2% 41.5%  7.7%
[libx264 @ 000001dc2f9a1040] mb I  I16..4: 89.1%  0.4% 10.5%
[libx264 @ 000001dc2f9a1040] mb P  I16..4: 10.4%  0.2%  1.0%  P16..4:  2.7%  2.5%  3.7%  0.0%  0.0%    skip:79.5%
[libx264 @ 000001dc2f9a1040] mb B  I16..4:  0.4%  0.0%  0.1%  B16..8:  5.7%  3.2%  2.6%  direct: 2.5%  skip:85.5%  L0:37.2% L1:31.0% BI:31.8%
[libx264 @ 000001dc2f9a1040] 8x8 transform intra:1.5% inter:4.3%
[libx264 @ 000001dc2f9a1040] coded y,uvDC,uvAC intra: 11.3% 18.9% 18.0% inter: 5.6% 9.0% 8.6%
[libx264 @ 000001dc2f9a1040] i16 v,h,dc,p: 96%  3%  1%  0%
[libx264 @ 000001dc2f9a1040] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 26% 33%  8%  2%  2%  4%  5%  6%
[libx264 @ 000001dc2f9a1040] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 27% 27%  4%  2%  2%  3%  3%  4%
[libx264 @ 000001dc2f9a1040] i8c dc,h,v,p: 81%  7% 10%  1%
[libx264 @ 000001dc2f9a1040] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000001dc2f9a1040] kb/s:11500.76

--- ok

=== [event 3 (C frames 310..625)] $ ffmpeg -hide_banner -y -i C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\input\sources\C.mp4 -vf trim=start_frame=310:end_frame=625,setpts=PTS-STARTPTS -af atrim=start_sample=595200:end_sample=1200000,asetpts=PTS-STARTPTS -c:v libx264 -preset veryfast -crf 10 -pix_fmt yuv420p -c:a pcm_s16le -ar 48000 -ac 2 C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\evidence\work\03_C.mov
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\input\sources\C.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf63.1.100
  Duration: 00:00:30.00, start: 0.000000, bitrate: 8191 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 8113 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc63.1.100 libx264
  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 71 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[libx264 @ 00000299019f8ac0] using SAR=1/1
[libx264 @ 00000299019f8ac0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 00000299019f8ac0] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 00000299019f8ac0] 264 - core 165 r3223 0480cb0 - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=24 lookahead_threads=8 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=10.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mov, to 'C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\evidence\work\03_C.mov':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf63.1.100
  Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 12800 tbn (default)
    Metadata:
      encoder         : Lavc63.1.100 libx264
      handler_name    : VideoHandler
    Side data:
      CPB properties: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
  Stream #0:1(und): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      encoder         : Lavc63.1.100 pcm_s16le
      handler_name    : SoundHandler
frame=   37 fps=0.0 q=15.0 size=    2304KiB time=00:00:01.57 bitrate=11996.6kbits/s speed=3.07x elapsed=0:00:00.51    
frame=  199 fps=192 q=15.0 size=   13312KiB time=00:00:08.10 bitrate=13461.0kbits/s speed=7.82x elapsed=0:00:01.03    
[out#0/mov @ 00000299019f6a80] video:19158KiB audio:2362KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.032654%
frame=  315 fps=234 q=-1.0 Lsize=   21528KiB time=00:00:12.60 bitrate=13996.4kbits/s speed=9.38x elapsed=0:00:01.34    
[libx264 @ 00000299019f8ac0] frame I:2     Avg QP: 1.84  size:106931
[libx264 @ 00000299019f8ac0] frame P:223   Avg QP: 4.47  size: 64935
[libx264 @ 00000299019f8ac0] frame B:90    Avg QP: 8.26  size: 54699
[libx264 @ 00000299019f8ac0] consecutive B-frames: 55.9%  8.3% 29.5%  6.3%
[libx264 @ 00000299019f8ac0] mb I  I16..4: 88.5%  0.2% 11.3%
[libx264 @ 00000299019f8ac0] mb P  I16..4:  8.8%  0.2%  0.8%  P16..4:  2.8%  2.6%  3.7%  0.0%  0.0%    skip:81.3%
[libx264 @ 00000299019f8ac0] mb B  I16..4:  0.3%  0.0%  0.1%  B16..8:  5.5%  3.2%  2.6%  direct: 2.5%  skip:85.8%  L0:36.8% L1:31.1% BI:32.1%
[libx264 @ 00000299019f8ac0] 8x8 transform intra:1.6% inter:4.3%
[libx264 @ 00000299019f8ac0] coded y,uvDC,uvAC intra: 11.4% 18.5% 17.4% inter: 5.6% 8.9% 8.5%
[libx264 @ 00000299019f8ac0] i16 v,h,dc,p: 96%  3%  1%  0%
[libx264 @ 00000299019f8ac0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 26% 34%  8%  2%  2%  5%  5%  5%
[libx264 @ 00000299019f8ac0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 26% 28%  4%  2%  2%  3%  3%  4%
[libx264 @ 00000299019f8ac0] i8c dc,h,v,p: 80%  8% 11%  1%
[libx264 @ 00000299019f8ac0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 00000299019f8ac0] kb/s:12455.38

--- ok

=== [event 4 (A frames 625..815)] $ ffmpeg -hide_banner -y -i C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\input\sources\A.mp4 -vf trim=start_frame=625:end_frame=815,setpts=PTS-STARTPTS -af atrim=start_sample=1200000:end_sample=1564800,asetpts=PTS-STARTPTS -c:v libx264 -preset veryfast -crf 10 -pix_fmt yuv420p -c:a pcm_s16le -ar 48000 -ac 2 C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\evidence\work\04_A.mov
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\input\sources\A.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf63.1.100
  Duration: 00:00:40.00, start: 0.000000, bitrate: 8244 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 8060 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc63.1.100 libx264
  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 178 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[libx264 @ 00000230f559ab00] using SAR=1/1
[libx264 @ 00000230f559ab00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 00000230f559ab00] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 00000230f559ab00] 264 - core 165 r3223 0480cb0 - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=24 lookahead_threads=8 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=10.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mov, to 'C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\evidence\work\04_A.mov':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf63.1.100
  Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 12800 tbn (default)
    Metadata:
      encoder         : Lavc63.1.100 libx264
      handler_name    : VideoHandler
    Side data:
      CPB properties: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
  Stream #0:1(und): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      encoder         : Lavc63.1.100 pcm_s16le
      handler_name    : SoundHandler
frame=    0 fps=0.0 q=0.0 size=       0KiB time=00:00:00.08 bitrate=   3.3kbits/s speed=0.169x elapsed=0:00:00.52    
frame=  129 fps=125 q=15.0 size=    8704KiB time=00:00:05.18 bitrate=13747.5kbits/s speed=5.04x elapsed=0:00:01.02    
[out#0/mov @ 00000230f5b45700] video:11420KiB audio:1425KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.035580%
frame=  190 fps=165 q=-1.0 Lsize=   12850KiB time=00:00:07.60 bitrate=13850.8kbits/s speed=6.61x elapsed=0:00:01.14    
[libx264 @ 00000230f559ab00] frame I:1     Avg QP: 1.80  size: 98008
[libx264 @ 00000230f559ab00] frame P:148   Avg QP: 5.05  size: 63023
[libx264 @ 00000230f559ab00] frame B:41    Avg QP: 9.04  size: 55322
[libx264 @ 00000230f559ab00] consecutive B-frames: 66.3%  6.3% 25.3%  2.1%
[libx264 @ 00000230f559ab00] mb I  I16..4: 89.2%  0.3% 10.5%
[libx264 @ 00000230f559ab00] mb P  I16..4:  7.7%  0.2%  0.6%  P16..4:  2.8%  2.6%  3.6%  0.0%  0.0%    skip:82.4%
[libx264 @ 00000230f559ab00] mb B  I16..4:  0.3%  0.0%  0.1%  B16..8:  5.5%  3.2%  2.6%  direct: 2.5%  skip:85.8%  L0:38.1% L1:29.7% BI:32.3%
[libx264 @ 00000230f559ab00] 8x8 transform intra:2.1% inter:4.5%
[libx264 @ 00000230f559ab00] coded y,uvDC,uvAC intra: 12.0% 18.6% 17.4% inter: 5.6% 8.8% 8.4%
[libx264 @ 00000230f559ab00] i16 v,h,dc,p: 96%  3%  1%  0%
[libx264 @ 00000230f559ab00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 25% 34%  8%  2%  2%  5%  5%  5%
[libx264 @ 00000230f559ab00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 26% 30%  4%  2%  2%  3%  3%  4%
[libx264 @ 00000230f559ab00] i8c dc,h,v,p: 79%  8% 12%  1%
[libx264 @ 00000230f559ab00] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 00000230f559ab00] kb/s:12309.13

--- ok

=== [concat] $ ffmpeg -hide_banner -y -f concat -safe 0 -i C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\evidence\work\concat.txt -c copy C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\evidence\work\10_concat.mov
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000015104a8ecc0] Auto-inserting h264_mp4toannexb bitstream filter
Input #0, concat, from 'C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\evidence\work\concat.txt':
  Duration: N/A, start: 0.000000, bitrate: 1552 kb/s
  Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 16 kb/s, 25 fps, 25 tbr, 12800 tbn
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : FFMP
      encoder         : Lavc63.1.100 libx264
  Stream #0:1: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Output #0, mov, to 'C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\evidence\work\10_concat.mov':
  Metadata:
    encoder         : Lavf63.1.100
  Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 16 kb/s, 25 fps, 25 tbr, 12800 tbn
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : FFMP
      encoder         : Lavc63.1.100 libx264
  Stream #0:1: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
Press [q] to stop, [?] for help
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000015104a953c0] Auto-inserting h264_mp4toannexb bitstream filter
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000015106fa2c40] Auto-inserting h264_mp4toannexb bitstream filter
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000015104a953c0] Auto-inserting h264_mp4toannexb bitstream filter
    Last message repeated 1 times
[out#0/mov @ 0000015104ac4940] video:63921KiB audio:8810KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.031858%
frame= 1175 fps=0.0 q=-1.0 Lsize=   72755KiB time=00:00:47.00 bitrate=12681.1kbits/s speed= 378x elapsed=0:00:00.12    

--- ok
[loudnorm] measured: {"input_i": "-29.28", "input_tp": "-21.50", "input_lra": "21.50", "input_thresh": "-40.61", "output_i": "-22.87", "output_tp": "-14.10", "output_lra": "16.40", "output_thresh": "-34.29", "normalization_type": "dynamic", "target_offset": "-0.13"}

=== [final delivery encode] $ ffmpeg -hide_banner -y -i C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\evidence\work\10_concat.mov -af loudnorm=I=-23:TP=-1.5:LRA=7:measured_I=-29.28:measured_TP=-21.50:measured_LRA=21.50:measured_thresh=-40.61:offset=-0.13:linear=true -c:v libx264 -preset medium -profile:v high -level:v 4.0 -pix_fmt yuv420p -r 25 -fps_mode cfr -g 25 -keyint_min 25 -bf 0 -x264-params scenecut=0 -c:a aac -b:a 192k -ar 48000 -ac 2 -movflags +faststart C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\reference\deliverable.mp4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\evidence\work\10_concat.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    encoder         : Lavf63.1.100
  Duration: 00:00:47.00, start: 0.000000, bitrate: 12681 kb/s
  Stream #0:0[0x1]: Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 11141 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : FFMP
      encoder         : Lavc63.1.100 libx264
  Stream #0:1[0x2]: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0000021f4290f040] using SAR=1/1
[libx264 @ 0000021f4290f040] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0000021f4290f040] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 0000021f4290f040] 264 - core 165 r3223 0480cb0 - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 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=24 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=25 keyint_min=13 scenecut=0 intra_refresh=0 rc_lookahead=25 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\reference\deliverable.mp4':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    encoder         : Lavf63.1.100
  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 12800 tbn (default)
    Metadata:
      encoder         : Lavc63.1.100 libx264
      handler_name    : VideoHandler
      vendor_id       : FFMP
    Side data:
      CPB properties: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
  Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      encoder         : Lavc63.1.100 aac
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
frame=  105 fps=0.0 q=28.0 size=       0KiB time=00:00:04.20 bitrate=   0.1kbits/s speed=8.14x elapsed=0:00:00.51    
frame=  200 fps=195 q=28.0 size=    2304KiB time=00:00:08.04 bitrate=2346.8kbits/s speed=7.85x elapsed=0:00:01.02    
frame=  298 fps=193 q=28.0 size=    4864KiB time=00:00:11.94 bitrate=3335.3kbits/s speed=7.72x elapsed=0:00:01.54    
frame=  396 fps=193 q=28.0 size=    7424KiB time=00:00:15.85 bitrate=3836.9kbits/s speed=7.71x elapsed=0:00:02.05    
frame=  483 fps=187 q=28.0 size=    9472KiB time=00:00:19.32 bitrate=4016.3kbits/s speed= 7.5x elapsed=0:00:02.57    
frame=  577 fps=187 q=28.0 size=   11776KiB time=00:00:23.14 bitrate=4167.7kbits/s speed= 7.5x elapsed=0:00:03.08    
frame=  670 fps=186 q=28.0 size=   14080KiB time=00:00:26.80 bitrate=4303.9kbits/s speed=7.43x elapsed=0:00:03.60    
frame=  772 fps=187 q=28.0 size=   16896KiB time=00:00:30.88 bitrate=4482.3kbits/s speed=7.48x elapsed=0:00:04.13    
frame=  874 fps=188 q=28.0 size=   19456KiB time=00:00:34.96 bitrate=4559.0kbits/s speed=7.54x elapsed=0:00:04.63    
frame=  984 fps=191 q=28.0 size=   22272KiB time=00:00:39.44 bitrate=4625.5kbits/s speed=7.66x elapsed=0:00:05.14    
frame= 1080 fps=190 q=28.0 size=   24832KiB time=00:00:43.20 bitrate=4708.9kbits/s speed=7.62x elapsed=0:00:05.67    
[mp4 @ 0000021f404cea80] Starting second pass: moving the moov atom to the beginning of the file
[out#0/mp4 @ 0000021f404886c0] video:26415KiB audio:1010KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.099997%
frame= 1175 fps=192 q=-1.0 Lsize=   27452KiB time=00:00:47.00 bitrate=4784.8kbits/s speed= 7.7x elapsed=0:00:06.10    
[libx264 @ 0000021f4290f040] frame I:47    Avg QP:10.40  size: 51327
[libx264 @ 0000021f4290f040] frame P:1128  Avg QP:23.70  size: 21840
[libx264 @ 0000021f4290f040] mb I  I16..4: 80.5% 12.0%  7.6%
[libx264 @ 0000021f4290f040] mb P  I16..4:  0.5%  2.3%  0.2%  P16..4:  4.5%  3.6%  1.9%  0.0%  0.0%    skip:87.1%
[libx264 @ 0000021f4290f040] 8x8 transform intra:38.6% inter:19.9%
[libx264 @ 0000021f4290f040] coded y,uvDC,uvAC intra: 6.7% 12.0% 11.2% inter: 3.7% 6.6% 5.9%
[libx264 @ 0000021f4290f040] i16 v,h,dc,p: 94%  4%  2%  0%
[libx264 @ 0000021f4290f040] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 18% 70%  1%  0%  0%  0%  0%  0%
[libx264 @ 0000021f4290f040] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 25% 31%  5%  2%  2%  3%  3%  3%
[libx264 @ 0000021f4290f040] i8c dc,h,v,p: 86%  6%  8%  1%
[libx264 @ 0000021f4290f040] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0000021f4290f040] ref P L0: 60.3%  9.0% 17.7% 13.0%
[libx264 @ 0000021f4290f040] kb/s:4603.95
[aac @ 0000021f428ab440] Qavg: 40899.000

--- ok

=== [ffprobe deliverable] $ ffprobe -v error -show_entries stream=codec_name,profile,level,width,height,r_frame_rate,pix_fmt,nb_frames,has_b_frames,sample_rate,channels,bit_rate:format=duration,bit_rate -of json C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\reference\deliverable.mp4
{
    "programs": [

    ],
    "stream_groups": [

    ],
    "streams": [
        {
            "codec_name": "h264",
            "profile": "High",
            "width": 1920,
            "height": 1080,
            "has_b_frames": 0,
            "pix_fmt": "yuv420p",
            "level": 40,
            "r_frame_rate": "25/1",
            "bit_rate": "4604054",
            "nb_frames": "1175"
        },
        {
            "codec_name": "aac",
            "profile": "LC",
            "sample_rate": "48000",
            "channels": 2,
            "r_frame_rate": "0/0",
            "bit_rate": "175925",
            "nb_frames": "2204"
        }
    ],
    "format": {
        "duration": "47.000000",
        "bit_rate": "4784838"
    }
}

--- ok
[verify] final loudness: { 	"input_i" : "-23.32", 	"input_tp" : "-14.38", 	"input_lra" : "16.50", 	"input_thresh" : "-34.63", 	"output_i" : "-23.47", 	"output_tp" : "-8.98", 	"output_lra" : "15.30", 	"output_thresh" : "-33.72", 	"normalization_type" : "dynamic", 	"target_offset" : "-0.53" }
[done] reference at C:\project\citation-factory\02_agents-last-exam\submission\broadcast_deliverable_conform\reference
