blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
19.47k stars 1.8k forks source link

Set -tag:v hvc1 in exported HEVC files #15129

Open smaugfm opened 1 week ago

smaugfm commented 1 week ago

I want to add a -tag:v hvc1 tag for exported files. I have a Chinese IP camera which is working fine, but the exported mp4 files cannot be opened by QuickTime on macOS, but can be with VLC on macOS. I googled for a bit and found that you have to set the tag hvc1 in the file so it can be opened by QuickTime.

How can this be done? I see in the documentation that you can choose an output_args preset i.e. preset-record-generic, but I am not sure how to add this one argument -tag:v hvc1 to it, or is it even possible?

NickM-27 commented 4 days ago

we will need to add an output arg or two to cover this case most likely

smaugfm commented 4 days ago

Is there any workaround for now?

NickM-27 commented 4 days ago

Using manual args for the output args

smaugfm commented 4 days ago

Could you please post an example that will replicate preset-record-generic but with manual args? I tried to do it (extracted arguments from source code) but no luck - ffmpeg crashes.

NickM-27 commented 3 days ago

https://docs.frigate.video/configuration/camera_specific#annke-c800