Edward-Wu / srt-live-server

srt live server for low latency
Other
645 stars 192 forks source link

H265 recorded video is of very bad quality. #81

Open killshotrevival opened 3 years ago

killshotrevival commented 3 years ago

Hello everyone, I was trying to implement @Edward-Wu srt-live-server with the recording feature. Everything works fine but the problem occurs when I try to stream with the H265 codec. When I stream with H264 everything works fine but as soon as I switch to H265 the quality of the recorded video is very bad and when I try to catch it using FFMPEG on local there is lots of frame drop as well. Does anyone have a solution for this problem, or know any specific code to make recording H265 compatible.

I looked in some closed issues that this is a problem of server parser, but I was not able to confirm it by looking into the code.

Edward-Wu commented 3 years ago

hi, killshotrevival what ‘s your tools of pushing and playing h265 stream to sls ?

killshotrevival commented 3 years ago

@Edward-Wu , I m pushing with ffmpeg and for playing, i m catching it first using ffmpeg aad storing it

krakow10 commented 3 years ago

I am getting fabulous quality using hevc_nvenc nvidia hardware encoder with OBS using ffmpeg custom output. Streaming also works great with ffmpeg. My settings are 1440p 10mbps with "-preset slow" for video encoder settings. For 4k60 "-preset fast" must be used instead.

matiaspl commented 2 years ago

Likely to be related to #36