arielmol / dviz

Automatically exported from code.google.com/p/dviz
0 stars 0 forks source link

Video Background Cross-fading "flashes" at end of fade #67

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
- Create song
- Add video bg
- Go live
- Fade between slides
- At end of each fade, it 'flashes' to next slide

Original issue reported on code.google.com by josiahbryan@gmail.com on 28 Feb 2010 at 1:21

GoogleCodeExporter commented 8 years ago
Visible in Qt 4.6.2 on Windows XP in Release Mode. 
NOT visible under Qt 4.6.1 (2010.01) under Linux in Debug Mode.

Original comment by josiahbryan@gmail.com on 28 Feb 2010 at 3:02

GoogleCodeExporter commented 8 years ago
Converted QVideoDecoder to decode and convert frames to PIX_FMT_RGB565, then 
push the
bits into a QImage via the QImage constructor
(uchar*dataptr,<width>,<height>,QImage::Format_RGB16); Performance seems about 
the
same - still need to test and see if this fixes the problem up on PHC's 
servers. Qt
4.6.2 tests fine under linux - but it never had the problem to begin with. 

Putting this issue on hold till I can test at PHC again.

Original comment by josiahbryan@gmail.com on 1 Mar 2010 at 4:15

GoogleCodeExporter commented 8 years ago
Windows *seems* to need BGR instead of RGB for the av_codec pix fmt. Tested on
original system that exhibited the problem - cross fade works as desired now. 
Closing
issue since problem seems fixed as of r511.

Original comment by josiahbryan@gmail.com on 4 Mar 2010 at 12:17

GoogleCodeExporter commented 8 years ago
RGB/BGR does seem to be windows-specific. Added conditional macro 'RAW_PIX_FMT' 
to
top of QVideoDecoder.cpp - defines RAW_PIX_FMT as PIX_FMT_BGR565 if windows, or
PIX_FMT_RGB565 for anything else.

Original comment by josiahbryan@gmail.com on 4 Mar 2010 at 2:12