software-mansion / live-compositor

Media server for real-time, low latency, programmable video and audio mixing.
https://compositor.live
Other
266 stars 18 forks source link

demo `2-video_broadcast` doesn't work, asset unavailable #765

Closed kosciolek closed 1 month ago

kosciolek commented 1 month ago

The asset https://assets.mixkit.co/videos/preview/mixkit-female-reporter-reporting-with-microphone-in-hand-on-a-chroma-28293-large.mp4 seems to be unavailable.

master - 65c443cfff7773c37dab632f4f33d60c125ac476

~/Documents/disposable/live-compositor/demos npm run 2-tv_broadcast

> live_compositor_demos@1.0.0 2-tv_broadcast
> npm run ts ./2-tv_broadcast/index.ts

> live_compositor_demos@1.0.0 ts
> ts-node --transpile-only ./2-tv_broadcast/index.ts

(node:78967) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Spawning: /Users/juliuszkosciolek/Documents/disposable/live-compositor/demos/.live_compositor/live_compositor/live_compositor
2024-09-11T12:35:49.979454Z  INFO live_compositor::server: Starting LiveCompositor with config:
Config {
    instance_id: "live_compositor_1480334880",
    api_port: 8081,
    logger: LoggerConfig {
        ffmpeg_logger_level: Warn,
        format: Compact,
        level: "info,wgpu_hal=warn,wgpu_core=warn",
    },
    stream_fallback_timeout: 500ms,
    web_renderer: WebRendererInitOptions {
        enable: false,
        enable_gpu: true,
    },
    force_gpu: false,
    download_root: "/var/folders/gh/79gqkbkj3wb7c38fcl2863qr0000gn/T/",
    queue_options: QueueOptions {
        default_buffer_duration: 80ms,
        ahead_of_time_processing: false,
        output_framerate: Framerate {
            num: 30,
            den: 1,
        },
        run_late_scheduled_events: false,
        never_drop_output_frames: false,
    },
    output_sample_rate: 48000,
    required_wgpu_features: Features(
        SAMPLED_TEXTURE_AND_STORAGE_BUFFER_ARRAY_NON_UNIFORM_INDEXING | UNIFORM_BUFFER_AND_STORAGE_TEXTURE_ARRAY_NON_UNIFORM_INDEXING,
    ),
}
2024-09-11T12:35:49.985229Z  INFO compositor_render::wgpu::ctx: Available adapters:
 - AdapterInfo { name: "Apple M3 Pro", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
2024-09-11T12:35:49.985246Z  INFO compositor_render::wgpu::ctx: Using Apple M3 Pro adapter with Metal backend
2024-09-11T12:35:50.000448Z  INFO cosmic_text::font::system: Parsed 1303 font faces in 11ms.
Spawning: ffplay -protocol_whitelist file,rtp,udp /Users/juliuszkosciolek/Documents/disposable/live-compositor/demos/.live_compositor/video_audio_input_9004_9006.sdp
ffplay version 7.0.2 Copyright (c) 2003-2024 the FFmpeg developers
  built with Apple clang version 15.0.0 (clang-1500.3.9.4)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.0.2 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
  libavutil      59.  8.100 / 59.  8.100
  libavcodec     61.  3.100 / 61.  3.100
  libavformat    61.  1.100 / 61.  1.100
  libavdevice    61.  1.100 / 61.  1.100
  libavfilter    10.  1.100 / 10.  1.100
  libswscale      8.  1.100 /  8.  1.100
  libswresample   5.  1.100 /  5.  1.100
  libpostproc    58.  1.100 / 58.  1.100
/Users/juliuszkosciolek/Documents/disposable/live-compositor/demos/utils/utils.ts:44
  promise.child = child;
                      ^
Error: Request to https://assets.mixkit.co/videos/preview/mixkit-female-reporter-reporting-with-microphone-in-hand-on-a-chroma-28293-large.mp4 failed.
[object Object]
    at /Users/juliuszkosciolek/Documents/disposable/live-compositor/demos/utils/utils.ts:75:22
    at step (/Users/juliuszkosciolek/Documents/disposable/live-compositor/demos/utils/utils.ts:44:23)
    at Object.next (/Users/juliuszkosciolek/Documents/disposable/live-compositor/demos/utils/utils.ts:25:53)
    at fulfilled (/Users/juliuszkosciolek/Documents/disposable/live-compositor/demos/utils/utils.ts:16:58)
    at processTicksAndRejections (node:internal/process/task_queues:105:5) {
  response: Response {
    size: 0,
    timeout: 0,
    [Symbol(Body internals)]: { body: [PassThrough], disturbed: true, error: null },
    [Symbol(Response internals)]: {
      url: 'https://assets.mixkit.co/videos/preview/mixkit-female-reporter-reporting-with-microphone-in-hand-on-a-chroma-28293-large.mp4',
      status: 403,
      statusText: 'Forbidden',
      headers: [Headers],
      counter: 0
    }
  }
}