Open anhorbc opened 3 weeks ago
I have a similar issue. I am trying to follow the docs. and use ffmpeg to feed mediamtx a live video stream.
ffplay says some things about the source stream:
Input #0, rtsp, from 'rtsp://localhost:10000/test':
Metadata:
title : Session streamed with GStreamer
comment : rtsp-server
Duration: N/A, start: 0.199989, bitrate: N/A
Stream #0:0: Video: h264 (Constrained Baseline), yuv420p(tv, smpte170m, progressive), 320x240 [SAR 1:1 DAR 4:3], 30 fps, 30 tbr, 90k tbn, 60 tbc
ffplay also says some things about the mediamtx stream:
Input #0, rtsp, from 'rtsp://localhost:8554/feed':
Metadata:
title : Session streamed with GStreamer
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mpeg4 (Simple Profile), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 30 tbr, 90k tbn, 30 tbc
I use this to publish the stream:
ffmpeg -i "rtsp://127.0.0.1:10000/test" -f rtsp rtsp://127.0.0.1:8554/feed
But the web interface always says there stream doesn't contain any supported codec...
<html>
<iframe src="http://localhost:8889/feed" scrolling="no"></iframe>
</html>
Which version are you using?
1.91
Which operating system are you using?
Windows amd64 standard
Describe how to replicate the issue
Log output: 2024/10/01 10:43:03 INF [WebRTC] [session 10e1607c] created by [::1]:60449 2024/10/01 10:43:03 INF [WebRTC] [session 10e1607c] closed: the stream doesn't contain any supported codec, which are currently AV1, VP9, VP8, H264, Opus, G722, G711, LPCM 2024/10/01 10:43:04 INF [HLS] [muxer mycamera] created (requested by [::1]:60466) 2024/10/01 10:43:04 INF [HLS] [muxer mycamera] destroyed: the stream doesn't contain any supported codec, which are currently AV1, VP9, H265, H264, Opus, MPEG-4 Audio
Reading the proxy stream with RTSP/VLC works fine: 2024/10/01 10:46:32 INF [RTSP] [conn [::1]:63885] opened 2024/10/01 10:46:32 INF [RTSP] [session 7ce2bd4c] created by [::1]:63885 2024/10/01 10:46:32 INF [RTSP] [session 7ce2bd4c] is reading from path 'mycamera', with TCP, 1 track (Generic)
Server logs
No response
Network dump
No response