Worth publishing? Used AI to build an AV1 / H.265 Smart-Cutter that fixes static CRF file bloat & PyAV crashes
▲ 0 r/AV1+1 crossposts

Worth publishing? Used AI to build an AV1 / H.265 Smart-Cutter that fixes static CRF file bloat & PyAV crashes

I don't actually know how to code, but I got fed up with current video editing options:

  • NLEs (Premiere/Resolve): Too slow just to cut and stitch videos.
  • Standard Lossless Trimming (ffmpeg -c copy): Imprecise (cuts only on keyframes).
  • Existing Smart-Cutters: Re-encode boundary frames using static CRF, which kept making my 30-second cuts larger (46mb) in file size than my 1-minute originals (30mb). Why would someone code it in this way?

So I said to myself, why not just alter what smartcut does? So, I spent the last few days using AI (Claude free version) to build a custom PyAV/Python smart-cutting engine to fix this for my own workflow. We ended up hitting a few major breakthroughs. I fed my changes into gemini and talked with it for a long while trying to find out if what I did was actually game changing. It thought so, but I have no idea if it is:

  • Player-First Workflow (Movist Pro): I mark cut points (IN and OUT) using Movist Pro's bookmark feature. The script reads the timestamps in the bookmark file and cuts everything headlessly in the background. I'm using this in place of a standard video editing tool (like capcut). It makes timestamp extraction much easier and I can easily add/remove bookmarks.
  • Localized Bitrate Matching: Ditched static CRF completely. The engine measures the exact source bitrate of the head and tail keyframes independently and forces x265 / libsvtav1 to match them. No file bloat, no visual seams. File sizes stay small.
  • Frame-Accurate AV1 Smart-Cutting: Solved the PyAV level override and timestamp bugs that normally crash AV1 boundary re-encodes. The only issue is self testing. I am currently doing all this on a 2019 Intel MacBook Pro, so it has been annoying to test the final output. I have access to a M3 MacBook Air, but not often. The final cut video works perfectly fine on the M3 Macbook Air, but i get slight lag on the last couple seconds on my Intel MacBook Pro. I am still fixing this slight issue, the AI suggests it will be a simple fix, but it never is.
  • Parallel C Extension: Wrote a C module to handle H.265 NAL unit scanning (CRA Type 21 → BLA Type 16), jumping CPU usage on my Intel Mac from 100% (GIL capped) to 600% and eliminating repeated frames at cut points.

I built this purely for my own personal use, but I'm curious: Is there actual demand for a lightweight, frame-accurate AV1/H.265 smart-cutter like this, or is this too niche to bother releasing? I've also built additional functionality for the Movist Pro Media Player. I use this to run the smartcut features.

I am not the most technical when it comes to all of this. The AI did a lot of the heavy lifting, I just pushing it in the correct direction.

EDIT:
I created a github and with the ai's help, i created the zip folder that houses all the relevant files and scripts. As well as a readme that will with most questions you have.

https://github.com/AbdulazizMorad/Smartcut-proof-of-concept

EDIT2:
Github updated and no longer shows a zip file

u/aswas123 — 6 days ago
▲ 3 r/fut_evos+1 crossposts

Anyone else just got a bunch of OP evos now?

The level 2 season pass evo seems very broken. Put it on these players except for Messi, he has the other season pass evo. Will be giving him additional playstyles when ea release the 5 playstyles thing.

Evo paths available on request.

u/aswas123 — 1 month ago
▲ 2 r/fut

Gold Standard evo 5th playstyle+?

Since the gold standard evo is a national pride cosmetic, does that mean when the playstyles tab releases tomorrow for the national pride cosmetic, we should be able to make out gold standard player into a 5 playstyle player?

reddit.com
u/aswas123 — 1 month ago
▲ 1 r/fut

CR7 Fut Birthday Evo

I can make this evo when flow state comes back. Stats look perfect. I play him on controlled, so the 98 agility is welcome. Playstyles, since it fut birthday/glory hunter, you can pick your own.

u/aswas123 — 1 month ago
▲ 10 r/fut

How to use AI to complete the Maradona objectives

My comment on another post got a decent amount of likes, and some people have been asking me what prompts I used. So here is a post for all that.

I used googles gemini AI. I have the free version that everyone has access to. With this, you can still select the pro version to get better results. There is of course a limit on how many times you can use this, but for first time users, gemini is fairly fair how much you can use it. As long as you use its pro feature for the majority of the objectives, then any small changes you need to do later can be done with its lowest (Flash-Lite) AI. Also, for those who don't know, you can play all of your games in couch play mode to do all of the objectives with no stress and afk most of the second half.

Here is the first prompt I sent the AI. You can copy paste this and it should work with no issues.

------------

I'm playing eafc 26 and need some help with the objectives. there is a lot of them, so i will list all of them and what they entail as well as nations, players, etc. i will give all of this information in the next prompt. what i want in return, is for you to optimise the objectives and tell me in how little amount of games it will take to complete.

For your reference, i can only field 11 players each game. each game i will always win. i can score as many goals and do as many assists and score specific goals as i need to (e.g. volley).

-------------

Here is the second prompt I sent. You can also copy paste this, but it will be missing some objectives. You should look at what is missing or what you have already completed and add or delete them.

-------------

Before i send the list of objectives. i need to remind you that this will be a long list of objectives and it will require multiple games and teams. there will be scenarios like score a finesse goal in 5 separate matches while fielding 5 australian players. and another that says score a low driven shot in 5 separate matches while fielding 3 players from brazil. and another that says score a powershot in 2 separate matches while fielding 1 players from paraguay. What i need from you is to optimise this and give the least amount of games it would take. but remember, the examples used in this paragraph are just an example.

Here are all of the actual objectives:

Asia and oceania:

Score a chip shot while having minimum 1 japanese player

score a volley with tim cahill - tim cahill is australian and can be used with other australian objectives

assist in 4 separate matches using a australian player

win 2 matches while having 4 australian players

assist in 2 separate matches while having 1 new zealand player

Africa:

win 3 matches while having 11 africans

assist 3 times in 1 match while having 1 senegal player

win 3 matches while having 1 player from senegal

score at least 1 goal and keep a clean sheet while having 4 senegal players

score 5 goals with sadio mane - he is from senegal

score 1 goal from outside the box using a player from ghana

score a finesse shot in 2 separate matches while having 4 players from either ghana or morroco

score 3 goals in a single match with a ivory coste player

score at least 2 goals in 2 separate matches while having 4 players from ivory coste

score 1 power shot while having 2 players from either congo dr or cape verde

assist 1 goal with a lobbed through pass in 5 separate matches while having either 1 player from either congo dr or cape verde

win 3 matches while having minimum 4  players from either congo dr or cape verde

score a goal using drogba - he is from ivory coste

win 2 matches with drogba

score 3 goals in the same match while having 1 player from tunisia

score 1 goal using a RW player in 3 separate matches while having 1 player from egypt.

South America:

score 1 freekick with forlan - he is from uruguay

score 1 volley wih forlan - he is from uruguay

score 1 freekick with ronaldinho - he is from brazil

score 1 header with a player from argentina

score 1 goal while beating the keeper using a argentina RW

complete a first touch assist in 2 separate matches while having 2 brazilian players

score 7 goals while having 4 players from brazil

score 1 goal while having 4 players from colombia

score 5 goals in 1 match while having 4 players from colombia

assist 1 time with a through ball in 3 separate wins using a player from colombia who is a CAM

score 1 volley using a player from colombia who is a CAM

i have separated them by continents, but this is only for my reference. also, where i have put stuff like tim cahill is from australia or ronaldinho is from brazil etc, this is for your reference, as i can combine them with objectives that require x amount of players from australia or brazil etc.

------------

This was before i added the Europe objectives and before i realised that I needed to complete that field 11 africans and win 3 games, also works in tandem with the score 3 goals in 6 separate matches in live events objective. So remove the first africa objective (win 3 matches while having 11 africans) and also dont forget to add the europe objectives. Here they are:

-----------

Europe:

score a volley using a german player

assist with a backheel pass with either a german or french player

score 2 goals from outside the box in a single match while having 4 players from portugal

assist 1 lob through ball in 5 separate matches while having 4 players from netherlands

score a low driven shot in 3 separate wins while having 6 players from portugal or netherlands

score 3 goals while having 2 players from either norway or belgium

score 4 goals in a single match using a ST while having 3 players from norway

assist 1 goal with a through ball in 5 separate matches while having 3 players from belgium

win 3 matches while having 6 players from either norway or belgium

score 3 times in one match with a ST while having 1 swedish player

assist 3 times using an attacker (ill choose the position myself just remind me its an attacker) while having either 1 turkish or swedish player

concede less than 2 goals in 3 separate matches while having 1 turkish player

score 3 chip shots while having 1 turkish player in the team

score 1 goal while having either 1 austrian or scottish player

assist 2 through balls in 3 separate matches while using a austrian player

assist with a cross while having 1 scottish player in the team

score from outside the box while having 1 scottish player in your team

assist 3 times using a midfielder (ill choose the position myself just remind me its a midfielder) while having either a swiss or a croatian

score 2 goals in a single match using a ST while having 1 swiss player in the team

play 3 matches while having 1 croatian in the team

score 4 goals in a single match while having 1 croatian in the team

assist with a through ball in 3 separate matches while having either 2 bosnis or czech players in the team

play 3 matches while having 1 bosnia player in the team

assist 3 imes in a single match while having 1 czech player in the team

concede 1 or less goals while having 1 czech player in the team

score 1 finesse goal while having 1 czech player in the team

------------

Issues that rose when I did all of this:

Not much really. it tried to use a nation from a random african country for the Egypt objective. So I told it which RW player i was substituting it for. It also didn't understand my wording a bit with the egypt objective, so i sent a prompt to fix that. Here is that:

------------

quick correction.

score 1 goal using a RW player in 3 separate matches while having 1 player from egypt.

this line, the RW does not have to be from egypt. the goal has to be scored with a RW and a egypt player has to be in the team at the same time (any position). the issue is, i dont have a rw egypt player. so i can use a rw with a different nation in match 1?

lets not complicate things by adding nations that arent in the objectives.

i have been able to locate a rw player from ghana. so now, is it possible to switch things around to accomodate this? or should i try and find a player from a different nation?

------------

Here is the final output from gemini showing all 13 matches:

========

🌍 Phase 1: The Africa & Oceania Grind (Matches 1-5)

Match 1: Ghana & Drogba Setup

  • Squad:
    • 4x Ghana (Must include your Ghana RW)
    • 4x Ivory Coast (Must include Drogba)
    • 1x Senegal (Any position)
    • 1x Congo DR or Cape Verde (Any position)
    • 1x Egypt (Any position)
  • In-Game Checklist: [ ] Score 1 Finesse Shot. [ ] Score 1 goal with your Ghana RW (Match 1 of 3 for the RW objective). [ ] Score 1 goal from outside the box with a Ghana player. [ ] Score at least 2 goals total (Ivory Coast match 1 of 2). [ ] Score 3 goals with one Ivory Coast player. [ ] Score 1 goal with Drogba. [ ] Assist 1 goal with a lobbed through pass using a Congo/Cape Verde player (Match 1 of 5).

Match 2: Ivory Coast Finale

  • Squad: Same as Match 1
  • In-Game Checklist: [ ] Score 1 Finesse Shot (Ghana/Morocco Finesse CLEARED). [ ] Score 1 goal with your Ghana RW (Match 2 of 3). [ ] Score at least 2 goals total (Ivory Coast 2 goals CLEARED). [ ] Win the match with Drogba (Drogba wins CLEARED). [ ] Assist 1 goal with a lobbed through pass using a Congo/Cape Verde player (Match 2 of 5).

Match 3: The Sadio Mane Show

  • Squad:
    • 4x Senegal (Must include Sadio Mane)
    • 4x Congo DR or Cape Verde
    • 1x Egypt (Play this player anywhere)
    • 1x Australia (Any position)
    • 1x Turkey (Play as your RW)
  • In-Game Checklist: [ ] Keep a Clean Sheet and score 1 goal (Senegal Clean Sheet CLEARED). [ ] Score 5 goals with Sadio Mane. [ ] Assist 3 times with a Senegal player. [ ] Score 1 Power Shot (Congo/Cape Verde Power Shot CLEARED). [ ] Score 1 goal with your Turkish RW (Egypt RW objective CLEARED). [ ] Assist 1 goal with a lobbed through pass using a Congo/Cape Verde player (Match 3 of 5). [ ] Assist 1 goal using the Australian player (Match 1 of 4). [ ] Concede less than 2 goals (Turkey concede Match 1 of 3). [ ] Score 3 Chip Shots (Turkey Chip Shots CLEARED).

Match 4: Congo & Australia Setup

  • Squad:
    • 4x Congo DR or Cape Verde
    • 4x Australia (Must include Tim Cahill)
    • 1x Turkey (Any position)
    • 1x Colombia (Must be a CAM)
    • 1x Austria (Any position)
  • In-Game Checklist: [ ] Score 1 Volley with Tim Cahill. [ ] Score 1 goal with the Austrian player. [ ] Score 1 Volley with the Colombian CAM. [ ] Assist 1 goal with a lobbed through pass using a Congo/Cape Verde player (Match 4 of 5). [ ] Assist 1 goal using an Australian player (Match 2 of 4). [ ] Concede less than 2 goals (Turkey concede Match 2 of 3). [ ] Assist 2 through balls with the Austrian player (Match 1 of 3). [ ] Assist 1 goal with a through ball using the Colombian CAM (Match 1 of 3).

Match 5: The Congo Finale

  • Squad: Same as Match 4
  • In-Game Checklist: [ ] Assist 1 goal with a lobbed through pass using a Congo/Cape Verde player (Congo Lob Passes CLEARED). [ ] Assist 1 goal using an Australian player (Match 3 of 4). [ ] Concede less than 2 goals (Turkey Concede CLEARED). [ ] Assist 2 through balls with the Austrian player (Match 2 of 3). [ ] Assist 1 goal with a through ball using the Colombian CAM (Match 2 of 3). Note: Winning this clears "Win 3 matches with 4 Congo/Cape Verde" and "Win 2 matches with 4 Australians".

========

🌎 Phase 2: The South American Focus (Match 6)

Match 6: Colombia & Brazil Domination

  • Squad:
    • 4x Colombia (Must include the CAM)
    • 4x Brazil (Must include Ronaldinho)
    • 1x Australia (Any position)
    • 1x Austria (Any position)
    • 1x Free Slot (Anyone)
  • In-Game Checklist: [ ] Score 5 goals total (Colombia 5 goals in 1 match CLEARED). [ ] Score 7 goals total (Brazil 7 goals CLEARED). [ ] Score 1 Freekick with Ronaldinho. [ ] Complete a First-Touch Assist with a Brazilian (Match 1 of 2). [ ] Assist 1 goal using an Australian player (Australia Assists CLEARED). [ ] Assist 2 through balls with the Austrian player (Austria Through Balls CLEARED). [ ] Assist 1 goal with a through ball using the Colombian CAM (Colombia CAM CLEARED).

========

🇪🇺 Phase 3: The Heavy European Grind (Matches 7-11)

Match 7: Portugal & Netherlands Start

  • Squad:
    • 4x Netherlands
    • 4x Portugal
    • 1x Bosnia (Any position)
    • 1x Czech (Any position)
    • 1x Free Slot (Anyone)
  • In-Game Checklist: [ ] Score 2 goals from outside the box (Portugal outside box CLEARED). [ ] Score 1 Low Driven Shot (6 POR/NED Match 1 of 3). [ ] Assist 1 lob through ball with a Netherlands player (Match 1 of 5). [ ] Score 1 Finesse Goal with the Czech player. [ ] Assist 3 times in a single match with the Czech player. [ ] Assist 1 through ball (2 BOS/CZE Match 1 of 3 - Use Bosnia or Czech player).

Match 8: Belgium Integration

  • Squad:
    • 4x Netherlands
    • 3x Belgium
    • 2x Portugal
    • 1x Bosnia (Any position)
    • 1x Czech (Any position)
  • In-Game Checklist: [ ] Score 1 Low Driven Shot (6 POR/NED Match 2 of 3). [ ] Assist 1 lob through ball with a Netherlands player (Match 2 of 5). [ ] Assist 1 through ball with a Belgium player (Match 1 of 5). [ ] Assist 1 through ball (2 BOS/CZE Match 2 of 3). [ ] Concede 1 or less goals (Czech Concede CLEARED).

Match 9: The Low Driven Finale

  • Squad: Same as Match 8
  • In-Game Checklist: [ ] Score 1 Low Driven Shot (6 POR/NED CLEARED). [ ] Assist 1 lob through ball with a Netherlands player (Match 3 of 5). [ ] Assist 1 through ball with a Belgium player (Match 2 of 5). [ ] Assist 1 through ball (2 BOS/CZE Through Balls CLEARED).

Match 10: The Croatian Arrival

  • Squad:
    • 4x Netherlands
    • 6x Belgium
    • 1x Croatia (Play at Midfielder)
  • In-Game Checklist: [ ] Assist 1 lob through ball with a Netherlands player (Match 4 of 5). [ ] Assist 1 through ball with a Belgium player (Match 3 of 5). [ ] Score 4 goals in a single match with the Croatian player. [ ] Assist 3 times using the Croatian Midfielder (Midfielder Assists CLEARED). Note: Playing this match counts as Match 1 of 3 for "Win 3 matches with 6 NOR/BEL".

Match 11: The Dutch Farewell

  • Squad: Same as Match 10
  • In-Game Checklist: [ ] Assist 1 lob through ball with a Netherlands player (Netherlands Lob Passes CLEARED). [ ] Assist 1 through ball with a Belgium player (Match 4 of 5).

========

🏆 Phase 4: The Randoms & Legends (Matches 12-13)

Match 12: The Masterclass

  • Squad:
    • 6x Belgium
    • 1x New Zealand (Any position)
    • 1x Argentina (Must be RW)
    • 1x Uruguay (Forlan)
    • 1x Germany (Any position)
    • 1x Scotland (Any position)
  • In-Game Checklist: [ ] Score 3 goals with the Belgium players. [ ] Assist 1 through ball with a Belgium player (Belgium Through Balls CLEARED). [ ] Assist 1 goal using the New Zealand player (Match 1 of 2). [ ] Score 1 Header with the Argentine RW. [ ] Score 1 goal beating the keeper with the Argentine RW. [ ] Score 1 Freekick and 1 Volley with Forlan. [ ] Score 1 Volley and Assist with a backheel using the German player. [ ] Assist with a cross and score from outside the box with the Scottish player. Note: Winning this clears "Win 3 matches with 6 NOR/BEL".

Match 13: The Grand Finale

  • Squad:
    • 3x Norway
    • 2x Brazil
    • 1x New Zealand (Any position)
    • 1x Japan (Any position)
    • 1x Switzerland (Must be a ST)
    • 1x Sweden (Must be an Attacker)
    • 1x Tunisia (Any position)
    • 1x Croatia (Any position)
  • In-Game Checklist: [ ] Score 4 goals in a single match using a ST (Use a Norway ST to clear 3 Norway objective). [ ] Complete a First-Touch Assist with a Brazilian (Brazil First Touch CLEARED). [ ] Assist 1 goal using the New Zealand player (New Zealand Assists CLEARED). [ ] Score 1 Chip Shot with the Japanese player. [ ] Score 2 goals with a ST (Use the Swiss ST). [ ] Score 3 goals with a ST (Use the Swedish Attacker). [ ] Assist 3 times using the Swedish Attacker (Attacker Assists CLEARED). [ ] Score 3 goals in the same match using the Tunisian player. Note: Playing this finishes the "Play 3 matches with 1 Croatian" and "Play 3 matches with 1 Bosnia player" requirements.

ALL OBJECTIVES COMPLETE!

reddit.com
u/aswas123 — 2 months ago
▲ 2 r/fut

Can I play co op to get the maradonna objective?

I just tried this in a live event with a friend who has Hugo Sanchez. He started the match and ended it. But it didn’t count.

reddit.com
u/aswas123 — 2 months ago
▲ 12 r/fut

Objectives bug- al O

I redeemed the objectives and got nothing. Backed out of ultimate team, went back in and it said I’ve already claimed the rewards. Now I see evos and players that I can no longer claim.

reddit.com
u/aswas123 — 2 months ago
▲ 2 r/fut

I think I'm ready now - Meta evo/rate

All stats and playstyles in comments.

All lengthy. All have 99 reactions, composure and 92-94 agility (99 strength for lengthy). Everyones short passing, curve and vision is above 92.

Toure can be upgraded since he is 89 rated, but his stats are maxed out for the next 1 month or so of evos for cbs.

Anticipate+ on the two cbs and itll be perfect. They have all defensive playstyles as well as bruiser and relentless for stamina (alvero is missing relentless).

GG boys.

u/aswas123 — 3 months ago

Can anyone let me know if this is a concerning sound coming from the engine? I’ve recently had an engine rebuild when my car broke down a few hours away from where I live so it’s difficult to re-visit the mechanic.

After putting it into ChatGPT, it tells me this is normal for a TFSI engine but I’m not so sure about that judgement.

Car is 2013 MK2 Audi TT 2.0 TFSI

u/aswas123 — 4 months ago