Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Video Gen page: fal resolution and provider-audio controls for curated models

Chiusa
#9,232 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, react
Ambito
api, frontend

Direzione di ricerca

Start in client/src/pages/VideoGen.jsx and trace the fal panel through useVideoGenFieldState.js, useVideoGenForm.js, and lib/videoGenSubmission.js. Run the videoGenSubmission unit tests and inspect the rendered page interaction coverage. Done means curated models show the appropriate controls, values reach the submission payload and cost hint, and resolution resets when the model changes.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

effort:low enhancement model:medium plan

Problem

#9230 made fal.ai video renders silent by default: generate_audio: false for Kling, Veo and Seedance. It also added falResolution and falGenerateAudio to POST /api/video-gen. The Video Gen page (client/src/pages/VideoGen.jsx, fal panel) exposes neither.

On that page, a user who picks Veo 3.1 Fast or Kling v3 Pro:

  • can no longer get provider audio (it was the provider default before), and
  • always renders at the model's default resolution.

The page's cost hint says "at the model's default resolution with provider audio off" for this reason.

Decision

Add both controls to the fal panel. Show them only when the typed model is a curated catalog model that offers them (getFalVideoModel(id).resolution / .audio):

  • a resolution <select> listing falVideoResolutions(model), blank meaning the model default;
  • a "Provider audio" checkbox, default off.

Thread both through useVideoGenFieldState → useVideoGenForm → lib/videoGenSubmission.js#buildVideoGenSubmission (the isFal branch) as falResolution / falGenerateAudio. Feed the same values to the page's estimateFalVideoCostUsd hint, so the audio-on rate is shown when audio is on. Clear the resolution when the model changes, because each model has its own set of resolution values (same rule as the Music Video picker).

Files

  • client/src/pages/VideoGen.jsx
  • client/src/hooks/useVideoGenFieldState.js
  • client/src/hooks/useVideoGenForm.js
  • client/src/lib/videoGenSubmission.js (+ its test)

Acceptance

  • Picking a curated model with resolutions shows the resolution select. Picking one with an audio flag shows the audio checkbox. An uncurated id shows neither.
  • The submission payload carries falResolution / falGenerateAudio only when set.
  • The cost hint changes with the selected resolution and audio setting.
  • Covered by videoGenSubmission unit coverage and one rendered page interaction.

Refs #8977

Lingua principale
JavaScript
Stelle
38
Fork
32
Merge medio
24m
PR unite (30g)
993

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di atomantic/PortOS

Tutte le issue di atomantic/PortOS

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.