Open TyrasNistru opened 4 years ago
这个应该不支持HEVC 的ts
这个应该不支持HEVC 的ts
I don't think thats the case, since it works if I stream a HEVC file directly to sls.
I am seeing the same issue. Easy to replicate. First stream h264 to sls. Stop the stream and begin streaming HEVC. ffprobe and ffplay reporting as h264 stream and is incorrect.
Same here. The built in TS parser in SLS does not support HEVC, it's unfortunately H264 only. I'm not sure a parser would be needed if there's no recording taking place (especially if for example the SRT stream is coming in encrypted), nevertheless I believe this to be root cause of the problem. If you try to do ffplay -codec:v hevc "srt://..." you will at some point get usable picture but this is only because ffmpeg tends to guess a lot of stuff that it suspects to be broken.
Does this mean srt-live-server does not support h265 streaming at the moment?
EDIT: No, it does not. It seems to mean that one can't change a stream from H264 to H265, without also changing the stream id.
I'm trying to use ffmpeg and SLS to restream a H265/MPEG-TS video stream through SLS, but when I try to play the SRT stream that SLS serves, it is recognized as H264, giving me an audio-only stream.
The UDP-to-SRT ffmpeg call is as follows:
ffmpeg -i udp://239.5.5.1:5004 -c copy -f mpegts "srt://localhost:5554?streamid=transmit/preview/23"
And I Try to play the SRT stream with the following command:
ffplay -i srt://localhost:5554?streamid=player/preview/23
My sls.conf is:
ffplay
andffprobe
returns the following stream information:preceded by a very long repetition of the following error:
The Stream given to SLS is definitly HEVC: