Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Low Quality of stream #18

Open
timofei-iatsenko opened this issue May 11, 2021 · 2 comments
Open

Low Quality of stream #18

timofei-iatsenko opened this issue May 11, 2021 · 2 comments

Comments

@timofei-iatsenko
Copy link

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.

@vzakharchenko
Copy link
Owner

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
Copy link
Owner

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 -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants