Page 1 of 1

http mosaic fake file path and option

Posted: 30 Mar 2006 09:30
by Albert
Hello,
there is still a problem with paths and fake: input

Automatically created fake input has wrong option syntax (?)
(supposed right) Defined option fake-file works, but image crashes VLC.
Paths with "spaces" recognized as:

Code: Select all

setup bg option fake-file=C:\\Documents and Settings\\ondra\\960x480.png ... main debug: creating access '' path='C:\Documents'
Quoted paths are recognized as:

Code: Select all

setup bg option fake-file="C:\\Documents and Settings\\ondra\\960x480.png" ... access_file debug: opening file `\Documents and Settings\ondra\960x480.png"'
vlc-0.8.5-test1-20060330-0000 win32
Created code by Mosaic wizard:

Code: Select all

# Background options new bg broadcast enabled setup bg input "fake: option fake-file=C:\\pracovni\\960x480.png" setup bg option sub-filter=mosaic

Code: Select all

main debug: `fake: option fake-file=C:\pracovni\960x480.png' gives access `fake' demux `' path ` option fake-file=C:\pracovni\960x480.png' main debug: creating demux: access='fake' demux='' path=' option fake-file=C:\pracovni\960x480.png' main debug: looking for access_demux module: 1 candidate main debug: selecting program id=0 main debug: using access_demux module "access_fake" main debug: looking for decoder module: 26 candidates fake error: specify a file with --fake-file=... main error: no suitable decoder module for fourcc `fake'. VLC probably does not support this sound or video format. main debug: killing decoder fourcc `fake', 0 PES in FIFO main debug: `fake: option fake-file=C:\pracovni\960x480.png' successfully opened http debug: executing vlm command: http debug: executing vlm command: # end of mosaic batch
This should work...

Code: Select all

# Background options new bg broadcast enabled setup bg input "fake: option fake-file=C:\\pracovni\\960x480.png" setup bg option fake-file=C:\\pracovni\\960x480.png setup bg option sub-filter=mosaic

Code: Select all

main debug: `fake: option fake-file=C:\pracovni\960x480.png' gives access `fake' demux `' path ` option fake-file=C:\pracovni\960x480.png' main debug: creating demux: access='fake' demux='' path=' option fake-file=C:\pracovni\960x480.png' main debug: looking for access_demux module: 1 candidate main debug: selecting program id=0 main debug: using access_demux module "access_fake" main debug: looking for decoder module: 26 candidates main warning: drive letter C: found in source main debug: creating access '' path='C:\pracovni\960x480.png' main debug: looking for access2 module: 5 candidates vcd debug: trying .cue file: C:\pracovni\960x480.cue access_file debug: opening file `C:\pracovni\960x480.png' main debug: using access2 module "access_file" main debug: pre buffering main debug: received first data for our buffer http debug: executing vlm command: http debug: executing vlm command: # end of mosaic batch
CRASH VLC media player
This could also work:

Code: Select all

# Background options new bg broadcast enabled setup bg input "fake: option fake-file=C:\\Documents and Settings\\ondra\\960x480.png" setup bg option fake-file="C:\\Documents and Settings\\ondra\\960x480.png" setup bg option sub-filter=mosaic

Code: Select all

... vcd debug: trying .cue file: \Documents and Settings\ondra\960x480.cue access_file debug: opening file `\Documents and Settings\ondra\960x480.png"' access_file error: cannot open file \Documents and Settings\ondra\960x480.png" (Invalid argument) cdda debug: trying .cue file: \Documents and Settings\ondra\960x480.cue cdda warning: could not open \Documents and Settings\ondra\960x480.png" main warning: no access2 module matching ""C" could be loaded main error: no suitable access module for `"C:\Documents and Settings\ondra\960x480.png"' main debug: could not open "C:\Documents and Settings\ondra\960x480.png" for reading fake error: unable to read image file "C:\Documents and Settings\ondra\960x480.png" main error: no suitable decoder module for fourcc `fake'. VLC probably does not support this sound or video format. main debug: killing decoder fourcc `fake', 0 PES in FIFO main debug: `fake:' successfully opened http debug: executing vlm command: http debug: executing vlm command: # end of mosaic batch
Albert

Posted: 30 Mar 2006 16:10
by dionoea
these are actually two problems: missing quotes and a windows specific bug with the <letter>:\ syntax. I'll fix those.

Posted: 01 Apr 2006 02:20
by dionoea
fake file segfault should now be fixed. (took me hours to find the bug's source)

still missing setup bg option

Posted: 01 Apr 2006 16:39
by Albert
Hello,
thank you,

Mosaic wizard created this input

Code: Select all

fake-file=C:\\temp\\vlc-0.8.5-test2-20060401-0221\\960x480.png"
and this error

Code: Select all

... fake error: specify a file with --fake-file=... main error: no suitable decoder module for fourcc `fake'. VLC probably does not support this sound or video format. main debug: killing decoder fourcc `fake', 0 PES in FIFO stream_out_display error: cannot create decoder for fcc=`fake' main error: cannot create packetizer output (fake) http debug: executing vlm command: ...
I have to add extra line: setup bg option

Code: Select all

... fake-file=C:\\temp\\vlc-0.8.5-test2-20060401-0221\\960x480.png" setup bg option fake-file=C:\\temp\\vlc-0.8.5-test2-20060401-0221\\960x480.png ...
and it works great.
Albert

Posted: 01 Apr 2006 19:25
by dionoea
Hum, crap, that's due to the quotes i added arround inputs 2 days ago... it uses "fake: option=fake-file=....." as input instead of "fake:" option "fake-file=....". I'll fix that.

Posted: 01 Apr 2006 19:29
by dionoea