Page 1 of 1

Bluescreen example in wiki broken

Posted: 26 Oct 2009 09:39
by vangloria
Is the bluescreen example at http://wiki.videolan.org/Documentation: ... bluescreen broken? Note the error at the end of the log:
  • bluescreen error: Unsupported input chroma "I420". Bluescreen can only use "YUVA".
I used the example files from the wiki link, so I'm not sure I need an additional I420->YUVA conversion.

The log shows the YUVA chroma option is parsed ok.

Code: Select all

(log excerpts) main debug: set config option: sout-mosaic-bridge-vfilter to bluescreen // bluescreen loaded ok main debug: set config option: sout-mosaic-bridge-chroma to YUVA // chroma option ok main debug: using sout stream module "stream_out_mosaic_bridge" main debug: `redefined-nintendo.mpg' successfully opened main debug: `rushfondvert.avi' successfully opened main debug: Buffering 0% main debug: switching to sync mode main debug: Buffering 8% main debug: adding a new sout input (sout_input:0x3933c68) stream_out_duplicate debug: duplicated a new stream codec=s16l (es=1 group=0) main debug: Buffering 4% main error: cannot create packetizer output (s16l) packetizer_mpeg4video warning: waiting for VOL main debug: Buffering 13% (...) main debug: Buffering 25% main debug: adding a new sout input (sout_input:0x3933ee0) stream_out_duplicate debug: duplicated a new stream codec=mp4v (es=0 group=0) main debug: looking for decoder module: 36 candidates main debug: Buffering 33% (...) main debug: Buffering 66% mpeg_audio debug: MPGA channels:2 samplerate:44100 bitrate:224 main debug: Buffering 71% (...) main debug: Buffering 97% main debug: Stream buffering done (306 ms in 21 ms) main debug: thread started main debug: looking for video filter2 module: 20 candidates main debug: Buffering 91% main debug: Buffering 100% main debug: Stream buffering done (325 ms in 21 ms) swscale debug: 32x32 chroma: YUVA -> 16x16 chroma: YUVA with scaling using Bicubic (good quality) stream_out_mosaic_bridge debug: psz_chain: bluescreen main debug: using video filter2 module "bluescreen" main debug: Filter 'bluescreen' (0x39e34c4) appended to chain stream_out_duplicate debug: - added for output 0 main debug: Decoder buffering done in 91 ms bluescreen error: Unsupported input chroma "I420". Bluescreen can only use "YUVA".
I'm using the win 1.0.2 version downloaded from the videolan site. (EDIT: same error with 0.9.9a on ubuntu.)

Example code at http://wiki.videolan.org/Documentation: ... bluescreen for reference:

Code: Select all

new channel0 broadcast enabled setup channel0 input rushfondvert.avi setup channel0 output #duplicate{dst=mosaic-bridge{chroma=YUVA,vfilter=bluescreen},select=video} new background broadcast enabled setup background input redefined-nintendo.mpg control background play control channel0 play

Re: Bluescreen example in wiki broken

Posted: 26 Oct 2009 11:14
by vangloria
The source for bluescreen.c reads:

Code: Select all

if( p_filter->fmt_in.video.i_chroma != VLC_FOURCC('Y','U','V','A') ) { msg_Err( p_filter, "Unsupported input chroma \"%4s\". " "Bluescreen can only use \"YUVA\".", (char*)&p_filter->fmt_in.video.i_chroma ); return VLC_EGENERIC; }
And the code for mosaic_bridge.c reads (note TODO):

Code: Select all

else { /* TODO: chroma conversion if needed */ p_new_pic = (picture_t*)malloc( sizeof(picture_t) ); if( p_new_pic == NULL ) { msg_Err( p_stream, "image conversion failed" ); continue; }
So, the chroma parameter doesn't actually perform a conversion?

Re: Bluescreen example in wiki broken

Posted: 26 Oct 2009 13:28
by VLC_help
--sout-mosaic-bridge-chroma=<string>
Image chroma
Force the use of a specific chroma. Use YUVA if you're planning to
use the Alphamask or Bluescreen video filter.

Re: Bluescreen example in wiki broken

Posted: 29 Oct 2009 15:44
by vangloria
I tried adding
setup channel0 option sout-mosaic-bridge-chroma=YUVA
to the vlm file. It didn't work.

Could you provide me with a working vlm file? Thank you for your reply.

Re: Bluescreen example in wiki broken

Posted: 30 Oct 2009 21:06
by VLC_help
Could you try that in the startup command? If it doesn't work in that case either, I can open ticket for it.

Re: Bluescreen example in wiki broken

Posted: 02 Nov 2009 19:10
by vangloria
I get the same error. Log follows. Thanks for your attention.

Code: Select all

-- logger module started -- main debug: using interface module "logger" main debug: TIMER module_need() : 31.000 ms - Total 31.000 ms / 1 intvls (Avg 31.000 ms) main debug: thread (interface) created at priority 0 (../.././src/interface/interface.c:151) main debug: looking for interface module: 1 candidate main debug: thread started main debug: thread ended main debug: using interface module "hotkeys" main debug: TIMER module_need() : 25.000 ms - Total 25.000 ms / 1 intvls (Avg 25.000 ms) main debug: using demux module "ps" main debug: TIMER module_need() : 70.000 ms - Total 70.000 ms / 1 intvls (Avg 70.000 ms) main debug: looking for a subtitle file in D:\src\vlc-scripts\ main debug: using packetizer module "packetizer_mpeg4video" main debug: `redefined-nintendo.mpg' successfully opened main debug: TIMER module_need() : 35.000 ms - Total 35.000 ms / 1 intvls (Avg 35.000 ms) main debug: thread (decoder) created at priority 0 (../.././src/input/decoder.c:315) main debug: thread started ps debug: we found a length of: 279849789 ps debug: we found a length of: 279904633 main debug: looking for packetizer module: 21 candidates main debug: selecting program id=0 main debug: looking for decoder module: 36 candidates main debug: thread (interface) created at priority 0 (../.././src/interface/interface.c:151) main debug: using packetizer module "packetizer_copy" main debug: TIMER module_need() : 8.000 ms - Total 8.000 ms / 1 intvls (Avg 8.000 ms) main debug: thread (decoder) created at priority 2 (../.././src/input/decoder.c:315) main debug: thread started main debug: starting in async mode main debug: `rushfondvert.avi' successfully opened main debug: Buffering 0% main debug: switching to sync mode main debug: Buffering 8% main debug: adding a new sout input (sout_input:0x1237c28) packetizer_mpeg4video warning: waiting for VOL stream_out_duplicate debug: duplicated a new stream codec=s16l (es=1 group=0) stream_out_duplicate debug: - ignored for output 0 main error: cannot create packetizer output (s16l) main debug: Buffering 16% main debug: Buffering 25% main debug: using decoder module "libmpeg2" main debug: adding a new sout input (sout_input:0x1225478) main debug: Buffering 33% stream_out_duplicate debug: duplicated a new stream codec=mp4v (es=0 group=0) main debug: TIMER module_need() : 17.000 ms - Total 17.000 ms / 1 intvls (Avg 17.000 ms) main debug: Buffering 41% main debug: Buffering 50% main debug: thread (decoder) created at priority 0 (../.././src/input/decoder.c:315) main debug: Buffering 58% main debug: Buffering 66% main debug: Buffering 75% main debug: Buffering 83% main debug: looking for decoder module: 36 candidates main error: option syslog does not exist main debug: looking for interface module: 1 candidate main debug: Buffering 91% main debug: Buffering 100% main debug: Stream buffering done (325 ms in 19 ms) main debug: thread started main debug: looking for decoder module: 36 candidates main debug: using decoder module "mpeg_audio" main debug: TIMER module_need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms) main debug: thread (decoder) created at priority 2 (../.././src/input/decoder.c:315) main debug: thread started main debug: Buffering 0% main debug: thread started main debug: Buffering 4% main debug: Buffering 13% main debug: Buffering 17% main debug: Buffering 26% libmpeg2 debug: 352x240 (display 352,240), aspect 576000, sar 10:11, 23.977 fps main debug: no usable vout present, spawning one main debug: Buffering 31% main debug: Buffering 35% main debug: looking for text renderer module: 2 candidates main debug: Buffering 40% main debug: Buffering 44% main debug: Buffering 53% main debug: Buffering 57% main debug: Buffering 62% main debug: Buffering 66% mpeg_audio debug: MPGA channels:2 samplerate:44100 bitrate:224 main debug: Buffering 71% main debug: Buffering 75% main debug: Buffering 80% main debug: Buffering 84% main debug: Buffering 93% main debug: Buffering 97% main debug: Stream buffering done (306 ms in 10 ms) avcodec debug: libavcodec initialized (interface 0x342300) main debug: using interface module "globalhotkeys" avcodec debug: using direct rendering main debug: TIMER module_need() : 37.000 ms - Total 37.000 ms / 1 intvls (Avg 37.000 ms) main debug: thread (interface) created at priority 0 (../.././src/interface/interface.c:151) main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. main debug: thread started main debug: thread ended main debug: looking for interface module: 3 candidates avcodec debug: ffmpeg codec (MPEG-4 Video) started main debug: using decoder module "avcodec" main debug: thread (fontlist builder) created at priority 0 (../../.././modules/misc/freetype.c:475) main debug: thread started freetype debug: using fontsize: 2 main debug: using text renderer module "freetype" freetype debug: Building font database... freetype debug: Finished building font database. freetype debug: Took 1000 microseconds main debug: thread ended main debug: TIMER module_need() : 80.000 ms - Total 80.000 ms / 1 intvls (Avg 80.000 ms) main debug: TIMER module_need() : 67.000 ms - Total 67.000 ms / 1 intvls (Avg 67.000 ms) main debug: looking for video filter2 module: 20 candidates swscale debug: 32x32 chroma: YUVA -> 16x16 chroma: YUVA with scaling using Bicubic (good quality) main debug: using video filter2 module "swscale" main debug: TIMER module_need() : 9.000 ms - Total 9.000 ms / 1 intvls (Avg 9.000 ms) main debug: looking for video filter2 module: 20 candidates stream_out_mosaic_bridge debug: mosaic bridge id=Id pos=0 stream_out_mosaic_bridge debug: psz_chain: bluescreen main debug: looking for video filter2 module: 1 candidate main debug: using video filter2 module "bluescreen" main debug: TIMER module_need() : 5.000 ms - Total 5.000 ms / 1 intvls (Avg 5.000 ms) main debug: Filter 'bluescreen' (0x12504ac) appended to chain stream_out_duplicate debug: - added for output 0 main debug: Decoder buffering done in 116 ms yuvp debug: YUVP to YUVA converter main debug: using video filter2 module "yuvp" main debug: TIMER module_need() : 22.000 ms - Total 22.000 ms / 1 intvls (Avg 22.000 ms) bluescreen error: Unsupported input chroma "I420". Bluescreen can only use "YUVA". main debug: window size: 352x264 main debug: looking for video output module: 7 candidates

Re: Bluescreen example in wiki broken

Posted: 03 Nov 2009 14:36
by vangloria
I tried vlc 0.8.6h and 9.0.4 to trace back if it ever stopped working. 9.0.4 gives the same YUVA error. 0.8.6h has different syntax; somehow it doesn't give an error and it seems to create the chain, but I still haven't got the effect (maybe my u v values wrong? I assumed the ones in the example with the same videos though.)

Re: Bluescreen example in wiki broken

Posted: 03 Nov 2009 15:45
by VLC_help
trac.videolan.org/vlc/ticket/3147
ticket