fake input

About encoding, codec settings, muxers and filter usage
thrruss
Blank Cone
Blank Cone
Posts: 17
Joined: 24 Jul 2007 09:41

fake input

Postby thrruss » 31 Jul 2007 15:48

Hi,

I'm trying to stream fromp a single file.
My command is:
vlc -vvv --sout '#standard{access=http,mux=asf,dst=:8080}' fake: --fake-file=./test.jpg

I got an error:
VLC media player 0.9.0-svn Grishenko
[00000001] main libvlc debug: checking builtin modules
[00000001] main libvlc debug: checking plugin modules
[00000001] main libvlc debug: loading plugins cache file /home/maintc3/.vlc/cache/plugins-04041e.dat
[00000001] main libvlc debug: recursively browsing `modules'
[00000001] main libvlc debug: recursively browsing `/usr/local/lib/vlc'
[00000001] main libvlc debug: recursively browsing `plugins'
[00000001] main libvlc debug: module bank initialized, found 211 modules
[00000001] main libvlc debug: opening config file (/home/maintc3/.vlc/vlcrc)
[00000001] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main libvlc debug: looking for memcpy module: 3 candidates
[00000001] main libvlc debug: using memcpy module "memcpymmxext"
[00000278] main playlist error: Reloading playlist not implemented.
[00000279] main private debug: waiting for thread completion
[00000279] main private debug: thread 135878144 (preparser) created at priority 0 (playlist/thread.c:81)
[00000280] main private debug: waiting for thread completion
[00000280] main private debug: thread 135878656 (fetcher) created at priority 0 (playlist/thread.c:107)
[00000278] main playlist debug: waiting for thread completion
[00000278] main playlist debug: rebuilding array of current - root Playlist
[00000278] main playlist debug: rebuild done - 0 items, index -1
[00000278] main playlist debug: thread 135879168 (playlist) created at priority 0 (playlist/thread.c:117)
[00000281] main interface debug: looking for interface module: 1 candidate
[00000281] main interface debug: using interface module "hotkeys"
[00000281] main interface debug: thread 135879680 (interface) created at priority 0 (interface/interface.c:218)
[00000283] main interface debug: looking for interface module: 1 candidate
[00000283] main interface debug: using interface module "screensaver"
[00000283] main interface debug: thread 135880192 (interface) created at priority 0 (interface/interface.c:218)
[00000278] main playlist debug: adding item `fake:' ( fake: )
[00000285] main interface debug: looking for interface module: 1 candidate
Remote control interface initialized. Type `help' for help.
[00000285] main interface debug: using interface module "rc"
[00000278] main playlist debug: starting new item
[00000278] main playlist debug: processing request item null node Playlist skip 0
[00000278] main playlist debug: rebuilding array of current - root Playlist
[00000278] main playlist debug: rebuild done - 1 items, index -1
[00000278] main playlist debug: creating new input thread
[00000287] main input debug: waiting for thread completion
[00000288] main stream output debug: stream=`standard'
[00000289] main private debug: looking for sout stream module: 1 candidate
[00000289] main private debug: set config option: sout-standard-access to http
[00000289] main private debug: set config option: sout-standard-mux to asf
[00000289] main private debug: set config option: sout-standard-dst to :8080
[00000289] stream_out_standard private debug: creating `http/asf://:8080'
[00000289] stream_out_standard private debug: using `http/asf://:8080'
[00000291] main private debug: looking for sout access module: 1 candidate
[00000291] main private: creating httpd
[00000291] main private debug: net: listening to port 8080
[00000294] main http server debug: thread 135991808 (httpd host thread) created at priority 0 (network/httpd.c:1099)
[00000291] main private debug: using sout access module "access_output_http"
[00000289] stream_out_standard private debug: access opened
[00000295] main private debug: looking for sout mux module: 1 candidate
[00000295] mux_asf private debug: asf muxer opened
[00000295] mux_asf private debug: Packet size 4096
[00000295] mux_asf private debug: meta data: title='', author='', copyright='', comment='', rating=''
[00000295] main private debug: using sout mux module "mux_asf"
[00000289] stream_out_standard private debug: mux opened
[00000289] main private debug: using sout stream module "stream_out_standard"
[00000287] main input debug: `fake:' gives access `fake' demux `' path `'
[00000287] main input debug: creating demux: access='fake' demux='' path=''
[00000297] main demuxer debug: looking for access_demux module: 1 candidate
[00000287] main input debug: selecting program id=0
[00000287] main input debug: thread 135991296 (input) created at priority 0 (input/input.c:332)
[00000297] main demuxer debug: using access_demux module "access_fake"
[00000278] main playlist debug: requesting art for fake:
[00000287] main input debug: looking for a subtitle file in /usr/home/maintc3/
[00000299] main packetizer debug: looking for packetizer module: 15 candidates
[00000299] main packetizer debug: using packetizer module "packetizer_copy"
[00000287] main input debug: stream out mode -> no decoder thread
[00000287] main input debug: starting in sync mode
[00000287] main input debug: `fake:' successfully opened
[00000278] main playlist debug: art not found for fake:
[00000288] main stream output debug: adding a new input
[00000295] main private debug: adding a new input
[00000295] mux_asf private debug: adding input
[00000295] mux_asf private debug: Asf muxer creating header
[00000295] mux_asf private debug: pixel aspect-ratio: 0/1


and I got nothing on a client vlc.

What's wrong with my command??

It works if i change the input:
vlc --noaudio -vvv http://192.168.2.101/axis-cgi/mjpg/video.cgi --sout '#standard{access=http,mux=asf,dst=:8080}'




cheers

Nem
Blank Cone
Blank Cone
Posts: 15
Joined: 06 Jun 2007 10:05

Re: fake input

Postby Nem » 31 Jul 2007 16:14

Hi,

If i well understand, you want to stream a file that is on you hd.
Remplace "fake: --fake-file=./test.jpg" by the path to your file.
I.E. : ~/path/to/your/file/test.whatyouwant

thrruss
Blank Cone
Blank Cone
Posts: 17
Joined: 24 Jul 2007 09:41

Re: fake input

Postby thrruss » 31 Jul 2007 16:31

Yes that's my need. Streaming directly from a file.

I already tried to give the full path of the file with no success. The result is the same.

Any other idea?

Nem
Blank Cone
Blank Cone
Posts: 15
Joined: 06 Jun 2007 10:05

Re: fake input

Postby Nem » 31 Jul 2007 17:05

If i take a better look at your last command line, i see you use a axis camera in mjpg.
So i now better understand your test.jpg in the non working command line.
If you use a video file, this should work, but a picture, not sure.

Try to convert your camera stream into a video before streaming.

thrruss
Blank Cone
Blank Cone
Posts: 17
Joined: 24 Jul 2007 09:41

Re: fake input

Postby thrruss » 31 Jul 2007 17:53

If I take a look at http://wiki.videolan.org/VLC_command-line_help and the use of the fake-file option. a jpg file as input should work.

The problem may not come from that point.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: fake input

Postby dionoea » 07 Aug 2007 15:23

You'll need to transcode the video before you can stream it (so you need a call to transcode before standard in your sout option).
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

thrruss
Blank Cone
Blank Cone
Posts: 17
Joined: 24 Jul 2007 09:41

Re: fake input

Postby thrruss » 20 Aug 2007 12:41

Thank you for your help.

I tried to change my command but I still have no success

vlc -vvv --sout '#transcode{vcodec=mjpeg}:std{access=http,mux=mpjpeg,dst=:8080}' fake: --fake file=./img.jpg


VLC media player 0.9.0-svn Grishenko
[00000001] main libvlc debug: checking builtin modules
[00000001] main libvlc debug: checking plugin modules
[00000001] main libvlc debug: loading plugins cache file /root/.vlc/cache/plugins-04041e.dat
[00000001] main libvlc debug: recursively browsing `modules'
[00000001] main libvlc debug: recursively browsing `/usr/local/lib/vlc'
[00000001] main libvlc debug: recursively browsing `plugins'
[00000001] main libvlc debug: module bank initialized, found 211 modules
[00000001] main libvlc debug: opening config file (/root/.vlc/vlcrc)
[00000001] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main libvlc debug: looking for memcpy module: 3 candidates
[00000001] main libvlc debug: using memcpy module "memcpymmxext"
[00000278] main playlist error: Reloading playlist not implemented.
[00000279] main private debug: waiting for thread completion
[00000279] main private debug: thread 135878144 (preparser) created at priority 0 (playlist/thread.c:81)
[00000280] main private debug: waiting for thread completion
[00000280] main private debug: thread 135878656 (fetcher) created at priority 0 (playlist/thread.c:107)
[00000278] main playlist debug: waiting for thread completion
[00000278] main playlist debug: rebuilding array of current - root Playlist
[00000278] main playlist debug: rebuild done - 0 items, index -1
[00000278] main playlist debug: thread 135879168 (playlist) created at priority 0 (playlist/thread.c:117)
[00000281] main interface debug: looking for interface module: 1 candidate
[00000281] main interface debug: using interface module "hotkeys"
[00000281] main interface debug: thread 135879680 (interface) created at priority 0 (interface/interface.c:218)
[00000283] main interface debug: looking for interface module: 1 candidate
[00000283] main interface debug: using interface module "screensaver"
[00000283] main interface debug: thread 135880192 (interface) created at priority 0 (interface/interface.c:218)
[00000278] main playlist debug: adding item `fake:' ( fake: )
[00000285] main interface debug: looking for interface module: 1 candidate
Remote control interface initialized. Type `help' for help.
[00000285] main interface debug: using interface module "rc"
[00000278] main playlist debug: starting new item
[00000278] main playlist debug: processing request item null node Playlist skip 0
[00000278] main playlist debug: rebuilding array of current - root Playlist
[00000278] main playlist debug: rebuild done - 1 items, index -1
[00000278] main playlist debug: creating new input thread
[00000287] main input debug: waiting for thread completion
[00000288] main stream output debug: stream=`transcode'
[00000289] main private debug: looking for sout stream module: 1 candidate
[00000288] main stream output debug: stream=`std'
[00000292] main private debug: looking for sout stream module: 1 candidate
[00000292] main private debug: set config option: sout-standard-access to http
[00000292] main private debug: set config option: sout-standard-mux to mpjpeg
[00000292] main private debug: set config option: sout-standard-dst to :8080
[00000292] stream_out_standard private debug: creating `http/mpjpeg://:8080'
[00000292] stream_out_standard private debug: using `http/mpjpeg://:8080'
[00000294] main private debug: looking for sout access module: 1 candidate
[00000294] main private: creating httpd
[00000294] main private debug: net: listening to port 8080
[00000297] main http server debug: thread 135991808 (httpd host thread) created at priority 0 (network/httpd.c:1099)
[00000294] main private debug: using sout access module "access_output_http"
[00000292] stream_out_standard private debug: access opened
[00000298] main private debug: looking for sout mux module: 1 candidate
[00000298] mux_mpjpeg private debug: Multipart jpeg muxer opened
[00000298] main private debug: using sout mux module "mux_mpjpeg"
[00000288] main stream output debug: muxer support adding stream at any time
[00000288] main stream output debug: muxer prefers to wait for all ES before starting to mux
[00000292] stream_out_standard private debug: mux opened
[00000292] main private debug: using sout stream module "stream_out_standard"
[00000287] main input debug: thread 135991296 (input) created at priority 0 (input/input.c:332)
[00000278] main playlist debug: requesting art for fake:
[00000289] main private debug: set config option: sout-transcode-vcodec to mjpeg
[00000289] stream_out_transcode private debug: codec video=mjpe 0x0 scaling: 1.000000 800kb/s
[00000289] main private debug: using sout stream module "stream_out_transcode"
[00000287] main input debug: `fake:' gives access `fake' demux `' path `'
[00000287] main input debug: creating demux: access='fake' demux='' path=''
[00000300] main demuxer debug: looking for access_demux module: 1 candidate
[00000287] main input debug: selecting program id=0
[00000300] main demuxer debug: using access_demux module "access_fake"
[00000287] main input debug: looking for a subtitle file in /usr/home/maintc3/
[00000302] main packetizer debug: looking for packetizer module: 15 candidates
[00000302] main packetizer debug: using packetizer module "packetizer_copy"
[00000287] main input debug: stream out mode -> no decoder thread
[00000287] main input debug: starting in sync mode
[00000287] main input debug: `fake:' successfully opened
[00000278] main playlist debug: art not found for fake:
[00000288] main stream output debug: adding a new input
[00000289] stream_out_transcode private debug: creating video transcoding from fcc=`fake' to fcc=`mjpe'
[00000326] main decoder debug: looking for decoder module: 20 candidates
[00000326] main decoder debug: creating access '' path='./img.jpg'
[00000330] main access debug: looking for access2 module: 5 candidates
[00000330] vcd access debug: trying .cue file: ./img.cue
[00000330] vcd access debug: could not find .cue file
[00000330] access_directory access debug: opening directory `./img.jpg'
[00000330] access_directory access debug: skipping non-directory `./img.jpg'
[00000330] access_file access debug: opening file `./img.jpg'
[00000330] main access debug: using access2 module "access_file"
[00000335] main private debug: pre-buffering...
[00000335] main private debug: received first data for our buffer
[00000330] main access debug: removing module "access_file"
[00000336] main decoder debug: looking for decoder module: 20 candidates
[00000336] ffmpeg decoder debug: libavcodec initialized (interface 3352580 )
[00000336] ffmpeg decoder debug: postprocessing disabled
[00000336] ffmpeg decoder debug: using direct rendering
[00000336] ffmpeg decoder debug: ffmpeg codec (Motion JPEG Video) started
[00000336] main decoder debug: using decoder module "ffmpeg"
[00000336] ffmpeg decoder debug: ffmpeg codec (Motion JPEG Video) stopped
[00000336] main decoder debug: removing module "ffmpeg"
[00000326] fake decoder debug: file ./img.jpg loaded successfully
[00000326] main decoder debug: using decoder module "fake"
[00000327] main encoder debug: looking for encoder module: 4 candidates
[00000289] stream_out_transcode private error: cannot find encoder ((null))
[00000326] main decoder debug: removing module "fake"
[00000289] stream_out_transcode private error: cannot create video chain
[00000302] main packetizer error: cannot create packetizer output (fake)


What's wrong? did I badly compile it?

cheers


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 12 guests