Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng
#9,232 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, react
Lĩnh vực
api, frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
JavaScript
Star
38
Fork
32
Merge trung bình
24 phút
Pull request đã merge (30 ngày)
993

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của atomantic/PortOS

Tất cả issue của atomantic/PortOS

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.