egress
egress copied to clipboard
[BUG] failed to change state to PLAYING
Describe the bug When I post a start track egress like this
curl -X POST http://127.0.0.1:7880/twirp/livekit.Egress/StartTrackEgress \
-H "Authorization: Bearer sometoken" \
-H 'Content-Type: application/json' \
-d '{"room_name":"localroom","file":{"filepath": "/out/test/"}, "track_id": "TR_abc"}'
livekit-cli list-egress --api-key key --api-secret somesecret
Egress Version I am using the following docker setup
version: "3.9"
services:
livekit:
image: livekit/livekit-server:v1.5
command: --config ./livekit.yaml --node-ip 127.0.0.1
container_name: livekit
restart: always
ports:
- '7880:7880'
- '7881:7881'
- '7882:7882/udp'
volumes:
- /home/mi/mi_workspace/livekit/docker/livekit/livekit.yaml:/livekit.yaml
# livekit_ingress:
# image: livekit/ingress
# command: --config ./livekit-ingress.yaml
# container_name: livekit_ingress
# restart: always
# ports:
# - 1935:1935
# - 8080:8080
# depends_on:
# - redis
# volumes:
# - /home/mi/mi_workspace/livekit/docker/ingress/livekit-ingress.yaml:/livekit-ingress.yaml
livekit_egress:
image: livekit/egress
command: --security-opt seccomp=chrome-sandboxing-seccomp-profile.json
container_name: livekit_egress
restart: always
environment:
EGRESS_CONFIG_FILE: ./livekit-egress.yaml
depends_on:
- redis
volumes:
- /home/mi/mi_workspace/livekit/docker/egress/livekit-egress.yaml:/livekit-egress.yaml
- /home/mi/mi_workspace/livekit/recordings:/out
redis:
container_name: redis
image: redis/redis-stack
restart: always
ports:
- 6379:6379
volumes:
- redisdata:/data
volumes:
redisdata:
Egress Request Posted above. Additional context I am running this setup on my local machine. Logs' screenshot attached below.
Logs
You have permission denied
errors in the logs when it's trying to create the file. Does it have write access to that directory?
Yes, the permissions and ownership are correct. I want to save the file locally on a mounted volume.
@mibrahimy have you solved it, i have the same error
Update:
solved the file path should be something like this /out/output_audio.mp4