rtsp-samsung-tv icon indicating copy to clipboard operation
rtsp-samsung-tv copied to clipboard

Low Quality of stream

Open thekip opened this issue 3 years ago • 2 comments

Hey, thanks for fast fixing a previous issue. I was able to succesfully start the server configure cameras and watch the stream.

But quality of stream was very poor. What params should be added to ffmpeg to improve video quality?

I have HikVision cameras which have 2 streams. The primary stream is 720p h.265 which I tried to restream.

I also didn't find a way to change stream resolution using Admin UI. I saw a parameter in UI but have no luck changing it.

thekip avatar May 11 '21 12:05 thekip

If you want to change stream resolution for http://<SERVER_IP>:3004/camera.html than you can try command:

docker exec  rtsp-samsung-tv bash -c "echo '{\"currentChannel\":0,\"width\":1920,\"height\":1080}' > /.currentChannel && pm2 restart server"

But this setting will be reset when you install app on your TV, because the screen resolution automatically set depending on your TV.

vzakharchenko avatar May 11 '21 17:05 vzakharchenko

About 720p h.265 My camera supports only h.264 and I do not know how to increase quality for h.265. But this project is a wrapper over ffmpeg so you can ask ffmpeg team

To see ffmpeg command:

docker exec  rtsp-samsung-tv bash -c "apt install -y procps && ps ax| grep ffmpeg"

result:

   4703 ?        SLl    1:53 ffmpeg -rtsp_transport tcp -i rtsp://stream -nostats -r 30 -loglevel quiet -vf scale=1920:1080 -f mpegts -codec:v mpeg1video -
   4754 ?        Ss     0:00 bash -c apt install -y procps && ps ax| grep ffmpeg
   4764 ?        S      0:00 grep ffmpeg

where ffmpeg command is

ffmpeg -rtsp_transport tcp -i rtsp://stream -nostats -r 30 -loglevel quiet -vf scale=1920:1080 -f mpegts -codec:v mpeg1video -

vzakharchenko avatar May 11 '21 17:05 vzakharchenko