[FFmpeg-user] Converting and encoding in same step without pipes

Andy Furniss adf.lists at gmail.com
Sat Apr 8 02:53:33 EEST 2017

Aarthi Priya Thirumalai wrote:
> Hello all,
> In my current set, I am trying to encode content with ffmpeg. The
> ffmpeg receives the source input through a Black Magic Declink 4K pro
> capture card. Input to the capture card is a prores 4:2:2 4k60 10bit
> content from Atomos Shogun device. I want to convert my input from
> Prores 4K10 bit 4:2:2 to 4K10bit 4:2:0 and directly encode through
> libx265/libx264 in ffmpeg in a single step instead of doing the
> conversion and storing in a intermediary file and again feeding that
> into ffmpeg.
> I would like to know if there is a way to do this  - conversion and
> encoding in a single step, without using system pipes in ffpmeg? pls
> let me know your thoughts and suggestions.

If the content is progressive then as simple as adding

-vf format=yuv420p10le

You could also consider adding flags to get slightly better psnr/ssim
though the difference is likely to be small in this case and I don't
know what ones would be best without testing a sample.

More information about the ffmpeg-user mailing list