Author Topic: AH Quick Shots  (Read 214 times)

Online fufu

  • Zinc Member
  • *
  • Posts: 21
AH Quick Shots
« on: Yesterday at 05:30:03 PM »
I created a simple interface and a bunch of scripts, that help you get to the juicy parts of the replay and set-up decent camera angles fast, as well as visually direct the material. Since the film viewer now allows AI steering, this plugs right into it - just point your friendly Codex/Claude agent at this repo:

https://github.com/fuftufajf/ah-quick-shots





Example:



It lists the fights in your film, shows each one through a dozen cameras with one click, and renders the shots you keep at 1080p60 or 4K with the film's sound.
It uses only the viewer's documented socket commands. You need Windows, Film Viewer 3.07 Patch 2 or newer and Python 3.11 or newer.

It is open source, so feel free to have fun with it.


<S>Fufu
 :joystick:

Offline Lazerr

  • Platinum Member
  • ******
  • Posts: 5337
Re: AH Quick Shots
« Reply #1 on: Yesterday at 05:45:48 PM »
Wow, thats cool.

Offline Eagler

  • Radioactive Member
  • *******
  • Posts: 20471
Re: AH Quick Shots
« Reply #2 on: Yesterday at 05:47:46 PM »
Fun fight fufu <S>

Eagler
Intel Core i7-13700KF | GIGABYTE Z790 AORUS Elite AX | 64GB G.Skill DDR5 | 16GB GIGABYTE RTX 4070 Ti Super | 850 watt ps | Pimax Crystal Super | Warthog stick | TM1600 throttle | VKB Mk.V Rudder

Online fufu

  • Zinc Member
  • *
  • Posts: 21
Re: AH Quick Shots
« Reply #3 on: Yesterday at 06:01:29 PM »
haha, as always, <S> Eagler  :salute

Online steely07

  • Silver Member
  • ****
  • Posts: 1986
Re: AH Quick Shots
« Reply #4 on: Yesterday at 06:19:30 PM »
Hi, nice work on AH Quick Shots. I've been working with HT on the film viewer's socket for a while, and we hit the see-through aircraft too. Here's what causes it and a fix that gets a solid picture first time.

What causes it. An aircraft's model fades in the first time it's drawn: invisible on its first frame, about half see-through after ~10 frames, solid after ~60. After a seek, the other pilots' aircraft are brand new to the viewer, so they fade in from scratch. That's why waiting ~2 s fixes it. The same thing hits the first second of a video started straight after a seek: frame 0 has a ghost aircraft in it.

The fix for stills: play the last 2 seconds through the shot's camera before you take it. With the camera already set (cams on), for a still at time T:

seek <T-2>
play
wait 5            repeat (checking `time`) until it's within ~0.3 s of T
pause
seek <T>          a short seek forward: the models stay drawn
shot <file.bmp>

The aircraft are solid in the first shot, so there's no need to detect it and retake. On a 91st film (a B-17 seen from 170 ft, camera switched on after a seek), a shot straight after the seek was a dark ghost, 0.5 s later half there, and solid at 2 s. With the 2 s played through the camera first, it was solid at once. One side effect: smoke and trails carry on for those 2 s, so they show in the still, which looks natural.

The fix for videos: start the render 2 s early and trim it. video <T-2> <end> ..., then cut the first 2 s (for example ffmpeg -ss 2 -i in.mp4 -c:v libx264 -c:a aac out.mp4, re-encoding so the cut is frame-exact). From T on, the aircraft are solid. It works for the preview clips too.

Two details that help:
- Play through the shot's camera, not the recorded view. Each level of detail fades in separately, so a camera at a different distance (or a zoom) can show a model that hasn't been drawn yet.
- Waiting while paused fixes the fade too (that's your retake), but a burning aircraft's smoke keeps piling up while film time stands still, and it darkens the picture. Playing through avoids that.

Happy to compare notes.

PS : Mine is here if anyone wants a look https://github.com/steelington/aces-high-film-companion
Aces High, Wing Commander, Dickweed Heavy Bomber Group: www.dickweedhbg.com

FSO Films : https://www.youtube.com/channel/UCFs6CAXBQoVBctljybD65fA?view_as=subscriber

Online fufu

  • Zinc Member
  • *
  • Posts: 21
Re: AH Quick Shots
« Reply #5 on: Today at 01:47:36 AM »
Thanks Steely, spot on.

Thanks Steely, spot on, and thanks for the kill sequence idea too. Both are in AH Quick Shots 0.1.5

- Stills play the 2 s before the moment through the shot's camera, so the aircraft are solid at once.
- Videos start 2 s early and get trimmed with ffmpeg, so they are solid from the first frame. One thing we found: playing up to a render right before `video` took the engine and guns out of the sound, so render early and trim, don't play first.
- Add my kills now makes your four-shot kill sequence. The guns are timed from the filmer's last burst that hit the victim (`impact` events), because on one kill the guns came 11 s before the message: he crashed later.
- New: take-offs and landings found in the flight path, each turned into a few shots.

Your camera map and the fight picker fit nicely together. Happy to compare notes  :aok

Cheers,
fufu :joystick:

« Last Edit: Today at 02:42:57 AM by fufu »

Online The Fugitive

  • Plutonium Member
  • *******
  • Posts: 19218
      • Fugi's Aces Help
Re: AH Quick Shots
« Reply #6 on: Today at 11:59:17 AM »
I created a simple interface and a bunch of scripts, that help you get to the juicy parts of the replay and set-up decent camera angles fast, as well as visually direct the material. Since the film viewer now allows AI steering, this plugs right into it - just point your friendly Codex/Claude agent at this repo:

https://github.com/fuftufajf/ah-quick-shots



(Image removed from quote.)

Example:



It lists the fights in your film, shows each one through a dozen cameras with one click, and renders the shots you keep at 1080p60 or 4K with the film's sound.
It uses only the viewer's documented socket commands. You need Windows, Film Viewer 3.07 Patch 2 or newer and Python 3.11 or newer.

It is open source, so feel free to have fun with it.


<S>Fufu
 :joystick:

So I unzipped the file and added it to a new folder (with out spaces) on my C drive. Got the new version of Python and added it to "Path". I start the film viewer. I fire off the bat file and it flashes the dos screen and opens a page on my browser (chrome) to http://127.0.0.1:8766/ and I get a blank screen.

What am I doing wrong?

Offline Animl-AW

  • Platinum Member
  • ******
  • Posts: 7705
Re: AH Quick Shots
« Reply #7 on: Today at 12:11:45 PM »
I created a simple interface and a bunch of scripts, that help you get to the juicy parts of the replay and set-up decent camera angles fast, as well as visually direct the material. Since the film viewer now allows AI steering, this plugs right into it - just point your friendly Codex/Claude agent at this repo:

https://github.com/fuftufajf/ah-quick-shots



(Image removed from quote.)

Example:



It lists the fights in your film, shows each one through a dozen cameras with one click, and renders the shots you keep at 1080p60 or 4K with the film's sound.
It uses only the viewer's documented socket commands. You need Windows, Film Viewer 3.07 Patch 2 or newer and Python 3.11 or newer.

It is open source, so feel free to have fun with it.


<S>Fufu
 :joystick:

Nice
AH Tech Hangar
Windows Gaming Tweaks

Online Dadtallica

  • Gold Member
  • *****
  • Posts: 2641
Re: AH Quick Shots
« Reply #8 on: Today at 12:24:24 PM »
Sweet!
My Videos @NightspanNavigatorProductions

Back in 2022 after a loooooong break from 2010. Old name Ratpack, same for the BBS. Old squads, Excaliburs, 172nd Rabid Dawgs.

Online fufu

  • Zinc Member
  • *
  • Posts: 21
Re: AH Quick Shots
« Reply #9 on: Today at 01:00:08 PM »
I smoothed out some things and added a download package. Uploaded AH Quick Shots v0.2.0.

Windows package: unzip and run, nothing to install. You don't need AI to use it.

Download: https://github.com/fuftufajf/ah-quick-shots/releases/latest

Added:

-drag&scroll inside the window to manipulate the camera
- Data overlay: speed, height, climb, G and range as a transparent video for your editor (16:9 and 9:16).
- One video per shot, for cutting in an editor.
- Easy tidying: remove shots, clear the cut, send old replays to the Recycle Bin.
- Smoother flying-along camera.

It is all vibe-coded honestly, but it works, and is a lot of fun.   :bolt:

Cheers,
fufu  :joystick:

Online The Fugitive

  • Plutonium Member
  • *******
  • Posts: 19218
      • Fugi's Aces Help
Re: AH Quick Shots
« Reply #10 on: Today at 02:13:53 PM »
I smoothed out some things and added a download package. Uploaded AH Quick Shots v0.2.0.

Windows package: unzip and run, nothing to install. You don't need AI to use it.

Download: https://github.com/fuftufajf/ah-quick-shots/releases/latest

Added:

-drag&scroll inside the window to manipulate the camera
- Data overlay: speed, height, climb, G and range as a transparent video for your editor (16:9 and 9:16).
- One video per shot, for cutting in an editor.
- Easy tidying: remove shots, clear the cut, send old replays to the Recycle Bin.
- Smoother flying-along camera.

It is all vibe-coded honestly, but it works, and is a lot of fun.   :bolt:

Cheers,
fufu  :joystick:

Downloaded to a folder on the C drive, started the film viewer, double click the bat file and I get this.....

Error response
Error code: 404

Message: Not Found.

Error code explanation: 404 - Nothing matches the given URI.

I have Steelys app running, not sure why I cant get this one going.

Online fufu

  • Zinc Member
  • *
  • Posts: 21
Re: AH Quick Shots
« Reply #11 on: Today at 03:44:37 PM »
Thanks for trying it, Fugitive, and sorry for the trouble. Steely's app isn't the problem, the two run side by side. It might be that a copy you started earlier (0.1.5) is still running in the background. It has no window, so you can't see it. It holds the port, so the new one can't start, and your browser gets the old copy, whose files are gone. Open Task Manager, end pythonw.exe (or restart Windows), then double-click AH Quick Shots.bat again. If the page some Windows setups show. Download it, unzip it and double-click AH Quick Shots.bat: https://github.com/fuftufajf/ah-quick-shots/releases/latest If anything still looks wrong, end pythonw.exe in Task Manager (or restart Windows) and start it again.

Bare with me as the I work through the "it works on my pc..." phase  ;)

fufu  :joystick:

Online The Fugitive

  • Plutonium Member
  • *******
  • Posts: 19218
      • Fugi's Aces Help
Re: AH Quick Shots
« Reply #12 on: Today at 04:21:45 PM »
OK, python wasnt being released. Reboot cleared it and got me to a flashed screen showing "can not connect" error and then the white screen. Downloaded the latest and tried to let it over right the files in my folder and it had a "file still in use" error. Used the task manager to stop the python app again. Transfer the files went fine, and double clicking the bat file open the page. Ran a film and it seems to be working great.

Thanks for the work, and the help!

Online fufu

  • Zinc Member
  • *
  • Posts: 21
Re: AH Quick Shots
« Reply #13 on: Today at 04:22:58 PM »
Great to hear it works  :x
fufu :joystick: