Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 30th March 2021, 15:11   #1  |  Link
eth
Registered User
 
Join Date: Mar 2021
Posts: 2
best ffmpeg settings for cctv reencoding?

Dear Doom9ers,

I have a video feed from Hikvision CCTV cameras which is of awesome quality even with low bitrate: open rtsp://doom9:doomdoom1@zoocafe.ath.c...g/Channels/101 in VLC (h265, 2048 kbps, 300 GOP, takes 5-10 seconds to load)

When I reencode it in OBS, the output quality is poor (I can see blocks and artefacts) even on "medium" tuning settings.

Somehow, the Hikvision company managed to figure out the holy grail of encoding even on their tiniest cctv chips (I took one of their cameras apart and was surprised by the low amount of electronics that they use).

Perhaps, there are special fine-tuning parameters for ffmpeg that I could use to get at least closer to that quality without overstressing the processor?

Since the feed is coming from a CCTV, the image is stable all the time (camera isn't shaking). Can I use any tuning parameters to account for this and devote more resources to encoding the actual movements of people/animals/nature within the frame instead of the image in general?

Thank you!

Last edited by eth; 30th March 2021 at 15:16.
eth is offline   Reply With Quote
Old 30th March 2021, 17:08   #2  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,736
Do you need to reencode it at all? If using HEVC isn't a blocker, couldn't you just mux the current stream as is?
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 31st March 2021, 10:11   #3  |  Link
eth
Registered User
 
Join Date: Mar 2021
Posts: 2
Remuxing it would work, but I have streams from several cameras + overlays, everything which I combine in OBS. Here is the live stream: https://www.youtube.com/watch?v=vKxpjUDQHBw
eth is offline   Reply With Quote
Old 31st March 2021, 16:43   #4  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,736
Quote:
Originally Posted by eth View Post
Remuxing it would work, but I have streams from several cameras + overlays, everything which I combine in OBS. Here is the live stream: https://www.youtube.com/watch?v=vKxpjUDQHBw
With some fiddling of bits, you could convert each original HEVC stream into a tile in a bigger HEVC stream, without recompression.

Similar would be possible in H.264 with slices, but they'd have to be vertically stacked.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 2nd April 2021, 22:29   #5  |  Link
rwill
Registered User
 
Join Date: Dec 2013
Posts: 341
Quote:
Originally Posted by benwaggoner View Post
With some fiddling of bits, you could convert each original HEVC stream into a tile in a bigger HEVC stream, without recompression.

Similar would be possible in H.264 with slices, but they'd have to be vertically stacked.
No, an encoder producing a HEVC stream that is to be used as a tile in a larger bitstream needs to constrain certain aspects of the CUs at the picture borders or one get decoding errors. I dont think they took that use case into account when doing their cameras.
rwill is offline   Reply With Quote
Reply

Tags
cctv, ffmpeg, obs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:36.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.