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

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

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

[env] DISPLAY=:172  HOME=/tmp/ppt_xvfb_v2cy7nf1

[xvfb] Starting :172
[xvfb] Running — pid=2343547

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

[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\n4198009\n4197993'  stderr=''
  → Strategy 'search --classname soffice' found 6 window(s): ['4194305', '4194311', '4194339', '4194476', '4198009', '4197993']
  $ xdotool getwindowname 4198009
    rc=0  stdout='LibreOffice 7.3'  stderr=''
  $ xdotool getwindowname 4197993
    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\n4198009\n4197993'  stderr=''
  → Strategy 'search --classname soffice' found 6 window(s): ['4194305', '4194311', '4194339', '4194476', '4198009', '4197993']
  $ 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 4198009
    rc=0  stdout='LibreOffice 7.3'  stderr=''
  $ xdotool getwindowname 4197993
    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', '4198009': 'LibreOffice 7.3', '4197993': 'Presenting: prepared_click_only'}
[mode_check] Slideshow mode confirmed
[mode_check] Slideshow window(s): ['4197993']
[find_windows] Searching for LibreOffice window...
  $ xdotool search --classname soffice
    rc=0  stdout='4194305\n4194311\n4194339\n4194476\n4198009\n4197993'  stderr=''
  → Strategy 'search --classname soffice' found 6 window(s): ['4194305', '4194311', '4194339', '4194476', '4198009', '4197993']
  $ 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 4198009
    rc=0  stdout='LibreOffice 7.3'  stderr=''
[fullscreen] Positioning slideshow window 4197993 (no EWMH grab)
  $ xdotool windowmove 4197993 0 0
    rc=0  stdout=''  stderr=''
  $ xdotool windowsize 4197993 1280 720
    rc=0  stdout=''  stderr=''
  $ xdotool windowraise 4197993
    rc=0  stdout=''  stderr=''
  $ xdotool windowactivate 4197993
    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\n4198009\n4197993'  stderr=''
  → Strategy 'search --classname soffice' found 6 window(s): ['4194305', '4194311', '4194339', '4194476', '4198009', '4197993']
  $ 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 4198009
    rc=0  stdout='LibreOffice 7.3'  stderr=''
[settle] Minimising pre-F5 editor window 4198009
  $ xdotool windowminimize 4198009
    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=['4197993']
[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 4197993
    rc=0  stdout=''  stderr=''
  $ xdotool key --clearmodifiers Right
    rc=0  stdout=''  stderr=''
  → XTEST key sent successfully (focused to 4197993)
[advance]   result: SUCCESS
[advance] → Click group 2/2: sending Right Arrow
[send_key] Sending Right Arrow...
  $ xdotool windowfocus 4197993
    rc=0  stdout=''  stderr=''
  $ xdotool key --clearmodifiers Right
    rc=0  stdout=''  stderr=''
  → XTEST key sent successfully (focused to 4197993)
[advance]   result: SUCCESS
[advance] → Advance arrow → slide 2: sending Right Arrow (t=10.848s since FFmpeg start)
[send_key] Sending Right Arrow...
  $ xdotool windowfocus 4197993
    rc=0  stdout=''  stderr=''
  $ xdotool key --clearmodifiers Right
    rc=0  stdout=''  stderr=''
  → XTEST key sent successfully (focused to 4197993)
[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 4197993
    rc=0  stdout=''  stderr=''
  $ xdotool key --clearmodifiers Right
    rc=0  stdout=''  stderr=''
  → XTEST key sent successfully (focused to 4197993)
[advance]   result: SUCCESS
[advance] → Advance arrow → slide 3: sending Right Arrow (t=18.194s since FFmpeg start)
[send_key] Sending Right Arrow...
  $ xdotool windowfocus 4197993
    rc=0  stdout=''  stderr=''
  $ xdotool key --clearmodifiers Right
    rc=0  stdout=''  stderr=''
  → XTEST key sent successfully (focused to 4197993)
[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 4197993
    rc=0  stdout=''  stderr=''
  $ xdotool key --clearmodifiers Right
    rc=0  stdout=''  stderr=''
  → XTEST key sent successfully (focused to 4197993)
[advance]   result: SUCCESS
[advance] → Advance arrow → slide 4: sending Right Arrow (t=25.540s since FFmpeg start)
[send_key] Sending Right Arrow...
  $ xdotool windowfocus 4197993
    rc=0  stdout=''  stderr=''
  $ xdotool key --clearmodifiers Right
    rc=0  stdout=''  stderr=''
  → XTEST key sent successfully (focused to 4197993)
[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.716s since FFmpeg start)
[send_key] Sending Right Arrow...
  $ xdotool windowfocus 4197993
    rc=0  stdout=''  stderr=''
  $ xdotool key --clearmodifiers Right
    rc=0  stdout=''  stderr=''
  → XTEST key sent successfully (focused to 4197993)
[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.848, 18.194, 25.54, 29.716]
[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/117/full_presentation.mp4  size=190389 bytes
[timings] boundary_source: actual_advances
[timings] boundaries         : [0.0, 10.848, 18.194, 25.54, 29.716, 37.0]
[timings] clip_starts         : [0.0, 13.848, 21.194, 28.54, 32.716]
[timings] slide_durations     : [10.848, 7.346, 7.346, 4.176, 7.284]
[timings] transition_durations: [0.0, 0.0, 0.0, 0.0, 0.0]
[timings] TRANSITION_BUFFER   : 1.0s
[done] Export successful
