notedit / media-server-go-demo

webrtc media server go demo
MIT License
212 stars 64 forks source link

[webrtc-to-hls] Destination path for hls files. #24

Closed benpeterswake closed 4 years ago

benpeterswake commented 4 years ago

Hello, Does anyone know if there is a way to specify a destination path for the hls files? Currently all the files are being generated in the root webrtc-to-hls folder. Thanks, Ben

benpeterswake commented 4 years ago

ok so i figured out a solution. the path can be set in the pipelineStr like so: var pipelineStr = "appsrc do-timestamp=true is-live=true name=appsrc ! h264parse ! mpegtsmux name=muxer ! hlssink max-files=5 target-duration=2 location=./path/to/folder/.%05d.ts playlist-location=./path/to/folder/playlist.m3u8"