Page 1 of 1

mencoder piped to vlc not working

Posted: 14 Jan 2007 13:32
by Khamul
Hi,

I would like to pipe stdout from mencoder to vlc but it doesn't work

mencoder.exe mf://*.jpg -mf type=jpg:w=720:h=576 -fps 1 -ovc lavc -lavcopts vcodec=mjpeg -vf harddup,scale=-3:576,expand=720:576 -ofps 25 -msglevel all=-1 -really-quiet -o - | vlc.exe -


main debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
main debug: looking for memcpy module: 3 candidates
main debug: using memcpy module "memcpymmxext"
main debug: waiting for thread completion
main debug: thread 3624 (playlist) created at priority 0 (playlist/playlist.c:184)
main debug: waiting for thread completion
main debug: thread 3640 (preparser) created at priority 0 (playlist/playlist.c:210)
main debug: looking for interface module: 1 candidate
main debug: using interface module "hotkeys"
main debug: thread 3664 (interface) created at priority 0 (interface/interface.c:231)
main debug: adding playlist item `-' ( - )
main debug: looking for interface module: 3 candidates
main debug: using interface module "wxwidgets"
main debug: thread 3696 (manager) created at priority 0 (interface/interface.c:216)
wxwidgets debug: Using last windows config '(-1,0,0,1024,768)(0,0,0,389,91)(2,676,39,418,580)(6,0,0,-1,150)'
wxwidgets debug: id=0 p=(0,0) s=(389,91)
wxwidgets debug: id=2 p=(676,39) s=(418,580)
wxwidgets debug: id=6 p=(0,0) s=(-1,150)
main debug: nothing requested, starting
main debug: creating new input thread
main debug: waiting for thread completion
main debug: creating statistics handler
main debug: thread 3784 (input) created at priority 1 (input/input.c:261)
main debug: `-' gives access `' demux `' path `-'
main debug: creating demux: access='' demux='' path='-'
main debug: looking for access_demux module: 1 candidate
dvdnav warning: cannot open dvdnav
main debug: creating access '' path='-'
main debug: looking for access2 module: 5 candidates
vcd debug: trying .cue file: -.cue
access_file debug: opening file `-'
main debug: using access2 module "access_file"
main debug: pre-buffering...
main debug: received first data for our buffer
main debug: pre-buffering done 203327 bytes in 0s - 1822 kbytes/s
main debug: creating demux: access='' demux='' path='-'
main debug: looking for demux2 module: 44 candidates
ts warning: TS module discarded (lost sync)
ffmpeg debug: couldn't guess format
ps warning: this does not look like an MPEG PS stream, continuing anyway
main debug: using demux2 module "ps"
main debug: looking for a subtitle file in D:\fred\nb_pro\pics\elise\
main debug: `-' successfully opened
ps warning: garbage at input, trying to resync...
main debug: EOF reached
main debug: closing input
main debug: removing module "ps"
main debug: removing module "access_file"
main debug: thread times: real 0m3.875000s, kernel 0m0.093750s, user 0m0.062500s
main debug: thread 3784 joined (input/input.c:399)
main: nothing to play



But when I do this, all is ok

mencoder.exe mf://*.jpg -mf type=jpg:w=720:h=576 -fps 1 -ovc lavc -lavcopts vcodec=mjpeg -vf harddup,scale=-3:576,expand=720:576 -ofps 25 -msglevel all=-1 -really-quiet -o test.mpg

type test.mpg | vlc.exe -


I don't understand why

Posted: 14 Jan 2007 19:45
by DJ
Personally I can't understand why you would expect this to work or work in real time for media files.