-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestpossibly-fixedMaybe fixed already, but I can't test it or would like confirmationMaybe fixed already, but I can't test it or would like confirmation
Description
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
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestpossibly-fixedMaybe fixed already, but I can't test it or would like confirmationMaybe fixed already, but I can't test it or would like confirmation