2012/2/16 Maksym Veremeyenko <ve...@m1stereo.tv>: > 02.02.12 19:03, Maksym Veremeyenko написав(ла): >> >> Hi, >> >> >> i am trying to decrease cpu usage, so i would like to use >> PIX_FMT_YUVA420P animation instead of PIX_FMT_BGRA (or other rgb with >> alpha channel) but has no luck.. >> >> video with such pixel format in *nut* container has detected by ffmpeg >> properly, but mlt did not use it alpha channel. >> >> i can provide a sample if required... >> > > alpha been ignored for PIX_FMT_YUVA420P and PIX_FMT_YUVA444P pixel format. > moreover current implementation of libswscale drop alpha channel if > destination format has no alpha and not planar (even if buffer specified) > > attached patch extract alpha plane during image decoding. it works almost > fine except moments when image fetched from cache (even if *noimagecache* > specified). another problem is artifact that appear if last frame in movie > is not transparent but producer specifies *out* out of animation. > > another attempt to fix this was to fix mlt_frame_clone (patch attached) but > it has no luck too...
OK, thank you for the start of this effort. I will look at it this weekend. -- +-DRD-+ ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel