=== export_with_xvfb debug log ===
ppt_path     : /home/nityansco/public_html/scorm_dir/nityansco_nscorm_app/ppt_files/1773995537_Online_Sample_Animated_Style_Presentation.pptx
output_video : /home/nityansco/public_html/scorm_dir/nityansco_nscorm_app/ppt_outputs/104/full_presentation.mp4
display      : :130
slides       : 5
click_steps  : [2, 1, 1, 0, 0]
content_dur  : 34.0s
record_dur   : 37.0s
tmp_dir      : /tmp/ppt_xvfb_fnt3i33f

[binaries]
  xvfb_bin   : /bin/Xvfb
  xdotool_bin: /bin/xdotool
  PATH       : (empty)

[pptx] prepared_pptx: /tmp/ppt_xvfb_fnt3i33f/prepared_click_only.pptx

[env] DISPLAY=:130  HOME=/tmp/ppt_xvfb_fnt3i33f

[xvfb] Starting :130
[xvfb] Running — pid=912888

[wm] Trying openbox: ['/bin/openbox', '--sm-disable']
[wm] openbox running (pid=912897)
[libreoffice] Starting --show /tmp/ppt_xvfb_fnt3i33f/prepared_click_only.pptx
[libreoffice] pid=912921

[wait_window] Polling (max 25s)...
[find_windows] Searching for LibreOffice window...
  $ xdotool search --classname soffice
    rc=1  stdout=''  stderr=''
  $ xdotool search --class Soffice
    rc=1  stdout=''  stderr=''
  $ xdotool search --class soffice
    rc=1  stdout=''  stderr=''
  $ xdotool search --name LibreOffice
    rc=1  stdout=''  stderr=''
  $ xdotool search --name Impress
    rc=1  stdout=''  stderr=''
  $ xdotool search --name Presentation
    rc=1  stdout=''  stderr=''
  $ xdotool search --onlyvisible --name 
    rc=0  stdout='1293\n2097166'  stderr=''
  → Strategy 'search --onlyvisible --name ' found 2 window(s): ['1293', '2097166']
  (broad search — skipping, using for info only)
  $ xdotool getwindowname 1293
    rc=0  stdout=''  stderr=''
  $ xdotool getwindowname 2097166
    rc=0  stdout='Openbox'  stderr=''
  → No LibreOffice window found with any strategy
[find_windows] Searching for LibreOffice window...
  $ xdotool search --classname soffice
    rc=1  stdout=''  stderr=''
  $ xdotool search --class Soffice
    rc=1  stdout=''  stderr=''
  $ xdotool search --class soffice
    rc=1  stdout=''  stderr=''
  $ xdotool search --name LibreOffice
    rc=1  stdout=''  stderr=''
  $ xdotool search --name Impress
    rc=1  stdout=''  stderr=''
  $ xdotool search --name Presentation
    rc=1  stdout=''  stderr=''
  $ xdotool search --onlyvisible --name 
    rc=0  stdout='1293\n2097166'  stderr=''
  → Strategy 'search --onlyvisible --name ' found 2 window(s): ['1293', '2097166']
  (broad search — skipping, using for info only)
  $ xdotool getwindowname 1293
    rc=0  stdout=''  stderr=''
  $ xdotool getwindowname 2097166
    rc=0  stdout='Openbox'  stderr=''
  → No LibreOffice window found with any strategy
[find_windows] Searching for LibreOffice window...
  $ xdotool search --classname soffice
    rc=0  stdout='4194305\n4194311\n4194339\n4194307\n4194476'  stderr=''
  → Strategy 'search --classname soffice' found 5 window(s): ['4194305', '4194311', '4194339', '4194307', '4194476']
[wait_window] Window(s) found after 2.1s: ['4194305', '4194311', '4194339', '4194307', '4194476']
  $ xdotool getwindowname 4194305
    rc=0  stdout='LibreOffice 7.3'  stderr=''
  $ xdotool getwindowclassname 4194305
    rc=1  stdout=''  stderr="/bin/xdotool: Unknown command: getwindowclassname\nRun '/bin/xdotool help' if you want a command list"
  $ xdotool getwindowname 4194311
    rc=0  stdout='LibreOffice 7.3'  stderr=''
  $ xdotool getwindowclassname 4194311
    rc=1  stdout=''  stderr="/bin/xdotool: Unknown command: getwindowclassname\nRun '/bin/xdotool help' if you want a command list"
  $ xdotool getwindowname 4194339
    rc=0  stdout='VCL ImplGetDefaultWindow'  stderr=''
  $ xdotool getwindowclassname 4194339
    rc=1  stdout=''  stderr="/bin/xdotool: Unknown command: getwindowclassname\nRun '/bin/xdotool help' if you want a command list"
  $ xdotool getwindowname 4194307
    rc=0  stdout='LibreOffice 7.3'  stderr=''
  $ xdotool getwindowclassname 4194307
    rc=1  stdout=''  stderr="/bin/xdotool: Unknown command: getwindowclassname\nRun '/bin/xdotool help' if you want a command list"
  $ xdotool getwindowname 4194476
    rc=0  stdout='LibreOffice 7.3'  stderr=''
  $ xdotool getwindowclassname 4194476
    rc=1  stdout=''  stderr="/bin/xdotool: Unknown command: getwindowclassname\nRun '/bin/xdotool help' if you want a command list"
[find_windows] Searching for LibreOffice window...
  $ xdotool search --classname soffice
    rc=0  stdout='4194305\n4194311\n4194339\n4194307\n4194476'  stderr=''
  → Strategy 'search --classname soffice' found 5 window(s): ['4194305', '4194311', '4194339', '4194307', '4194476']
  $ xdotool getwindowname 4194305
    rc=0  stdout='LibreOffice 7.3'  stderr=''
  $ xdotool getwindowname 4194311
    rc=0  stdout='LibreOffice 7.3'  stderr=''
  $ xdotool getwindowname 4194339
    rc=0  stdout='VCL ImplGetDefaultWindow'  stderr=''
  $ xdotool getwindowname 4194307
    rc=0  stdout='LibreOffice 7.3'  stderr=''
  $ xdotool getwindowname 4194476
    rc=0  stdout='LibreOffice 7.3'  stderr=''

[ready] waited=4.2s  wids=['4194305', '4194311', '4194339', '4194307', '4194476']

[activate] Activating window(s): ['4194305', '4194311', '4194339', '4194307', '4194476']
  $ xdotool windowactivate --sync 4194305
    TIMEOUT
  $ xdotool windowactivate --sync 4194311
    TIMEOUT
  $ xdotool windowactivate --sync 4194339
    TIMEOUT
  $ xdotool windowactivate --sync 4194307
    rc=1  stdout=''  stderr='X Error of failed request:  BadWindow (invalid Window parameter)\n  Major opcode of failed request:  20 (X_GetProperty)\n  Resource id in failed request:  0x400003\n  Serial number of failed request:  26\n  Current serial number in output stream:  26'
  $ xdotool windowactivate --sync 4194476
    TIMEOUT
  → Could not activate any window (proceeding anyway)
[activate] active_wid=None

[find_windows] Searching for LibreOffice window...
  $ xdotool search --classname soffice
    rc=0  stdout='4194305\n4194311\n4194339\n4194476\n4197540\n4197524'  stderr=''
  → Strategy 'search --classname soffice' found 6 window(s): ['4194305', '4194311', '4194339', '4194476', '4197540', '4197524']
  $ xdotool getwindowname 4197540
    rc=0  stdout='LibreOffice 7.3'  stderr=''
  $ xdotool getwindowname 4197524
    rc=0  stdout='Presenting: prepared_click_only'  stderr=''
[find_windows] Searching for LibreOffice window...
  $ xdotool search --classname soffice
    rc=0  stdout='4194305\n4194311\n4194339\n4194476\n4197540\n4197524'  stderr=''
  → Strategy 'search --classname soffice' found 6 window(s): ['4194305', '4194311', '4194339', '4194476', '4197540', '4197524']
  $ xdotool getwindowname 4194305
    rc=0  stdout='LibreOffice 7.3'  stderr=''
  $ xdotool getwindowname 4194311
    rc=0  stdout='LibreOffice 7.3'  stderr=''
  $ xdotool getwindowname 4194339
    rc=0  stdout='VCL ImplGetDefaultWindow'  stderr=''
  $ xdotool getwindowname 4194476
    rc=0  stdout='LibreOffice 7.3'  stderr=''
  $ xdotool getwindowname 4197540
    rc=0  stdout='LibreOffice 7.3'  stderr=''
  $ xdotool getwindowname 4197524
    rc=0  stdout='Presenting: prepared_click_only'  stderr=''
[mode_check] Window titles after dialog dismissal: {'4194305': 'LibreOffice 7.3', '4194311': 'LibreOffice 7.3', '4194339': 'VCL ImplGetDefaultWindow', '4194476': 'LibreOffice 7.3', '4197540': 'LibreOffice 7.3', '4197524': 'Presenting: prepared_click_only'}
[mode_check] Slideshow mode confirmed
[mode_check] Slideshow window(s): ['4197524']
[find_windows] Searching for LibreOffice window...
  $ xdotool search --classname soffice
    rc=0  stdout='4194305\n4194311\n4194339\n4194476\n4197540\n4197524'  stderr=''
  → Strategy 'search --classname soffice' found 6 window(s): ['4194305', '4194311', '4194339', '4194476', '4197540', '4197524']
  $ xdotool getwindowname 4194305
    rc=0  stdout='LibreOffice 7.3'  stderr=''
  $ xdotool getwindowname 4194311
    rc=0  stdout='LibreOffice 7.3'  stderr=''
  $ xdotool getwindowname 4194339
    rc=0  stdout='VCL ImplGetDefaultWindow'  stderr=''
  $ xdotool getwindowname 4194476
    rc=0  stdout='LibreOffice 7.3'  stderr=''
  $ xdotool getwindowname 4197540
    rc=0  stdout='LibreOffice 7.3'  stderr=''
[fullscreen] Positioning slideshow window 4197524 (no EWMH grab)
  $ xdotool windowmove 4197524 0 0
    rc=0  stdout=''  stderr=''
  $ xdotool windowsize 4197524 1280 720
    rc=0  stdout=''  stderr=''
  $ xdotool windowraise 4197524
    rc=0  stdout=''  stderr=''
  $ xdotool windowactivate 4197524
    rc=0  stdout=''  stderr=''
[fullscreen] Positioning complete
[fullscreen] Enforce complete
[find_windows] Searching for LibreOffice window...
  $ xdotool search --classname soffice
    rc=0  stdout='4194305\n4194311\n4194339\n4194476\n4197540\n4197524'  stderr=''
  → Strategy 'search --classname soffice' found 6 window(s): ['4194305', '4194311', '4194339', '4194476', '4197540', '4197524']
  $ xdotool getwindowname 4194305
    rc=0  stdout='LibreOffice 7.3'  stderr=''
[settle] Minimising pre-F5 editor window 4194305
  $ xdotool windowminimize 4194305
    rc=0  stdout=''  stderr=''
  $ xdotool getwindowname 4194311
    rc=0  stdout='LibreOffice 7.3'  stderr=''
[settle] Minimising pre-F5 editor window 4194311
  $ xdotool windowminimize 4194311
    rc=0  stdout=''  stderr=''
  $ xdotool getwindowname 4194339
    rc=0  stdout='VCL ImplGetDefaultWindow'  stderr=''
[settle] Minimising pre-F5 editor window 4194339
  $ xdotool windowminimize 4194339
    rc=0  stdout=''  stderr=''
  $ xdotool getwindowname 4194476
    rc=0  stdout='LibreOffice 7.3'  stderr=''
[settle] Minimising pre-F5 editor window 4194476
  $ xdotool windowminimize 4194476
    rc=0  stdout=''  stderr=''
  $ xdotool getwindowname 4197540
    rc=0  stdout='LibreOffice 7.3'  stderr=''
[settle] Minimising pre-F5 editor window 4197540
  $ xdotool windowminimize 4197540
    rc=0  stdout=''  stderr=''
[settle] Sleeping 2.0s for slide 1 to render fully before FFmpeg starts...
[ffmpeg] Starting recording for 37.0s
[advance] Starting slide advancement loop
[advance] Starting: 5 slides, click_steps=[2, 1, 1, 0, 0]
[advance] ANIM_WAIT_BEFORE_FIRST=4.0s, ANIM_WAIT_BETWEEN_STEPS=3.0s, TRANSITION_BUFFER=1.0s
[advance] transition_durations=[0.0, 0.0, 0.0, 0.0, 0.0]
[advance] wids=['4197524']
[advance] ffmpeg_start_time provided: True

[advance] ── Slide 1/5: 2 click group(s) + 1 advance = 3 arrow(s)
[advance] Waiting 4.0s for slide to render (transition_dur=0.0s, ANIM_WAIT_BEFORE_FIRST=4.0s)...
[advance] → Click group 1/2: sending Right Arrow
[send_key] Sending Right Arrow...
  $ xdotool windowfocus 4197524
    rc=0  stdout=''  stderr=''
  $ xdotool key --clearmodifiers Right
    rc=0  stdout=''  stderr=''
  → XTEST key sent successfully (focused to 4197524)
[advance]   result: SUCCESS
[advance] → Click group 2/2: sending Right Arrow
[send_key] Sending Right Arrow...
  $ xdotool windowfocus 4197524
    rc=0  stdout=''  stderr=''
  $ xdotool key --clearmodifiers Right
    rc=0  stdout=''  stderr=''
  → XTEST key sent successfully (focused to 4197524)
[advance]   result: SUCCESS
[advance] → Advance arrow → slide 2: sending Right Arrow (t=10.856s since FFmpeg start)
[send_key] Sending Right Arrow...
  $ xdotool windowfocus 4197524
    rc=0  stdout=''  stderr=''
  $ xdotool key --clearmodifiers Right
    rc=0  stdout=''  stderr=''
  → XTEST key sent successfully (focused to 4197524)
[advance]   result: SUCCESS

[advance] ── Slide 2/5: 1 click group(s) + 1 advance = 2 arrow(s)
[advance] Waiting 4.0s for slide to render (transition_dur=0.0s, ANIM_WAIT_BEFORE_FIRST=4.0s)...
[advance] → Click group 1/1: sending Right Arrow
[send_key] Sending Right Arrow...
  $ xdotool windowfocus 4197524
    rc=0  stdout=''  stderr=''
  $ xdotool key --clearmodifiers Right
    rc=0  stdout=''  stderr=''
  → XTEST key sent successfully (focused to 4197524)
[advance]   result: SUCCESS
[advance] → Advance arrow → slide 3: sending Right Arrow (t=18.199s since FFmpeg start)
[send_key] Sending Right Arrow...
  $ xdotool windowfocus 4197524
    rc=0  stdout=''  stderr=''
  $ xdotool key --clearmodifiers Right
    rc=0  stdout=''  stderr=''
  → XTEST key sent successfully (focused to 4197524)
[advance]   result: SUCCESS

[advance] ── Slide 3/5: 1 click group(s) + 1 advance = 2 arrow(s)
[advance] Waiting 4.0s for slide to render (transition_dur=0.0s, ANIM_WAIT_BEFORE_FIRST=4.0s)...
[advance] → Click group 1/1: sending Right Arrow
[send_key] Sending Right Arrow...
  $ xdotool windowfocus 4197524
    rc=0  stdout=''  stderr=''
  $ xdotool key --clearmodifiers Right
    rc=0  stdout=''  stderr=''
  → XTEST key sent successfully (focused to 4197524)
[advance]   result: SUCCESS
[advance] → Advance arrow → slide 4: sending Right Arrow (t=25.548s since FFmpeg start)
[send_key] Sending Right Arrow...
  $ xdotool windowfocus 4197524
    rc=0  stdout=''  stderr=''
  $ xdotool key --clearmodifiers Right
    rc=0  stdout=''  stderr=''
  → XTEST key sent successfully (focused to 4197524)
[advance]   result: SUCCESS

[advance] ── Slide 4/5: 0 click group(s) + 1 advance = 1 arrow(s)
[advance] Waiting 4.0s for slide to render (transition_dur=0.0s, ANIM_WAIT_BEFORE_FIRST=4.0s)...
[advance] → Advance arrow → slide 5: sending Right Arrow (t=29.722s since FFmpeg start)
[send_key] Sending Right Arrow...
  $ xdotool windowfocus 4197524
    rc=0  stdout=''  stderr=''
  $ xdotool key --clearmodifiers Right
    rc=0  stdout=''  stderr=''
  → XTEST key sent successfully (focused to 4197524)
[advance]   result: SUCCESS

[advance] ── Slide 5/5: last slide — static hold
[advance] Waiting 4.0s for slide to render (transition_dur=0.0s, ANIM_WAIT_BEFORE_FIRST=4.0s)...

[advance] All slides driven — xdotool job done
[advance] actual_advances (relative to FFmpeg start): [10.856, 18.199, 25.548, 29.722]
[ffmpeg] Waiting for FFmpeg to finish...
[ffmpeg] Finished


=== xvfb.log ===
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

[output] /home/nityansco/public_html/scorm_dir/nityansco_nscorm_app/ppt_outputs/104/full_presentation.mp4  size=195145 bytes
[timings] boundary_source: actual_advances
[timings] boundaries         : [0.0, 10.856, 18.199, 25.548, 29.722, 37.0]
[timings] clip_starts         : [0.0, 13.856, 21.199, 28.548, 32.722]
[timings] slide_durations     : [10.856, 7.343, 7.349, 4.174, 7.278]
[timings] transition_durations: [0.0, 0.0, 0.0, 0.0, 0.0]
[timings] TRANSITION_BUFFER   : 1.0s
[done] Export successful
