Log in

View Full Version : ConvertToYV12


Anakunda
2nd February 2015, 19:10
Hi

I wanted to know if ConvertToYV12() function is nowadays still required for proper source encoding.
I remark that StaxRip still adds this after source filter automatic.
Somewhere I read that this ConvertToYV12 thing is nowadays redundant but can't find the source anymore.
Does it have some performance impact?

StainlessS
2nd February 2015, 19:44
Does it have some performance impact?
If already YV12, then just returns original clip.

Anakunda
2nd February 2015, 19:49
So do I use YV12? It's Blu-ray demuxed source (AVC/H264)

StainlessS
2nd February 2015, 20:46
If whatever encoder you use does conversion itself, then is six and two three's, ie either you do conversion, or it does.
Try it, does it work ? if so then you have answered your own question.

stax76
3rd February 2015, 03:50
I think x264 and x265 either require it or convert to it and many filters require it.

It was always hard coded but the latest release allows some control, if you want special automatic behavior you have to combine two settings:

main dialog filters menu > right-click > Profiles

main dialog main menu > Tools > Settings > Filters

Currently you can only assign a container to a source filter profile, you can't yet choose a default source filter profile that is used in case there is nothing defined, that is still hard coded to FFVideoSource, I want to make this a setting too.

Anakunda
3rd February 2015, 07:14
I see stax, the custom filter assignments based on source formats is good improvement. In case of using DGSource it seems the video is already in YV12 so the conversion could be removed. I think I converted couple of blurays without it and the output seemed OK. but if the conversion doesn't have any performance impact then it maybe is good to leave it presrnt.

foxyshadis
3rd February 2015, 11:48
The only reason you wouldn't want ConvertToYV12 at the end is if you aren't encoding to YV12; you can also feed x264 with YV16 or YV24, or 10/16-bit versions of any of those. It's pretty rare for most scripts to ever go outside of YV12 anymore (YUY2 or RGB plugins used to be very common), so it's probably superfluous, but it's a no-cost safety guard if you're not certain of the output.