mirror of
https://github.com/nomadkaraoke/karaoke-gen.git
synced 2026-11-20 13:07:57 +09:00
feat(theme): editable + previewed end screen; optional title/end screens (v0.268.0) (#1134)
## Summary
Randy Vild (tenant `randy-vild`) emailed: *"I have completed 3 songs but
all three songs produce the large text at the end even though I have in
my settings smaller text like in my beginning."*
Root cause: the theme editor's size/position sliders only edit
`intro.*`. The end screen has its own `end.*` layout (title 350 /
closing message 400 / yellow capitals artist in Randy's theme). The
editor neither exposed it nor previewed it ("The end screen isn't
previewed").
## Changes
- **End screen tab**: own title/artist colours, size + position sliders
(closing message, song title, artist), show/hide song title / artist
name, capitals toggles, and **Copy title card layout**. That copies the
title card's regions/colours/capitals and moves the closing message just
above the title, or below the artist if there's no room, so they never
overlap.
- **End screen preview**: `theme_preview_service.render_end_screen` uses
the same `VideoGenerator.create_end_video` as `screens_worker`. The
preview column shows the screen for the active tab plus the lyrics
frame; Advanced shows all three.
- **Leave out the title card / end screen**: optional `intro.enabled` /
`end.enabled` (absent = included; not added to the DEFAULT_*
required-field lists). The setting is honoured end to end:
- The screens worker skips the omitted screen and records
`state_data.screens_included`.
- The video worker's prerequisite check and the `/retry` ladder
(`_has_title_screen`, which also requires `screens_progress: complete`)
treat an omitted screen as done.
- The orchestrator sets the omitted screen's path to `None` and gives
the original-vocals guide an intro offset of 0.
- Encoding passes explicit `include_title_screen` /
`include_end_screen=false` to the GCE worker. Without them, its loose
`*title*.png` / `*end*.png` globs would rebuild the screen from
`style/*_background.png`.
- `LocalEncodingService.encode_lossless_mp4` builds the concat from
whichever segments exist (1–3).
- The portrait renderer drops omitted cards.
- 11 new strings × 33 locales (`endScreenHint` removed). Docs: API.md,
README.md.
## Verification
- `make test` all green: frontend 1665 tests; backend unit, integration
and emulator suites.
- New `backend/tests/test_theme_screen_omission.py`, 28 tests:
- screens worker for all 4 include combinations;
- prerequisites and the retry helper;
- orchestrator config and encoder options;
- GCE `run_encoding` with decoy theme PNGs present;
- concat for n = 1/2/3.
- Real-ffmpeg renders:
- end-screen preview (its own background; text size changes only the end
screen);
- portrait durations with screens omitted.
- Frontend: editor tests for the end tab, copy layout, region toggles
and enable switches, plus unit tests for the `copyTitleCardLayoutToEnd`
util.
- Rendered Randy's real theme locally:
- as saved, the end screen reproduces the large text;
- after Copy title card layout, it matches his title card.
- Local CodeRabbit review: 0 findings.
## Deploy notes
- The worker paths changed (`gce_encoding/`,
`local_encoding_service.py`, `karaoke_gen/`), so CI blue-green redeploys
the encoding worker.
- Existing themes are unaffected: they have no `enabled` key.
@coderabbitai ignore
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
437e72a29b
commit
60687d6cd6
60 files changed
+1444
-238
No files matched your search
+19
-10
@@ -51,6 +51,7 @@ from backend.models.requests import ChangeVisibilityRequest, ChangeVisibilityRes
|
||||
from backend.services.user_service import get_user_service
|
||||
from backend.services.youtube_download_service import get_youtube_download_service
|
||||
from backend.services.pricing import duration_to_credits, is_blocked
|
||||
from backend.workers.style_helper import screen_included
|
||||
from pydantic import BaseModel, Field, HttpUrl, validator
|
||||
|
||||
|
||||
@@ -588,8 +589,10 @@ def _is_auto_retry_pending(state_data: Optional[Dict[str, Any]]) -> bool:
|
||||
return expires_at > datetime.now(timezone.utc)
|
||||
|
||||
|
||||
def _has_title_screen(file_urls: Dict[str, Any]) -> bool:
|
||||
"""Return True if a title screen image (jpg or png) was generated.
|
||||
def _has_title_screen(file_urls: Dict[str, Any], state_data: Optional[Dict[str, Any]] = None) -> bool:
|
||||
"""Return True if the screens stage is done: a title screen image (jpg or png)
|
||||
was generated, or the theme leaves the title screen out and the screens worker
|
||||
finished.
|
||||
|
||||
Used by the /retry endpoint to decide whether to resume from the render
|
||||
stage or rewind further. The actual screen URLs live under format-specific
|
||||
@@ -598,9 +601,15 @@ def _has_title_screen(file_urls: Dict[str, Any]) -> bool:
|
||||
completed-review jobs back to AWAITING_REVIEW.
|
||||
"""
|
||||
screens = file_urls.get('screens') or {}
|
||||
if not isinstance(screens, dict):
|
||||
return False
|
||||
return any(k == 'title' or k.startswith('title_') for k in screens)
|
||||
if isinstance(screens, dict) and any(k == 'title' or k.startswith('title_') for k in screens):
|
||||
return True
|
||||
# No title image by design: rely on the screens worker's completion marker
|
||||
# (cleared by every re-render/regeneration, so a stale "omitted" can't count).
|
||||
state_data = state_data or {}
|
||||
return (
|
||||
not screen_included(state_data, 'title')
|
||||
and (state_data.get('screens_progress') or {}).get('stage') == 'complete'
|
||||
)
|
||||
|
||||
|
||||
def _prune_state_data(data: Dict[str, Any]) -> Dict[str, Any]:
|
||||
@@ -2092,7 +2101,7 @@ async def retry_job(
|
||||
# resume it correctly.
|
||||
theme_rerender = state_data.get('theme_rerender') or {}
|
||||
if (theme_rerender.get('theme_id') and original_status == JobStatus.FAILED
|
||||
and not _has_title_screen(file_urls)):
|
||||
and not _has_title_screen(file_urls, state_data)):
|
||||
from backend.services.theme_rerender_service import RerenderError, ThemeRerenderService
|
||||
try:
|
||||
await ThemeRerenderService(job_manager).start(
|
||||
@@ -2113,7 +2122,7 @@ async def retry_job(
|
||||
# keeping the admin's notify_customer choice. Its published outputs were
|
||||
# already removed on the first attempt (recorded in the marker).
|
||||
if (admin_rerender and original_status in (JobStatus.FAILED, JobStatus.CANCELLED)
|
||||
and not _has_title_screen(file_urls)):
|
||||
and not _has_title_screen(file_urls, state_data)):
|
||||
from backend.services.admin_rerender_service import AdminRerenderService
|
||||
from backend.services.theme_rerender_service import RerenderError
|
||||
try:
|
||||
@@ -2138,7 +2147,7 @@ async def retry_job(
|
||||
from backend.services.theme_rerender_service import RerenderError
|
||||
regenerate = active_regenerate(job)
|
||||
if (regenerate and original_status in (JobStatus.FAILED, JobStatus.CANCELLED)
|
||||
and (not _has_title_screen(file_urls) or stems_need_restore(job))):
|
||||
and (not _has_title_screen(file_urls, state_data) or stems_need_restore(job))):
|
||||
try:
|
||||
await RegenerateService(job_manager).start(
|
||||
job,
|
||||
@@ -2217,7 +2226,7 @@ async def retry_job(
|
||||
# Review completion is proven by instrumental_selection in state_data
|
||||
# (set only when user submits the review endpoint)
|
||||
elif (file_urls.get('lyrics', {}).get('corrections') and
|
||||
_has_title_screen(file_urls) and
|
||||
_has_title_screen(file_urls, state_data) and
|
||||
state_data.get('instrumental_selection')):
|
||||
|
||||
logger.info(f"Job {job_id}: Has corrections, screens, and completed review — retrying from render stage")
|
||||
@@ -2254,7 +2263,7 @@ async def retry_job(
|
||||
# If we have corrections and screens but review was NOT completed,
|
||||
# return to awaiting_review so the user can review lyrics
|
||||
elif (file_urls.get('lyrics', {}).get('corrections') and
|
||||
_has_title_screen(file_urls)):
|
||||
_has_title_screen(file_urls, state_data)):
|
||||
|
||||
logger.info(f"Job {job_id}: Has corrections and screens but review not completed — returning to review")
|
||||
|
||||
|
||||
@@ -87,8 +87,10 @@ class PreviewRequest(BaseModel):
|
||||
|
||||
|
||||
class PreviewResponse(BaseModel):
|
||||
title_card: str # data:image/jpeg;base64,...
|
||||
# data:image/jpeg;base64,... — null for a screen the theme leaves out of videos.
|
||||
title_card: Optional[str] = None
|
||||
karaoke_frame: str
|
||||
end_screen: Optional[str] = None
|
||||
|
||||
|
||||
class SaveRequest(BaseModel):
|
||||
|
||||
@@ -137,7 +137,7 @@ class EncodingInput:
|
||||
Contains all the paths and metadata needed to encode a karaoke video.
|
||||
"""
|
||||
# Required input files
|
||||
title_video_path: str # Title card video (MOV)
|
||||
title_video_path: Optional[str] # Title card video (MOV); None = theme omits it
|
||||
karaoke_video_path: str # Main karaoke video with vocals (MOV/MKV)
|
||||
instrumental_audio_path: str # Instrumental audio track (FLAC)
|
||||
|
||||
@@ -465,6 +465,12 @@ class GCEEncodingBackend(EncodingBackend):
|
||||
if existing_instrumental:
|
||||
encoding_config["existing_instrumental"] = existing_instrumental
|
||||
|
||||
# Screens the theme leaves out: the encoder must skip them rather than
|
||||
# rebuild them from whatever matching PNG it finds in the job folder.
|
||||
for flag in ("include_title_screen", "include_end_screen"):
|
||||
if input_config.options.get(flag) is False:
|
||||
encoding_config[flag] = False
|
||||
|
||||
countdown_padding = input_config.options.get("countdown_padding_seconds")
|
||||
if countdown_padding:
|
||||
encoding_config["countdown_padding_seconds"] = countdown_padding
|
||||
|
||||
@@ -1086,15 +1086,20 @@ def run_encoding(job_id: str, work_dir: Path, config: dict):
|
||||
# Title/end screens: look for MOV first, fall back to generating from PNG.
|
||||
# Since PR #640 right-sized Cloud Run to 2Gi, the screens_worker only generates
|
||||
# PNG/JPG images — MOV video generation now happens here on the GCE worker.
|
||||
title_video = find_file(work_dir, "screens/title.mov", "*Title*.mov", "*title*.mov")
|
||||
end_video = find_file(work_dir, "screens/end.mov", "*End*.mov", "*end*.mov")
|
||||
# A theme may leave a screen out. Don't look for it at all then: the loose globs
|
||||
# below also match theme assets (style/cdg_title_background.png,
|
||||
# style/end_background.png) and old finals, which would bring it back.
|
||||
include_title = config.get("include_title_screen", True) is not False
|
||||
include_end = config.get("include_end_screen", True) is not False
|
||||
title_video = find_file(work_dir, "screens/title.mov", "*Title*.mov", "*title*.mov") if include_title else None
|
||||
end_video = find_file(work_dir, "screens/end.mov", "*End*.mov", "*end*.mov") if include_end else None
|
||||
|
||||
# Get intro/end video durations from style config (default 5s)
|
||||
intro_duration = config.get("intro_video_duration", 5)
|
||||
end_duration = config.get("end_video_duration", 5)
|
||||
|
||||
# Generate title MOV from PNG if missing or invalid (< 1KB = empty shell)
|
||||
if not title_video or title_video.stat().st_size < 1024:
|
||||
if include_title and (not title_video or title_video.stat().st_size < 1024):
|
||||
title_png = find_file(work_dir, "screens/title.png", "*Title*.png", "*title*.png")
|
||||
if title_png:
|
||||
title_mov_path = title_png.parent / "title.mov"
|
||||
@@ -1104,7 +1109,7 @@ def run_encoding(job_id: str, work_dir: Path, config: dict):
|
||||
logger.warning(f"Title MOV is only {title_video.stat().st_size} bytes and no PNG found")
|
||||
|
||||
# Generate end MOV from PNG if missing or invalid
|
||||
if not end_video or (end_video and end_video.stat().st_size < 1024):
|
||||
if include_end and (not end_video or end_video.stat().st_size < 1024):
|
||||
end_png = find_file(work_dir, "screens/end.png", "*End*.png", "*end*.png")
|
||||
if end_png:
|
||||
end_mov_path = end_png.parent / "end.mov"
|
||||
@@ -1159,8 +1164,10 @@ def run_encoding(job_id: str, work_dir: Path, config: dict):
|
||||
logger.info(f" Countdown padding: {countdown_padding_seconds}s - will be handled by LocalEncodingService")
|
||||
|
||||
# Validate required files
|
||||
if not title_video:
|
||||
if include_title and not title_video:
|
||||
raise ValueError(f"No title video found in {work_dir}. Check screens/ subdirectory.")
|
||||
if not include_title or not include_end:
|
||||
logger.info(f" Theme omits screens: title={'kept' if include_title else 'omitted'}, end={'kept' if include_end else 'omitted'}")
|
||||
if not karaoke_video:
|
||||
raise ValueError(f"No karaoke video found in {work_dir}")
|
||||
if not instrumental:
|
||||
@@ -1174,7 +1181,7 @@ def run_encoding(job_id: str, work_dir: Path, config: dict):
|
||||
# Build encoding config with proper file names
|
||||
# Note: countdown_padding_seconds is passed to LocalEncodingService which handles padding
|
||||
encoding_config = EncodingConfig(
|
||||
title_video=str(title_video),
|
||||
title_video=str(title_video) if title_video else None,
|
||||
karaoke_video=str(karaoke_video),
|
||||
instrumental_audio=str(instrumental),
|
||||
end_video=str(end_video) if end_video else None,
|
||||
|
||||
@@ -25,7 +25,7 @@ logger = logging.getLogger(__name__)
|
||||
@dataclass
|
||||
class EncodingConfig:
|
||||
"""Configuration for video encoding."""
|
||||
title_video: str # Path to title video
|
||||
title_video: Optional[str] # Path to title video (None = theme omits the title screen)
|
||||
karaoke_video: str # Path to karaoke video (with vocals)
|
||||
instrumental_audio: str # Path to instrumental audio
|
||||
end_video: Optional[str] = None # Optional path to end credits video
|
||||
@@ -369,16 +369,16 @@ class LocalEncodingService:
|
||||
|
||||
def encode_lossless_mp4(
|
||||
self,
|
||||
title_video: str,
|
||||
title_video: Optional[str],
|
||||
karaoke_video: str,
|
||||
output_file: str,
|
||||
end_video: Optional[str] = None,
|
||||
) -> bool:
|
||||
"""
|
||||
Create lossless 4K MP4 by concatenating title, karaoke, and optionally end videos.
|
||||
Create lossless 4K MP4 by concatenating the title (if any), karaoke and end (if any) videos.
|
||||
|
||||
Args:
|
||||
title_video: Path to title video
|
||||
title_video: Path to title video, or None when the theme omits the title screen
|
||||
karaoke_video: Path to karaoke video
|
||||
output_file: Path for output file
|
||||
end_video: Optional path to end credits video
|
||||
@@ -386,34 +386,31 @@ class LocalEncodingService:
|
||||
Returns:
|
||||
True if successful, False otherwise
|
||||
"""
|
||||
# Quote file paths
|
||||
title_quoted = shlex.quote(os.path.abspath(title_video))
|
||||
karaoke_quoted = shlex.quote(os.path.abspath(karaoke_video))
|
||||
|
||||
# Build filter and inputs for concatenation
|
||||
# (path, hardware-decode) per concat segment, in order
|
||||
segments = []
|
||||
if title_video:
|
||||
segments.append((title_video, True))
|
||||
segments.append((karaoke_video, True))
|
||||
if end_video and os.path.isfile(end_video):
|
||||
end_quoted = shlex.quote(os.path.abspath(end_video))
|
||||
extra_input = f"-i {end_quoted}"
|
||||
concat_filter = (
|
||||
'-filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0][2:v:0][2:a:0]'
|
||||
'concat=n=3:v=1:a=1[outv][outa]"'
|
||||
)
|
||||
else:
|
||||
extra_input = ""
|
||||
concat_filter = (
|
||||
'-filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0]'
|
||||
'concat=n=2:v=1:a=1[outv][outa]"'
|
||||
segments.append((end_video, False))
|
||||
|
||||
def inputs(hwaccel: bool) -> str:
|
||||
return " ".join(
|
||||
(f"{self.hwaccel_decode_flags} " if hwaccel and hw else "") + f"-i {shlex.quote(os.path.abspath(path))}"
|
||||
for path, hw in segments
|
||||
)
|
||||
|
||||
streams = "".join(f"[{i}:v:0][{i}:a:0]" for i in range(len(segments)))
|
||||
concat_filter = f'-filter_complex "{streams}concat=n={len(segments)}:v=1:a=1[outv][outa]"'
|
||||
|
||||
gpu_command = (
|
||||
f"{self._ffmpeg_base_command} {self.hwaccel_decode_flags} -i {title_quoted} "
|
||||
f"{self.hwaccel_decode_flags} -i {karaoke_quoted} {extra_input} "
|
||||
f"{self._ffmpeg_base_command} {inputs(True)} "
|
||||
f'{concat_filter} -map "[outv]" -map "[outa]" -c:v {self.video_encoder} '
|
||||
f'{self._get_nvenc_quality_settings("lossless")} -c:a pcm_s16le '
|
||||
f'{self.MP4_FLAGS} "{output_file}"'
|
||||
)
|
||||
cpu_command = (
|
||||
f"{self._ffmpeg_base_command} -i {title_quoted} -i {karaoke_quoted} {extra_input} "
|
||||
f"{self._ffmpeg_base_command} {inputs(False)} "
|
||||
f'{concat_filter} -map "[outv]" -map "[outa]" -c:v libx264 -c:a pcm_s16le '
|
||||
f'{self.MP4_FLAGS} "{output_file}"'
|
||||
)
|
||||
|
||||
@@ -153,6 +153,9 @@ def sanitize_style_params(
|
||||
for section in ("intro", "end"):
|
||||
if "existing_image" in styles[section]:
|
||||
styles[section]["existing_image"] = None
|
||||
# Optional on/off switch for including the screen in videos (absent = on).
|
||||
if "enabled" in styles[section] and not isinstance(styles[section]["enabled"], bool):
|
||||
raise TenantValidationError(f"{section}.enabled must be true or false.")
|
||||
|
||||
for section, field in IMAGE_FIELDS:
|
||||
value = styles[section].get(field)
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
"""
|
||||
Exact previews of a (draft) theme: the real title card and one karaoke-video frame.
|
||||
Exact previews of a (draft) theme: the real title card, one karaoke-video frame and
|
||||
the real end screen.
|
||||
|
||||
Used by the tenant theme editor. Both images come from the SAME renderers production
|
||||
uses, fed the draft ``style_params`` exactly the way a render job would see them:
|
||||
|
||||
- **Title card**: ``karaoke_gen.video_generator.VideoGenerator.create_title_video``
|
||||
with ``intro_video_duration=0`` (PNG only — what ``screens_worker`` does on Cloud Run).
|
||||
- **End screen**: ``VideoGenerator.create_end_video`` the same way (``end_video_duration=0``).
|
||||
- **Karaoke frame**: ``SegmentResizer`` → ``SubtitlesGenerator.generate_ass`` (the
|
||||
generator's 4K layout: ``font_size`` default 250, ``line_height = font_size``,
|
||||
``max_line_length`` default 36) → one frame burned with the same ffmpeg ``ass``
|
||||
@@ -87,12 +89,18 @@ def font_family_name(font_file: str) -> str:
|
||||
|
||||
@dataclass
|
||||
class PreviewImages:
|
||||
title_card: bytes # JPEG
|
||||
karaoke_frame: bytes # JPEG
|
||||
# JPEGs. A screen the theme omits from videos (``enabled: false``) isn't rendered.
|
||||
title_card: Optional[bytes]
|
||||
karaoke_frame: bytes
|
||||
end_screen: Optional[bytes] = None
|
||||
|
||||
def as_data_urls(self) -> Dict[str, str]:
|
||||
enc = lambda b: "data:image/jpeg;base64," + base64.b64encode(b).decode() # noqa: E731
|
||||
return {"title_card": enc(self.title_card), "karaoke_frame": enc(self.karaoke_frame)}
|
||||
def as_data_urls(self) -> Dict[str, Optional[str]]:
|
||||
enc = lambda b: "data:image/jpeg;base64," + base64.b64encode(b).decode() if b else None # noqa: E731
|
||||
return {
|
||||
"title_card": enc(self.title_card),
|
||||
"karaoke_frame": enc(self.karaoke_frame),
|
||||
"end_screen": enc(self.end_screen),
|
||||
}
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -220,22 +228,26 @@ def _to_jpeg(png_path: str) -> bytes:
|
||||
return buf.getvalue()
|
||||
|
||||
|
||||
def render_title_card(styles: Dict, artist: str, title: str, workdir: str) -> bytes:
|
||||
"""Title card exactly as screens_worker renders it (PNG via PIL, no video)."""
|
||||
from karaoke_gen.style_loader import DEFAULT_INTRO_STYLE
|
||||
def _screen_generator():
|
||||
from karaoke_gen.video_generator import VideoGenerator
|
||||
|
||||
fmt = {**DEFAULT_INTRO_STYLE, **(styles.get("intro") or {})}
|
||||
generator = VideoGenerator(
|
||||
return VideoGenerator(
|
||||
logger=logger,
|
||||
ffmpeg_base_command="ffmpeg -hide_banner -nostats -loglevel error",
|
||||
render_bounding_boxes=False,
|
||||
output_png=True,
|
||||
output_jpg=False,
|
||||
)
|
||||
|
||||
|
||||
def render_title_card(styles: Dict, artist: str, title: str, workdir: str) -> bytes:
|
||||
"""Title card exactly as screens_worker renders it (PNG via PIL, no video)."""
|
||||
from karaoke_gen.style_loader import DEFAULT_INTRO_STYLE
|
||||
|
||||
fmt = {**DEFAULT_INTRO_STYLE, **(styles.get("intro") or {})}
|
||||
noext = os.path.join(workdir, "title")
|
||||
try:
|
||||
generator.create_title_video(
|
||||
_screen_generator().create_title_video(
|
||||
artist=artist,
|
||||
title=title,
|
||||
format=fmt,
|
||||
@@ -249,6 +261,27 @@ def render_title_card(styles: Dict, artist: str, title: str, workdir: str) -> by
|
||||
return _to_jpeg(f"{noext}.png")
|
||||
|
||||
|
||||
def render_end_screen(styles: Dict, artist: str, title: str, workdir: str) -> bytes:
|
||||
"""End screen exactly as screens_worker renders it (PNG via PIL, no video)."""
|
||||
from karaoke_gen.style_loader import DEFAULT_END_STYLE
|
||||
|
||||
fmt = {**DEFAULT_END_STYLE, **(styles.get("end") or {})}
|
||||
noext = os.path.join(workdir, "end")
|
||||
try:
|
||||
_screen_generator().create_end_video(
|
||||
artist=artist,
|
||||
title=title,
|
||||
format=fmt,
|
||||
output_image_filepath_noext=noext,
|
||||
output_video_filepath=os.path.join(workdir, "end.mov"),
|
||||
existing_end_image=fmt.get("existing_image"),
|
||||
end_video_duration=0,
|
||||
)
|
||||
except Exception as exc:
|
||||
raise ThemePreviewError(f"End screen render failed: {exc}") from exc
|
||||
return _to_jpeg(f"{noext}.png")
|
||||
|
||||
|
||||
def _sample_segments(lines: List[str], translations: Optional[List[str]] = None):
|
||||
"""Evenly-timed segments: line i starts at 2+3i s, words spread over 2.5 s.
|
||||
|
||||
@@ -406,11 +439,14 @@ def render_theme_preview(
|
||||
_CACHE.move_to_end(key)
|
||||
return _CACHE[key]
|
||||
|
||||
from karaoke_gen.style_loader import screen_enabled
|
||||
|
||||
styles = resolve_assets(style_params, theme_id, storage)
|
||||
with tempfile.TemporaryDirectory(prefix="theme-preview-") as workdir:
|
||||
result = PreviewImages(
|
||||
title_card=render_title_card(styles, artist, title, workdir),
|
||||
title_card=render_title_card(styles, artist, title, workdir) if screen_enabled(styles, "intro") else None,
|
||||
karaoke_frame=render_karaoke_frame(styles, lines, workdir),
|
||||
end_screen=render_end_screen(styles, artist, title, workdir) if screen_enabled(styles, "end") else None,
|
||||
)
|
||||
with _cache_lock:
|
||||
_CACHE[key] = result
|
||||
|
||||
@@ -99,9 +99,20 @@ def test_preview_returns_data_urls(client_for):
|
||||
assert resp.status_code == 200
|
||||
body = resp.json()
|
||||
assert body["title_card"].startswith("data:image/jpeg;base64,")
|
||||
assert body["end_screen"] is None # not rendered (e.g. the theme omits it)
|
||||
assert render.call_args.kwargs["artist"] == "Randy Vild"
|
||||
|
||||
|
||||
def test_preview_returns_end_screen_and_null_for_omitted_title(client_for):
|
||||
with patch.object(tenant_theme, "prepare_preview_styles", return_value={"intro": {}}), \
|
||||
patch.object(tenant_theme, "render_theme_preview", return_value=PreviewImages(None, b"k", b"e")):
|
||||
resp = client_for().post("/api/tenant/theme/preview", json={"style_params": {"intro": {}}})
|
||||
assert resp.status_code == 200
|
||||
body = resp.json()
|
||||
assert body["title_card"] is None
|
||||
assert body["end_screen"].startswith("data:image/jpeg;base64,")
|
||||
|
||||
|
||||
def test_preview_validation_and_render_errors(client_for):
|
||||
client = client_for()
|
||||
with patch.object(tenant_theme, "prepare_preview_styles", side_effect=TenantValidationError("bad path")):
|
||||
|
||||
@@ -264,3 +264,15 @@ def test_missing_theme_file_is_not_found():
|
||||
storage.download_json = lambda path: (_ for _ in ()).throw(FileNotFoundError(path))
|
||||
with pytest.raises(tts.ThemeNotFoundError):
|
||||
tts.get_theme_for_editor(_config(), storage=storage)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("section", ["intro", "end"])
|
||||
def test_screen_enabled_flag_must_be_boolean(section):
|
||||
style = _style()
|
||||
style[section]["enabled"] = False
|
||||
styles, _ = tts.sanitize_style_params(style, available_assets=ASSETS)
|
||||
assert styles[section]["enabled"] is False
|
||||
|
||||
style[section]["enabled"] = "no"
|
||||
with pytest.raises(TenantValidationError, match=f"{section}.enabled"):
|
||||
tts.sanitize_style_params(style, available_assets=ASSETS)
|
||||
@@ -139,3 +139,59 @@ def test_failed_download_leaves_no_partial_cache_file(tmp_path, monkeypatch):
|
||||
with pytest.raises(IOError):
|
||||
tps._local_theme_asset(Storage, "t1", "bg.jpg")
|
||||
assert not any(f.is_file() for f in tmp_path.rglob("*"))
|
||||
|
||||
|
||||
def _with_end(theme, **end):
|
||||
theme["end"] = {
|
||||
"background_color": "#301020",
|
||||
"background_image": None,
|
||||
"font": "AvenirNext-Bold.ttf",
|
||||
"title_color": "#ffffff",
|
||||
"artist_color": "#ffdf6b",
|
||||
"title_region": "370,900,3100,350",
|
||||
"artist_region": "370,1450,3100,200",
|
||||
"extra_text": "THANK YOU FOR SINGING!",
|
||||
"extra_text_color": "#ff7acc",
|
||||
"extra_text_region": "370,400,3100,400",
|
||||
**end,
|
||||
}
|
||||
return theme
|
||||
|
||||
|
||||
def test_renders_the_end_screen_with_its_own_background_and_layout():
|
||||
tps._CACHE.clear()
|
||||
result = tps.render_theme_preview("t1", _with_end(_theme()), artist="Randy Vild", storage=_NoGcsAssets())
|
||||
end = _img(result.end_screen)
|
||||
assert end.size == (1280, 720)
|
||||
r, g, b = end.getpixel((8, 8)) # the end section's own #301020, not the title card's
|
||||
assert abs(r - 0x30) <= 6 and abs(g - 0x10) <= 6 and abs(b - 0x20) <= 6
|
||||
assert result.as_data_urls()["end_screen"].startswith("data:image/jpeg;base64,")
|
||||
|
||||
|
||||
def test_end_screen_text_size_changes_only_the_end_screen():
|
||||
"""Randy Vild's report: the end screen's text size is its own setting."""
|
||||
tps._CACHE.clear()
|
||||
big = tps.render_theme_preview("t1", _with_end(_theme()), storage=_NoGcsAssets())
|
||||
small = tps.render_theme_preview(
|
||||
"t1", _with_end(_theme(), title_region="370,900,3100,120", extra_text_region="370,400,3100,120"),
|
||||
storage=_NoGcsAssets(),
|
||||
)
|
||||
assert big.title_card == small.title_card
|
||||
assert big.end_screen != small.end_screen
|
||||
|
||||
def text_pixels(data):
|
||||
return sum(1 for r, g, b in _img(data).getdata() if r > 200 and g > 200 and b > 200)
|
||||
|
||||
assert text_pixels(small.end_screen) < text_pixels(big.end_screen) * 0.6
|
||||
|
||||
|
||||
def test_omitted_screens_are_not_rendered():
|
||||
tps._CACHE.clear()
|
||||
theme = _with_end(_theme())
|
||||
theme["intro"]["enabled"] = False
|
||||
theme["end"]["enabled"] = False
|
||||
result = tps.render_theme_preview("t1", theme, storage=_NoGcsAssets())
|
||||
assert result.title_card is None and result.end_screen is None
|
||||
assert _img(result.karaoke_frame).size == (1280, 720)
|
||||
urls = result.as_data_urls()
|
||||
assert urls["title_card"] is None and urls["end_screen"] is None
|
||||
@@ -0,0 +1,331 @@
|
||||
"""
|
||||
Themes can leave the title and/or end screen out of rendered videos
|
||||
(``intro.enabled`` / ``end.enabled`` = false).
|
||||
|
||||
Covers the cloud pipeline end to end: the screens worker records which screens
|
||||
it made (``state_data.screens_included``), the render prerequisites and /retry
|
||||
ladder accept a missing omitted screen, the orchestrator/encoding config carry
|
||||
explicit include flags, and the encoders (GCE worker + LocalEncodingService)
|
||||
concatenate only the included segments, without rebuilding an omitted screen
|
||||
from a theme background PNG that the encoder's loose globs would match.
|
||||
"""
|
||||
from pathlib import Path
|
||||
from types import SimpleNamespace
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
from backend.workers.style_helper import SCREENS_INCLUDED_KEY, screen_included
|
||||
|
||||
|
||||
# --- marker helper --------------------------------------------------------------
|
||||
|
||||
|
||||
def test_screen_included_defaults_to_true_for_older_jobs():
|
||||
assert screen_included({}, "title") and screen_included(None, "end")
|
||||
assert screen_included({SCREENS_INCLUDED_KEY: {"title": True}}, "end")
|
||||
assert not screen_included({SCREENS_INCLUDED_KEY: {"title": False, "end": True}}, "title")
|
||||
|
||||
|
||||
# --- screens worker -------------------------------------------------------------
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.parametrize("include_title,include_end", [(False, True), (True, False), (False, False), (True, True)])
|
||||
async def test_screens_worker_skips_omitted_screens_and_records_them(tmp_path, include_title, include_end):
|
||||
from datetime import datetime, timezone
|
||||
|
||||
from backend.models.job import Job, JobStatus
|
||||
from backend.workers import screens_worker as sw
|
||||
|
||||
job = Job(
|
||||
job_id="j1", artist="A", title="T", status=JobStatus.DOWNLOADING,
|
||||
created_at=datetime.now(timezone.utc), updated_at=datetime.now(timezone.utc),
|
||||
state_data={"lyrics_complete": True, "audio_complete": True},
|
||||
)
|
||||
jm = MagicMock()
|
||||
jm.get_job.return_value = job
|
||||
jm.transition_to_state.return_value = True
|
||||
style_config = MagicMock(include_title_screen=include_title, include_end_screen=include_end)
|
||||
|
||||
async def load_style(*args, **kwargs):
|
||||
return style_config
|
||||
|
||||
async def make_png(name):
|
||||
png = tmp_path / f"{name}.png"
|
||||
png.write_bytes(b"png")
|
||||
return str(png)
|
||||
|
||||
async def noop(*args, **kwargs):
|
||||
return {}
|
||||
|
||||
title_gen = MagicMock(side_effect=lambda **kw: make_png("title"))
|
||||
end_gen = MagicMock(side_effect=lambda **kw: make_png("end"))
|
||||
upload = MagicMock(side_effect=noop)
|
||||
with patch.object(sw, "JobManager", return_value=jm), \
|
||||
patch.object(sw, "StorageService"), \
|
||||
patch.object(sw, "get_settings"), \
|
||||
patch.object(sw, "create_job_logger"), \
|
||||
patch.object(sw, "setup_job_logging"), \
|
||||
patch.object(sw, "_validate_prerequisites", return_value=True), \
|
||||
patch("backend.services.stems_restore.maybe_start_stems_restore", return_value="not_needed"), \
|
||||
patch.object(sw, "load_style_config", side_effect=load_style), \
|
||||
patch.object(sw, "_create_video_generator"), \
|
||||
patch.object(sw, "_generate_title_screen", title_gen), \
|
||||
patch.object(sw, "_generate_end_screen", end_gen), \
|
||||
patch.object(sw, "_upload_screens", upload), \
|
||||
patch.object(sw, "_apply_countdown_padding_if_needed", side_effect=noop), \
|
||||
patch.object(sw, "_transcode_review_audio", side_effect=noop), \
|
||||
patch("backend.services.auto_approval.executor.maybe_auto_complete_review", side_effect=noop), \
|
||||
patch("backend.services.auto_approval.pre_apply.ensure_and_pre_apply", side_effect=noop):
|
||||
result = await sw.generate_screens("j1")
|
||||
assert result is True, jm.mark_job_failed.call_args
|
||||
|
||||
assert title_gen.called is include_title
|
||||
assert end_gen.called is include_end
|
||||
kwargs = upload.call_args.kwargs
|
||||
assert (kwargs["title_screen_path"] is not None) is include_title
|
||||
assert (kwargs["end_screen_path"] is not None) is include_end
|
||||
jm.update_state_data.assert_any_call("j1", SCREENS_INCLUDED_KEY, {"title": include_title, "end": include_end})
|
||||
|
||||
|
||||
def test_upload_screens_skips_an_omitted_screen(tmp_path):
|
||||
from backend.workers.screens_worker import _upload_screens_sync
|
||||
|
||||
(tmp_path / "End.png").write_bytes(b"png")
|
||||
(tmp_path / "End.jpg").write_bytes(b"jpg")
|
||||
storage, jm = MagicMock(), MagicMock()
|
||||
storage.upload_file.side_effect = lambda local, gcs: f"gs://b/{gcs}"
|
||||
_upload_screens_sync("j1", jm, storage, None, str(tmp_path / "End.png"))
|
||||
assert [c.args[1] for c in storage.upload_file.call_args_list] == ["jobs/j1/screens/end.png", "jobs/j1/screens/end.jpg"]
|
||||
jm.update_file_url.assert_any_call("j1", "screens", "end_png", "gs://b/jobs/j1/screens/end.png")
|
||||
jm.update_file_url.assert_any_call("j1", "screens", "end_jpg", "gs://b/jobs/j1/screens/end.jpg")
|
||||
|
||||
|
||||
# --- render prerequisites + retry ladder -----------------------------------------
|
||||
|
||||
|
||||
def _video_job(screens, included=None):
|
||||
state = {"instrumental_selection": "clean"}
|
||||
if included is not None:
|
||||
state[SCREENS_INCLUDED_KEY] = included
|
||||
return SimpleNamespace(
|
||||
job_id="j1",
|
||||
state_data=state,
|
||||
file_urls={"screens": screens, "videos": {"with_vocals": "gs://v"}, "stems": {"instrumental_clean": "gs://i"}},
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"screens,included,ok",
|
||||
[
|
||||
({"title_png": "x", "end_png": "y"}, None, True),
|
||||
({"end_png": "y"}, None, False), # older job: a missing title is still an error
|
||||
({"end_png": "y"}, {"title": False, "end": True}, True),
|
||||
({"title_png": "x"}, {"title": True, "end": False}, True),
|
||||
({}, {"title": False, "end": False}, True),
|
||||
({}, {"title": True, "end": False}, False),
|
||||
],
|
||||
)
|
||||
def test_video_prerequisites_accept_omitted_screens(screens, included, ok):
|
||||
from backend.workers import video_worker
|
||||
|
||||
with patch.object(video_worker, "validate_worker_can_run", return_value=None):
|
||||
assert video_worker._validate_prerequisites(_video_job(screens, included)) is ok
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"file_urls,state_data,expected",
|
||||
[
|
||||
({"screens": {"title_jpg": "x"}}, {}, True),
|
||||
({"screens": {}}, {}, False),
|
||||
# Title omitted by the theme and the screens worker finished
|
||||
({"screens": {"end_png": "y"}}, {SCREENS_INCLUDED_KEY: {"title": False}, "screens_progress": {"stage": "complete"}}, True),
|
||||
# ...but a re-render cleared screens_progress: the stale marker alone isn't enough
|
||||
({"screens": {}}, {SCREENS_INCLUDED_KEY: {"title": False}}, False),
|
||||
],
|
||||
)
|
||||
def test_retry_screens_check_understands_omitted_title(file_urls, state_data, expected):
|
||||
from backend.api.routes.jobs import _has_title_screen
|
||||
|
||||
assert _has_title_screen(file_urls, state_data) is expected
|
||||
|
||||
|
||||
# --- orchestrator + encoding config ---------------------------------------------
|
||||
|
||||
|
||||
def _orch_job(included):
|
||||
return SimpleNamespace(
|
||||
job_id="j1", artist="A", title="T",
|
||||
state_data={"instrumental_selection": "clean", SCREENS_INCLUDED_KEY: included},
|
||||
file_urls={"screens": {"end_png": "gs://b/jobs/j1/screens/end.png"}, "videos": {"with_vocals": "gs://b/v.mkv"}},
|
||||
)
|
||||
|
||||
|
||||
def test_orchestrator_config_drops_omitted_screen_paths(tmp_path):
|
||||
from backend.workers import video_worker_orchestrator as vwo
|
||||
|
||||
dist = MagicMock(enable_youtube_upload=False, brand_prefix=None, discord_webhook_url=None,
|
||||
youtube_description=None, dropbox_path=None, gdrive_folder_id=None)
|
||||
with patch("backend.services.job_defaults_service.get_effective_distribution_for_job", return_value=dist):
|
||||
config = vwo.create_orchestrator_config_from_job(_orch_job({"title": False, "end": True}), str(tmp_path))
|
||||
assert config.title_video_path is None
|
||||
assert config.end_video_path.endswith("A - T (End).png")
|
||||
assert config.include_title_screen is False and config.include_end_screen is True
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_orchestrator_passes_include_flags_to_the_encoder():
|
||||
from backend.workers.video_worker_orchestrator import OrchestratorConfig, VideoWorkerOrchestrator
|
||||
|
||||
config = OrchestratorConfig(
|
||||
job_id="j1", artist="A", title="T", title_video_path=None, karaoke_video_path="k.mkv",
|
||||
instrumental_audio_path="i.flac", include_title_screen=False, include_end_screen=True,
|
||||
)
|
||||
orch = VideoWorkerOrchestrator(config=config, job_manager=MagicMock(), storage=MagicMock())
|
||||
backend = MagicMock()
|
||||
backend.name = "local"
|
||||
backend.encode = MagicMock(side_effect=RuntimeError("stop"))
|
||||
orch._get_encoding_backend = MagicMock(return_value=backend)
|
||||
with pytest.raises(RuntimeError, match="stop"):
|
||||
await orch._run_encoding()
|
||||
encoding_input = backend.encode.call_args.args[0]
|
||||
assert encoding_input.title_video_path is None
|
||||
assert encoding_input.options["include_title_screen"] is False
|
||||
assert encoding_input.options["include_end_screen"] is True
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_original_vocals_guide_has_no_intro_offset_without_a_title_card():
|
||||
from backend.workers.video_worker_orchestrator import OrchestratorConfig, VideoWorkerOrchestrator
|
||||
|
||||
config = OrchestratorConfig(
|
||||
job_id="j1", artist="A", title="T", title_video_path=None, karaoke_video_path="k",
|
||||
instrumental_audio_path="i", include_title_screen=False,
|
||||
)
|
||||
orch = VideoWorkerOrchestrator(config=config, job_manager=MagicMock(), storage=MagicMock())
|
||||
assert await orch._resolve_intro_seconds() == 0.0
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_gce_backend_sends_include_flags_only_when_a_screen_is_omitted():
|
||||
from backend.services.encoding_interface import EncodingInput, GCEEncodingBackend
|
||||
|
||||
def make_input(**flags):
|
||||
return EncodingInput(
|
||||
title_video_path=None, karaoke_video_path="k", instrumental_audio_path="i", artist="A", title="T",
|
||||
options={"job_id": "j1", "input_gcs_path": "gs://b/in/", "output_gcs_path": "gs://b/out/", **flags},
|
||||
)
|
||||
|
||||
sent = []
|
||||
|
||||
async def encode_videos(job_id, input_gcs_path, output_gcs_path, encoding_config, **kwargs):
|
||||
sent.append(encoding_config)
|
||||
raise RuntimeError("stop")
|
||||
|
||||
gce = GCEEncodingBackend()
|
||||
service = MagicMock()
|
||||
service.is_enabled = True
|
||||
service.encode_videos = encode_videos
|
||||
gce._service = service
|
||||
with patch.object(GCEEncodingBackend, "_get_service", return_value=service):
|
||||
await gce.encode(make_input(include_title_screen=False, include_end_screen=True))
|
||||
await gce.encode(make_input(include_title_screen=True, include_end_screen=True))
|
||||
assert sent[0]["include_title_screen"] is False and "include_end_screen" not in sent[0]
|
||||
assert "include_title_screen" not in sent[1] and "include_end_screen" not in sent[1]
|
||||
|
||||
|
||||
# --- encoders -------------------------------------------------------------------
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"with_title,with_end,n",
|
||||
[(True, True, 3), (False, True, 2), (True, False, 2), (False, False, 1)],
|
||||
)
|
||||
def test_lossless_concat_includes_only_present_segments(tmp_path, with_title, with_end, n):
|
||||
from backend.services.local_encoding_service import LocalEncodingService
|
||||
|
||||
end = tmp_path / "end.mov"
|
||||
end.write_bytes(b"x")
|
||||
service = LocalEncodingService(logger=MagicMock())
|
||||
with patch.object(service, "_execute_command_with_fallback", return_value=True) as run:
|
||||
assert service.encode_lossless_mp4(
|
||||
str(tmp_path / "title.mov") if with_title else None,
|
||||
str(tmp_path / "karaoke.mkv"),
|
||||
str(tmp_path / "out.mp4"),
|
||||
str(end) if with_end else None,
|
||||
)
|
||||
gpu, cpu = run.call_args.args[:2]
|
||||
for cmd in (gpu, cpu):
|
||||
assert f"concat=n={n}:v=1:a=1" in cmd
|
||||
assert cmd.count(" -i ") == n
|
||||
assert ("title.mov" in cmd) is with_title
|
||||
assert ("end.mov" in cmd) is with_end
|
||||
assert "karaoke.mkv" in cmd
|
||||
# Segment order: title, karaoke, end
|
||||
assert cpu.index("karaoke.mkv") > (cpu.index("title.mov") if with_title else -1)
|
||||
if with_end:
|
||||
assert cpu.index("end.mov") > cpu.index("karaoke.mkv")
|
||||
|
||||
|
||||
def _gce_work_dir(tmp_path: Path) -> Path:
|
||||
work = tmp_path / "work"
|
||||
(work / "style").mkdir(parents=True)
|
||||
(work / "videos").mkdir()
|
||||
(work / "stems").mkdir()
|
||||
# Theme assets the encoder's loose "*title*.png" / "*end*.png" globs would match
|
||||
(work / "style" / "cdg_title_background.png").write_bytes(b"png" * 1000)
|
||||
(work / "style" / "end_background.png").write_bytes(b"png" * 1000)
|
||||
(work / "videos" / "with_vocals.mkv").write_bytes(b"mkv" * 1000)
|
||||
(work / "stems" / "instrumental_clean.flac").write_bytes(b"flac" * 1000)
|
||||
return work
|
||||
|
||||
|
||||
@pytest.mark.parametrize("include_title,include_end", [(False, False), (False, True), (True, False)])
|
||||
def test_gce_worker_never_rebuilds_an_omitted_screen_from_theme_pngs(tmp_path, include_title, include_end):
|
||||
from backend.services.gce_encoding import main
|
||||
|
||||
work = _gce_work_dir(tmp_path)
|
||||
(work / "screens").mkdir()
|
||||
for screen, included in (("title", include_title), ("end", include_end)):
|
||||
if included:
|
||||
(work / "screens" / f"{screen}.png").write_bytes(b"png" * 1000)
|
||||
|
||||
made = []
|
||||
|
||||
def fake_mov(png, mov, duration=5):
|
||||
made.append(png.name)
|
||||
mov.write_bytes(b"mov" * 1000)
|
||||
return mov
|
||||
|
||||
service = MagicMock()
|
||||
service.encode_all_formats.return_value = MagicMock(success=True)
|
||||
main.jobs["j1"] = {"status": "pending", "progress": 0}
|
||||
with patch.object(main, "generate_mov_from_png", side_effect=fake_mov), \
|
||||
patch.object(main, "render_portrait_into_outputs"), \
|
||||
patch.object(main, "_persist"), \
|
||||
patch("backend.services.local_encoding_service.LocalEncodingService", return_value=service):
|
||||
main.run_encoding("j1", work, {
|
||||
"artist": "A", "title": "T",
|
||||
"include_title_screen": include_title, "include_end_screen": include_end,
|
||||
})
|
||||
config = service.encode_all_formats.call_args.args[0]
|
||||
assert (config.title_video is not None) is include_title
|
||||
assert (config.end_video is not None) is include_end
|
||||
assert sorted(made) == sorted(f"{s}.png" for s, inc in (("title", include_title), ("end", include_end)) if inc)
|
||||
staged = sorted(p.name for p in (work / "outputs").glob("*.mov"))
|
||||
assert ("A - T (Title).mov" in staged) is include_title
|
||||
assert ("A - T (End).mov" in staged) is include_end
|
||||
|
||||
|
||||
def test_gce_worker_still_requires_a_title_when_included(tmp_path):
|
||||
from backend.services.gce_encoding import main
|
||||
|
||||
work = _gce_work_dir(tmp_path)
|
||||
(work / "style" / "cdg_title_background.png").unlink()
|
||||
main.jobs["j2"] = {"status": "pending", "progress": 0}
|
||||
with patch.object(main, "_persist"), \
|
||||
patch.object(main, "generate_mov_from_png", side_effect=lambda png, mov, duration=5: mov), \
|
||||
patch("backend.services.local_encoding_service.LocalEncodingService"):
|
||||
with pytest.raises(Exception, match="No title video"):
|
||||
main.run_encoding("j2", work, {"artist": "A", "title": "T"})
|
||||
@@ -36,7 +36,7 @@ from backend.services.job_manager import JobManager
|
||||
from backend.services.storage_service import StorageService
|
||||
from backend.services.job_health_service import validate_worker_can_run
|
||||
from backend.config import get_settings
|
||||
from backend.workers.style_helper import load_style_config, StyleConfig
|
||||
from backend.workers.style_helper import SCREENS_INCLUDED_KEY, load_style_config, StyleConfig
|
||||
from backend.workers.worker_logging import create_job_logger, setup_job_logging, job_logging_context
|
||||
from backend.services.tracing import job_span, add_span_event, add_span_attribute
|
||||
|
||||
@@ -187,38 +187,49 @@ async def generate_screens(job_id: str) -> bool:
|
||||
# Initialize video generator
|
||||
video_generator = _create_video_generator(temp_dir)
|
||||
|
||||
# A theme may leave either screen out of its videos (intro/end.enabled=false).
|
||||
include_title = style_config.include_title_screen
|
||||
include_end = style_config.include_end_screen
|
||||
title_screen_path = end_screen_path = None
|
||||
|
||||
# Generate title screen with style config
|
||||
with job_span("generate-title-screen", job_id):
|
||||
job_log.info("Generating title screen...")
|
||||
title_screen_path = await _generate_title_screen(
|
||||
job_id=job_id,
|
||||
job=job,
|
||||
video_generator=video_generator,
|
||||
style_config=style_config,
|
||||
temp_dir=temp_dir,
|
||||
job_log=job_log
|
||||
)
|
||||
|
||||
if not title_screen_path:
|
||||
raise Exception("Title screen generation failed")
|
||||
job_log.info(f"Title screen generated: {title_screen_path}")
|
||||
|
||||
if include_title:
|
||||
with job_span("generate-title-screen", job_id):
|
||||
job_log.info("Generating title screen...")
|
||||
title_screen_path = await _generate_title_screen(
|
||||
job_id=job_id,
|
||||
job=job,
|
||||
video_generator=video_generator,
|
||||
style_config=style_config,
|
||||
temp_dir=temp_dir,
|
||||
job_log=job_log
|
||||
)
|
||||
|
||||
if not title_screen_path:
|
||||
raise Exception("Title screen generation failed")
|
||||
job_log.info(f"Title screen generated: {title_screen_path}")
|
||||
else:
|
||||
job_log.info("Theme omits the title screen — skipping it")
|
||||
|
||||
# Generate end screen with style config
|
||||
with job_span("generate-end-screen", job_id):
|
||||
job_log.info("Generating end screen...")
|
||||
end_screen_path = await _generate_end_screen(
|
||||
job_id=job_id,
|
||||
job=job,
|
||||
video_generator=video_generator,
|
||||
style_config=style_config,
|
||||
temp_dir=temp_dir,
|
||||
job_log=job_log
|
||||
)
|
||||
|
||||
if not end_screen_path:
|
||||
raise Exception("End screen generation failed")
|
||||
job_log.info(f"End screen generated: {end_screen_path}")
|
||||
|
||||
if include_end:
|
||||
with job_span("generate-end-screen", job_id):
|
||||
job_log.info("Generating end screen...")
|
||||
end_screen_path = await _generate_end_screen(
|
||||
job_id=job_id,
|
||||
job=job,
|
||||
video_generator=video_generator,
|
||||
style_config=style_config,
|
||||
temp_dir=temp_dir,
|
||||
job_log=job_log
|
||||
)
|
||||
|
||||
if not end_screen_path:
|
||||
raise Exception("End screen generation failed")
|
||||
job_log.info(f"End screen generated: {end_screen_path}")
|
||||
else:
|
||||
job_log.info("Theme omits the end screen — skipping it")
|
||||
|
||||
# Upload screens to GCS
|
||||
with job_span("upload-screens", job_id):
|
||||
await _upload_screens(
|
||||
@@ -228,7 +239,12 @@ async def generate_screens(job_id: str) -> bool:
|
||||
title_screen_path=title_screen_path,
|
||||
end_screen_path=end_screen_path
|
||||
)
|
||||
|
||||
# Read by the render/encode stages (which run before the style is
|
||||
# loaded) so an omitted screen isn't treated as missing.
|
||||
job_manager.update_state_data(
|
||||
job_id, SCREENS_INCLUDED_KEY, {"title": include_title, "end": include_end}
|
||||
)
|
||||
|
||||
# Apply countdown padding if needed
|
||||
await _apply_countdown_padding_if_needed(job_id, job_manager, job)
|
||||
|
||||
@@ -578,11 +594,11 @@ async def _upload_screens(
|
||||
job_id: str,
|
||||
job_manager: JobManager,
|
||||
storage: StorageService,
|
||||
title_screen_path: str,
|
||||
end_screen_path: str
|
||||
title_screen_path: Optional[str],
|
||||
end_screen_path: Optional[str]
|
||||
) -> None:
|
||||
"""
|
||||
Upload title and end screen images to GCS.
|
||||
Upload title and end screen images to GCS (None = screen omitted by the theme).
|
||||
|
||||
Single Responsibility: Only handles uploads.
|
||||
|
||||
@@ -607,28 +623,21 @@ def _upload_screens_sync(
|
||||
job_id: str,
|
||||
job_manager: JobManager,
|
||||
storage: StorageService,
|
||||
title_screen_path: str,
|
||||
end_screen_path: str
|
||||
title_screen_path: Optional[str],
|
||||
end_screen_path: Optional[str]
|
||||
) -> None:
|
||||
# Upload title screen images (.png and .jpg)
|
||||
title_base = title_screen_path.replace('.png', '')
|
||||
for ext, key in [('.png', 'title_png'), ('.jpg', 'title_jpg')]:
|
||||
image_path = f"{title_base}{ext}"
|
||||
if os.path.exists(image_path):
|
||||
gcs_path = f"jobs/{job_id}/screens/title{ext}"
|
||||
url = storage.upload_file(image_path, gcs_path)
|
||||
job_manager.update_file_url(job_id, 'screens', key, url)
|
||||
logger.info(f"Job {job_id}: Uploaded title screen image ({ext})")
|
||||
|
||||
# Upload end screen images (.png and .jpg)
|
||||
end_base = end_screen_path.replace('.png', '')
|
||||
for ext, key in [('.png', 'end_png'), ('.jpg', 'end_jpg')]:
|
||||
image_path = f"{end_base}{ext}"
|
||||
if os.path.exists(image_path):
|
||||
gcs_path = f"jobs/{job_id}/screens/end{ext}"
|
||||
url = storage.upload_file(image_path, gcs_path)
|
||||
job_manager.update_file_url(job_id, 'screens', key, url)
|
||||
logger.info(f"Job {job_id}: Uploaded end screen image ({ext})")
|
||||
for screen, path in (("title", title_screen_path), ("end", end_screen_path)):
|
||||
if not path:
|
||||
continue
|
||||
# Upload the screen's images (.png and .jpg)
|
||||
base = path.replace('.png', '')
|
||||
for ext in ('.png', '.jpg'):
|
||||
image_path = f"{base}{ext}"
|
||||
if os.path.exists(image_path):
|
||||
gcs_path = f"jobs/{job_id}/screens/{screen}{ext}"
|
||||
url = storage.upload_file(image_path, gcs_path)
|
||||
job_manager.update_file_url(job_id, 'screens', f"{screen}_{ext[1:]}", url)
|
||||
logger.info(f"Job {job_id}: Uploaded {screen} screen image ({ext})")
|
||||
|
||||
|
||||
async def _analyze_backing_vocals(
|
||||
|
||||
@@ -31,11 +31,23 @@ from karaoke_gen.style_loader import (
|
||||
get_end_format,
|
||||
get_karaoke_format,
|
||||
get_cdg_format,
|
||||
screen_enabled,
|
||||
)
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# state_data key the screens worker writes: {"title": bool, "end": bool} — which
|
||||
# screens the job's theme includes. Absent (jobs screened before themes could omit
|
||||
# screens) means both were made.
|
||||
SCREENS_INCLUDED_KEY = "screens_included"
|
||||
|
||||
|
||||
def screen_included(state_data: Optional[Dict[str, Any]], screen: str) -> bool:
|
||||
"""Whether the job's videos include its "title" or "end" screen."""
|
||||
included = (state_data or {}).get(SCREENS_INCLUDED_KEY) or {}
|
||||
return included.get(screen, True) is not False
|
||||
|
||||
|
||||
# Re-export defaults for backwards compatibility with existing code
|
||||
DEFAULT_INTRO_FORMAT = DEFAULT_INTRO_STYLE
|
||||
@@ -189,6 +201,16 @@ class StyleConfig:
|
||||
"""Check if custom styles were provided (not using defaults)."""
|
||||
return self._has_custom_styles
|
||||
|
||||
@property
|
||||
def include_title_screen(self) -> bool:
|
||||
"""Whether the theme puts a title screen at the start of the video."""
|
||||
return screen_enabled(self._style_params, "intro")
|
||||
|
||||
@property
|
||||
def include_end_screen(self) -> bool:
|
||||
"""Whether the theme puts an end screen at the end of the video."""
|
||||
return screen_enabled(self._style_params, "end")
|
||||
|
||||
@property
|
||||
def intro_video_duration(self) -> int:
|
||||
"""
|
||||
|
||||
@@ -50,7 +50,7 @@ from backend.services.youtube_service import get_youtube_service
|
||||
from backend.services.youtube_description import translated_language_name
|
||||
from backend.services.encoding_service import get_encoding_service, run_with_lost_job_resubmit
|
||||
from backend.config import get_settings
|
||||
from backend.workers.style_helper import load_style_config
|
||||
from backend.workers.style_helper import load_style_config, screen_included
|
||||
from backend.workers.worker_logging import create_job_logger, setup_job_logging, job_logging_context
|
||||
from backend.services.tracing import job_span, add_span_event, add_span_attribute
|
||||
|
||||
@@ -138,6 +138,9 @@ async def _encode_via_gce(
|
||||
"base_name": base_name,
|
||||
"instrumental_selection": instrumental_selection,
|
||||
"existing_instrumental": existing_instrumental,
|
||||
# Screens the theme leaves out (the encoder must not rebuild them from other PNGs).
|
||||
"include_title_screen": screen_included(job.state_data, "title"),
|
||||
"include_end_screen": screen_included(job.state_data, "end"),
|
||||
# NOTE: intentionally no "ffmpeg_threads" — finalization ffmpeg commands in
|
||||
# LocalEncodingService carry no -threads flag, so x264 uses its all-core auto
|
||||
# default (measured ~66-78% of a 32-vCPU worker busy during the heavy libx264
|
||||
@@ -1501,8 +1504,9 @@ def _validate_prerequisites(job) -> bool:
|
||||
|
||||
# Check screens exist (MOV or PNG — MOV is no longer uploaded, PNG is the new default)
|
||||
screens = job.file_urls.get('screens', {})
|
||||
has_title = screens.get('title') or screens.get('title_png')
|
||||
has_end = screens.get('end') or screens.get('end_png')
|
||||
# A screen the theme omits (state_data.screens_included) isn't needed.
|
||||
has_title = screens.get('title') or screens.get('title_png') or not screen_included(job.state_data, 'title')
|
||||
has_end = screens.get('end') or screens.get('end_png') or not screen_included(job.state_data, 'end')
|
||||
if not has_title or not has_end:
|
||||
logger.error(f"Job {job.job_id}: Missing title or end screen")
|
||||
return False
|
||||
|
||||
@@ -49,14 +49,18 @@ class OrchestratorConfig:
|
||||
artist: str
|
||||
title: str
|
||||
|
||||
# Input file paths (in temp_dir)
|
||||
title_video_path: str
|
||||
# Input file paths (in temp_dir). None = the theme leaves that screen out.
|
||||
title_video_path: Optional[str]
|
||||
karaoke_video_path: str
|
||||
instrumental_audio_path: str
|
||||
end_video_path: Optional[str] = None
|
||||
lrc_file_path: Optional[str] = None
|
||||
title_jpg_path: Optional[str] = None
|
||||
|
||||
# Whether the theme includes the title / end screen (state_data.screens_included)
|
||||
include_title_screen: bool = True
|
||||
include_end_screen: bool = True
|
||||
|
||||
# Output directory
|
||||
output_dir: str = ""
|
||||
|
||||
@@ -521,6 +525,8 @@ class VideoWorkerOrchestrator:
|
||||
"output_gcs_path": output_gcs_path,
|
||||
"countdown_padding_seconds": self.config.countdown_padding_seconds,
|
||||
"existing_instrumental": self.config.existing_instrumental_gcs_path,
|
||||
"include_title_screen": self.config.include_title_screen,
|
||||
"include_end_screen": self.config.include_end_screen,
|
||||
},
|
||||
)
|
||||
|
||||
@@ -1088,7 +1094,10 @@ class VideoWorkerOrchestrator:
|
||||
async def _resolve_intro_seconds(self) -> float:
|
||||
"""The master's silent title-card length = the job's style intro ``video_duration``
|
||||
(default 5s). Read the *actual* value — long-intro styles exist. Falls back to 5s
|
||||
(``get_intro_format`` raises when no theme is loaded — that's the fallback path)."""
|
||||
(``get_intro_format`` raises when no theme is loaded — that's the fallback path).
|
||||
0 when the theme leaves the title card out (the master starts with the song)."""
|
||||
if not self.config.include_title_screen:
|
||||
return 0.0
|
||||
try:
|
||||
from backend.workers.style_helper import load_style_config
|
||||
import tempfile
|
||||
@@ -1246,6 +1255,12 @@ def create_orchestrator_config_from_job(
|
||||
duet_corrections_json_path = candidate
|
||||
break
|
||||
|
||||
# Screens the theme leaves out (recorded by the screens worker).
|
||||
from backend.workers.style_helper import screen_included
|
||||
|
||||
include_title = screen_included(job.state_data, "title")
|
||||
include_end = screen_included(job.state_data, "end")
|
||||
|
||||
return OrchestratorConfig(
|
||||
worker_generation=capture_generation(job),
|
||||
job_id=job.job_id,
|
||||
@@ -1253,11 +1268,15 @@ def create_orchestrator_config_from_job(
|
||||
title=job.title,
|
||||
|
||||
# Input files — use actual extension from GCS (PNG for new jobs, MOV for legacy)
|
||||
title_video_path=os.path.join(temp_dir, f"{base_name} (Title){_screen_ext(job, 'title')}"),
|
||||
title_video_path=(
|
||||
os.path.join(temp_dir, f"{base_name} (Title){_screen_ext(job, 'title')}") if include_title else None
|
||||
),
|
||||
# Use actual extension from GCS path (typically .mkv) instead of hardcoding .mov
|
||||
karaoke_video_path=os.path.join(temp_dir, f"{base_name} (With Vocals){os.path.splitext(job.file_urls.get('videos', {}).get('with_vocals', '.mkv'))[1] or '.mkv'}"),
|
||||
instrumental_audio_path=instrumental_path,
|
||||
end_video_path=os.path.join(temp_dir, f"{base_name} (End){_screen_ext(job, 'end')}"),
|
||||
end_video_path=os.path.join(temp_dir, f"{base_name} (End){_screen_ext(job, 'end')}") if include_end else None,
|
||||
include_title_screen=include_title,
|
||||
include_end_screen=include_end,
|
||||
lrc_file_path=os.path.join(temp_dir, f"{base_name} (Karaoke).lrc"),
|
||||
title_jpg_path=os.path.join(temp_dir, f"{base_name} (Title).jpg"),
|
||||
|
||||
|
||||
+14
-3
@@ -1385,7 +1385,7 @@ table, then submits each confirmed row through the standard signed-URL upload fl
|
||||
```
|
||||
GET /api/tenant/theme → {theme_id, style_params, images[], fonts[]}
|
||||
POST /api/tenant/theme/assets (multipart `file`) → {name}
|
||||
POST /api/tenant/theme/preview {style_params, sample?: {artist, title, lyrics[]}} → {title_card, karaoke_frame}
|
||||
POST /api/tenant/theme/preview {style_params, sample?: {artist, title, lyrics[]}} → {title_card, karaoke_frame, end_screen}
|
||||
PUT /api/tenant/theme {style_params} → GET fields + {refreshed_jobs, outdated_job_ids[]}
|
||||
GET /api/tenant/theme/outdated-jobs → {theme_updated_at, job_ids[]}
|
||||
POST /api/tenant/theme/rerender-outdated → {started[], failed: {job_id: reason}}
|
||||
@@ -1401,10 +1401,21 @@ re-checks membership (`require_tenant_member`): non-members/spoofed headers →
|
||||
`<stem>-<sha8>.<ext>` under `themes/<id>/assets/` (`no-store`), so they never overwrite an asset
|
||||
existing jobs use.
|
||||
- **Preview** renders the draft with the production renderers (`services/theme_preview_service.py`):
|
||||
title card via `VideoGenerator.create_title_video(duration=0)`, karaoke frame via
|
||||
title card via `VideoGenerator.create_title_video(duration=0)`, end screen via
|
||||
`VideoGenerator.create_end_video(duration=0)`, karaoke frame via
|
||||
`SegmentResizer` → `SubtitlesGenerator.generate_ass` → one ffmpeg frame (same `ass` filter/background
|
||||
as the real render) with the first line half-sung. Returns 1280×720 JPEG data URLs (~2 s; ≤2
|
||||
concurrent; identical drafts cached). 400 invalid draft, 422 render failure, 504 timeout.
|
||||
concurrent; identical drafts cached). A screen the theme leaves out is `null`. 400 invalid draft,
|
||||
422 render failure, 504 timeout.
|
||||
- **Leaving out the title card / end screen**: `intro.enabled` / `end.enabled` (optional bool, absent
|
||||
= included; deliberately not in `DEFAULT_INTRO_STYLE`/`DEFAULT_END_STYLE`, which double as the
|
||||
required-field lists). Read via `style_loader.screen_enabled`. The screens worker skips an omitted
|
||||
screen and records `state_data.screens_included = {title, end}`; the render prerequisites, `/retry`
|
||||
ladder (`_has_title_screen`), orchestrator and encoding config read that marker. The GCE encoder gets
|
||||
explicit `include_title_screen` / `include_end_screen` = false (its loose `*title*.png` /
|
||||
`*end*.png` globs would otherwise rebuild an omitted screen from `style/*_background.png`), and
|
||||
`LocalEncodingService.encode_lossless_mp4` / the portrait renderer concat only the included segments.
|
||||
No `(Title).mov` / `(End).mov` is delivered and the original-vocals guide gets no intro offset.
|
||||
- **Save** applies to new jobs **and to the tenant's tracks that haven't started rendering**
|
||||
(`services/theme_change_service.py`). Each such job's style snapshot is replaced
|
||||
(`theme_applied_at` set). Jobs whose screens may already exist (`generating_screens` →
|
||||
|
||||
@@ -83,6 +83,7 @@
|
||||
- Lyrics review Waveforms toggle: shows a spinner and tooltip while audio separation is still producing the vocal stem (the peaks endpoint returns 202). Previously the rows were just empty (`VocalsAudioDataLoaderContext.status`).
|
||||
- **Translated lyrics: Japanese/Chinese translations no longer split mid-word** (2026-10-01, v0.260.1): when a long lyric line is split across rows, its translation is shared between them. Unspaced scripts were cut at an arbitrary character, so prod job ca2e881a showed 無|駄 ("waste") across two rows. `split_text_proportionally` now prefers punctuation, then a break after a Japanese particle or before a kanji/katakana word start, and only cuts mid-word as a last resort; it no longer leaves a piece empty when there are enough characters. Thai can still split inside a word (no word-boundary data).
|
||||
- **Translated lyrics for language learners** (2026-10-01, v0.260.0): an "Add translated lyrics" option at job creation (any job, free for now) with a language picker (33 UI locales) and a live preview of the real video frame (`GET /api/themes/translation-preview`). After review, the render worker translates the final lyrics line by line with Gemini (`backend/services/lyrics_translation.py`, GCS-cached so re-renders are free) into `lyrics/translations.json`; the landscape and portrait videos draw each translation in smaller unsung-colour text beneath its line, 3 lines per screen (`ass/config.py:translation_layout`, `LyricsLine._create_translation_event`). Translations are their own ASS events with auto paragraph direction, so mixed scripts work (a Hebrew song keeps its right-to-left highlight with an English translation beneath, and vice versa); long translations wrap/scale to fit; a line split by the resizer shares its translation across the pieces. Not editable; a translation failure renders without it (`state_data.lyrics_translation`). See [archive/2026-10-01-translated-lyrics-plan.md](archive/2026-10-01-translated-lyrics-plan.md).
|
||||
- **End screen fully editable + previewed; title card / end screen can be left out** (2026-10-08, v0.268.0): Randy Vild reported "large text at the end even though I have in my settings smaller text like in my beginning". The theme editor's sizes/positions only edited `intro.*`; the end screen keeps its own `end.*` layout (title/artist regions, artist colour, capitals), and the editor neither showed it nor previewed it. The End screen tab now has its own colours, size/position sliders, show/hide for the song title and artist name, capitals toggles, and **Copy title card layout** (matches the title card and moves the closing message above the title so nothing overlaps). The preview renders the real end screen (`create_end_video`). Both tabs have an "Include …" switch (`intro.enabled` / `end.enabled`); leaving a screen out flows through the screens worker, `/retry`, the orchestrator, the GCE encoder, `LocalEncodingService` and the portrait render (see [API.md](API.md#tenant-theme-editor-tenant-users)).
|
||||
- **Theme edits reach tracks in progress; outdated finished tracks get a re-render prompt** (2026-10-06, v0.267.0): Randy Vild edited his theme and the next video still had the old title card. Its job had copied the theme at creation, 30 minutes before the edit, and was waiting for encoding capacity when he saved. A theme save now re-applies the theme to every tenant track that hasn't started rendering. If a track's screens were already made, the render worker regenerates them first, at render time, so nobody is interrupted mid-review. Editing a finished tenant track also picks up the current theme. After saving, the theme editor lists finished tracks that still have the old look and offers a quiet **Re-render all N** (no per-track emails). Those tracks' cards show an "Older theme" badge. Admins no longer see two identical Re-render buttons on portal tracks (`backend/services/theme_change_service.py`).
|
||||
- **Re-render works for tenants that archive to Dropbox** (2026-09-30, v0.254.1): randy-vild jobs get a brand code and a Dropbox archive folder (`RVILD-0001 - …`), so v0.253.0's "never distributed" guard rejected the very jobs the button was for. A re-render now reuses the job's brand code and overwrites the same folder instead of allocating a new code. YouTube/GDrive-published jobs are still rejected.
|
||||
- **Tenant "Re-render" with the current theme + edited tenant tracks no longer lose their downloads** (2026-09-30, v0.253.0): Finished portal tracks have a **Re-render** button (`POST /api/jobs/{id}/rerender`). It re-applies the tenant's current theme and rebuilds the screens, lyrics video, encodes and CDG/TXT from the already-reviewed lyrics, with no review step (`backend/services/theme_rerender_service.py`, same mechanism as the private→public visibility change). The encoding worker caches finished jobs by id in memory, so a re-run submitted while the VM was still up could get the previous render back. Render and encode now submit as `{job_id}_g{worker_generation}` (`encoding_worker_job_id`). Separately, `outputs_deleted_at` (set by Edit) was only cleared when the re-render uploaded to YouTube/Dropbox/GDrive, so edited tenant jobs re-rendered but hid every download (job 2579a1ea). Every successful render now clears it.
|
||||
|
||||
@@ -14,11 +14,15 @@ import { tenantThemeApi, type ThemePreviewImages, type ThemeStyleParams } from "
|
||||
import { useTenant } from "@/lib/tenant"
|
||||
import { clearOutdatedThemeJobs, setOutdatedThemeJobs } from "@/lib/tenant-theme-outdated"
|
||||
import {
|
||||
KARAOKE_DEFAULTS, formatRegion, getField, hexToRgba, parseRegion, rgbaToHex, setField, stableStringify,
|
||||
KARAOKE_DEFAULTS, copyTitleCardLayoutToEnd, formatRegion, getField, hexToRgba, parseRegion, rgbaToHex, setField, stableStringify,
|
||||
type Region,
|
||||
} from "./theme-utils"
|
||||
|
||||
const PREVIEW_DEBOUNCE_MS = 700
|
||||
// End-screen text positions used when a theme has none (matches the stock end screen).
|
||||
const END_EXTRA_FALLBACK: Region = { x: 370, y: 400, w: 3100, h: 400 }
|
||||
const END_TITLE_FALLBACK: Region = { x: 370, y: 900, w: 3100, h: 350 }
|
||||
const END_ARTIST_FALLBACK: Region = { x: 370, y: 1450, w: 3100, h: 200 }
|
||||
const selectClass =
|
||||
"h-9 w-full rounded-md border border-input bg-transparent px-2 text-sm focus:outline-none focus:ring-1 focus:ring-ring"
|
||||
|
||||
@@ -320,6 +324,36 @@ export function TenantThemeEditorDialog({ open, onClose }: Props) {
|
||||
)
|
||||
}
|
||||
|
||||
// A text item on the end screen is hidden when its region is null.
|
||||
const regionToggle = (field: "title_region" | "artist_region", label: string, fallback: Region) => (
|
||||
<label className="flex items-center gap-2 text-sm">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={!!getField(draft!, "end", field)}
|
||||
onChange={(e) => update("end", field, e.target.checked ? formatRegion(parseRegion(getField(draft!, "intro", field), fallback)) : null)}
|
||||
/>
|
||||
{label}
|
||||
</label>
|
||||
)
|
||||
|
||||
// Absent = included (older themes have no "enabled" key).
|
||||
const screenToggle = (section: "intro" | "end", label: string) => (
|
||||
<label className="flex items-center gap-2 rounded-md border p-3 text-sm font-medium">
|
||||
<input
|
||||
type="checkbox"
|
||||
data-testid={`${section}-enabled`}
|
||||
checked={getField(draft!, section, "enabled") !== false}
|
||||
onChange={(e) => update(section, "enabled", e.target.checked)}
|
||||
/>
|
||||
{label}
|
||||
</label>
|
||||
)
|
||||
|
||||
// The end screen's song title / artist name take the title card's look.
|
||||
const copyTitleCardLayout = () => {
|
||||
setDraft((d) => (d ? copyTitleCardLayoutToEnd(d, END_EXTRA_FALLBACK) : d))
|
||||
}
|
||||
|
||||
const upperToggle = (section: "intro" | "end", field: string, label: string) => (
|
||||
<label className="flex items-center gap-2 text-sm">
|
||||
<input
|
||||
@@ -377,6 +411,15 @@ export function TenantThemeEditorDialog({ open, onClose }: Props) {
|
||||
|
||||
const tabs: Tab[] = ["titleCard", "karaoke", "endScreen", "advanced"]
|
||||
|
||||
// The screen being edited, then the lyrics frame (Advanced shows all three).
|
||||
type PreviewKind = "title_card" | "karaoke_frame" | "end_screen"
|
||||
const previewKinds: PreviewKind[] =
|
||||
tab === "endScreen" ? ["end_screen", "karaoke_frame"]
|
||||
: tab === "advanced" ? ["title_card", "karaoke_frame", "end_screen"]
|
||||
: ["title_card", "karaoke_frame"]
|
||||
const previewLabel = (kind: PreviewKind) =>
|
||||
kind === "title_card" ? t("previewTitleCard") : kind === "end_screen" ? t("previewEndScreen") : t("previewKaraoke")
|
||||
|
||||
return (
|
||||
<Dialog open={open} onOpenChange={(o) => { if (!o) handleClose() }}>
|
||||
<DialogContent className="max-w-6xl max-h-[92vh] overflow-y-auto" data-testid="tenant-theme-editor">
|
||||
@@ -412,20 +455,27 @@ export function TenantThemeEditorDialog({ open, onClose }: Props) {
|
||||
|
||||
{tab === "titleCard" && (
|
||||
<div className="space-y-4">
|
||||
{bgField("intro")}
|
||||
<div className="grid grid-cols-2 gap-3">
|
||||
<ColorInput id="intro-title-colour" label={t("titleColour")} value={getField<string>(draft!, "intro", "title_color") || "#ffffff"}
|
||||
onChange={(v) => update("intro", "title_color", v)} />
|
||||
<ColorInput id="intro-artist-colour" label={t("artistColour")} value={getField<string>(draft!, "intro", "artist_color") || "#ffdf6b"}
|
||||
onChange={(v) => update("intro", "artist_color", v)} />
|
||||
</div>
|
||||
{regionSliders("intro", "title_region", t("songTitle"), { x: 370, y: 980, w: 3100, h: 350 })}
|
||||
{regionSliders("intro", "artist_region", t("artistName"), { x: 370, y: 1400, w: 3100, h: 450 })}
|
||||
<div className="flex flex-wrap gap-4">
|
||||
{upperToggle("intro", "title_text_transform", t("uppercaseTitle"))}
|
||||
{upperToggle("intro", "artist_text_transform", t("uppercaseArtist"))}
|
||||
</div>
|
||||
{fontField()}
|
||||
{screenToggle("intro", t("includeTitleCard"))}
|
||||
{getField(draft!, "intro", "enabled") === false ? (
|
||||
<p className="text-sm text-muted-foreground">{t("titleCardOff")}</p>
|
||||
) : (
|
||||
<>
|
||||
{bgField("intro")}
|
||||
<div className="grid grid-cols-2 gap-3">
|
||||
<ColorInput id="intro-title-colour" label={t("titleColour")} value={getField<string>(draft!, "intro", "title_color") || "#ffffff"}
|
||||
onChange={(v) => update("intro", "title_color", v)} />
|
||||
<ColorInput id="intro-artist-colour" label={t("artistColour")} value={getField<string>(draft!, "intro", "artist_color") || "#ffdf6b"}
|
||||
onChange={(v) => update("intro", "artist_color", v)} />
|
||||
</div>
|
||||
{regionSliders("intro", "title_region", t("songTitle"), { x: 370, y: 980, w: 3100, h: 350 })}
|
||||
{regionSliders("intro", "artist_region", t("artistName"), { x: 370, y: 1400, w: 3100, h: 450 })}
|
||||
<div className="flex flex-wrap gap-4">
|
||||
{upperToggle("intro", "title_text_transform", t("uppercaseTitle"))}
|
||||
{upperToggle("intro", "artist_text_transform", t("uppercaseArtist"))}
|
||||
</div>
|
||||
{fontField()}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -452,19 +502,55 @@ export function TenantThemeEditorDialog({ open, onClose }: Props) {
|
||||
|
||||
{tab === "endScreen" && (
|
||||
<div className="space-y-4">
|
||||
{bgField("end")}
|
||||
<div className="space-y-1">
|
||||
<Label htmlFor="end-extra-text">{t("closingMessage")}</Label>
|
||||
<Input id="end-extra-text" value={getField<string>(draft!, "end", "extra_text") || ""}
|
||||
onChange={(e) => update("end", "extra_text", e.target.value || null)} />
|
||||
</div>
|
||||
<div className="grid grid-cols-2 gap-3">
|
||||
<ColorInput id="end-extra-colour" label={t("closingMessageColour")} value={getField<string>(draft!, "end", "extra_text_color") || "#ffffff"}
|
||||
onChange={(v) => update("end", "extra_text_color", v)} />
|
||||
<ColorInput id="end-title-colour" label={t("titleColour")} value={getField<string>(draft!, "end", "title_color") || "#ffffff"}
|
||||
onChange={(v) => update("end", "title_color", v)} />
|
||||
</div>
|
||||
<p className="text-xs text-muted-foreground">{t("endScreenHint")}</p>
|
||||
{screenToggle("end", t("includeEndScreen"))}
|
||||
{getField(draft!, "end", "enabled") === false ? (
|
||||
<p className="text-sm text-muted-foreground">{t("endScreenOff")}</p>
|
||||
) : (
|
||||
<>
|
||||
{bgField("end")}
|
||||
<div className="space-y-1">
|
||||
<Label htmlFor="end-extra-text">{t("closingMessage")}</Label>
|
||||
<Input id="end-extra-text" value={getField<string>(draft!, "end", "extra_text") || ""}
|
||||
onChange={(e) => {
|
||||
update("end", "extra_text", e.target.value || null)
|
||||
// The renderer skips text without a region — give a new message one.
|
||||
if (e.target.value && !getField(draft!, "end", "extra_text_region")) {
|
||||
update("end", "extra_text_region", formatRegion(END_EXTRA_FALLBACK))
|
||||
}
|
||||
}} />
|
||||
</div>
|
||||
{!!getField(draft!, "end", "extra_text") && (
|
||||
<>
|
||||
<ColorInput id="end-extra-colour" label={t("closingMessageColour")} value={getField<string>(draft!, "end", "extra_text_color") || "#ffffff"}
|
||||
onChange={(v) => update("end", "extra_text_color", v)} />
|
||||
{regionSliders("end", "extra_text_region", t("closingMessage"), END_EXTRA_FALLBACK)}
|
||||
</>
|
||||
)}
|
||||
<div className="flex flex-wrap items-center justify-between gap-2 rounded-md border p-3">
|
||||
<p className="text-xs text-muted-foreground">{t("copyTitleCardLayoutHint")}</p>
|
||||
<Button size="sm" variant="secondary" onClick={copyTitleCardLayout} data-testid="end-copy-title-layout">
|
||||
{t("copyTitleCardLayout")}
|
||||
</Button>
|
||||
</div>
|
||||
<div className="grid grid-cols-2 gap-3">
|
||||
<ColorInput id="end-title-colour" label={t("titleColour")} value={getField<string>(draft!, "end", "title_color") || "#ffffff"}
|
||||
onChange={(v) => update("end", "title_color", v)} />
|
||||
<ColorInput id="end-artist-colour" label={t("artistColour")} value={getField<string>(draft!, "end", "artist_color") || "#ffdf6b"}
|
||||
onChange={(v) => update("end", "artist_color", v)} />
|
||||
</div>
|
||||
{regionToggle("title_region", t("showSongTitle"), END_TITLE_FALLBACK)}
|
||||
{!!getField(draft!, "end", "title_region") &&
|
||||
regionSliders("end", "title_region", t("songTitle"), END_TITLE_FALLBACK)}
|
||||
{regionToggle("artist_region", t("showArtistName"), END_ARTIST_FALLBACK)}
|
||||
{!!getField(draft!, "end", "artist_region") &&
|
||||
regionSliders("end", "artist_region", t("artistName"), END_ARTIST_FALLBACK)}
|
||||
<div className="flex flex-wrap gap-4">
|
||||
{upperToggle("end", "title_text_transform", t("uppercaseTitle"))}
|
||||
{upperToggle("end", "artist_text_transform", t("uppercaseArtist"))}
|
||||
</div>
|
||||
<p className="text-xs text-muted-foreground">{t("endScreenFontHint")}</p>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -496,16 +582,18 @@ export function TenantThemeEditorDialog({ open, onClose }: Props) {
|
||||
<Input id="sample-title" value={sampleTitle} onChange={(e) => setSampleTitle(e.target.value)} />
|
||||
</div>
|
||||
</div>
|
||||
{(["title_card", "karaoke_frame"] as const).map((kind) => (
|
||||
{previewKinds.map((kind) => (
|
||||
<figure key={kind} className="space-y-1">
|
||||
<figcaption className="text-xs font-medium text-muted-foreground">
|
||||
{kind === "title_card" ? t("previewTitleCard") : t("previewKaraoke")}
|
||||
</figcaption>
|
||||
<figcaption className="text-xs font-medium text-muted-foreground">{previewLabel(kind)}</figcaption>
|
||||
<div className="relative aspect-video overflow-hidden rounded-md border bg-black">
|
||||
{preview?.[kind] && (
|
||||
{preview?.[kind] ? (
|
||||
// eslint-disable-next-line @next/next/no-img-element
|
||||
<img src={preview[kind]} alt={kind === "title_card" ? t("previewTitleCard") : t("previewKaraoke")}
|
||||
<img src={preview[kind]!} alt={previewLabel(kind)}
|
||||
data-testid={`preview-${kind}`} className="h-full w-full object-contain" />
|
||||
) : preview && kind !== "karaoke_frame" && !previewing && (
|
||||
<div className="flex h-full items-center justify-center text-sm text-muted-foreground" data-testid={`preview-${kind}-omitted`}>
|
||||
{t("screenOmitted")}
|
||||
</div>
|
||||
)}
|
||||
{previewing && (
|
||||
<div className="absolute inset-0 flex items-center justify-center bg-black/40">
|
||||
|
||||
@@ -234,3 +234,103 @@ it("offers the tracks beyond the server's per-call cap again", async () => {
|
||||
expect(screen.getByTestId("theme-rerender-started")).toHaveTextContent("rerenderAllStarted(3)")
|
||||
expect(screen.queryByTestId("theme-rerender-all")).not.toBeInTheDocument()
|
||||
})
|
||||
|
||||
describe("end screen", () => {
|
||||
const END_IMAGES = { ...IMAGES, end_screen: "data:image/jpeg;base64,CCC" }
|
||||
|
||||
async function openEndTab() {
|
||||
preview.mockResolvedValue(END_IMAGES)
|
||||
await openEditor()
|
||||
fireEvent.click(screen.getByRole("tab", { name: "tabs.endScreen" }))
|
||||
await flushPreview()
|
||||
}
|
||||
|
||||
function advancedJson() {
|
||||
fireEvent.click(screen.getByRole("tab", { name: "tabs.advanced" }))
|
||||
return JSON.parse((screen.getByLabelText("advancedJson") as HTMLTextAreaElement).value)
|
||||
}
|
||||
|
||||
it("previews the end screen (instead of the title card) on its tab", async () => {
|
||||
await openEndTab()
|
||||
expect(await screen.findByTestId("preview-end_screen")).toHaveAttribute("src", END_IMAGES.end_screen)
|
||||
expect(screen.queryByTestId("preview-title_card")).toBeNull()
|
||||
expect(screen.getByTestId("preview-karaoke_frame")).toBeInTheDocument()
|
||||
})
|
||||
|
||||
it("copies the title card's layout onto the end screen (smaller text like the title card)", async () => {
|
||||
await openEndTab()
|
||||
fireEvent.click(screen.getByTestId("end-copy-title-layout"))
|
||||
const json = advancedJson()
|
||||
expect(json.end).toMatchObject({
|
||||
title_region: THEME.intro.title_region,
|
||||
artist_region: THEME.intro.artist_region,
|
||||
title_color: "#ffffff",
|
||||
artist_color: "#ffdf6b",
|
||||
title_text_transform: null,
|
||||
artist_text_transform: null,
|
||||
})
|
||||
expect(json.end.extra_text).toBe("THANK YOU FOR SINGING!") // message text untouched
|
||||
expect(json.end.extra_text_region).toBe("370,570,3100,350") // moved just above the song title
|
||||
})
|
||||
|
||||
it("end-screen sliders edit the end section, not the title card", async () => {
|
||||
await openEndTab()
|
||||
fireEvent.click(screen.getByLabelText("showSongTitle"))
|
||||
fireEvent.change(screen.getByLabelText("textSize(songTitle)"), { target: { value: "200" } })
|
||||
fireEvent.change(screen.getByLabelText("textSize(closingMessage)"), { target: { value: "250" } })
|
||||
const json = advancedJson()
|
||||
expect(json.end.title_region).toBe("370,980,3100,200") // turned on from the title card's position
|
||||
expect(json.end.extra_text_region).toBe("370,400,3100,250")
|
||||
expect(json.intro.title_region).toBe(THEME.intro.title_region)
|
||||
})
|
||||
|
||||
it("hiding the song title clears its end-screen region", async () => {
|
||||
preview.mockResolvedValue(END_IMAGES)
|
||||
get.mockResolvedValue({ ...DATA, style_params: { ...THEME, end: { ...THEME.end, title_region: "370,900,3100,350" } } })
|
||||
await openEditor()
|
||||
fireEvent.click(screen.getByRole("tab", { name: "tabs.endScreen" }))
|
||||
expect(screen.getByLabelText("textSize(songTitle)")).toBeInTheDocument()
|
||||
fireEvent.click(screen.getByLabelText("showSongTitle"))
|
||||
expect(screen.queryByLabelText("textSize(songTitle)")).toBeNull()
|
||||
expect(advancedJson().end.title_region).toBeNull()
|
||||
})
|
||||
|
||||
it("a new closing message gets a region so it actually renders", async () => {
|
||||
get.mockResolvedValue({ ...DATA, style_params: { ...THEME, end: { extra_text: null } } })
|
||||
await openEndTab()
|
||||
fireEvent.change(screen.getByLabelText("closingMessage"), { target: { value: "BYE" } })
|
||||
expect(advancedJson().end).toMatchObject({ extra_text: "BYE", extra_text_region: "370,400,3100,400" })
|
||||
})
|
||||
})
|
||||
|
||||
describe("leaving out the title card / end screen", () => {
|
||||
it("unticking the end screen saves enabled=false and shows it as not included", async () => {
|
||||
await openEditor()
|
||||
fireEvent.click(screen.getByRole("tab", { name: "tabs.endScreen" }))
|
||||
preview.mockResolvedValue({ ...IMAGES, end_screen: null })
|
||||
fireEvent.click(screen.getByTestId("end-enabled"))
|
||||
expect(screen.getByText("endScreenOff")).toBeInTheDocument()
|
||||
expect(screen.queryByLabelText("closingMessage")).toBeNull()
|
||||
await flushPreview()
|
||||
await waitFor(() => expect(preview.mock.calls.at(-1)[0].end.enabled).toBe(false))
|
||||
expect(await screen.findByTestId("preview-end_screen-omitted")).toHaveTextContent("screenOmitted")
|
||||
await act(async () => { fireEvent.click(screen.getByRole("button", { name: "save" })) })
|
||||
expect(save.mock.calls[0][0].end.enabled).toBe(false)
|
||||
})
|
||||
|
||||
it("unticking the title card hides its settings; ticking it again restores them", async () => {
|
||||
await openEditor()
|
||||
fireEvent.click(screen.getByTestId("intro-enabled"))
|
||||
expect(screen.getByText("titleCardOff")).toBeInTheDocument()
|
||||
expect(screen.queryByLabelText("positionFromTop(songTitle)")).toBeNull()
|
||||
fireEvent.click(screen.getByTestId("intro-enabled"))
|
||||
expect(screen.getByLabelText("positionFromTop(songTitle)")).toBeInTheDocument()
|
||||
})
|
||||
|
||||
it("treats a theme without an enabled key as including both screens", async () => {
|
||||
await openEditor()
|
||||
expect(screen.getByTestId("intro-enabled")).toBeChecked()
|
||||
fireEvent.click(screen.getByRole("tab", { name: "tabs.endScreen" }))
|
||||
expect(screen.getByTestId("end-enabled")).toBeChecked()
|
||||
})
|
||||
})
|
||||
@@ -1,4 +1,4 @@
|
||||
import { formatRegion, getField, hexToRgba, parseRegion, rgbaToHex, setField, stableStringify } from "../theme-utils"
|
||||
import { copyTitleCardLayoutToEnd, formatRegion, getField, hexToRgba, parseRegion, rgbaToHex, setField, stableStringify } from "../theme-utils"
|
||||
|
||||
describe("theme-utils", () => {
|
||||
it("converts between hex and karaoke 'r, g, b, a' keeping alpha", () => {
|
||||
@@ -25,3 +25,42 @@ describe("theme-utils", () => {
|
||||
expect(stableStringify({ b: 1, a: [1, { d: 2, c: 3 }] })).toBe(stableStringify({ a: [1, { c: 3, d: 2 }], b: 1 }))
|
||||
})
|
||||
})
|
||||
|
||||
describe("copyTitleCardLayoutToEnd", () => {
|
||||
const FALLBACK = { x: 370, y: 400, w: 3100, h: 400 }
|
||||
// Randy Vild's theme: small title card text, stock (large) end screen.
|
||||
const randy = {
|
||||
intro: {
|
||||
title_color: "#ffffff", artist_color: "#5093ce", title_text_transform: "uppercase", artist_text_transform: null,
|
||||
title_region: "370,620,3100,200", artist_region: "370,880,3100,200",
|
||||
},
|
||||
end: {
|
||||
title_color: "#ffffff", artist_color: "#ffdf6b", title_text_transform: "uppercase", artist_text_transform: "uppercase",
|
||||
title_region: "370,900,3100,350", artist_region: "370,1450,3100,200",
|
||||
extra_text: "THANK YOU FOR SINGING!", extra_text_region: "370,400,3100,400", extra_text_color: "#ff7acc",
|
||||
},
|
||||
}
|
||||
|
||||
it("matches the title card and puts the closing message just above the title at the same size", () => {
|
||||
const end = copyTitleCardLayoutToEnd(randy, FALLBACK).end
|
||||
expect(end).toMatchObject({
|
||||
title_region: "370,620,3100,200", artist_region: "370,880,3100,200",
|
||||
artist_color: "#5093ce", artist_text_transform: null, title_text_transform: "uppercase",
|
||||
extra_text_region: "370,360,3100,200", extra_text: "THANK YOU FOR SINGING!", extra_text_color: "#ff7acc",
|
||||
})
|
||||
})
|
||||
|
||||
it("puts the closing message below the artist when there's no room above the title", () => {
|
||||
const top = { ...randy, intro: { ...randy.intro, title_region: "370,100,3100,200", artist_region: "370,350,3100,200" } }
|
||||
expect(copyTitleCardLayoutToEnd(top, FALLBACK).end.extra_text_region).toBe("370,610,3100,200")
|
||||
})
|
||||
|
||||
it("leaves the closing message alone when there is none or the title is hidden", () => {
|
||||
const noMessage = { ...randy, end: { ...randy.end, extra_text: null } }
|
||||
expect(copyTitleCardLayoutToEnd(noMessage, FALLBACK).end.extra_text_region).toBe("370,400,3100,400")
|
||||
const noTitle = { ...randy, intro: { ...randy.intro, title_region: undefined } }
|
||||
const end = copyTitleCardLayoutToEnd(noTitle, FALLBACK).end
|
||||
expect(end.title_region).toBeNull()
|
||||
expect(end.extra_text_region).toBe("370,400,3100,400")
|
||||
})
|
||||
})
|
||||
@@ -73,3 +73,32 @@ export function stableStringify(value: unknown): string {
|
||||
}
|
||||
return JSON.stringify(value)
|
||||
}
|
||||
|
||||
/** Fields "Copy title card layout" takes from the title card for the end screen. */
|
||||
const TITLE_CARD_LAYOUT_FIELDS = [
|
||||
"title_color", "artist_color", "title_region", "artist_region", "title_text_transform", "artist_text_transform",
|
||||
] as const
|
||||
const END_TEXT_GAP = 60
|
||||
|
||||
/**
|
||||
* Give the end screen's song title / artist name the title card's look, and move the
|
||||
* closing message (at the same text size, at most) so it doesn't overlap them:
|
||||
* just above the song title, or below the artist name if there's no room above.
|
||||
*/
|
||||
export function copyTitleCardLayoutToEnd(styles: ThemeStyleParams, extraFallback: Region): ThemeStyleParams {
|
||||
let next = styles
|
||||
for (const field of TITLE_CARD_LAYOUT_FIELDS) {
|
||||
next = setField(next, "end", field, getField(styles, "intro", field) ?? null)
|
||||
}
|
||||
const titleRaw = getField(next, "end", "title_region")
|
||||
if (!getField(next, "end", "extra_text") || typeof titleRaw !== "string") return next
|
||||
|
||||
const none: Region = { x: 0, y: 0, w: 0, h: 0 }
|
||||
const title = parseRegion(titleRaw, none)
|
||||
const artist = parseRegion(getField(next, "end", "artist_region"), none)
|
||||
const extra = parseRegion(getField(next, "end", "extra_text_region"), extraFallback)
|
||||
const h = Math.min(extra.h, title.h || extra.h)
|
||||
let y = title.y - h - END_TEXT_GAP
|
||||
if (y < 0) y = Math.max(title.y + title.h, artist.y + artist.h) + END_TEXT_GAP
|
||||
return setField(next, "end", "extra_text_region", formatRegion({ ...extra, y, h }))
|
||||
}
|
||||
+3
-1
@@ -2776,8 +2776,10 @@ export interface ThemePreviewSample {
|
||||
}
|
||||
|
||||
export interface ThemePreviewImages {
|
||||
title_card: string // data:image/jpeg;base64,...
|
||||
// data:image/jpeg;base64,... — null for a screen the theme leaves out of videos
|
||||
title_card: string | null
|
||||
karaoke_frame: string
|
||||
end_screen: string | null
|
||||
}
|
||||
|
||||
export const tenantThemeApi = {
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "خصّص مظهر مقاطع فيديو الكاريوكي الخاصة بك. تظهر المعاينات على اليمين تماماً كما ستكون في مقاطع الفيديو النهائية.",
|
||||
"discard": "تجاهل التغييرات",
|
||||
"discardConfirm": "لديك تغييرات غير محفوظة في السمة. هل تريد الإغلاق دون حفظ؟",
|
||||
"endScreenHint": "لا تتوفر معاينة لشاشة النهاية؛ فهي تستخدم نفس الخط ونمط التنسيق المستخدمين في بطاقة العنوان.",
|
||||
"font": "الخط",
|
||||
"fontHint": "يُستخدم خط واحد لبطاقة العنوان والكلمات وشاشة النهاية.",
|
||||
"jsonInvalid": "صيغة JSON غير صالحة",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, zero {تمت إعادة معالجة جميع الفيديوهات بنجاح} one {تعذرت إعادة معالجة فيديو واحد} two {تعذرت إعادة معالجة فيديوهين} few {تعذرت إعادة معالجة # مقاطع فيديو} many {تعذرت إعادة معالجة # مقطع فيديو} other {تعذرت إعادة معالجة # مقطع فيديو}}",
|
||||
"rerenderAllStarted": "{count, plural, zero {جارٍ إعادة معالجة الفيديوهات بسمتك الجديدة.} one {جارٍ إعادة معالجة فيديو واحد بسمتك الجديدة. يستغرق الأمر من 10 إلى 15 دقيقة تقريبًا؛ يمكنك متابعة تقدمه من المسار.} two {جارٍ إعادة معالجة فيديوهين بسمتك الجديدة. يستغرق كل منهما من 10 إلى 15 دقيقة تقريبًا؛ يمكنك متابعة تقدمهما من كل مسار.} few {جارٍ إعادة معالجة # مقاطع فيديو بسمتك الجديدة. يستغرق كل منها من 10 إلى 15 دقيقة تقريبًا؛ يمكنك متابعة تقدمها من كل مسار.} many {جارٍ إعادة معالجة # مقطع فيديو بسمتك الجديدة. يستغرق كل منها من 10 إلى 15 دقيقة تقريبًا؛ يمكنك متابعة تقدمها من كل مسار.} other {جارٍ إعادة معالجة # مقطع فيديو بسمتك الجديدة. يستغرق كل منها من 10 إلى 15 دقيقة تقريبًا؛ يمكنك متابعة تقدمها من كل مسار.}}",
|
||||
"rerenderAllStarting": "جارٍ البدء…",
|
||||
"savedBodyInProgress": "ستستخدم مقاطع الفيديو الجديدة، وكذلك المقاطع التي لا تزال قيد الإنشاء، سمتك المحدّثة."
|
||||
"savedBodyInProgress": "ستستخدم مقاطع الفيديو الجديدة، وكذلك المقاطع التي لا تزال قيد الإنشاء، سمتك المحدّثة.",
|
||||
"copyTitleCardLayout": "نسخ تنسيق بطاقة العنوان",
|
||||
"copyTitleCardLayoutHint": "تطبيق نفس الحجم والموضع والألوان وحالة الأحرف لعنوان الأغنية واسم الفنان كما في بطاقة العنوان لديك.",
|
||||
"endScreenFontHint": "تستخدم شاشة النهاية نفس خط بطاقة العنوان (يمكنك تغييره من علامة تبويب \"بطاقة العنوان\").",
|
||||
"endScreenOff": "ستنتهي مقاطع الفيديو عند انتهاء الأغنية.",
|
||||
"includeEndScreen": "تضمين شاشة نهاية في ختام كل مقطع فيديو",
|
||||
"includeTitleCard": "تضمين بطاقة عنوان في بداية كل مقطع فيديو",
|
||||
"previewEndScreen": "معاينة شاشة النهاية",
|
||||
"screenOmitted": "غير مُدرجة في مقاطع الفيديو الخاصة بك",
|
||||
"showArtistName": "إظهار اسم الفنان",
|
||||
"showSongTitle": "إظهار عنوان الأغنية",
|
||||
"titleCardOff": "ستبدأ مقاطع الفيديو مباشرةً مع فيديو كلمات الأغنية."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "يُرجى المحاولة مرة أخرى بعد قليل.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Personalitza l'aparença dels teus vídeos de karaoke. Les previsualitzacions de la dreta es renderitzen exactament com els teus vídeos acabats.",
|
||||
"discard": "Descarta els canvis",
|
||||
"discardConfirm": "Tens canvis al tema sense desar. Vols tancar sense desar?",
|
||||
"endScreenHint": "La pantalla final no es previsualitza; utilitza la mateixa font i estil de disseny que la targeta de títol.",
|
||||
"font": "Font",
|
||||
"fontHint": "S'utilitza una sola font per a la targeta de títol, la lletra i la pantalla final.",
|
||||
"jsonInvalid": "JSON no vàlid",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {No s'ha pogut tornar a renderitzar # vídeo} other {No s'han pogut tornar a renderitzar # vídeos}}",
|
||||
"rerenderAllStarted": "{count, plural, one {S'està tornant a renderitzar # vídeo amb el teu tema nou. Triga uns 10-15 minuts; en pots seguir el progrés a la cançó.} other {S'estan tornant a renderitzar # vídeos amb el teu tema nou. Cadascun triga uns 10-15 minuts; en pots seguir el progrés a cada cançó.}}",
|
||||
"rerenderAllStarting": "S'està iniciant…",
|
||||
"savedBodyInProgress": "Els vídeos nous i els vídeos que encara s'estan fent utilitzaran el teu tema actualitzat."
|
||||
"savedBodyInProgress": "Els vídeos nous i els vídeos que encara s'estan fent utilitzaran el teu tema actualitzat.",
|
||||
"copyTitleCardLayout": "Copia el disseny de la targeta de títol",
|
||||
"copyTitleCardLayoutHint": "Posa aquí el títol de la cançó i el nom de l'artista amb la mateixa mida, posició, colors i majúscules que a la teva targeta de títol.",
|
||||
"endScreenFontHint": "La pantalla final utilitza el mateix tipus de lletra que la targeta de títol (canvia'l a la pestanya Targeta de títol).",
|
||||
"endScreenOff": "Els vídeos s'acabaran quan s'acabi la cançó.",
|
||||
"includeEndScreen": "Inclou una pantalla final al final de cada vídeo",
|
||||
"includeTitleCard": "Inclou una targeta de títol a l'inici de cada vídeo",
|
||||
"previewEndScreen": "Previsualització de la pantalla final",
|
||||
"screenOmitted": "No s'inclou als teus vídeos",
|
||||
"showArtistName": "Mostra el nom de l'artista",
|
||||
"showSongTitle": "Mostra el títol de la cançó",
|
||||
"titleCardOff": "Els vídeos començaran directament amb el vídeo amb la lletra."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Torna-ho a provar d'aquí a un moment.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Přizpůsob si vzhled svých karaoke videí. Náhledy vpravo se vykreslují přesně tak, jak budou vypadat tvá hotová videa.",
|
||||
"discard": "Zahodit změny",
|
||||
"discardConfirm": "Máš neuložené změny motivu. Zavřít bez uložení?",
|
||||
"endScreenHint": "Závěrečná obrazovka nemá náhled; používá stejné písmo a styl rozvržení jako úvodní karta.",
|
||||
"font": "Písmo",
|
||||
"fontHint": "Pro úvodní kartu, text písně i závěrečnou obrazovku se používá jedno písmo.",
|
||||
"jsonInvalid": "Neplatný JSON",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {# video se nepodařilo přerenderovat} few {# videa se nepodařilo přerenderovat} other {# videí se nepodařilo přerenderovat}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Přerenderovává se # video s tvým novým motivem. Trvá to asi 10–15 minut; průběh můžeš sledovat u skladby.} few {Přerenderovávají se # videa s tvým novým motivem. Každé trvá asi 10–15 minut; průběh můžeš sledovat u jednotlivých skladeb.} other {Přerenderovává se # videí s tvým novým motivem. Každé trvá asi 10–15 minut; průběh můžeš sledovat u jednotlivých skladeb.}}",
|
||||
"rerenderAllStarting": "Spouští se…",
|
||||
"savedBodyInProgress": "Nová videa a videa, která se právě vytvářejí, použijí tvůj aktualizovaný motiv."
|
||||
"savedBodyInProgress": "Nová videa a videa, která se právě vytvářejí, použijí tvůj aktualizovaný motiv.",
|
||||
"copyTitleCardLayout": "Zkopírovat rozvržení úvodní karty",
|
||||
"copyTitleCardLayoutHint": "Nastav názvu skladby a jménu interpreta stejnou velikost, pozici, barvy a velká písmena jako na úvodní kartě.",
|
||||
"endScreenFontHint": "Závěrečná obrazovka používá stejné písmo jako úvodní karta (můžeš ho změnit na záložce Úvodní karta).",
|
||||
"endScreenOff": "Videa skončí hned, jakmile skončí skladba.",
|
||||
"includeEndScreen": "Přidat závěrečnou obrazovku na konec každého videa",
|
||||
"includeTitleCard": "Přidat úvodní kartu na začátek každého videa",
|
||||
"previewEndScreen": "Náhled závěrečné obrazovky",
|
||||
"screenOmitted": "Není součástí tvých videí",
|
||||
"showArtistName": "Zobrazit jméno interpreta",
|
||||
"showSongTitle": "Zobrazit název skladby",
|
||||
"titleCardOff": "Videa začnou rovnou videem s textem."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Zkus to prosím za chvilku znovu.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Tilpas, hvordan dine karaokevideoer ser ud. Forhåndsvisningerne til højre gengives præcis som dine færdige videoer.",
|
||||
"discard": "Forkast ændringer",
|
||||
"discardConfirm": "Du har ugemte temaændringer. Vil du lukke uden at gemme?",
|
||||
"endScreenHint": "Slutskærmen forhåndsvises ikke; den bruger samme skrifttype og layoutstil som titelkortet.",
|
||||
"font": "Skrifttype",
|
||||
"fontHint": "Én skrifttype bruges til titelkortet, sangteksten og slutskærmen.",
|
||||
"jsonInvalid": "Ugyldig JSON",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {# video kunne ikke genrenderes} other {# videoer kunne ikke genrenderes}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Genrenderer # video med dit nye tema. Det tager ca. 10-15 minutter; du kan følge status på nummeret.} other {Genrenderer # videoer med dit nye tema. Hver video tager ca. 10-15 minutter; du kan følge status på de enkelte numre.}}",
|
||||
"rerenderAllStarting": "Starter…",
|
||||
"savedBodyInProgress": "Nye videoer og videoer, der stadig er i gang med at blive lavet, vil bruge dit opdaterede tema."
|
||||
"savedBodyInProgress": "Nye videoer og videoer, der stadig er i gang med at blive lavet, vil bruge dit opdaterede tema.",
|
||||
"copyTitleCardLayout": "Kopiér titelkortets layout",
|
||||
"copyTitleCardLayoutHint": "Giv sangtitlen og kunstnernavnet her samme størrelse, placering, farver og store/små bogstaver som på dit titelkort.",
|
||||
"endScreenFontHint": "Slutskærmen bruger samme skrifttype som titelkortet (skift den under fanen Titelkort).",
|
||||
"endScreenOff": "Videoer slutter, når sangen slutter.",
|
||||
"includeEndScreen": "Inkludér en slutskærm i slutningen af hver video",
|
||||
"includeTitleCard": "Inkludér et titelkort i starten af hver video",
|
||||
"previewEndScreen": "Forhåndsvisning af slutskærm",
|
||||
"screenOmitted": "Ikke inkluderet i dine videoer",
|
||||
"showArtistName": "Vis kunstnernavn",
|
||||
"showSongTitle": "Vis sangtitel",
|
||||
"titleCardOff": "Videoer starter med det samme med sangtekstvideoen."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Prøv igen om et øjeblik.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Passe das Aussehen deiner Karaoke-Videos an. Die Vorschauen auf der rechten Seite werden genau wie deine fertigen Videos gerendert.",
|
||||
"discard": "Änderungen verwerfen",
|
||||
"discardConfirm": "Du hast ungespeicherte Theme-Änderungen. Ohne Speichern schließen?",
|
||||
"endScreenHint": "Für den Endbildschirm gibt es keine Vorschau; er verwendet dieselbe Schriftart und denselben Layout-Stil wie die Titelkarte.",
|
||||
"font": "Schriftart",
|
||||
"fontHint": "Für die Titelkarte, den Text und den Endbildschirm wird dieselbe Schriftart verwendet.",
|
||||
"jsonInvalid": "Ungültiges JSON",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {# Video konnte nicht erneut gerendert werden} other {# Videos konnten nicht erneut gerendert werden}}",
|
||||
"rerenderAllStarted": "{count, plural, one {# Video wird mit deinem neuen Theme erneut gerendert. Es dauert etwa 10–15 Minuten; du kannst den Fortschritt beim Track mitverfolgen.} other {# Videos werden mit deinem neuen Theme erneut gerendert. Jedes dauert etwa 10–15 Minuten; du kannst den Fortschritt bei jedem Track mitverfolgen.}}",
|
||||
"rerenderAllStarting": "Wird gestartet…",
|
||||
"savedBodyInProgress": "Neue Videos und Videos, die noch in Bearbeitung sind, verwenden dein aktualisiertes Theme."
|
||||
"savedBodyInProgress": "Neue Videos und Videos, die noch in Bearbeitung sind, verwenden dein aktualisiertes Theme.",
|
||||
"copyTitleCardLayout": "Titelkarten-Layout kopieren",
|
||||
"copyTitleCardLayoutHint": "Gib Songtitel und Interpretenname hier dieselbe Größe, Position, Farben und Großschreibung wie auf deiner Titelkarte.",
|
||||
"endScreenFontHint": "Der Endbildschirm verwendet dieselbe Schriftart wie die Titelkarte (ändere sie im Reiter „Titelkarte“).",
|
||||
"endScreenOff": "Videos enden, wenn der Song endet.",
|
||||
"includeEndScreen": "Einen Endbildschirm am Ende jedes Videos einfügen",
|
||||
"includeTitleCard": "Eine Titelkarte am Anfang jedes Videos einfügen",
|
||||
"previewEndScreen": "Endbildschirm-Vorschau",
|
||||
"screenOmitted": "Nicht in deinen Videos enthalten",
|
||||
"showArtistName": "Interpretenname anzeigen",
|
||||
"showSongTitle": "Songtitel anzeigen",
|
||||
"titleCardOff": "Videos starten direkt mit dem Songtext-Video."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Bitte versuche es gleich noch einmal.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Προσάρμοσε την εμφάνιση των βίντεο καραόκε σου. Οι προεπισκοπήσεις στα δεξιά αποδίδονται ακριβώς όπως τα τελικά σου βίντεο.",
|
||||
"discard": "Απόρριψη αλλαγών",
|
||||
"discardConfirm": "Έχεις μη αποθηκευμένες αλλαγές θέματος. Κλείσιμο χωρίς αποθήκευση;",
|
||||
"endScreenHint": "Δεν υπάρχει προεπισκόπηση της τελικής οθόνης· χρησιμοποιεί την ίδια γραμματοσειρά και στυλ διάταξης με την κάρτα τίτλου.",
|
||||
"font": "Γραμματοσειρά",
|
||||
"fontHint": "Μία γραμματοσειρά χρησιμοποιείται για την κάρτα τίτλου, τους στίχους και την τελική οθόνη.",
|
||||
"jsonInvalid": "Μη έγκυρο JSON",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {Δεν ήταν δυνατή η εκ νέου απόδοση # βίντεο} other {Δεν ήταν δυνατή η εκ νέου απόδοση # βίντεο}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Γίνεται εκ νέου απόδοση σε # βίντεο με το νέο σου θέμα. Χρειάζονται περίπου 10-15 λεπτά· μπορείς να παρακολουθείς την πρόοδό του στο κομμάτι.} other {Γίνεται εκ νέου απόδοση σε # βίντεο με το νέο σου θέμα. Το καθένα χρειάζεται περίπου 10-15 λεπτά· μπορείς να παρακολουθείς την πρόοδό τους σε κάθε κομμάτι.}}",
|
||||
"rerenderAllStarting": "Έναρξη…",
|
||||
"savedBodyInProgress": "Τα νέα βίντεο, καθώς και τα βίντεο που βρίσκονται ακόμη υπό δημιουργία, θα χρησιμοποιούν το ανανεωμένο σου θέμα."
|
||||
"savedBodyInProgress": "Τα νέα βίντεο, καθώς και τα βίντεο που βρίσκονται ακόμη υπό δημιουργία, θα χρησιμοποιούν το ανανεωμένο σου θέμα.",
|
||||
"copyTitleCardLayout": "Αντιγραφή διάταξης κάρτας τίτλου",
|
||||
"copyTitleCardLayoutHint": "Εφάρμοσε στον τίτλο του τραγουδιού και στο όνομα του καλλιτέχνη εδώ το ίδιο μέγεθος, θέση, χρώματα και κεφαλαία όπως στην κάρτα τίτλου σου.",
|
||||
"endScreenFontHint": "Η τελική οθόνη χρησιμοποιεί την ίδια γραμματοσειρά με την κάρτα τίτλου (άλλαξέ την στην καρτέλα «Κάρτα τίτλου»).",
|
||||
"endScreenOff": "Τα βίντεο θα τελειώνουν όταν τελειώνει το τραγούδι.",
|
||||
"includeEndScreen": "Συμπερίληψη τελικής οθόνης στο τέλος κάθε βίντεο",
|
||||
"includeTitleCard": "Συμπερίληψη κάρτας τίτλου στην αρχή κάθε βίντεο",
|
||||
"previewEndScreen": "Προεπισκόπηση τελικής οθόνης",
|
||||
"screenOmitted": "Δεν περιλαμβάνεται στα βίντεό σου",
|
||||
"showArtistName": "Εμφάνιση ονόματος καλλιτέχνη",
|
||||
"showSongTitle": "Εμφάνιση τίτλου τραγουδιού",
|
||||
"titleCardOff": "Τα βίντεο θα ξεκινούν αμέσως με το βίντεο των στίχων."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Δοκίμασε ξανά σε λίγο.",
|
||||
|
||||
@@ -1987,6 +1987,10 @@
|
||||
"endScreen": "End screen",
|
||||
"advanced": "Advanced"
|
||||
},
|
||||
"includeTitleCard": "Include a title card at the start of each video",
|
||||
"titleCardOff": "Videos will start straight away with the lyrics video.",
|
||||
"includeEndScreen": "Include an end screen at the end of each video",
|
||||
"endScreenOff": "Videos will end when the song ends.",
|
||||
"background": "Background",
|
||||
"backgroundImage": "Background image",
|
||||
"solidColour": "Solid colour (no image)",
|
||||
@@ -2012,7 +2016,11 @@
|
||||
"lineLength": "Max characters per line",
|
||||
"closingMessage": "Closing message",
|
||||
"closingMessageColour": "Closing message colour",
|
||||
"endScreenHint": "The end screen isn't previewed; it uses the same font and layout style as the title card.",
|
||||
"showSongTitle": "Show the song title",
|
||||
"showArtistName": "Show the artist name",
|
||||
"copyTitleCardLayout": "Copy title card layout",
|
||||
"copyTitleCardLayoutHint": "Give the song title and artist name here the same size, position, colours and capitals as on your title card.",
|
||||
"endScreenFontHint": "The end screen uses the same font as the title card (change it on the Title card tab).",
|
||||
"advancedJson": "Full theme JSON",
|
||||
"advancedHint": "Edit any theme setting directly. Changes are checked when you save.",
|
||||
"jsonInvalid": "Invalid JSON",
|
||||
@@ -2023,6 +2031,8 @@
|
||||
"sampleTitleDefault": "Song Title",
|
||||
"previewTitleCard": "Title card preview",
|
||||
"previewKaraoke": "Lyrics video preview",
|
||||
"previewEndScreen": "End screen preview",
|
||||
"screenOmitted": "Not included in your videos",
|
||||
"rendering": "Rendering preview",
|
||||
"previewFailed": "The preview couldn't be rendered.",
|
||||
"previewHint": "Previews update a moment after each change. Nothing is saved until you click Save.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Personaliza el aspecto de tus videos de karaoke. Las vistas previas de la derecha se renderizan exactamente igual que tus videos terminados.",
|
||||
"discard": "Descartar cambios",
|
||||
"discardConfirm": "Tienes cambios sin guardar en el tema. ¿Cerrar sin guardar?",
|
||||
"endScreenHint": "La pantalla final no tiene vista previa; usa la misma fuente y estilo de diseño que la tarjeta de título.",
|
||||
"font": "Fuente",
|
||||
"fontHint": "Se usa una sola fuente para la tarjeta de título, las letras y la pantalla final.",
|
||||
"jsonInvalid": "JSON no válido",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {No se pudo volver a renderizar # video} other {No se pudieron volver a renderizar # videos}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Renderizando # video con tu nuevo tema. Tarda unos 10-15 minutos; puedes seguir su progreso en la pista.} other {Renderizando # videos con tu nuevo tema. Cada uno tarda unos 10-15 minutos; puedes seguir su progreso en cada pista.}}",
|
||||
"rerenderAllStarting": "Iniciando…",
|
||||
"savedBodyInProgress": "Los videos nuevos y los videos que aún se están creando usarán tu tema actualizado."
|
||||
"savedBodyInProgress": "Los videos nuevos y los videos que aún se están creando usarán tu tema actualizado.",
|
||||
"copyTitleCardLayout": "Copiar diseño de la tarjeta de título",
|
||||
"copyTitleCardLayoutHint": "Aplica aquí al título de la canción y al nombre del artista el mismo tamaño, posición, colores y mayúsculas que en tu tarjeta de título.",
|
||||
"endScreenFontHint": "La pantalla final usa la misma fuente que la tarjeta de título (cámbiala en la pestaña Tarjeta de título).",
|
||||
"endScreenOff": "Los videos terminarán cuando termine la canción.",
|
||||
"includeEndScreen": "Incluir una pantalla final al final de cada video",
|
||||
"includeTitleCard": "Incluir una tarjeta de título al inicio de cada video",
|
||||
"previewEndScreen": "Vista previa de la pantalla final",
|
||||
"screenOmitted": "No incluido en tus videos",
|
||||
"showArtistName": "Mostrar el nombre del artista",
|
||||
"showSongTitle": "Mostrar el título de la canción",
|
||||
"titleCardOff": "Los videos comenzarán directamente con el video de letras."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Por favor, inténtalo de nuevo en un momento.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Mukauta karaokevideoidesi ulkoasua. Oikealla olevat esikatselut renderöidään täsmälleen kuten valmiit videosi.",
|
||||
"discard": "Hylkää muutokset",
|
||||
"discardConfirm": "Sinulla on tallentamattomia teemamuutoksia. Haluatko sulkea tallentamatta?",
|
||||
"endScreenHint": "Loppuruutua ei esikatsella; se käyttää samaa fonttia ja asettelutyyliä kuin otsikkoruutu.",
|
||||
"font": "Fontti",
|
||||
"fontHint": "Samaa fonttia käytetään otsikkoruudussa, sanoituksissa ja loppuruudussa.",
|
||||
"jsonInvalid": "Virheellinen JSON",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {# videota ei voitu renderöidä uudelleen} other {# videota ei voitu renderöidä uudelleen}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Renderöidään # video uudelleen uudella teemallasi. Siinä kestää noin 10–15 minuuttia, ja voit seurata edistymistä kappaleen tiedoissa.} other {Renderöidään # videota uudelleen uudella teemallasi. Kussakin kestää noin 10–15 minuuttia, ja voit seurata edistymistä kunkin kappaleen tiedoissa.}}",
|
||||
"rerenderAllStarting": "Aloitetaan…",
|
||||
"savedBodyInProgress": "Uudet ja tekeillä olevat videot käyttävät päivitettyä teemaasi."
|
||||
"savedBodyInProgress": "Uudet ja tekeillä olevat videot käyttävät päivitettyä teemaasi.",
|
||||
"copyTitleCardLayout": "Kopioi nimikortin asettelu",
|
||||
"copyTitleCardLayoutHint": "Käytä kappaleen nimeen ja esittäjään samaa kokoa, sijaintia, värejä ja kirjainkokoa kuin nimikortissasi.",
|
||||
"endScreenFontHint": "Loppuruudussa käytetään samaa fonttia kuin nimikortissa (vaihda se Nimikortti-välilehdellä).",
|
||||
"endScreenOff": "Videot päättyvät heti, kun kappale päättyy.",
|
||||
"includeEndScreen": "Lisää loppuruutu jokaisen videon loppuun",
|
||||
"includeTitleCard": "Lisää nimikortti jokaisen videon alkuun",
|
||||
"previewEndScreen": "Loppuruudun esikatselu",
|
||||
"screenOmitted": "Ei mukana videoissasi",
|
||||
"showArtistName": "Näytä esittäjän nimi",
|
||||
"showSongTitle": "Näytä kappaleen nimi",
|
||||
"titleCardOff": "Videot alkavat heti sanoituksilla."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Yritä hetken kuluttua uudelleen.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Personnalise l'apparence de tes vidéos karaoké. Les aperçus à droite sont générés exactement comme tes vidéos finales.",
|
||||
"discard": "Abandonner les modifications",
|
||||
"discardConfirm": "Tu as des modifications non enregistrées sur ce thème. Fermer sans enregistrer ?",
|
||||
"endScreenHint": "L'écran de fin n'a pas d'aperçu ; il utilise la même police et la même mise en page que l'écran de titre.",
|
||||
"font": "Police",
|
||||
"fontHint": "Une seule et même police est utilisée pour l'écran de titre, les paroles et l'écran de fin.",
|
||||
"jsonInvalid": "JSON non valide",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {# vidéo n'a pas pu être recalculée} other {# vidéos n'ont pas pu être recalculées}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Nouveau rendu en cours pour # vidéo avec ton nouveau thème. Cela prend environ 10 à 15 minutes ; tu peux suivre sa progression sur le morceau.} other {Nouveau rendu en cours pour # vidéos avec ton nouveau thème. Chaque vidéo prend environ 10 à 15 minutes ; tu peux suivre leur progression sur chaque morceau.}}",
|
||||
"rerenderAllStarting": "Démarrage…",
|
||||
"savedBodyInProgress": "Les nouvelles vidéos, ainsi que celles encore en cours de création, utiliseront ton thème mis à jour."
|
||||
"savedBodyInProgress": "Les nouvelles vidéos, ainsi que celles encore en cours de création, utiliseront ton thème mis à jour.",
|
||||
"copyTitleCardLayout": "Copier la mise en page du carton de titre",
|
||||
"copyTitleCardLayoutHint": "Applique ici au titre du morceau et au nom de l'artiste les mêmes taille, position, couleurs et majuscules que sur ton carton de titre.",
|
||||
"endScreenFontHint": "L'écran de fin utilise la même police que le carton de titre (modifie-la dans l'onglet Carton de titre).",
|
||||
"endScreenOff": "Les vidéos se termineront à la fin de la chanson.",
|
||||
"includeEndScreen": "Inclure un écran de fin à la fin de chaque vidéo",
|
||||
"includeTitleCard": "Inclure un carton de titre au début de chaque vidéo",
|
||||
"previewEndScreen": "Aperçu de l'écran de fin",
|
||||
"screenOmitted": "Non inclus dans tes vidéos",
|
||||
"showArtistName": "Afficher le nom de l'artiste",
|
||||
"showSongTitle": "Afficher le titre de la chanson",
|
||||
"titleCardOff": "Les vidéos commenceront directement avec les paroles."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Réessaie dans un instant.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "התאימו אישית את המראה של סרטוני הקריוקי שלכם. התצוגות המקדימות בצד מוצגות בדיוק כפי שייראו הסרטונים המוכנים שלכם.",
|
||||
"discard": "ביטול שינויים",
|
||||
"discardConfirm": "יש לכם שינויים שלא נשמרו בערכת הנושא. לסגור מבלי לשמור?",
|
||||
"endScreenHint": "אין תצוגה מקדימה למסך הסיום; הוא משתמש באותו גופן וסגנון פריסה כמו מסך הפתיחה.",
|
||||
"font": "גופן",
|
||||
"fontHint": "אותו גופן משמש עבור מסך הפתיחה, המילים ומסך הסיום.",
|
||||
"jsonInvalid": "JSON לא תקין",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {לא הצלחנו לרנדר מחדש סרטון אחד (#)} other {לא הצלחנו לרנדר מחדש # סרטונים}}",
|
||||
"rerenderAllStarted": "{count, plural, one {מרנדרים מחדש סרטון אחד (#) עם ערכת הנושא החדשה. זה לוקח בערך 10–15 דקות; אפשר לעקוב אחר ההתקדמות ברצועה.} other {מרנדרים מחדש # סרטונים עם ערכת הנושא החדשה. כל סרטון לוקח בערך 10–15 דקות; אפשר לעקוב אחר ההתקדמות בכל רצועה.}}",
|
||||
"rerenderAllStarting": "מתחיל…",
|
||||
"savedBodyInProgress": "סרטונים חדשים, וסרטונים שעדיין נמצאים בהכנה, ישתמשו בערכת הנושא המעודכנת."
|
||||
"savedBodyInProgress": "סרטונים חדשים, וסרטונים שעדיין נמצאים בהכנה, ישתמשו בערכת הנושא המעודכנת.",
|
||||
"copyTitleCardLayout": "העתקת פריסת כרטיסיית הכותרת",
|
||||
"copyTitleCardLayoutHint": "החלת אותו גודל, מיקום, צבעים ואותיות רישיות על שם השיר ושם האמן כאן, בדיוק כמו בכרטיסיית הכותרת שלך.",
|
||||
"endScreenFontHint": "מסך הסיום משתמש באותו גופן כמו כרטיסיית הכותרת (ניתן לשנות זאת בלשונית 'כרטיסיית כותרת').",
|
||||
"endScreenOff": "הסרטונים יסתיימו כשהשיר מסתיים.",
|
||||
"includeEndScreen": "הוספת מסך סיום בסוף כל סרטון",
|
||||
"includeTitleCard": "הוספת כרטיסיית כותרת בתחילת כל סרטון",
|
||||
"previewEndScreen": "תצוגה מקדימה של מסך הסיום",
|
||||
"screenOmitted": "לא נכלל בסרטונים שלך",
|
||||
"showArtistName": "הצגת שם האמן",
|
||||
"showSongTitle": "הצגת שם השיר",
|
||||
"titleCardOff": "הסרטונים יתחילו מיד עם סרטון המילים."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "אנא נסו שוב בעוד רגע.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "कस्टमाइज़ करो कि तुम्हारे कराओके वीडियो कैसे दिखेंगे। दाईं ओर के प्रीव्यू बिल्कुल तुम्हारे तैयार वीडियो की तरह रेंडर होते हैं।",
|
||||
"discard": "बदलाव रद्द करो",
|
||||
"discardConfirm": "थीम में कुछ बदलाव अभी सेव नहीं हुए हैं। क्या बिना सेव किए बंद करना चाहते हो?",
|
||||
"endScreenHint": "एंड स्क्रीन का प्रीव्यू नहीं दिखाया जाता; यह टाइटल कार्ड की तरह ही फ़ॉन्ट और लेआउट स्टाइल का इस्तेमाल करती है।",
|
||||
"font": "फ़ॉन्ट",
|
||||
"fontHint": "टाइटल कार्ड, लिरिक्स और एंड स्क्रीन के लिए एक ही फ़ॉन्ट का इस्तेमाल किया जाता है।",
|
||||
"jsonInvalid": "अमान्य JSON",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {# वीडियो को फिर से रेंडर नहीं किया जा सका} other {# वीडियो को फिर से रेंडर नहीं किया जा सका}}",
|
||||
"rerenderAllStarted": "{count, plural, one {तुम्हारी नई थीम के साथ # वीडियो को फिर से रेंडर किया जा रहा है। इसमें लगभग 10-15 मिनट लगते हैं; तुम ट्रैक पर इसकी प्रोग्रेस देख सकते हो।} other {तुम्हारी नई थीम के साथ # वीडियो को फिर से रेंडर किया जा रहा है। हर वीडियो में लगभग 10-15 मिनट लगते हैं; तुम हर ट्रैक पर उनकी प्रोग्रेस देख सकते हो।}}",
|
||||
"rerenderAllStarting": "शुरू हो रहा है…",
|
||||
"savedBodyInProgress": "नए वीडियो और अभी बन रहे वीडियो तुम्हारी अपडेट की गई थीम का इस्तेमाल करेंगे।"
|
||||
"savedBodyInProgress": "नए वीडियो और अभी बन रहे वीडियो तुम्हारी अपडेट की गई थीम का इस्तेमाल करेंगे।",
|
||||
"copyTitleCardLayout": "टाइटल कार्ड लेआउट कॉपी करो",
|
||||
"copyTitleCardLayoutHint": "यहाँ गाने के टाइटल और कलाकार के नाम को वही साइज़, पोज़ीशन, रंग और कैपिटलाइज़ेशन दो जो तुम्हारे टाइटल कार्ड पर है।",
|
||||
"endScreenFontHint": "एंड स्क्रीन उसी फ़ॉन्ट का इस्तेमाल करती है जो टाइटल कार्ड का है (इसे टाइटल कार्ड टैब पर बदलो)।",
|
||||
"endScreenOff": "गाना खत्म होते ही वीडियो समाप्त हो जाएँगे।",
|
||||
"includeEndScreen": "हर वीडियो के अंत में एंड स्क्रीन शामिल करो",
|
||||
"includeTitleCard": "हर वीडियो की शुरुआत में टाइटल कार्ड शामिल करो",
|
||||
"previewEndScreen": "एंड स्क्रीन प्रीव्यू",
|
||||
"screenOmitted": "तुम्हारे वीडियो में शामिल नहीं है",
|
||||
"showArtistName": "कलाकार का नाम दिखाओ",
|
||||
"showSongTitle": "गाने का टाइटल दिखाओ",
|
||||
"titleCardOff": "वीडियो सीधे लिरिक्स वीडियो के साथ शुरू होंगे।"
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "कृपया थोड़ी देर बाद फिर कोशिश करो।",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Prilagodi izgled svojih karaoke videozapisa. Pretpregledi s desne strane prikazuju se točno onako kako će izgledati tvoji gotovi videozapisi.",
|
||||
"discard": "Odbaci promjene",
|
||||
"discardConfirm": "Imaš nespremljene promjene teme. Želiš li zatvoriti bez spremanja?",
|
||||
"endScreenHint": "Završni zaslon nema pretpregled; koristi isti font i stil izgleda kao i naslovna kartica.",
|
||||
"font": "Font",
|
||||
"fontHint": "Isti font koristi se za naslovnu karticu, tekst pjesme i završni zaslon.",
|
||||
"jsonInvalid": "Nevažeći JSON",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {# videozapis nije se mogao ponovno renderirati} few {# videozapisa nisu se mogla ponovno renderirati} other {# videozapisa nije se moglo ponovno renderirati}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Ponovno renderiranje # videozapisa s tvojom novom temom. Traje oko 10–15 minuta; napredak možeš pratiti na pjesmi.} few {Ponovno renderiranje # videozapisa s tvojom novom temom. Svaki traje oko 10–15 minuta; napredak možeš pratiti na svakoj pjesmi.} other {Ponovno renderiranje # videozapisa s tvojom novom temom. Svaki traje oko 10–15 minuta; napredak možeš pratiti na svakoj pjesmi.}}",
|
||||
"rerenderAllStarting": "Pokretanje…",
|
||||
"savedBodyInProgress": "Novi videozapisi i videozapisi koji se još izrađuju koristit će tvoju ažuriranu temu."
|
||||
"savedBodyInProgress": "Novi videozapisi i videozapisi koji se još izrađuju koristit će tvoju ažuriranu temu.",
|
||||
"copyTitleCardLayout": "Kopiraj izgled naslovne kartice",
|
||||
"copyTitleCardLayoutHint": "Postavi da naziv pjesme i ime izvođača ovdje imaju istu veličinu, položaj, boje i velika/mala slova kao na tvojoj naslovnoj kartici.",
|
||||
"endScreenFontHint": "Završni zaslon koristi isti font kao i naslovna kartica (promijeni ga na kartici „Naslovna kartica”).",
|
||||
"endScreenOff": "Videozapisi će završiti kada pjesma završi.",
|
||||
"includeEndScreen": "Uključi završni zaslon na kraju svakog videozapisa",
|
||||
"includeTitleCard": "Uključi naslovnu karticu na početku svakog videozapisa",
|
||||
"previewEndScreen": "Pretpregled završnog zaslona",
|
||||
"screenOmitted": "Nije uključeno u tvoje videozapise",
|
||||
"showArtistName": "Prikaži ime izvođača",
|
||||
"showSongTitle": "Prikaži naziv pjesme",
|
||||
"titleCardOff": "Videozapisi će započeti odmah s tekstom pjesme."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Pokušaj ponovno za trenutak.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Szabd testre a karaoke-videóid megjelenését. A jobb oldali előnézetek pontosan úgy jelennek meg, mint az elkészült videóid.",
|
||||
"discard": "Módosítások elvetése",
|
||||
"discardConfirm": "Nem mentett módosításaid vannak a témában. Bezárod mentés nélkül?",
|
||||
"endScreenHint": "A záróképernyőnek nincs előnézete; ugyanazt a betűtípust és elrendezési stílust használja, mint a címkártya.",
|
||||
"font": "Betűtípus",
|
||||
"fontHint": "A címkártya, a dalszöveg és a záróképernyő ugyanazt a betűtípust használja.",
|
||||
"jsonInvalid": "Érvénytelen JSON",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {# videót nem sikerült újrarenderelni} other {# videót nem sikerült újrarenderelni}}",
|
||||
"rerenderAllStarted": "{count, plural, one {# videó újrarenderelése folyamatban az új témáddal. Körülbelül 10-15 percet vesz igénybe; az előrehaladást a számnál követheted nyomon.} other {# videó újrarenderelése folyamatban az új témáddal. Egyenként körülbelül 10-15 percet vesznek igénybe; az előrehaladást az egyes számoknál követheted nyomon.}}",
|
||||
"rerenderAllStarting": "Indítás…",
|
||||
"savedBodyInProgress": "Az új és a még készülő videók a frissített témádat fogják használni."
|
||||
"savedBodyInProgress": "Az új és a még készülő videók a frissített témádat fogják használni.",
|
||||
"copyTitleCardLayout": "Címkártya elrendezésének másolása",
|
||||
"copyTitleCardLayoutHint": "Állítsd be a dal címét és az előadó nevét ugyanolyan méretűre, elhelyezésűre, színűre és írásmódúra (kis- és nagybetűk), mint a címkártyádon.",
|
||||
"endScreenFontHint": "A záróképernyő ugyanazt a betűtípust használja, mint a címkártya (ezt a Címkártya lapon módosíthatod).",
|
||||
"endScreenOff": "A videók akkor érnek véget, amikor a dal véget ér.",
|
||||
"includeEndScreen": "Záróképernyő megjelenítése minden videó végén",
|
||||
"includeTitleCard": "Címkártya megjelenítése minden videó elején",
|
||||
"previewEndScreen": "Záróképernyő előnézete",
|
||||
"screenOmitted": "Nem szerepel a videóidban",
|
||||
"showArtistName": "Előadó nevének megjelenítése",
|
||||
"showSongTitle": "Dal címének megjelenítése",
|
||||
"titleCardOff": "A videók azonnal a dalszöveges videóval indulnak."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Kérlek, próbáld újra egy pillanat múlva.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Sesuaikan tampilan video karaoke Anda. Pratinjau di sebelah kanan dirender persis seperti video akhir Anda.",
|
||||
"discard": "Buang perubahan",
|
||||
"discardConfirm": "Ada perubahan tema yang belum disimpan. Tutup tanpa menyimpan?",
|
||||
"endScreenHint": "Layar penutup tidak ditampilkan di pratinjau; tampilannya menggunakan font dan gaya tata letak yang sama dengan kartu judul.",
|
||||
"font": "Font",
|
||||
"fontHint": "Satu font digunakan untuk kartu judul, lirik, dan layar penutup.",
|
||||
"jsonInvalid": "JSON tidak valid",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, other {# video tidak dapat dirender ulang}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Merender ulang # video dengan tema baru Anda. Proses ini memakan waktu sekitar 10-15 menit; Anda dapat memantau progresnya di lagu terkait.} other {Merender ulang # video dengan tema baru Anda. Masing-masing memakan waktu sekitar 10-15 menit; Anda dapat memantau progresnya di setiap lagu.}}",
|
||||
"rerenderAllStarting": "Memulai…",
|
||||
"savedBodyInProgress": "Video baru, serta video yang sedang dibuat, akan menggunakan tema terbaru Anda."
|
||||
"savedBodyInProgress": "Video baru, serta video yang sedang dibuat, akan menggunakan tema terbaru Anda.",
|
||||
"copyTitleCardLayout": "Salin tata letak kartu judul",
|
||||
"copyTitleCardLayoutHint": "Samakan ukuran, posisi, warna, dan huruf kapital untuk judul lagu dan nama artis di sini dengan kartu judul Anda.",
|
||||
"endScreenFontHint": "Layar akhir menggunakan font yang sama dengan kartu judul (ubah di tab Kartu judul).",
|
||||
"endScreenOff": "Video akan berakhir saat lagu selesai.",
|
||||
"includeEndScreen": "Sertakan layar akhir di bagian akhir setiap video",
|
||||
"includeTitleCard": "Sertakan kartu judul di awal setiap video",
|
||||
"previewEndScreen": "Pratinjau layar akhir",
|
||||
"screenOmitted": "Tidak disertakan dalam video Anda",
|
||||
"showArtistName": "Tampilkan nama artis",
|
||||
"showSongTitle": "Tampilkan judul lagu",
|
||||
"titleCardOff": "Video akan langsung dimulai dengan video lirik."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Silakan coba beberapa saat lagi.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Personalizza l'aspetto dei tuoi video karaoke. Le anteprime a destra mostrano esattamente la resa finale dei tuoi video.",
|
||||
"discard": "Scarta modifiche",
|
||||
"discardConfirm": "Hai modifiche non salvate al tema. Vuoi chiudere senza salvare?",
|
||||
"endScreenHint": "La schermata finale non viene mostrata in anteprima; utilizza lo stesso carattere e stile di layout della schermata del titolo.",
|
||||
"font": "Carattere",
|
||||
"fontHint": "Viene utilizzato un unico carattere per la schermata del titolo, il testo e la schermata finale.",
|
||||
"jsonInvalid": "JSON non valido",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {Impossibile rieseguire il rendering di # video} other {Impossibile rieseguire il rendering di # video}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Rendering di # video con il tuo nuovo tema in corso. Richiede circa 10-15 minuti; puoi seguirne l'avanzamento sulla traccia.} other {Rendering di # video con il tuo nuovo tema in corso. Ciascuno richiede circa 10-15 minuti; puoi seguirne l'avanzamento su ciascuna traccia.}}",
|
||||
"rerenderAllStarting": "Avvio in corso…",
|
||||
"savedBodyInProgress": "I nuovi video e quelli ancora in fase di creazione utilizzeranno il tuo tema aggiornato."
|
||||
"savedBodyInProgress": "I nuovi video e quelli ancora in fase di creazione utilizzeranno il tuo tema aggiornato.",
|
||||
"copyTitleCardLayout": "Copia il layout della schermata iniziale",
|
||||
"copyTitleCardLayoutHint": "Applica qui al titolo del brano e al nome dell'artista le stesse dimensioni, posizione, colori e maiuscole della schermata iniziale.",
|
||||
"endScreenFontHint": "La schermata finale usa lo stesso font della schermata iniziale (puoi modificarlo nella scheda Schermata iniziale).",
|
||||
"endScreenOff": "I video termineranno alla fine del brano.",
|
||||
"includeEndScreen": "Includi una schermata finale al termine di ogni video",
|
||||
"includeTitleCard": "Includi una schermata iniziale all'inizio di ogni video",
|
||||
"previewEndScreen": "Anteprima della schermata finale",
|
||||
"screenOmitted": "Non inclusa nei tuoi video",
|
||||
"showArtistName": "Mostra il nome dell'artista",
|
||||
"showSongTitle": "Mostra il titolo del brano",
|
||||
"titleCardOff": "I video inizieranno subito con il video con testo."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Riprova tra qualche istante.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "カラオケ動画の見た目をカスタマイズできます。右側のプレビューには、完成版動画とまったく同じ仕上がりが表示されます。",
|
||||
"discard": "変更を破棄",
|
||||
"discardConfirm": "保存されていないテーマの変更があります。保存せずに閉じますか?",
|
||||
"endScreenHint": "エンド画面のプレビューは表示されません。タイトルカードと同じフォントとレイアウトスタイルが適用されます。",
|
||||
"font": "フォント",
|
||||
"fontHint": "タイトルカード、歌詞、エンド画面には共通のフォントが使用されます。",
|
||||
"jsonInvalid": "無効なJSONです",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, other {#本の動画を再レンダリングできませんでした}}",
|
||||
"rerenderAllStarted": "{count, plural, one {新しいテーマで#本の動画の再レンダリングを開始しました。完了まで約10〜15分かかります。進捗はトラック上で確認できます。} other {新しいテーマで#本の動画の再レンダリングを開始しました。1本あたり約10〜15分かかります。進捗は各トラックで確認できます。}}",
|
||||
"rerenderAllStarting": "開始中…",
|
||||
"savedBodyInProgress": "新しい動画および現在作成中の動画に、更新したテーマが適用されます。"
|
||||
"savedBodyInProgress": "新しい動画および現在作成中の動画に、更新したテーマが適用されます。",
|
||||
"copyTitleCardLayout": "タイトルカードのレイアウトをコピー",
|
||||
"copyTitleCardLayoutHint": "曲名とアーティスト名のサイズ、位置、色、大文字・小文字の設定をタイトルカードと同じにします。",
|
||||
"endScreenFontHint": "エンドスクリーンにはタイトルカードと同じフォントが使用されます(「タイトルカード」タブで変更できます)。",
|
||||
"endScreenOff": "曲が終わると動画も終了します。",
|
||||
"includeEndScreen": "各動画の最後にエンドスクリーンを含める",
|
||||
"includeTitleCard": "各動画の最初にタイトルカードを含める",
|
||||
"previewEndScreen": "エンドスクリーンのプレビュー",
|
||||
"screenOmitted": "動画には含まれません",
|
||||
"showArtistName": "アーティスト名を表示",
|
||||
"showSongTitle": "曲名を表示",
|
||||
"titleCardOff": "動画は歌詞画面からすぐに始まります。"
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "しばらくしてからもう一度お試しください。",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "노래방 동영상의 디자인을 맞춤 설정하세요. 오른쪽 미리보기는 완성된 동영상과 동일하게 렌더링됩니다.",
|
||||
"discard": "변경 사항 취소",
|
||||
"discardConfirm": "저장되지 않은 테마 변경 사항이 있습니다. 저장하지 않고 닫으시겠습니까?",
|
||||
"endScreenHint": "엔딩 화면은 미리보기가 제공되지 않으며, 타이틀 카드와 동일한 글꼴 및 레이아웃 스타일을 사용합니다.",
|
||||
"font": "글꼴",
|
||||
"fontHint": "타이틀 카드, 가사, 엔딩 화면에 동일한 글꼴이 사용됩니다.",
|
||||
"jsonInvalid": "유효하지 않은 JSON",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {비디오 #개를 다시 렌더링하지 못했습니다} other {비디오 #개를 다시 렌더링하지 못했습니다}}",
|
||||
"rerenderAllStarted": "{count, plural, one {새 테마로 비디오 #개를 다시 렌더링하는 중입니다. 약 10~15분 정도 걸리며, 트랙에서 진행 상황을 확인하실 수 있습니다.} other {새 테마로 비디오 #개를 다시 렌더링하는 중입니다. 각각 약 10~15분 정도 걸리며, 각 트랙에서 진행 상황을 확인하실 수 있습니다.}}",
|
||||
"rerenderAllStarting": "시작하는 중…",
|
||||
"savedBodyInProgress": "새 비디오와 현재 제작 중인 비디오에 업데이트된 테마가 적용됩니다."
|
||||
"savedBodyInProgress": "새 비디오와 현재 제작 중인 비디오에 업데이트된 테마가 적용됩니다.",
|
||||
"copyTitleCardLayout": "타이틀 카드 레이아웃 복사",
|
||||
"copyTitleCardLayoutHint": "곡 제목과 아티스트 이름을 타이틀 카드와 동일한 크기, 위치, 색상 및 대소문자로 설정합니다.",
|
||||
"endScreenFontHint": "엔드 스크린에는 타이틀 카드와 동일한 글꼴이 사용됩니다(타이틀 카드 탭에서 변경할 수 있습니다).",
|
||||
"endScreenOff": "곡이 끝나면 동영상이 바로 종료됩니다.",
|
||||
"includeEndScreen": "각 동영상 끝에 엔드 스크린 포함",
|
||||
"includeTitleCard": "각 동영상 시작 부분에 타이틀 카드 포함",
|
||||
"previewEndScreen": "엔드 스크린 미리보기",
|
||||
"screenOmitted": "동영상에 포함되지 않음",
|
||||
"showArtistName": "아티스트 이름 표시",
|
||||
"showSongTitle": "곡 제목 표시",
|
||||
"titleCardOff": "타이틀 카드 없이 가사 영상으로 바로 시작됩니다."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "잠시 후 다시 시도해 주세요.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Sesuaikan rupa video karaoke anda. Pratonton di sebelah kanan dipaparkan tepat seperti video anda yang telah siap.",
|
||||
"discard": "Buang perubahan",
|
||||
"discardConfirm": "Anda mempunyai perubahan tema yang belum disimpan. Tutup tanpa menyimpan?",
|
||||
"endScreenHint": "Skrin penamat tidak dipratonton; ia menggunakan fon dan gaya reka letak yang sama seperti kad tajuk.",
|
||||
"font": "Fon",
|
||||
"fontHint": "Satu fon digunakan untuk kad tajuk, lirik dan skrin penamat.",
|
||||
"jsonInvalid": "JSON tidak sah",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, other {# video tidak dapat dirender semula}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Sedang merender semula # video dengan tema baharu anda. Ia mengambil masa kira-kira 10-15 minit; anda boleh melihat kemajuannya pada trek.} other {Sedang merender semula # video dengan tema baharu anda. Setiap satu mengambil masa kira-kira 10-15 minit; anda boleh melihat kemajuannya pada setiap trek.}}",
|
||||
"rerenderAllStarting": "Memulakan…",
|
||||
"savedBodyInProgress": "Video baharu dan video yang masih sedang diproses akan menggunakan tema anda yang dikemas kini."
|
||||
"savedBodyInProgress": "Video baharu dan video yang masih sedang diproses akan menggunakan tema anda yang dikemas kini.",
|
||||
"copyTitleCardLayout": "Salin reka letak kad tajuk",
|
||||
"copyTitleCardLayoutHint": "Gunakan saiz, kedudukan, warna dan huruf besar yang sama untuk tajuk lagu dan nama artis di sini seperti pada kad tajuk anda.",
|
||||
"endScreenFontHint": "Skrin penamat menggunakan fon yang sama seperti kad tajuk (ubah pada tab Kad tajuk).",
|
||||
"endScreenOff": "Video akan tamat apabila lagu tamat.",
|
||||
"includeEndScreen": "Sertakan skrin penamat pada penghujung setiap video",
|
||||
"includeTitleCard": "Sertakan kad tajuk pada permulaan setiap video",
|
||||
"previewEndScreen": "Pratonton skrin penamat",
|
||||
"screenOmitted": "Tidak disertakan dalam video anda",
|
||||
"showArtistName": "Tunjukkan nama artis",
|
||||
"showSongTitle": "Tunjukkan tajuk lagu",
|
||||
"titleCardOff": "Video akan terus bermula dengan video lirik."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Sila cuba sebentar lagi.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Tilpass hvordan karaokevideoene dine ser ut. Forhåndsvisningene til høyre gjengis nøyaktig slik de ferdige videoene dine vil bli.",
|
||||
"discard": "Forkast endringer",
|
||||
"discardConfirm": "Du har ulagrede temaendringer. Vil du lukke uten å lagre?",
|
||||
"endScreenHint": "Sluttskjermen forhåndsvises ikke; den bruker samme skrifttype og oppsett som tittelkortet.",
|
||||
"font": "Skrifttype",
|
||||
"fontHint": "Én skrifttype brukes for tittelkort, sangtekst og sluttskjerm.",
|
||||
"jsonInvalid": "Ugyldig JSON",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {# video kunne ikke gjengis på nytt} other {# videoer kunne ikke gjengis på nytt}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Gjengir # video på nytt med det nye temaet ditt. Det tar omtrent 10–15 minutter; du kan følge fremdriften på sporet.} other {Gjengir # videoer på nytt med det nye temaet ditt. Hver video tar omtrent 10–15 minutter; du kan følge fremdriften på hvert spor.}}",
|
||||
"rerenderAllStarting": "Starter…",
|
||||
"savedBodyInProgress": "Nye videoer, og videoer som fortsatt lages, vil bruke det oppdaterte temaet ditt."
|
||||
"savedBodyInProgress": "Nye videoer, og videoer som fortsatt lages, vil bruke det oppdaterte temaet ditt.",
|
||||
"copyTitleCardLayout": "Kopier oppsett for tittelkort",
|
||||
"copyTitleCardLayoutHint": "Gi sangtittelen og artistnavnet her samme størrelse, plassering, farger og store/små bokstaver som på tittelkortet ditt.",
|
||||
"endScreenFontHint": "Sluttskjermen bruker samme skrifttype som tittelkortet (endre den under Tittelkort-fanen).",
|
||||
"endScreenOff": "Videoene avsluttes når sangen er ferdig.",
|
||||
"includeEndScreen": "Inkluder en sluttskjerm på slutten av hver video",
|
||||
"includeTitleCard": "Inkluder et tittelkort i starten av hver video",
|
||||
"previewEndScreen": "Forhåndsvisning av sluttskjerm",
|
||||
"screenOmitted": "Ikke inkludert i videoene dine",
|
||||
"showArtistName": "Vis artistnavnet",
|
||||
"showSongTitle": "Vis sangtittelen",
|
||||
"titleCardOff": "Videoene starter rett på med sangtekstvideoen."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Prøv igjen om et øyeblikk.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Pas aan hoe je karaokevideo's eruitzien. De voorvertoningen aan de rechterkant worden precies zo weergegeven als je voltooide video's.",
|
||||
"discard": "Wijzigingen verwerpen",
|
||||
"discardConfirm": "Je hebt niet-opgeslagen themawijzigingen. Sluiten zonder op te slaan?",
|
||||
"endScreenHint": "Het eindscherm heeft geen voorvertoning; het gebruikt hetzelfde lettertype en dezelfde lay-outstijl als de titelkaart.",
|
||||
"font": "Lettertype",
|
||||
"fontHint": "Er wordt één lettertype gebruikt voor de titelkaart, de songtekst en het eindscherm.",
|
||||
"jsonInvalid": "Ongeldige JSON",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {# video kon niet opnieuw worden gerenderd} other {# video's konden niet opnieuw worden gerenderd}}",
|
||||
"rerenderAllStarted": "{count, plural, one {# video wordt opnieuw gerenderd met je nieuwe thema. Dit duurt ongeveer 10-15 minuten; je kunt de voortgang volgen bij het nummer.} other {# video's worden opnieuw gerenderd met je nieuwe thema. Dit duurt per video ongeveer 10-15 minuten; je kunt de voortgang volgen bij elk nummer.}}",
|
||||
"rerenderAllStarting": "Bezig met starten…",
|
||||
"savedBodyInProgress": "Nieuwe video's en video's die nog worden gemaakt, krijgen je bijgewerkte thema."
|
||||
"savedBodyInProgress": "Nieuwe video's en video's die nog worden gemaakt, krijgen je bijgewerkte thema.",
|
||||
"copyTitleCardLayout": "Lay-out van titelkaart kopiëren",
|
||||
"copyTitleCardLayoutHint": "Geef de titel van het nummer en de naam van de artiest hier dezelfde grootte, positie, kleuren en hoofdletters als op je titelkaart.",
|
||||
"endScreenFontHint": "Het eindscherm gebruikt hetzelfde lettertype als de titelkaart (pas dit aan op het tabblad Titelkaart).",
|
||||
"endScreenOff": "Video's eindigen zodra het nummer is afgelopen.",
|
||||
"includeEndScreen": "Een eindscherm toevoegen aan het einde van elke video",
|
||||
"includeTitleCard": "Een titelkaart toevoegen aan het begin van elke video",
|
||||
"previewEndScreen": "Voorbeeld van eindscherm",
|
||||
"screenOmitted": "Niet inbegrepen in je video's",
|
||||
"showArtistName": "Artiestennaam tonen",
|
||||
"showSongTitle": "Titel van het nummer tonen",
|
||||
"titleCardOff": "Video's starten meteen met de songtekstvideo."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Probeer het over een ogenblik opnieuw.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Dostosuj wygląd swoich filmów karaoke. Podglądy po prawej stronie są renderowane dokładnie tak, jak twoje gotowe filmy.",
|
||||
"discard": "Odrzuć zmiany",
|
||||
"discardConfirm": "Masz niezapisane zmiany w motywie. Zamknąć bez zapisywania?",
|
||||
"endScreenHint": "Ekran końcowy nie ma podglądu; używa tej samej czcionki i stylu układu co plansza tytułowa.",
|
||||
"font": "Czcionka",
|
||||
"fontHint": "Jedna czcionka jest używana do planszy tytułowej, tekstu piosenki i ekranu końcowego.",
|
||||
"jsonInvalid": "Nieprawidłowy JSON",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {Nie udało się ponownie wyrenderować # filmu} few {Nie udało się ponownie wyrenderować # filmów} many {Nie udało się ponownie wyrenderować # filmów} other {Nie udało się ponownie wyrenderować # filmu}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Ponowne renderowanie # filmu z nowym motywem. Zajmuje to około 10-15 minut; możesz śledzić postęp przy utworze.} few {Ponowne renderowanie # filmów z nowym motywem. Każdy z nich zajmuje około 10-15 minut; możesz śledzić postępy przy każdym utworze.} many {Ponowne renderowanie # filmów z nowym motywem. Każdy z nich zajmuje około 10-15 minut; możesz śledzić postępy przy każdym utworze.} other {Ponowne renderowanie # filmu z nowym motywem. Każdy z nich zajmuje około 10-15 minut; możesz śledzić postępy przy każdym utworze.}}",
|
||||
"rerenderAllStarting": "Uruchamianie…",
|
||||
"savedBodyInProgress": "Nowe filmy oraz te w trakcie tworzenia będą korzystać z Twojego zaktualizowanego motywu."
|
||||
"savedBodyInProgress": "Nowe filmy oraz te w trakcie tworzenia będą korzystać z Twojego zaktualizowanego motywu.",
|
||||
"copyTitleCardLayout": "Skopiuj układ planszy tytułowej",
|
||||
"copyTitleCardLayoutHint": "Ustaw tutaj dla tytułu utworu i nazwy wykonawcy taki sam rozmiar, pozycję, kolory oraz wielkość liter jak na planszy tytułowej.",
|
||||
"endScreenFontHint": "Ekran końcowy używa tej samej czcionki co plansza tytułowa (możesz ją zmienić w zakładce Plansza tytułowa).",
|
||||
"endScreenOff": "Filmy będą kończyć się wraz z końcem utworu.",
|
||||
"includeEndScreen": "Dołącz ekran końcowy na końcu każdego filmu",
|
||||
"includeTitleCard": "Dołącz planszę tytułową na początku każdego filmu",
|
||||
"previewEndScreen": "Podgląd ekranu końcowego",
|
||||
"screenOmitted": "Niedołączone do Twoich filmów",
|
||||
"showArtistName": "Pokaż nazwę wykonawcy",
|
||||
"showSongTitle": "Pokaż tytuł utworu",
|
||||
"titleCardOff": "Filmy rozpoczną się od razu od wideo z tekstem utworu."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Spróbuj ponownie za chwilę.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Personalize a aparência dos seus vídeos de karaokê. As prévias à direita são renderizadas exatamente como seus vídeos finais.",
|
||||
"discard": "Descartar alterações",
|
||||
"discardConfirm": "Você tem alterações não salvas no tema. Fechar sem salvar?",
|
||||
"endScreenHint": "A tela final não tem prévia; ela usa a mesma fonte e estilo de layout da tela de título.",
|
||||
"font": "Fonte",
|
||||
"fontHint": "Uma única fonte é usada para a tela de título, a letra e a tela final.",
|
||||
"jsonInvalid": "JSON inválido",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {# vídeo não pôde ser renderizado novamente} other {# vídeos não puderam ser renderizados novamente}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Renderizando # vídeo novamente com o seu novo tema. Leva cerca de 10 a 15 minutos; você pode acompanhar o progresso na faixa.} other {Renderizando # vídeos novamente com o seu novo tema. Cada um leva cerca de 10 a 15 minutos; você pode acompanhar o progresso em cada faixa.}}",
|
||||
"rerenderAllStarting": "Iniciando…",
|
||||
"savedBodyInProgress": "Novos vídeos, e vídeos que ainda estão sendo feitos, usarão o seu tema atualizado."
|
||||
"savedBodyInProgress": "Novos vídeos, e vídeos que ainda estão sendo feitos, usarão o seu tema atualizado.",
|
||||
"copyTitleCardLayout": "Copiar layout do cartão de título",
|
||||
"copyTitleCardLayoutHint": "Dê ao título da música e ao nome do artista aqui o mesmo tamanho, posição, cores e maiúsculas do seu cartão de título.",
|
||||
"endScreenFontHint": "A tela final usa a mesma fonte do cartão de título (altere na aba Cartão de título).",
|
||||
"endScreenOff": "Os vídeos terminarão quando a música acabar.",
|
||||
"includeEndScreen": "Incluir uma tela final ao final de cada vídeo",
|
||||
"includeTitleCard": "Incluir um cartão de título no início de cada vídeo",
|
||||
"previewEndScreen": "Prévia da tela final",
|
||||
"screenOmitted": "Não incluído nos seus vídeos",
|
||||
"showArtistName": "Mostrar o nome do artista",
|
||||
"showSongTitle": "Mostrar o título da música",
|
||||
"titleCardOff": "Os vídeos começarão direto no vídeo com a letra."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Por favor, tente novamente em instantes.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Personalizează aspectul videoclipurilor tale de karaoke. Previzualizările din dreapta sunt randate exact ca videoclipurile tale finale.",
|
||||
"discard": "Renunță la modificări",
|
||||
"discardConfirm": "Ai modificări nesalvate la temă. Închizi fără să salvezi?",
|
||||
"endScreenHint": "Ecranul de final nu este previzualizat; folosește același font și stil de aspect ca ecranul de titlu.",
|
||||
"font": "Font",
|
||||
"fontHint": "Se folosește un singur font pentru ecranul de titlu, versuri și ecranul de final.",
|
||||
"jsonInvalid": "JSON nevalid",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {# videoclip nu a putut fi rerandat} few {# videoclipuri nu au putut fi rerandate} other {# de videoclipuri nu au putut fi rerandate}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Se rerandează # videoclip cu noua ta temă. Durează aproximativ 10-15 minute; îi poți urmări progresul pe piesă.} few {Se rerandează # videoclipuri cu noua ta temă. Fiecare durează aproximativ 10-15 minute; le poți urmări progresul pe fiecare piesă.} other {Se rerandează # de videoclipuri cu noua ta temă. Fiecare durează aproximativ 10-15 minute; le poți urmări progresul pe fiecare piesă.}}",
|
||||
"rerenderAllStarting": "Se pornește…",
|
||||
"savedBodyInProgress": "Videoclipurile noi și cele aflate încă în curs de creare vor folosi tema ta actualizată."
|
||||
"savedBodyInProgress": "Videoclipurile noi și cele aflate încă în curs de creare vor folosi tema ta actualizată.",
|
||||
"copyTitleCardLayout": "Copiază aspectul ecranului de titlu",
|
||||
"copyTitleCardLayoutHint": "Aplică titlului melodiei și numelui artistului de aici aceeași dimensiune, poziție, culori și majuscule ca pe ecranul tău de titlu.",
|
||||
"endScreenFontHint": "Ecranul de final folosește același font ca ecranul de titlu (îl poți schimba în fila Ecran de titlu).",
|
||||
"endScreenOff": "Videoclipurile se vor termina când se termină melodia.",
|
||||
"includeEndScreen": "Include un ecran de final la sfârșitul fiecărui videoclip",
|
||||
"includeTitleCard": "Include un ecran de titlu la începutul fiecărui videoclip",
|
||||
"previewEndScreen": "Previzualizare ecran de final",
|
||||
"screenOmitted": "Nu este inclus în videoclipurile tale",
|
||||
"showArtistName": "Afișează numele artistului",
|
||||
"showSongTitle": "Afișează titlul melodiei",
|
||||
"titleCardOff": "Videoclipurile vor începe direct cu versurile melodiei."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Te rugăm să încerci din nou peste câteva momente.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Настрой внешний вид своих караоке-видео. Превью справа отображаются точно так же, как будут выглядеть готовые видео.",
|
||||
"discard": "Сбросить изменения",
|
||||
"discardConfirm": "У тебя есть несохранённые изменения темы. Закрыть без сохранения?",
|
||||
"endScreenHint": "Финальный экран не отображается в превью; он использует тот же шрифт и стиль оформления, что и заставка.",
|
||||
"font": "Шрифт",
|
||||
"fontHint": "Один и тот же шрифт используется для заставки, текста песни и финального экрана.",
|
||||
"jsonInvalid": "Некорректный JSON",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {Не удалось перерендерить # видео} few {Не удалось перерендерить # видео} other {Не удалось перерендерить # видео}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Перерендериваем # видео с твоей новой темой. Это займёт около 10–15 минут; за процессом можно следить на странице трека.} few {Перерендериваем # видео с твоей новой темой. Каждое займет около 10–15 минут; за процессом можно следить на странице каждого трека.} other {Перерендериваем # видео с твоей новой темой. Каждое займёт около 10–15 минут; за процессом можно следить на странице каждого трека.}}",
|
||||
"rerenderAllStarting": "Запуск…",
|
||||
"savedBodyInProgress": "Новые видео, а также видео, которые ещё создаются, будут использовать твою обновлённую тему."
|
||||
"savedBodyInProgress": "Новые видео, а также видео, которые ещё создаются, будут использовать твою обновлённую тему.",
|
||||
"copyTitleCardLayout": "Скопировать макет начальной заставки",
|
||||
"copyTitleCardLayoutHint": "Применить здесь к названию песни и имени исполнителя тот же размер, положение, цвета и регистр, что и на начальной заставке.",
|
||||
"endScreenFontHint": "Для конечной заставки используется тот же шрифт, что и для начальной (его можно изменить на вкладке «Начальная заставка»).",
|
||||
"endScreenOff": "Видео будут заканчиваться вместе с песней.",
|
||||
"includeEndScreen": "Добавлять конечную заставку в конец каждого видео",
|
||||
"includeTitleCard": "Добавлять начальную заставку в начало каждого видео",
|
||||
"previewEndScreen": "Предпросмотр конечной заставки",
|
||||
"screenOmitted": "Не добавляется в твои видео",
|
||||
"showArtistName": "Показывать имя исполнителя",
|
||||
"showSongTitle": "Показывать название песни",
|
||||
"titleCardOff": "Видео будут сразу начинаться со строк песни."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Пожалуйста, попробуй ещё раз чуть позже.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Prispôsob si vzhľad svojich karaoke videí. Ukážky vpravo sa vykresľujú presne tak, ako budú vyzerať tvoje hotové videá.",
|
||||
"discard": "Zahodiť zmeny",
|
||||
"discardConfirm": "Máš neuložené zmeny motívu. Zavrieť bez uloženia?",
|
||||
"endScreenHint": "Záverečná obrazovka nemá náhľad; používa rovnaké písmo a štýl rozloženia ako titulná karta.",
|
||||
"font": "Písmo",
|
||||
"fontHint": "Rovnaké písmo sa používa pre titulnú kartu, text piesne a záverečnú obrazovku.",
|
||||
"jsonInvalid": "Neplatný JSON",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {# video sa nepodarilo znova vygenerovať} few {# videá sa nepodarilo znova vygenerovať} other {# videí sa nepodarilo znova vygenerovať}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Znova sa generuje # video s tvojím novým motívom. Trvá to približne 10 – 15 minút; priebeh môžeš sledovať priamo na skladbe.} few {Znova sa generujú # videá s tvojím novým motívom. Každé trvá približne 10 – 15 minút; priebeh môžeš sledovať na jednotlivých skladbách.} other {Znova sa generuje # videí s tvojím novým motívom. Každé trvá približne 10 – 15 minút; priebeh môžeš sledovať na jednotlivých skladbách.}}",
|
||||
"rerenderAllStarting": "Spúšťa sa…",
|
||||
"savedBodyInProgress": "Nové videá a videá, ktoré sa stále vytvárajú, použijú tvoj aktualizovaný motív."
|
||||
"savedBodyInProgress": "Nové videá a videá, ktoré sa stále vytvárajú, použijú tvoj aktualizovaný motív.",
|
||||
"copyTitleCardLayout": "Skopírovať rozloženie úvodnej karty",
|
||||
"copyTitleCardLayoutHint": "Nastav názvu skladby a menu interpreta rovnakú veľkosť, pozíciu, farby a veľké písmená ako na úvodnej karte.",
|
||||
"endScreenFontHint": "Záverečná obrazovka používa rovnaké písmo ako úvodná karta (zmeniť ho môžeš na karte Úvodná karta).",
|
||||
"endScreenOff": "Videá sa skončia hneď po skončení skladby.",
|
||||
"includeEndScreen": "Pridať záverečnú obrazovku na koniec každého videa",
|
||||
"includeTitleCard": "Pridať úvodnú kartu na začiatok každého videa",
|
||||
"previewEndScreen": "Náhľad záverečnej obrazovky",
|
||||
"screenOmitted": "Nezahrnuté vo tvojich videách",
|
||||
"showArtistName": "Zobraziť meno interpreta",
|
||||
"showSongTitle": "Zobraziť názov skladby",
|
||||
"titleCardOff": "Videá začnú hneď videom s textom piesne."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Skús to, prosím, o chvíľu znova.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Anpassa hur dina karaokevideor ser ut. Förhandsgranskningarna till höger renderas precis som dina färdiga videor.",
|
||||
"discard": "Kassera ändringar",
|
||||
"discardConfirm": "Du har osparade temaändringar. Vill du stänga utan att spara?",
|
||||
"endScreenHint": "Slutskärmen förhandsgranskas inte. Den använder samma typsnitt och layoutstil som titelkortet.",
|
||||
"font": "Typsnitt",
|
||||
"fontHint": "Ett och samma typsnitt används för titelkortet, låttexten och slutskärmen.",
|
||||
"jsonInvalid": "Ogiltig JSON",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {# video kunde inte renderas om} other {# videor kunde inte renderas om}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Renderar om # video med ditt nya tema. Det tar cirka 10–15 minuter; du kan följa förloppet på spåret.} other {Renderar om # videor med ditt nya tema. Varje video tar cirka 10–15 minuter; du kan följa förloppet på respektive spår.}}",
|
||||
"rerenderAllStarting": "Startar…",
|
||||
"savedBodyInProgress": "Nya videor, och videor som fortfarande håller på att skapas, kommer att använda ditt uppdaterade tema."
|
||||
"savedBodyInProgress": "Nya videor, och videor som fortfarande håller på att skapas, kommer att använda ditt uppdaterade tema.",
|
||||
"copyTitleCardLayout": "Kopiera layout från titelkort",
|
||||
"copyTitleCardLayoutHint": "Ge låttiteln och artistnamnet samma storlek, placering, färger och versalisering här som på ditt titelkort.",
|
||||
"endScreenFontHint": "Slutskärmen använder samma typsnitt som titelkortet (ändra det under fliken Titelkort).",
|
||||
"endScreenOff": "Videorna avslutas när låten är slut.",
|
||||
"includeEndScreen": "Lägg till en slutskärm i slutet av varje video",
|
||||
"includeTitleCard": "Lägg till ett titelkort i början av varje video",
|
||||
"previewEndScreen": "Förhandsgranska slutskärm",
|
||||
"screenOmitted": "Inkluderas inte i dina videor",
|
||||
"showArtistName": "Visa artistnamnet",
|
||||
"showSongTitle": "Visa låttiteln",
|
||||
"titleCardOff": "Videorna startar direkt med textvideon."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Försök igen om en stund.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "ปรับแต่งหน้าตาของวิดีโอคาราโอเกะตามที่คุณต้องการ ตัวอย่างทางด้านขวาจะแสดงผลเหมือนกับวิดีโอจริงของคุณทุกประการ",
|
||||
"discard": "ละทิ้งการเปลี่ยนแปลง",
|
||||
"discardConfirm": "คุณมีการเปลี่ยนแปลงธีมที่ยังไม่ได้บันทึก ต้องการปิดโดยไม่บันทึกหรือไม่?",
|
||||
"endScreenHint": "หน้าจอตอนจบจะไม่มีการแสดงตัวอย่าง โดยจะใช้แบบอักษรและสไตล์การจัดวางเดียวกับการ์ดชื่อเพลง",
|
||||
"font": "แบบอักษร",
|
||||
"fontHint": "ใช้แบบอักษรเดียวกันสำหรับการ์ดชื่อเพลง เนื้อร้อง และหน้าจอตอนจบ",
|
||||
"jsonInvalid": "รูปแบบ JSON ไม่ถูกต้อง",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {ไม่สามารถเรนเดอร์ใหม่ได้ # วิดีโอ} other {ไม่สามารถเรนเดอร์ใหม่ได้ # วิดีโอ}}",
|
||||
"rerenderAllStarted": "{count, plural, one {กำลังเรนเดอร์วิดีโอ # รายการใหม่ด้วยธีมใหม่ของคุณ โดยใช้เวลาประมาณ 10-15 นาที คุณสามารถติดตามความคืบหน้าได้ที่แทร็ก} other {กำลังเรนเดอร์วิดีโอ # รายการใหม่ด้วยธีมใหม่ของคุณ แต่ละรายการใช้เวลาประมาณ 10-15 นาที คุณสามารถติดตามความคืบหน้าได้ที่แต่ละแทร็ก}}",
|
||||
"rerenderAllStarting": "กำลังเริ่ม…",
|
||||
"savedBodyInProgress": "วิดีโอใหม่และวิดีโอที่กำลังสร้างอยู่จะใช้ธีมที่คุณอัปเดต"
|
||||
"savedBodyInProgress": "วิดีโอใหม่และวิดีโอที่กำลังสร้างอยู่จะใช้ธีมที่คุณอัปเดต",
|
||||
"copyTitleCardLayout": "คัดลอกเลย์เอาต์การ์ดไตเติล",
|
||||
"copyTitleCardLayoutHint": "ตั้งค่าขนาด ตำแหน่ง สี และการใช้ตัวพิมพ์ใหญ่ของชื่อเพลงและชื่อศิลปินที่นี่ให้เหมือนกับการ์ดไตเติลของคุณ",
|
||||
"endScreenFontHint": "หน้าจอตอนท้ายจะใช้ฟอนต์เดียวกับการ์ดไตเติล (เปลี่ยนได้ที่แท็บ \"การ์ดไตเติล\")",
|
||||
"endScreenOff": "วิดีโอจะจบลงทันทีที่เพลงจบ",
|
||||
"includeEndScreen": "ใส่วิดีโอหน้าจอตอนท้ายที่ช่วงท้ายของแต่ละวิดีโอ",
|
||||
"includeTitleCard": "ใส่การ์ดไตเติลที่ช่วงเริ่มต้นของแต่ละวิดีโอ",
|
||||
"previewEndScreen": "ดูตัวอย่างหน้าจอตอนท้าย",
|
||||
"screenOmitted": "ไม่รวมอยู่ในวิดีโอของคุณ",
|
||||
"showArtistName": "แสดงชื่อศิลปิน",
|
||||
"showSongTitle": "แสดงชื่อเพลง",
|
||||
"titleCardOff": "วิดีโอจะเริ่มเล่นท่อนเนื้อเพลงทันที"
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "โปรดลองใหม่อีกครั้งในอีกสักครู่",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "I-customize ang hitsura ng iyong mga karaoke video. Ang mga preview sa kanan ay nire-render nang eksaktong katulad ng iyong mga tapos na video.",
|
||||
"discard": "Ibalewala ang mga pagbabago",
|
||||
"discardConfirm": "May mga hindi ka pa nai-save na pagbabago sa tema. Isara nang hindi sine-save?",
|
||||
"endScreenHint": "Walang preview ang end screen; ginagamit nito ang parehong font at estilo ng layout tulad ng title card.",
|
||||
"font": "Font",
|
||||
"fontHint": "Isang font ang ginagamit para sa title card, lyrics, at end screen.",
|
||||
"jsonInvalid": "Di-wastong JSON",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {Hindi ma-re-render ang # video} other {Hindi ma-re-render ang # video}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Nire-re-render ang # video gamit ang bago mong tema. Tumatagal ito nang mga 10-15 minuto; maaari mong subaybayan ang progreso nito sa track.} other {Nire-re-render ang # na video gamit ang bago mong tema. Tumatagal nang mga 10-15 minuto ang bawat isa; maaari mong subaybayan ang progreso ng mga ito sa bawat track.}}",
|
||||
"rerenderAllStarting": "Sinisimulan na…",
|
||||
"savedBodyInProgress": "Gagamitin ng mga bagong video, at ng mga video na ginagawa pa, ang iyong na-update na tema."
|
||||
"savedBodyInProgress": "Gagamitin ng mga bagong video, at ng mga video na ginagawa pa, ang iyong na-update na tema.",
|
||||
"copyTitleCardLayout": "Kopyahin ang layout ng title card",
|
||||
"copyTitleCardLayoutHint": "Gawing pareho ang laki, posisyon, mga kulay, at capitalization ng pamagat ng kanta at pangalan ng artist dito tulad ng nasa iyong title card.",
|
||||
"endScreenFontHint": "Ginagamit ng end screen ang parehong font tulad ng sa title card (baguhin ito sa tab na Title card).",
|
||||
"endScreenOff": "Matatapos ang mga video kapag natapos na ang kanta.",
|
||||
"includeEndScreen": "Maglagay ng end screen sa dulo ng bawat video",
|
||||
"includeTitleCard": "Maglagay ng title card sa simula ng bawat video",
|
||||
"previewEndScreen": "Preview ng end screen",
|
||||
"screenOmitted": "Hindi kasama sa iyong mga video",
|
||||
"showArtistName": "Ipakita ang pangalan ng artist",
|
||||
"showSongTitle": "Ipakita ang pamagat ng kanta",
|
||||
"titleCardOff": "Magsisimula agad ang mga video sa mismong lyrics video."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Pakisubukang muli maya-maya.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Karaoke videolarının nasıl görüneceğini özelleştir. Sağdaki önizlemeler, tamamlanan videolarınla birebir aynı şekilde işlenir.",
|
||||
"discard": "Değişiklikleri at",
|
||||
"discardConfirm": "Kaydedilmemiş tema değişikliklerin var. Kaydetmeden kapatılsın mı?",
|
||||
"endScreenHint": "Bitiş ekranı için önizleme gösterilmez; başlık kartıyla aynı yazı tipini ve yerleşim stilini kullanır.",
|
||||
"font": "Yazı tipi",
|
||||
"fontHint": "Başlık kartı, şarkı sözleri ve bitiş ekranı için tek bir yazı tipi kullanılır.",
|
||||
"jsonInvalid": "Geçersiz JSON",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {# video yeniden işlenemedi} other {# video yeniden işlenemedi}}",
|
||||
"rerenderAllStarted": "{count, plural, one {# video yeni temanla yeniden işleniyor. Yaklaşık 10-15 dakika sürer; ilerlemeyi parça üzerinden takip edebilirsin.} other {# video yeni temanla yeniden işleniyor. Her biri yaklaşık 10-15 dakika sürer; ilerlemeyi ilgili parçalar üzerinden takip edebilirsin.}}",
|
||||
"rerenderAllStarting": "Başlatılıyor…",
|
||||
"savedBodyInProgress": "Yeni videolar ve yapımı devam eden videolar güncellenen temanı kullanacak."
|
||||
"savedBodyInProgress": "Yeni videolar ve yapımı devam eden videolar güncellenen temanı kullanacak.",
|
||||
"copyTitleCardLayout": "Başlık kartı düzenini kopyala",
|
||||
"copyTitleCardLayoutHint": "Buradaki şarkı adı ve sanatçı adına başlık kartındakiyle aynı boyutu, konumu, renkleri ve büyük/küçük harf kullanımını uygula.",
|
||||
"endScreenFontHint": "Bitiş ekranı, başlık kartıyla aynı yazı tipini kullanır (Başlık kartı sekmesinden değiştirebilirsin).",
|
||||
"endScreenOff": "Videolar şarkı bittiğinde sona erecek.",
|
||||
"includeEndScreen": "Her videonun sonuna bir bitiş ekranı ekle",
|
||||
"includeTitleCard": "Her videonun başına bir başlık kartı ekle",
|
||||
"previewEndScreen": "Bitiş ekranı önizlemesi",
|
||||
"screenOmitted": "Videolarına dahil edilmez",
|
||||
"showArtistName": "Sanatçı adını göster",
|
||||
"showSongTitle": "Şarkı adını göster",
|
||||
"titleCardOff": "Videolar doğrudan şarkı sözü videosuyla başlayacak."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Lütfen birazdan tekrar dene.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Налаштуй вигляд своїх караоке-відео. Попередній перегляд праворуч відтворюється точно так само, як виглядатимуть твої готові відео.",
|
||||
"discard": "Скасувати зміни",
|
||||
"discardConfirm": "У тебе є незбережені зміни теми. Закрити без збереження?",
|
||||
"endScreenHint": "Кінцевий екран не показується в попередньому перегляді; він використовує той самий шрифт і стиль оформлення, що й титульний екран.",
|
||||
"font": "Шрифт",
|
||||
"fontHint": "Один шрифт використовується для титульного екрана, тексту пісні та кінцевого екрана.",
|
||||
"jsonInvalid": "Некоректний JSON",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {Не вдалося оновити # відео} few {Не вдалося оновити # відео} many {Не вдалося оновити # відео} other {Не вдалося оновити # відео}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Запущено повторний рендеринг # відео з новою темою. Це займає близько 10–15 хвилин; ти можеш стежити за прогресом на сторінці треку.} few {Запущено повторний рендеринг # відео з новою темою. Кожне займає близько 10–15 хвилин; ти можеш стежити за прогресом на сторінці кожного треку.} many {Запущено повторний рендеринг # відео з новою темою. Кожне займає близько 10–15 хвилин; ти можеш стежити за прогресом на сторінці кожного треку.} other {Запущено повторний рендеринг # відео з новою темою. Кожне займає близько 10–15 хвилин; ти можеш стежити за прогресом на сторінці кожного треку.}}",
|
||||
"rerenderAllStarting": "Запуск…",
|
||||
"savedBodyInProgress": "Нові відео та відео, що ще створюються, використовуватимуть оновлену тему."
|
||||
"savedBodyInProgress": "Нові відео та відео, що ще створюються, використовуватимуть оновлену тему.",
|
||||
"copyTitleCardLayout": "Скопіювати макет титульної картки",
|
||||
"copyTitleCardLayoutHint": "Зроби тут назву пісні та ім'я виконавця такого ж розміру, розташування, кольорів і регістру, як на твоїй титульній картці.",
|
||||
"endScreenFontHint": "Для кінцевої заставки використовується той самий шрифт, що й для титульної картки (змінити його можна на вкладці «Титульна картка»).",
|
||||
"endScreenOff": "Відео завершуватимуться, щойно закінчиться пісня.",
|
||||
"includeEndScreen": "Додавати кінцеву заставку наприкінці кожного відео",
|
||||
"includeTitleCard": "Додавати титульну картку на початку кожного відео",
|
||||
"previewEndScreen": "Попередній перегляд кінцевої заставки",
|
||||
"screenOmitted": "Не додається до твоїх відео",
|
||||
"showArtistName": "Показувати ім'я виконавця",
|
||||
"showSongTitle": "Показувати назву пісні",
|
||||
"titleCardOff": "Відео починатимуться одразу з показу тексту пісні."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Будь ласка, спробуй ще раз трохи згодом.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "Tùy chỉnh giao diện video karaoke của bạn. Bản xem trước ở bên phải được kết xuất chính xác như video hoàn thiện của bạn.",
|
||||
"discard": "Hủy thay đổi",
|
||||
"discardConfirm": "Bạn có thay đổi giao diện chưa lưu. Đóng mà không lưu?",
|
||||
"endScreenHint": "Màn hình kết thúc không có bản xem trước; màn hình này sử dụng cùng phông chữ và kiểu bố cục với thẻ tiêu đề.",
|
||||
"font": "Phông chữ",
|
||||
"fontHint": "Dùng chung một phông chữ cho thẻ tiêu đề, lời bài hát và màn hình kết thúc.",
|
||||
"jsonInvalid": "JSON không hợp lệ",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {Không thể kết xuất lại # video} other {Không thể kết xuất lại # video}}",
|
||||
"rerenderAllStarted": "{count, plural, one {Đang kết xuất lại # video với chủ đề mới của bạn. Quá trình này mất khoảng 10-15 phút; bạn có thể theo dõi tiến trình trên bài hát.} other {Đang kết xuất lại # video với chủ đề mới của bạn. Mỗi video mất khoảng 10-15 phút; bạn có thể theo dõi tiến trình trên từng bài hát.}}",
|
||||
"rerenderAllStarting": "Đang bắt đầu…",
|
||||
"savedBodyInProgress": "Video mới và các video đang được tạo sẽ áp dụng chủ đề mới cập nhật của bạn."
|
||||
"savedBodyInProgress": "Video mới và các video đang được tạo sẽ áp dụng chủ đề mới cập nhật của bạn.",
|
||||
"copyTitleCardLayout": "Sao chép bố cục thẻ tiêu đề",
|
||||
"copyTitleCardLayoutHint": "Đặt tên bài hát và tên nghệ sĩ ở đây có cùng kích thước, vị trí, màu sắc và kiểu viết hoa như trên thẻ tiêu đề của bạn.",
|
||||
"endScreenFontHint": "Màn hình kết thúc sử dụng cùng phông chữ với thẻ tiêu đề (thay đổi tại tab Thẻ tiêu đề).",
|
||||
"endScreenOff": "Video sẽ kết thúc khi bài hát kết thúc.",
|
||||
"includeEndScreen": "Thêm màn hình kết thúc vào cuối mỗi video",
|
||||
"includeTitleCard": "Thêm thẻ tiêu đề vào đầu mỗi video",
|
||||
"previewEndScreen": "Xem trước màn hình kết thúc",
|
||||
"screenOmitted": "Không bao gồm trong video của bạn",
|
||||
"showArtistName": "Hiển thị tên nghệ sĩ",
|
||||
"showSongTitle": "Hiển thị tên bài hát",
|
||||
"titleCardOff": "Video sẽ bắt đầu ngay với phần video lời bài hát."
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "Vui lòng thử lại sau giây lát.",
|
||||
|
||||
@@ -1988,7 +1988,6 @@
|
||||
"description": "自定义卡拉OK视频的外观。右侧预览与最终生成的视频效果完全一致。",
|
||||
"discard": "放弃更改",
|
||||
"discardConfirm": "您有未保存的主题更改。确定不保存直接关闭吗?",
|
||||
"endScreenHint": "片尾画面不提供预览;它将采用与片头卡片相同的字体和布局样式。",
|
||||
"font": "字体",
|
||||
"fontHint": "片头卡片、歌词和片尾画面将使用同一种字体。",
|
||||
"jsonInvalid": "JSON 格式无效",
|
||||
@@ -2042,7 +2041,18 @@
|
||||
"rerenderAllSomeFailed": "{count, plural, one {# 个视频未能重新渲染} other {# 个视频未能重新渲染}}",
|
||||
"rerenderAllStarted": "{count, plural, one {正在使用您的新主题重新渲染 # 个视频。大约需要 10-15 分钟;您可以在曲目页面查看进度。} other {正在使用您的新主题重新渲染 # 个视频。每个视频大约需要 10-15 分钟;您可以在各曲目页面查看进度。}}",
|
||||
"rerenderAllStarting": "正在启动…",
|
||||
"savedBodyInProgress": "新视频以及正在制作中的视频都将采用更新后的主题。"
|
||||
"savedBodyInProgress": "新视频以及正在制作中的视频都将采用更新后的主题。",
|
||||
"copyTitleCardLayout": "复制片头卡布局",
|
||||
"copyTitleCardLayoutHint": "让此处的歌曲名和艺术家姓名与片头卡上的大小、位置、颜色及大小写格式保持一致。",
|
||||
"endScreenFontHint": "片尾画面使用与片头卡相同的字体(可在“片头卡”标签页中更改)。",
|
||||
"endScreenOff": "歌曲播放完毕后视频随即结束。",
|
||||
"includeEndScreen": "在每个视频结尾添加片尾画面",
|
||||
"includeTitleCard": "在每个视频开头添加片头卡",
|
||||
"previewEndScreen": "片尾画面预览",
|
||||
"screenOmitted": "未包含在您的视频中",
|
||||
"showArtistName": "显示艺术家姓名",
|
||||
"showSongTitle": "显示歌曲名",
|
||||
"titleCardOff": "视频将直接开始播放歌词视频。"
|
||||
},
|
||||
"stalledDownload": {
|
||||
"actionFailedDesc": "请稍后再试。",
|
||||
|
||||
@@ -23,6 +23,7 @@ from karaoke_gen.lyrics_transcriber.output.segment_resizer import SegmentResizer
|
||||
from karaoke_gen.lyrics_transcriber.output.subtitles import SubtitlesGenerator
|
||||
from karaoke_gen.portrait.background import PortraitBrandConfig, build_background
|
||||
from karaoke_gen.portrait.wrap import balance_segments
|
||||
from karaoke_gen.style_loader import screen_enabled
|
||||
|
||||
PORTRAIT_WIDTH = 1080
|
||||
PORTRAIT_HEIGHT = 1920
|
||||
@@ -206,24 +207,35 @@ def render_portrait_video(
|
||||
ass_filter += f":fontsdir='{_escape_ass_path(os.path.dirname(os.path.abspath(font_path)))}'"
|
||||
|
||||
w, h = layout.width, layout.height
|
||||
filtergraph = (
|
||||
f"[1:v]{ass_filter},trim=duration={body_dur:.3f},setpts=PTS-STARTPTS,"
|
||||
f"scale={w}:{h},setsar=1,fps=30[body];"
|
||||
f"[0:v]scale={w}:{h},setsar=1,fps=30[intro];"
|
||||
f"[2:v]scale={w}:{h},setsar=1,fps=30[outro];"
|
||||
# Pair each card with its own silence and the body with the instrumental:
|
||||
# intro(v)+intro_silence(4:a), body(v)+instrumental(3:a), outro(v)+outro_silence(5:a).
|
||||
f"[intro][4:a][body][3:a][outro][5:a]concat=n=3:v=1:a=1[v][a]"
|
||||
)
|
||||
# Inputs 0/1: the looping body background + the instrumental. Each card the
|
||||
# theme includes adds a still (cut to its length) and its own silence.
|
||||
inputs = [
|
||||
"-loop", "1", "-framerate", "30", "-i", bg_body,
|
||||
"-i", os.path.abspath(instrumental_path),
|
||||
]
|
||||
chains = [
|
||||
f"[0:v]{ass_filter},trim=duration={body_dur:.3f},setpts=PTS-STARTPTS,"
|
||||
f"scale={w}:{h},setsar=1,fps=30[body]"
|
||||
]
|
||||
segments = {"body": "[body][1:a]"}
|
||||
for name, image, seconds, enabled in (
|
||||
("intro", bg_body, intro, screen_enabled(styles, "intro")),
|
||||
("outro", bg_end, outro, screen_enabled(styles, "end")),
|
||||
):
|
||||
if not enabled:
|
||||
continue
|
||||
video_idx = sum(1 for arg in inputs if arg == "-i")
|
||||
inputs += ["-loop", "1", "-framerate", "30", "-t", f"{seconds:.3f}", "-i", image]
|
||||
inputs += ["-f", "lavfi", "-t", f"{seconds:.3f}", "-i", "anullsrc=r=48000:cl=stereo"]
|
||||
chains.append(f"[{video_idx}:v]scale={w}:{h},setsar=1,fps=30[{name}]")
|
||||
segments[name] = f"[{name}][{video_idx + 1}:a]"
|
||||
order = [segments[n] for n in ("intro", "body", "outro") if n in segments]
|
||||
# Pair each card with its own silence and the body with the instrumental.
|
||||
filtergraph = ";".join(chains) + ";" + "".join(order) + f"concat=n={len(order)}:v=1:a=1[v][a]"
|
||||
|
||||
cmd = [
|
||||
"ffmpeg", "-hide_banner", "-loglevel", "error", "-y",
|
||||
"-loop", "1", "-framerate", "30", "-t", f"{intro:.3f}", "-i", bg_body,
|
||||
"-loop", "1", "-framerate", "30", "-i", bg_body,
|
||||
"-loop", "1", "-framerate", "30", "-t", f"{outro:.3f}", "-i", bg_end,
|
||||
"-i", os.path.abspath(instrumental_path),
|
||||
"-f", "lavfi", "-t", f"{intro:.3f}", "-i", "anullsrc=r=48000:cl=stereo",
|
||||
"-f", "lavfi", "-t", f"{outro:.3f}", "-i", "anullsrc=r=48000:cl=stereo",
|
||||
*inputs,
|
||||
"-filter_complex", filtergraph,
|
||||
"-map", "[v]", "-map", "[a]",
|
||||
"-c:v", "libx264", "-preset", "fast", "-crf", "20", "-pix_fmt", "yuv420p",
|
||||
|
||||
@@ -701,6 +701,16 @@ def get_video_durations(style_params: Dict[str, Any]) -> Tuple[int, int]:
|
||||
return intro_duration, end_duration
|
||||
|
||||
|
||||
def screen_enabled(style_params: Optional[Dict[str, Any]], section: str) -> bool:
|
||||
"""Whether the theme includes the title ("intro") or end ("end") screen in videos.
|
||||
|
||||
``enabled`` is optional (absent = included) and deliberately NOT in
|
||||
DEFAULT_INTRO_STYLE / DEFAULT_END_STYLE, which double as the required-field
|
||||
lists: adding it there would make every existing theme "incomplete".
|
||||
"""
|
||||
return (style_params or {}).get(section, {}).get("enabled", True) is not False
|
||||
|
||||
|
||||
def get_existing_images(style_params: Dict[str, Any]) -> Tuple[Optional[str], Optional[str]]:
|
||||
"""
|
||||
Get existing title and end images from style parameters.
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "karaoke-gen"
|
||||
version = "0.267.1"
|
||||
version = "0.268.0"
|
||||
description = "Generate karaoke videos with synchronized lyrics. Handles the entire process from downloading audio and lyrics to creating the final video with title screens."
|
||||
authors = ["Andrew Beveridge <andrew@beveridge.uk>"]
|
||||
license = "MIT"
|
||||
|
||||
@@ -94,3 +94,37 @@ def test_render_portrait_end_to_end(tmp_path):
|
||||
# Central lyric band should contain near-white text pixels.
|
||||
band = img.crop((0, 900, 1080, 1500))
|
||||
assert band.getextrema()[1] > 180, "expected bright lyric text in the body frame"
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"intro_enabled,end_enabled,expected",
|
||||
[(False, True, 5.0), (True, False, 5.0), (False, False, 4.0)],
|
||||
)
|
||||
def test_render_portrait_omits_screens_the_theme_leaves_out(tmp_path, intro_enabled, end_enabled, expected):
|
||||
audio = tmp_path / "instr.flac"
|
||||
subprocess.run(
|
||||
["ffmpeg", "-hide_banner", "-loglevel", "error", "-y", "-f", "lavfi",
|
||||
"-i", "anullsrc=r=44100:cl=stereo", "-t", "4", str(audio)],
|
||||
check=True,
|
||||
)
|
||||
out = tmp_path / "portrait.mp4"
|
||||
styles = {
|
||||
"karaoke": {},
|
||||
"intro": {"video_duration": 1, "enabled": intro_enabled},
|
||||
"end": {"video_duration": 1, "enabled": end_enabled},
|
||||
}
|
||||
render_portrait_video(
|
||||
correction_result=_fixture_result(),
|
||||
instrumental_path=str(audio),
|
||||
styles=styles,
|
||||
artist="Test Artist",
|
||||
title="Test Title",
|
||||
output_path=str(out),
|
||||
layout=PortraitLayout(),
|
||||
)
|
||||
dur = float(subprocess.run(
|
||||
["ffprobe", "-v", "error", "-show_entries", "format=duration",
|
||||
"-of", "default=noprint_wrappers=1:nokey=1", str(out)],
|
||||
capture_output=True, text=True, check=True,
|
||||
).stdout.strip())
|
||||
assert abs(dur - expected) < 0.5
|
||||
@@ -745,3 +745,29 @@ class TestCdgDuetSingers:
|
||||
# Both (SingerId 0 → CDG singer 3) signature = yellow
|
||||
assert CDG_DUET_SINGERS[2].inactive_fill == (252, 211, 77)
|
||||
assert CDG_DUET_SINGERS[2].active_fill == (255, 255, 255)
|
||||
|
||||
|
||||
class TestScreenEnabled:
|
||||
"""Themes may leave the title ("intro") or end screen out of videos."""
|
||||
|
||||
def test_absent_flag_means_included(self):
|
||||
from karaoke_gen.style_loader import screen_enabled
|
||||
|
||||
assert screen_enabled({"intro": {}, "end": {}}, "intro")
|
||||
assert screen_enabled({}, "end")
|
||||
assert screen_enabled(None, "end")
|
||||
|
||||
def test_only_explicit_false_omits(self):
|
||||
from karaoke_gen.style_loader import screen_enabled
|
||||
|
||||
assert not screen_enabled({"end": {"enabled": False}}, "end")
|
||||
assert screen_enabled({"end": {"enabled": True}}, "end")
|
||||
assert screen_enabled({"end": {"enabled": None}}, "end")
|
||||
|
||||
def test_enabled_is_not_a_required_theme_field(self):
|
||||
from karaoke_gen.style_loader import DEFAULT_END_STYLE, DEFAULT_INTRO_STYLE
|
||||
|
||||
# These double as required-field lists; adding "enabled" would make every
|
||||
# existing theme fail validation.
|
||||
assert "enabled" not in DEFAULT_INTRO_STYLE
|
||||
assert "enabled" not in DEFAULT_END_STYLE
|
||||
Reference in new issue
Block a user