ffmepg bitstream filter 之 prores_metadata

这个bitstream filter可以给已编码的码流文件添加colorspace色域信息或修改色域信息。

但这个filter 只支持改变苹果ProRes422编码的视频流的色域信息。对mp4封装格式也不支持。mov支持

若使用h264编码的源利用prores_metadata改变色域信息,会报错,如下所示:

[AVBSFContext @ 0x7fa9c7c074c0] Codec 'h264' (27) is not supported by the bitstream filter 'prores_metadata'. Supported codecs are: prores (147) 
Error initializing bitstream filter: prores_metadata

color_primaries

Set the color primaries. Available values are:

‘auto’

Keep the same color primaries property (default).

‘unknown’

‘bt709’

‘bt470bg’

BT601 625

‘smpte170m’

BT601 525

‘bt2020’

‘smpte431’

DCI P3

‘smpte432’

P3 D65

transfer_characteristics

Set the color transfer. Available values are:

‘auto’

Keep the same transfer characteristics property (default).

‘unknown’

‘bt709’

BT 601, BT 709, BT 2020

matrix_coefficients

Set the matrix coefficient. Available values are:

‘auto’

Keep the same colorspace property (default).

‘unknown’

‘bt709’

‘smpte170m’

BT 601

‘bt2020nc’

 

eg1: Set Rec709 colorspace for each frame of the file

ffmpeg -i INPUT -c copy -bsf:v prores_metadata=color_primaries=bt709:color_trc=bt709:colorspace=bt709 output.mov

但是貌似ffmpeg4.1以上版本才支持,ffmpeg4.2.1是支持的

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值