avsaase / walksnail-osd-tool

Cross-platform tool for rendering the flight controller OSD and SRT data from the Walksnail Avatar HD FPV system on top of the goggle or VRX recording
GNU General Public License v3.0
99 stars 11 forks source link

OSD only updates every 4 seconds in rendered video #52

Open howels opened 5 months ago

howels commented 5 months ago

Is there an existing issue for this?

Software version

dev (1044026)

What operating system are you using?

Ubuntu 24.04

What GPU are you using?

7900XTX

What problem did you encounter?

OS data shows correctly in preview and I can see second-by-second updates. However the rendered video only updates the UI every 4 seconds. I can see the timer counting 0,4,8,12 and nothing in between. Flight video is otherwise playing normally and perfectly smooth.

Link to screenshots

No response

Link to video, OSD and font files

No response

Log output

2024-06-26T13:48:54.249403Z  INFO backend::ffmpeg::render: close, time.busy: 169ms, time.idle: 13.5µs
    at backend/src/ffmpeg/render.rs:22
    in backend::ffmpeg::render::start_video_render with ffmpeg_path: "ffmpeg", input_video: "/home/stephen/Videos/2024-parkfly/AvatarG0055.mp4", output_video: "/home/stephen/Videos/2024-parkfly/AvatarG0055_with_osd.mp4", srt_font: Font, osd_options: OsdOptions { position: Coordinates { x: 0, y: 0 }, adjust_playback_speed: true, osd_playback_speed_factor: 0.99991626, masked_grid_positions: {} }, srt_options: SrtOptions { position: Coordinates { x: 1.5, y: 95.0 }, scale: 35.0, show_time: false, show_sbat: false, show_gbat: false, show_signal: true, show_latency: true, show_bitrate: true, show_distance: false }, video_info: VideoInfo { width: 1280, height: 720, frame_rate: 60.004044, bitrate: 38951101, duration: 247.300003052s, total_frames: 14839 }, render_settings: RenderSettings { encoder: Encoder { name: "libx264", codec: H264, hardware: false, detected: true }, selected_encoder_idx: 0, show_undetected_encoders: false, bitrate_mbps: 40, upscale: false, use_chroma_key: false, chroma_key: [0.003921588, 0.69411767, 0.25098073] }

  2024-06-26T13:48:54.249437Z  WARN backend::ffmpeg::render: ffmpeg log: [swscaler @ 0x5adfabd2da80] [warning] deprecated pixel format used, make sure you did set range correctly
    at backend/src/ffmpeg/render.rs:182
    in backend::ffmpeg::render::Decoder handler thread

  2024-06-26T13:48:54.249466Z  WARN backend::ffmpeg::render: ffmpeg log: [swscaler @ 0x5adfacb3c6c0] [warning] deprecated pixel format used, make sure you did set range correctly
    at backend/src/ffmpeg/render.rs:182
    in backend::ffmpeg::render::Decoder handler thread

  2024-06-26T13:48:54.249473Z  WARN backend::ffmpeg::render: ffmpeg log: [swscaler @ 0x5adfacb3c6c0] [warning] deprecated pixel format used, make sure you did set range correctly
    at backend/src/ffmpeg/render.rs:182
    in backend::ffmpeg::render::Decoder handler thread

  2024-06-26T13:48:54.249479Z  WARN backend::ffmpeg::render: ffmpeg log: [swscaler @ 0x5adfacb3c6c0] [warning] deprecated pixel format used, make sure you did set range correctly
    at backend/src/ffmpeg/render.rs:182
    in backend::ffmpeg::render::Decoder handler thread

  2024-06-26T13:50:40.335884Z  INFO backend::ffmpeg::render: close, time.busy: 106s, time.idle: 2.44µs
    at backend/src/ffmpeg/render.rs:79
    in backend::ffmpeg::render::Decoder handler thread

  2024-06-26T13:50:40.743458Z  INFO backend::ffmpeg::render: ffmpeg encoder EOF reached
    at backend/src/ffmpeg/render.rs:162
    in backend::ffmpeg::render::Encoder handler thread

  2024-06-26T13:50:40.743490Z  INFO backend::ffmpeg::render: close, time.busy: 106s, time.idle: 2.24µs
    at backend/src/ffmpeg/render.rs:91
    in backend::ffmpeg::render::Encoder handler thread