Re: [FFmpeg-devel] [PATCH 2/2] ffmpeg: Use the colour properties from the input stream when doing transcode

2018-05-29 Thread Tobias Rapp
On 28.05.2018 09:30, Xiang, Haihao wrote: On Sat, 2018-05-26 at 17:29 +0100, Mark Thompson wrote: On 25/05/18 07:57, Tobias Rapp wrote: On 25.05.2018 07:58, Xiang, Haihao wrote: On Thu, 2018-05-24 at 11:15 +0100, Mark Thompson wrote: For example: ffmpeg -i bt709_input.mkv -vf colorspace=bt2

Re: [FFmpeg-devel] [PATCH 2/2] ffmpeg: Use the colour properties from the input stream when doing transcode

2018-05-28 Thread Xiang, Haihao
On Sat, 2018-05-26 at 17:29 +0100, Mark Thompson wrote: > On 25/05/18 07:57, Tobias Rapp wrote: > > On 25.05.2018 07:58, Xiang, Haihao wrote: > > > On Thu, 2018-05-24 at 11:15 +0100, Mark Thompson wrote: > > > > > > > > For example: > > > > > > > > ffmpeg -i bt709_input.mkv -vf colorspace=bt2020

Re: [FFmpeg-devel] [PATCH 2/2] ffmpeg: Use the colour properties from the input stream when doing transcode

2018-05-26 Thread Mark Thompson
On 25/05/18 07:57, Tobias Rapp wrote: > On 25.05.2018 07:58, Xiang, Haihao wrote: >> On Thu, 2018-05-24 at 11:15 +0100, Mark Thompson wrote: >>> >>> For example: >>> >>> ffmpeg -i bt709_input.mkv -vf colorspace=bt2020 bt2020_output.mkv >>> >>> will have the output file marked as BT.709 after this p

Re: [FFmpeg-devel] [PATCH 2/2] ffmpeg: Use the colour properties from the input stream when doing transcode

2018-05-25 Thread Marton Balint
On Fri, 25 May 2018, Tobias Rapp wrote: On 25.05.2018 07:58, Xiang, Haihao wrote: On Thu, 2018-05-24 at 11:15 +0100, Mark Thompson wrote: For example: ffmpeg -i bt709_input.mkv -vf colorspace=bt2020 bt2020_output.mkv will have the output file marked as BT.709 after this patch, where pre

Re: [FFmpeg-devel] [PATCH 2/2] ffmpeg: Use the colour properties from the input stream when doing transcode

2018-05-24 Thread Tobias Rapp
On 25.05.2018 07:58, Xiang, Haihao wrote: On Thu, 2018-05-24 at 11:15 +0100, Mark Thompson wrote: For example: ffmpeg -i bt709_input.mkv -vf colorspace=bt2020 bt2020_output.mkv will have the output file marked as BT.709 after this patch, where previously it was "unspecified". (Explicitly set

Re: [FFmpeg-devel] [PATCH 2/2] ffmpeg: Use the colour properties from the input stream when doing transcode

2018-05-24 Thread Xiang, Haihao
On Thu, 2018-05-24 at 11:15 +0100, Mark Thompson wrote: > On 24/05/18 07:29, Xiang, Haihao wrote: > > On Wed, 2018-05-23 at 03:27 +0200, Michael Niedermayer wrote: > > > On Mon, May 21, 2018 at 11:07:34PM +0100, Mark Thompson wrote: > > > > On 16/05/18 08:19, Haihao Xiang wrote: > > > > > In lavc/h

Re: [FFmpeg-devel] [PATCH 2/2] ffmpeg: Use the colour properties from the input stream when doing transcode

2018-05-24 Thread Mark Thompson
On 24/05/18 07:29, Xiang, Haihao wrote: > On Wed, 2018-05-23 at 03:27 +0200, Michael Niedermayer wrote: >> On Mon, May 21, 2018 at 11:07:34PM +0100, Mark Thompson wrote: >>> On 16/05/18 08:19, Haihao Xiang wrote: In lavc/hevec_vaapi, colour properties in AVCodecContext are needed to write

Re: [FFmpeg-devel] [PATCH 2/2] ffmpeg: Use the colour properties from the input stream when doing transcode

2018-05-24 Thread Tobias Rapp
On 22.05.2018 00:07, Mark Thompson wrote: On 16/05/18 08:19, Haihao Xiang wrote: In lavc/hevec_vaapi, colour properties in AVCodecContext are needed to write the sequence header Tested by the command below: ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -

Re: [FFmpeg-devel] [PATCH 2/2] ffmpeg: Use the colour properties from the input stream when doing transcode

2018-05-23 Thread Xiang, Haihao
On Wed, 2018-05-23 at 03:27 +0200, Michael Niedermayer wrote: > On Mon, May 21, 2018 at 11:07:34PM +0100, Mark Thompson wrote: > > On 16/05/18 08:19, Haihao Xiang wrote: > > > In lavc/hevec_vaapi, colour properties in AVCodecContext are needed to > > > write the sequence header > > > > > > Tested

Re: [FFmpeg-devel] [PATCH 2/2] ffmpeg: Use the colour properties from the input stream when doing transcode

2018-05-22 Thread Michael Niedermayer
On Mon, May 21, 2018 at 11:07:34PM +0100, Mark Thompson wrote: > On 16/05/18 08:19, Haihao Xiang wrote: > > In lavc/hevec_vaapi, colour properties in AVCodecContext are needed to > > write the sequence header > > > > Tested by the command below: > > ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/r

Re: [FFmpeg-devel] [PATCH 2/2] ffmpeg: Use the colour properties from the input stream when doing transcode

2018-05-21 Thread Mark Thompson
On 16/05/18 08:19, Haihao Xiang wrote: > In lavc/hevec_vaapi, colour properties in AVCodecContext are needed to > write the sequence header > > Tested by the command below: > ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 > -hwaccel_output_format vaapi -i input-with-hdr.mkv -c:v hevc_va

[FFmpeg-devel] [PATCH 2/2] ffmpeg: Use the colour properties from the input stream when doing transcode

2018-05-16 Thread Haihao Xiang
In lavc/hevec_vaapi, colour properties in AVCodecContext are needed to write the sequence header Tested by the command below: ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i input-with-hdr.mkv -c:v hevc_vaapi -profile:v main10 output.h265 Signed-off-by: H