Stas Oskin wrote: > Hi. > > >> Please take into account that your YUV data may actually be YCbCr, the >> format is the same, but the scaling differs. With YCbCr the values >> range from 16-235 (analog standard) instead of the standard 0-255 >> range in the world of computers. >> > > Thanks for the information - I heard about this diffrence, but never thought > it could have such symptoms. > > >> If you are certain you are converting from/to the correct format, then >> you probably found a bug, but it is more likely that you are doing the >> wrong conversion, since the symptoms you describe fit a situation >> where you would have YCbCr data and interpret it as if it was YUV data >> on a 0-255 scale.
If your source was MJPEG, the range was definitely 0-255. If not MJPEG then there is very few chances that the source add a range different than standard YUV (16-235, 16-240), not mentioning Bt 601/709. Encoders take standard YUV (16-235, 16-240) as input. -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA checking for life_signs in -lkenny... no FFmpeg maintainer http://www.ffmpeg.org _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
