[FFmpeg-devel] [RFC] Videos that change colorspace

Michael Niedermayer michaelni
Thu Jun 18 11:46:53 CEST 2009


On Wed, Jun 17, 2009 at 06:53:39PM -0700, Jason Garrett-Glaser wrote:
> Some quite popular camera is producing MJPEG videos that change
> colorspace: the first frame is YUVJ422P and all frames afterwards are
> YUVJ420P.
> 
> This crashes ffmpeg (since swscale doesn't get re-initted after the
> video finding a new colorspace, and attempts to resample chroma that
> doesn't exist).  It creates rather funky video in Virtualdub as well,
> but works perfectly in FFDshow+MPC on Windows.
> 
> The relevant ticket can be found here:
> https://roundup.ffmpeg.org/roundup/ffmpeg/issue1165
> 
> To give you an idea of how widespread this issue is, Facebook receives
> (my estimate based on grepping the logs) around one thousand of these
> files a day.
> 
> How should we deal with this issue?

same as with resolution changes ... theres a patch for the later that i
should review ...

anyway, any idea why th cammera does that?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If a bugfix only changes things apparently unrelated to the bug with no
further explanation, that is a good sign that the bugfix is wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090618/072b09ca/attachment.pgp>



More information about the ffmpeg-devel mailing list