Skip to content

[Config Support]: h264 recording with h265 cameras #16040

Closed Answered by aleare
aleare asked this question in Config Support
Discussion options

You must be logged in to vote

The example uses:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -tag:v hvc1 -bsf:v hevc_mp4toannexb -c:a aac
That configuration lead to errors\black feed. After many different tries I found out it was caused by the audio encoder. So finally I arrived at this configuration that works perfectly with my reolink h265 cameras and correctly displays h265 on iphones:

ffmpeg:
  hwaccel_args: preset-vaapi
  output_args:
    record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime
      1 -c copy -tag:v hvc1 -bsf:v hevc_mp4toannexb
...
go2rtc:
  streams:
    camera_name:
      - rtsp://<user>:<pass>@<ip>/h265Preview_01…

Replies: 1 comment 8 replies

Comment options

NickM-27
Jan 18, 2025
Collaborator Sponsor

You must be logged in to vote
8 replies
@aleare
Comment options

@aleare
Comment options

@NickM-27
Comment options

NickM-27 Jan 21, 2025
Collaborator Sponsor

@aleare
Comment options

Answer selected by aleare
@NickM-27
Comment options

NickM-27 Jan 22, 2025
Collaborator Sponsor

@aleare
Comment options

@NickM-27
Comment options

NickM-27 Jan 22, 2025
Collaborator Sponsor

@aleare
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment