Skip to content

feature request: allow dashboard overlay stream to stdout? #243

@williamjoy

Description

@williamjoy

First of all thanks for your work, appreciated!

It seems impossible/difficult to use gpu acceleration inside docker on macos/apple silicon, would it be possible to allow generate stream and pipe to ffmpeg on host machine?

Similar to this https://github.com/time4tea/gopro-dashboard-overlay/tree/main/docs/bin#creating-videos-using-only-gpx-file

venv/bin/gopro-dashboard.py --use-gpx-only --gpx ~/Downloads/Morning_Ride.gpx --profile overlay --overlay-size 1920x1080 GH020073-dashboard.mov

probably to generate raw stream (without ffmpeg processing) to stdout venv/bin/gopro-dashboard.py --use-gpx-only --gpx ~/Downloads/Morning_Ride.gpx --overlay-size 1920x1080 --stream-only [FILE_NAME | -] ?

  • To stream it outside container:
venv/bin/gopro-dashboard.py --use-gpx-only --gpx ~/Downloads/Morning_Ride.gpx --overlay-size 1920x1080 --stream-only - | socat STDIO TCP4:docker-host:4321
  • On host machine, run socat server and pipe to ffmpeg with -hwaccel
socat TCP-LISTEN:4321,reuseaddr,fork EXEC:"ffmpeg -hwaccel videotoolbox -hide_banner -y -hide_banner -loglevel info -f rawvideo -framerate 10.0 -s 3840x2160 -pix_fmt rgba -i - -r 30 -vcodec png xxx.mp4"

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestpossibly-fixedMaybe fixed already, but I can't test it or would like confirmation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions