Streaming for a jpg file

About encoding, codec settings, muxers and filter usage
Miliow!!
New Cone
New Cone
Posts: 4
Joined: 05 Feb 2007 16:52

Streaming for a jpg file

Postby Miliow!! » 09 Feb 2007 13:00

Hi to all!!

I'm trying send a stream of jpeg file. I don't know if it's possible.
I have read about it in the forum and I have find something about mjpeg codec. I read in the vlc documentation that mjpeg codec isn't compatible with udp and rs streaming so I use http streaming

I'm trying this command :

Code: Select all

vlc -vvv /home/videolan/stream/foto.jpg :sout='#transcode{vcodec=mjpg,vb=768,scale=1}:duplicate{dst=std{access=http,mux=mjpg,url=0.0.0.0:1234}}'
But this don't work. VLC show me :

Code: Select all

VLC media player 0.8.4 Janus [00000001] main vlc debug: opening config file /home/erodriguez/.vlc/vlcrc [00000001] main vlc debug: checking builtin modules [00000001] main vlc debug: checking plugin modules [00000001] main vlc debug: loading plugins cache file /home/erodriguez/.vlc/cache/plugins-04041e.dat [00000001] main vlc debug: recursively browsing `modules' [00000001] main vlc debug: recursively browsing `/usr/lib/vlc' [00000001] main vlc debug: recursively browsing `plugins' [00000001] main vlc debug: module bank initialized, found 205 modules [00000001] main vlc debug: opening config file /home/erodriguez/.vlc/vlcrc [00000001] main vlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU [00000001] main vlc debug: looking for memcpy module: 1 candidate [00000179] main module debug: using memcpy module "memcpy" [00000261] main playlist debug: waiting for thread completion [00000261] main playlist debug: thread 3081837488 (playlist) created at priority 0 (src/playlist/playlist.c:183) [00000262] main private debug: waiting for thread completion [00000262] main private debug: thread 3073444784 (preparser) created at priority 0 (src/playlist/playlist.c:205) [00000263] main interface debug: looking for interface module: 1 candidate [00000123] main module debug: using interface module "hotkeys" [00000263] main interface debug: interface initialized [00000263] main interface debug: thread 3065052080 (interface) created at priority 0 (src/interface/interface.c:211) [00000265] main interface debug: looking for interface module: 6 candidates [00000170] main module debug: using interface module "screensaver" [00000265] main interface debug: interface initialized [00000265] main interface debug: thread 3056659376 (interface) created at priority 0 (src/interface/interface.c:211) [00000261] main playlist debug: adding playlist item `/home/videolan/stream/foto.jpg' ( /home/videolan/stream/foto.jpg ) [00000267] main interface debug: looking for interface module: 5 candidates [00000015] main module debug: using interface module "wxwidgets" [00000267] main interface debug: interface initialized [00000267] main interface debug: thread 3032927152 (manager) created at priority 0 (src/interface/interface.c:196) [00000267] wxwidgets interface debug: Using last windows config '(-1,0,0,1280,1024)(0,504,518,500,86)' [00000267] wxwidgets interface debug: id=0 p=(504,518) s=(500,86) [00000261] main playlist debug: nothing requested, starting [00000261] main playlist debug: creating new input thread [00000270] main input debug: set input option: sout to #transcode{vcodec=mjpg,vb=768,scale=1}:duplicate{dst=std{access=http,mux=mjpg,url=0.0.0.0:1234}} [00000270] main input debug: waiting for thread completion [00000270] main input debug: thread 3006348208 (input) created at priority 0 (src/input/input.c:230) [00000271] main stream output debug: stream=`transcode' [00000272] main private debug: looking for sout stream module: 1 candidate [00000271] main stream output debug: stream=`duplicate' [00000275] main private debug: looking for sout stream module: 1 candidate [00000275] stream_out_duplicate private debug: creating 'duplicate' [00000275] stream_out_duplicate private debug: * adding `std{access=http,mux=mjpg,url=0.0.0.0:1234}' [00000271] main stream output debug: stream=`std' [00000277] main private debug: looking for sout stream module: 1 candidate [00000277] main private debug: set sout option: sout-standard-access to http [00000277] main private debug: set sout option: sout-standard-mux to mjpg [00000277] main private debug: set sout option: sout-standard-url to 0.0.0.0:1234 [00000277] stream_out_standard private debug: creating `http/mjpg://0.0.0.0:1234' [00000277] stream_out_standard private debug: extention is 0:1234 [00000277] stream_out_standard private debug: extention -> mux=(null) [00000277] stream_out_standard private debug: using `http/mjpg://0.0.0.0:1234' [00000279] main private debug: looking for sout access module: 1 candidate [00000279] main private: creating httpd [00000279] main private debug: net: listening to 0.0.0.0 port 1234 [00000282] main private debug: thread 2997713840 (httpd host thread) created at priority 0 (src/misc/httpd.c:1189) [00000283] main private debug: thread 2984319920 (Avahi Poll Iterate Thread) created at priority 0 (bonjour.c:247) [00000238] main module debug: using sout access module "access_output_http" [00000277] stream_out_standard private debug: access opened [00000284] main private debug: looking for sout mux module: 0 candidates [00000284] main private error: no sout mux module matched "mjpg" [00000277] stream_out_standard private error: no suitable sout mux module for `http/mjpg://0.0.0.0:1234' [00000283] main private debug: thread 2984319920 joined (bonjour.c:284) [00000282] main private debug: httpd_HostDelete [00000282] main private debug: httpd_HostDelete: host removed from http [00000282] main private debug: thread 2997713840 joined (src/misc/httpd.c:1249) [00000282] main private debug: httpd_HostDelete: host thread joined [00000281] main http daemon: httpd doesn't reference any host, deleting [00000279] access_output_http private debug: Close [00000238] main module debug: unlocking module "access_output_http" [00000277] main private warning: no sout stream module matching "std" could be loaded [00000277] main private debug: destroying chain... (name=std) [00000277] main private debug: destroying chain done [00000275] stream_out_duplicate private error: no destination given [00000275] main private warning: no sout stream module matching "duplicate" could be loaded [00000275] main private debug: destroying chain... (name=duplicate) [00000275] main private debug: destroying chain done [00000272] stream_out_transcode private error: cannot create chain [00000272] main private warning: no sout stream module matching "transcode" could be loaded [00000272] main private debug: destroying chain... (name=transcode) [00000272] main private debug: destroying chain done [00000271] main stream output error: stream chained failed for `transcode{vcodec=mjpg,vb=768,scale=1}:duplicate{dst=std{access=http,mux=mjpg,url=0.0.0.0:1234}}'[00000270] main input error: cannot start stream output instance, aborting [00000270] main input debug: thread 3006348208 joined (src/input/input.c:386) [00000261] main playlist: nothing to play [00000001] main vlc debug: removing all interfaces [00000267] main interface debug: thread 3032927152 joined (src/interface/interface.c:238) [00000015] main module debug: unlocking module "wxwidgets" [00000265] main interface debug: thread 3056659376 joined (src/interface/interface.c:238) [00000170] main module debug: unlocking module "screensaver" [00000263] main interface debug: thread 3065052080 joined (src/interface/interface.c:238) [00000123] main module debug: unlocking module "hotkeys" [00000001] main vlc debug: removing all playlists [00000262] main private debug: thread 3073444784 joined (src/playlist/playlist.c:237) [00000261] main playlist debug: thread 3081837488 joined (src/playlist/playlist.c:238) [00000261] main playlist: stopping playback [00000261] main playlist debug: deleting playlist item `/home/videolan/stream/foto.jpg' [00000001] main vlc debug: removing all video outputs [00000001] main vlc debug: removing all audio outputs [00000001] main vlc debug: removing announce handler [00000179] main module debug: unlocking module "memcpy" [00000001] main vlc debug: opening config file /home/erodriguez/.vlc/vlcrc [00000001] main vlc debug: saving plugins cache file /home/erodriguez/.vlc/cache/plugins-04041e.dat
Can you help me??? Thank you

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

Postby dionoea » 10 Feb 2007 00:40

the muxer is mpjpeg, and you should use a live video for the input.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

Miliow!!
New Cone
New Cone
Posts: 4
Joined: 05 Feb 2007 16:52

Postby Miliow!! » 12 Feb 2007 09:18

Hello dionoea, thank you for your reply.
I don't understand. Why I should use a live video for the input? Can't I use a jpg file?

diamondblast
Blank Cone
Blank Cone
Posts: 12
Joined: 21 Jul 2008 21:33

Re:

Postby diamondblast » 17 Oct 2008 19:17

Hello dionoea, thank you for your reply.
I don't understand. Why I should use a live video for the input? Can't I use a jpg file?
the jpg format doesn't support streaming because it has low frames per second
using live video is of course better because if its quality :) and speed
maybe there are softwares that support jpg as input, but I'm not aware of them. Any way you can enjoy these sites jemsite.com, thereeftank.com


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 6 guests