Log in

View Full Version : encoding prores 4:2:2 10bit with lav input


pokazene_maslo
2nd March 2013, 15:05
Hi.

I'm encoding prores file and i don't know which input color space and level should be selected.
input file info by mediainfo:Format : ProRes
Format version : Version 0
Codec ID : apcn
Duration : 5mn 52s
Bit rate mode : Variable
Bit rate : 58.3 Mbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:2
Scan type : Progressive
Bits/(Pixel*Frame) : 2.530
Stream size : 2.39 GiB (89%)
Title : Core Media Video
Writing library : Apple
Encoded date : UTC 2012-10-19 21:39:27
Tagged date : UTC 2012-10-19 21:45:27
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Do i have to setup lav decoder somehow?
my encoding parameters are so far like this:
x264.exe --qp 0 --preset placebo --profile high422 --level 3.1 --ref 5 --merange 32 --output-csp i422 --demuxer lavf
any suggestions?

Thanks

J_Darnley
2nd March 2013, 18:40
Hi.

I'm encoding prores file and i don't know which input color space and level should be selected.

You shouldn't need to "select" one. The decoder can see what colourspace the prores file has.

pokazene_maslo
2nd March 2013, 19:00
Could you please be more specific? Where can I find what color space decoder sees?

J_Darnley
2nd March 2013, 23:48
Sorry I made a typo in my post (soon to be edited). I meant to write: "you shouldn't need..."

You shouldn't need to do anything. Set the output options to get the kind of stream you want and forget about the input. x264 will take care of transforming the input into what you asked for. Why do you want to know what the input is? If it is just for you own curiosity, Mediainfo just told you: yuv422.

P.J
14th July 2017, 10:53
I had similar question too, anyway to know the right bit depth of a prores video?

dipje
14th July 2017, 12:47
prores (decoded by LAV anyway) is always 10 bit. And it's either 4:2:2 or 4:4:4. Prores files I've found in the field were always bt709 / tv-range (limited-range).

The question to ask is where you want to preserve the 10bit-nature or (maybe more importantly) do you want to preserve the 4:2:2 or 4:4:4 nature, or do you want to create 'a regular normal h264 file' (which I describe as 4:2:0 8bit bt709 / tv-range)