-
Notifications
You must be signed in to change notification settings - Fork 550
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
4k h265 to 720p h264 #1517
Comments
You have many unsupported params for ffmpeg source. I don't know where you get them. |
after more testing you right, i definitely mixed up lots of the stuff i googled and read from reddit, frigate, and github. rtsp:
listen: ":8554" # RTSP Server TCP port, default - 8554
username: "user" # Optional, default - disabled
password: "password" # Optional, default - disabled
default_query: "video&audio" # Optional, default codecs filters
streams:
# Input Stream: Original H.265 stream from the camera
3F_Hallway_record:
- rtsp://cam_user:[email protected]:554/h265Preview_01_main
3F_Hallway_detect:
- ffmpeg:rtsp://cam_user:[email protected]:554/h265Preview_01_main#video=h264#hardware#width=1280#height=720#fps=15 _record stream working as expected error log:
am close to the h264 720p 15 fps target. perhaps you can point me to what am doing wrong. |
made another tweak and the green screen cleared out and it's getting transcoded to 720p:
however i am uncertain if this is using the gpu to transcode. |
You definitely have some kind of hardware transcoding problem. That's why it's turned off by default. It is unpredictable in different environments. First try hardware transcoding without resizing the picture. PS. |
hardware trancoding works with the cpu but can't seem to figure out the correct flags to get the gpu to do the work. i found this from nvidia's docs hub: from that i gathered these flags would make sense testing: enable hardware acceleration, use cuda, copy audio, transcode video to h264, bitrate of 4Mbit... do correct me if how i converted those flags with # is wrong. am clearly over my head. lol |
i got go2rtc installed in a container with an nvidia gpu presented.
nvidia-smi is working
image is go2rtc:master-hardware
from the same stream, i want to forward the original for record and downscaled 720p version for detect.
record is working tested via go2rtc UI and ffmpeg from a remote machine
detect stream plays tested via UI, but still shows 4k and avframe (is avframe h264?)
some guidance is appreciated.
The text was updated successfully, but these errors were encountered: