bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.45k stars 1.57k forks source link

How to implement ffmpeg -tag:v hvc1 #1990

Open Fecool1123 opened 1 year ago

Fecool1123 commented 1 year ago

recorder.setVideoOption("tag:v", "hvc1"); invalid

saudet commented 1 year ago

Please give it a try with the snaphots: http://bytedeco.org/builds/

Fecool1123 commented 1 year ago

请尝试使用快照:http: //bytedeco.org/builds/

I want the output of hevc file to be hvc1 instead of hev1. If you set -tag:v hvc1 in ffmpeg, hvc1 will be output successfully. FFmpegFrameRecorder setVideoOption("tag:v", "hvc1 ") is not valid, other setVideoOption("b", "1000k ") is useful

saudet commented 1 year ago

To set the video codec, call setVideoCodec().

Fecool1123 commented 1 year ago

要设置视频编解码器,请调用 setVideoCodec()。

I set setVideoCodec(avcodec.AV_CODEC_ID_H265), do I need to set anything else

saudet commented 1 year ago

If you want to use HVC1, that's not H265, of course.

Fecool1123 commented 1 year ago

If you want to use HVC1, that's not H265, of course.

Which should be used?

saudet commented 1 year ago

It looks like libx265 supports it, but someone will need to figure out how to set the "tag" for that...

Fecool1123 commented 1 year ago

看起来 libx265 支持它,但有人需要弄清楚如何为此设置“标签”......

The default is hev1, which cannot be opened on mac, hvc1 is required