harlanc / xiu

A simple,high performance and secure live media server in pure Rust (RTMP[cluster]/RTSP/WebRTC[whip/whep]/HTTP-FLV/HLS).🦀
https://rustxiu.com
MIT License
1.77k stars 187 forks source link

sending video/audio error #30

Closed mu6m closed 1 year ago

mu6m commented 1 year ago

when i tried running it with this config file

#live server configurations
#######################################
#   RTMP configurations(stand-alone)  #
#######################################
[rtmp]
enabled = true
port = 1935

######################################
#    HLS configurations              #
######################################
[hls]
enabled = true
port = 8080

#######################################
#   LOG configurations                #
#######################################
[log]
level = "debug"

it logs this error

[2023-01-10T11:03:07Z ERROR rtmp::channels::channels] Transmiter send error: send audio error

[2023-01-10T11:03:07Z ERROR rtmp::channels::channels] Transmiter send error: send video error

i am using ffmpeg to stream the video

ffmpeg -re -stream_loop -1 -i a.mp4 -c:a copy -c:v copy -f flv -flvflags no_duration_filesize rtmp://localhost:1935/live/test
harlanc commented 1 year ago

what's your play url?

mu6m commented 1 year ago

for hls http://localhost:8080/live/test/test.m3u8 but it return 404

harlanc commented 1 year ago

You can use OBS to push the RTMP stream, I will check this problem.

harlanc commented 1 year ago

@mu6m I released a new version, the problem may be fixed, please try again.