How to open the mjpeg stream?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
perica
Blank Cone
Blank Cone
Posts: 15
Joined: 02 Nov 2004 13:27

How to open the mjpeg stream?

Postby perica » 08 Nov 2004 09:45

Hi!

I want to open the http mjpeg from the following source: http://80.240.228.233/liveimgs/camera003_233.jpg.
The stream will be transcoded to the mpeg-4 and stream over the http.

I am using the following syntax:
./vlc -vvv --http-proxy xxx.xxx.xxx.xx:81 http://80.240.228.233/liveimgs/camera003_233.jpg --sout '#transcode{vcodec=mp4v,vb=768,scale=1}:duplicate{dst=std{access=http,mux=ts,url=xxx.xxx.xxx.xxx:8080}}'

The problem is that only the first jpeg is open. On the Windows vlc client is possible to check on the Loop on the Playlist to open the next jpeg.

Can someone help me with the command line syntax on Linux machine to open the next jpeg in the input stream?

Thanks!

Perica

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 08 Nov 2004 10:53

That's because this isn't a multipart jpeg stream. It's just one picture that is refreshed/replaced on the server constantly. Try this

./vlc -vvv --http-proxy xxx.xxx.xxx.xx:81 http://80.240.228.233/liveimgs/camera003_233.jpg :sout='#transcode{vcodec=mp4v,vb=768,scale=1}:duplicate{dst=std{access=http,mux=ts,url=xxx.xxx.xxx.xxx:8080}}' --sout-keep --loop
Don't use PMs for support questions.

Guest

Postby Guest » 09 Nov 2004 14:18

Hi!

Thanks for the answer, but I did not solve the problem.
I have used the syntax as you have told me:
./vlc -vvv --http-proxy yyy.yyy.yyy.yyy:81 http://80.240.228.233/liveimgs/camera003_233.jpg --loop :sout='#transcode{vcodec=mp4v,vb=768,scale=1}:duplicate{dst=std{access=http,mux=ts,url=xxx.xxx.xxx.xxx:8080}}' --sout-keep --loop
and the "stream" is opened.
[00000260] main input debug: `http://80.240.228.233/liveimgs/camera003_233.jpg' sucessfully opened
[00000264] mjpeg demuxer debug: JPEG EOI detected at 9614

+----[ General ]
|
|
+----[ Stream 0 ]
|
| Codec: mjpg
| Language:
| Type: Video
|
+----[ end of stream info ]


but when I open it with ./vlc -vvv http://xxx.xxx.xxx.xxx:8080 the result is :
info
+----[ General ]
|
|
+----[ end of stream info ]

Maybe it is problem of slow machine (Cel 500), network connection is fast.


btw, how to see the stream on linux machine?

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 09 Nov 2004 14:43

You did not use my command. you added a --loop at an illegal place in the commandline.

BTW. i just figured out it might better to use --repeat instead of --loop.
Don't use PMs for support questions.

perica
Blank Cone
Blank Cone
Posts: 15
Joined: 02 Nov 2004 13:27

Postby perica » 09 Nov 2004 15:11

Sorry!

--loop at illegal place was just one try to open (wrong copy). It seems that the problem is not in the opening. VLC reopens the jpeg, but the problem is in the streaming.

open stream
info
+----[ General ]
|
|
+----[ Stream 0 ]
|
| Codec: mjpg
| Language:
| Type: Video
|
+----[ end of stream info ]


vlc player
playlist
|*http://xxx.168.0.220:8080 http://xxx.168.0.220:8080|
playlist: returned 0 (no error)
info
+----[ General ]
|
|
+----[ end of stream info ]

thx!

Peric@

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 09 Nov 2004 15:51

Could you please provide normal -vvv logs and not rc output?
Don't use PMs for support questions.

perica
Blank Cone
Blank Cone
Posts: 15
Joined: 02 Nov 2004 13:27

Postby perica » 10 Nov 2004 09:06

Hi!

I can open the mjpeg over the http and play it. It is also possible to transcode and stream the mjpeg file from the disc, but I can't combine both.

Here is the log from the streaming:


banjann@osir124x:/opt/VideoLAN/bin> ./vlc -vvv --http-proxy yyy.29.125.66:81 http://80.240.228.233/liveimgs/camera003_233.jpg :sout='#transcode{vcodec=mp4v,vb=768,scale=1}:duplicate{dst=std{access=http,mux=ts,url=xxx.168.0.220:8080}}' --sout-keep --repeat
VLC media player snapshot-20041002 Janus
[00000001] main vlc debug: opening config file /home/banjann/.vlc/vlcrc
[00000001] main vlc warning: config file /home/banjann/.vlc/vlcrc does not exist yet
[00000001] main vlc debug: checking builtin modules
[00000001] main vlc debug: checking plugin modules
[00000001] main vlc debug: loading plugins cache file /home/banjann/.vlc/vlcplugins
[00000001] main vlc debug: recursively browsing `modules'
[00000001] main vlc debug: recursively browsing `/opt/VideoLAN/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 153 modules
[00000001] main vlc debug: opening config file /home/banjann/.vlc/vlcrc
[00000001] main vlc warning: config file /home/banjann/.vlc/vlcrc does not exist yet
[00000000] main root debug: VLC media player - version snapshot-20041002 Janus - (c) 1996-2004 VideoLAN
[00000000] main root debug: libvlc was configured with ./configure --prefix=/opt/VideoLAN --disable-ogg --disable-vorbis --disable-gtk --enable-faad --with-faad-tree=/home/grineri/installations/VideoLAN/faad2-2.0 --with-dvdcss-tree=/home/grineri/installations/VideoLAN/libdvdcss-1.2.8 --with-dvbpsi-tree=/home/grineri/installations/VideoLAN/libdvbpsi3-0.1.4 --with-mad-tree=/home/grineri/installations/VideoLAN/libmad-0.15.0b --with-a52-tree=/home/grineri/installations/VideoLAN/a52dec-0.7.4 --with-dvdplay=/usr --with-ffmpeg-tree=/home/grineri/installations/VideoLAN/ffmpeg-20040520 --with-ffmpeg-faac --disable-libmpeg2
[00000001] main vlc debug: translation test: code is "C"
[00000001] main vlc debug: opening config file /home/banjann/.vlc/vlcrc
[00000001] main vlc warning: config file /home/banjann/.vlc/vlcrc does not exist yet
[00000001] main vlc debug: checking builtin modules
[00000001] main vlc debug: checking plugin modules
[00000001] main vlc debug: loading plugins cache file /home/banjann/.vlc/vlcplugins
[00000001] main vlc debug: recursively browsing `modules'
[00000001] main vlc debug: recursively browsing `/opt/VideoLAN/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 153 modules
[00000001] main vlc debug: opening config file /home/banjann/.vlc/vlcrc
[00000001] main vlc warning: config file /home/banjann/.vlc/vlcrc does not exist yet
[00000001] main vlc debug: CPU has capabilities 486 586 MMX FPU
[00000001] main vlc debug: looking for memcpy module
[00000001] main vlc debug: probing 2 candidates
[00000005] main module debug: using memcpy module "memcpymmx"
[00000190] main playlist debug: creating group Normal with id 1 at position 0
[00000190] main playlist debug: waiting for thread completion
[00000190] main playlist debug: thread 1078750128 (playlist) created at priority 0 (src/playlist/playlist.c:107)
[00000191] main interface debug: looking for interface module
[00000191] main interface debug: probing 1 candidate
[00000096] main module debug: using interface module "hotkeys"
[00000191] main interface debug: interface initialized
[00000191] main interface debug: thread 1080871856 (interface) created at priority 0 (src/interface/interface.c:209)
[00000190] main playlist debug: adding playlist item `http://80.240.228.233/liveimgs/camera003_233.jpg' ( http://80.240.228.233/liveimgs/camera003_233.jpg )
[00000193] main interface debug: looking for interface module
[00000193] main interface debug: probing 1 candidate
Remote control interface initialized, `h' for help
[00000093] main module debug: using interface module "rc"
[00000193] main interface debug: interface initialized
[00000190] main playlist debug: creating new input thread
[00000195] main input debug: option: :sout=#transcode{vcodec=mp4v,vb=768,scale=1}:duplicate{dst=std{access=http,mux=ts,url=192.168.0.220:8080}}
[00000195] main input debug: set input option: sout to #transcode{vcodec=mp4v,vb=768,scale=1}:duplicate{dst=std{access=http,mux=ts,url=192.168.0.220:8080}}
[00000195] main input debug: waiting for thread completion
[00000195] main input warning: sout-keep true
[00000196] main stream output debug: stream=`transcode'
[00000197] main private debug: looking for sout stream module
[00000197] main private debug: probing 1 candidate
[00000196] main stream output debug: stream=`duplicate'
[00000200] main private debug: looking for sout stream module
[00000200] main private debug: probing 1 candidate
[00000200] stream_out_duplicate private debug: creating 'duplicate'
[00000200] stream_out_duplicate private debug: * adding `std{access=http,mux=ts,url=192.168.0.220:8080}'
[00000196] main stream output debug: stream=`std'
[00000202] main private debug: looking for sout stream module
[00000202] main private debug: probing 1 candidate
[00000202] main private debug: set sout option: sout-standard-access to http
[00000202] main private debug: set sout option: sout-standard-mux to ts
[00000202] main private debug: set sout option: sout-standard-url to 192.168.0.220:8080
[00000202] stream_out_standard private debug: creating `http/ts://192.168.0.220:8080'
[00000202] stream_out_standard private debug: extention is 220:8080
[00000202] stream_out_standard private debug: extention -> mux=(null)
[00000202] stream_out_standard private debug: using `http/ts://192.168.0.220:8080'
[00000204] main private debug: looking for sout access module
[00000204] main private debug: probing 1 candidate
[00000204] main private: creating httpd
[00000207] main private debug: thread 1085184944 (httpd host thread) created at priority 0 (src/misc/httpd.c:1148)
[00000039] main module debug: using sout access module "access_output_http"
[00000202] stream_out_standard private debug: access opened
[00000208] main private debug: looking for sout mux module
[00000195] main input debug: thread 1083005872 (input) created at priority 0 (src/input/input.c:228)
[00000193] main interface debug: thread 1092287408 (manager) created at priority 0 (src/interface/interface.c:194)
[00000208] main private debug: probing 1 candidate
[00000208] mux_ts private debug: Open
[00000208] mux_ts private debug: shaping=200000 pcr=30000 dts_delay=200000
[00000208] mux_ts private debug: invalid csa ck (it must be 16 chars long)
[00000012] main module debug: using sout mux module "mux_ts"
[00000196] main stream output debug: muxer support adding stream at any time
[00000202] stream_out_standard private debug: mux opened
[00000160] main module debug: using sout stream module "stream_out_standard"
[00000164] main module debug: using sout stream module "stream_out_duplicate"
[00000197] main private debug: set sout option: sout-transcode-vcodec to mp4v
[00000197] main private debug: set sout option: sout-transcode-vb to 768
[00000197] main private debug: set sout option: sout-transcode-scale to 1
[00000197] stream_out_transcode private debug: codec video=mp4v 0x0 scaling: 1.000000 768kb/s
[00000167] main module debug: using sout stream module "stream_out_transcode"
[00000195] main input debug: `http://80.240.228.233/liveimgs/camera003_233.jpg' gives access `http' demux `' path `80.240.228.233/liveimgs/camera003_233.jpg'
[00000195] main input debug: demux2_New: access='http' demux='' path='80.240.228.233/liveimgs/camera003_233.jpg'
[00000209] main demuxer debug: looking for access_demux module
[00000209] main demuxer debug: probing 0 candidates
[00000209] main demuxer warning: no access_demux module matched "http"
[00000195] main input debug: access2_New: access='http' path='80.240.228.233/liveimgs/camera003_233.jpg'
[00000210] main access debug: looking for access2 module
[00000210] main access debug: probing 6 candidates
[00000210] access_http access debug: http: server='80.240.228.233' port=80 file='/liveimgs/camera003_233.jpg
[00000210] access_http access debug: proxy 141.29.125.66:81
[00000210] main access debug: net: connecting to '141.29.125.66:81'
[00000210] main access debug: looking for network module
[00000210] main access debug: probing 2 candidates
[00000210] ipv4 access debug: connection in progress
[00000142] main module debug: using network module "ipv4"
[00000142] main module debug: unlocking module "ipv4"
[00000210] access_http access debug: protocol 'HTTP' answer code 206
[00000210] access_http access debug: Content-Type: image/jpeg
[00000210] access_http access debug: stream size=9775
[00000028] main module debug: using access2 module "access_http"
[00000213] main private debug: pre buffering
[00000213] main private debug: received first data for our buffer
[00000195] main input debug: demux2_New: access='http' demux='' path='80.240.228.233/liveimgs/camera003_233.jpg'
[00000214] main demuxer debug: looking for demux2 module
[00000214] main demuxer debug: probing 26 candidates
[00000214] mp4 demuxer warning: MP4 plugin discarded (not a valid file)
[00000214] avi demuxer warning: avi module discarded (invalid header)
[00000214] asf demuxer warning: ASF plugin discarded (not a valid file)
[00000214] mpgv demuxer warning: ES module discarded (no startcode)
[00000214] main demuxer debug: looking for id3 module
[00000214] main demuxer debug: probing 1 candidate
[00000214] id3 demuxer debug: checking for ID3 tag
[00000118] main module debug: using id3 module "id3"
[00000118] main module debug: unlocking module "id3"
[00000214] mpga demuxer warning: mpga module discarded
[00000214] aac demuxer warning: AAC module discarded
[00000214] ts demuxer warning: TS module discarded (lost sync)
[00000214] pva demuxer warning: PVA module discarded
[00000214] nsv demuxer warning: NSV module discarded
[00000214] aiff demuxer warning: AIFF module discarded
[00000214] playlist demuxer warning: old import module discarded: invalid file
[00000214] playlist demuxer warning: pls import module discarded
[00000214] au demuxer warning: AU module discarded
[00000214] mjpeg demuxer debug: JPEG SOI marker detected
[00000195] main input debug: Selecting program id=0
[00000115] main module debug: using demux2 module "mjpeg"
[00000238] main packetizer debug: looking for packetizer module
[00000238] main packetizer debug: probing 13 candidates
[00000158] main module debug: using packetizer module "packetizer_copy"
[00000195] main input debug: stream out mode -> no decoder thread
[00000195] main input debug: starting in synch mode
[00000195] main input debug: `http://80.240.228.233/liveimgs/camera003_233.jpg' sucessfully opened
[00000214] mjpeg demuxer debug: JPEG EOI detected at 9775
[00000195] main input debug: control type=1
[00000214] mjpeg demuxer warning: no more data
[00000214] mjpeg demuxer warning: cannot peek data
[00000195] main input debug: EOF reached
[00000195] main input debug: closing input
[00000115] main module debug: unlocking module "mjpeg"
[00000028] main module debug: unlocking module "access_http"
[00000158] main module debug: unlocking module "packetizer_copy"
[00000238] main packetizer debug: killing decoder fourcc `mjpg', 0 PES in FIFO
[00000195] main input warning: keeping sout
[00000195] main input debug: thread 1083005872 joined (src/input/input.c:290)
[00000190] main playlist debug: creating new input thread
[00000260] main input debug: option: :sout=#transcode{vcodec=mp4v,vb=768,scale=1}:duplicate{dst=std{access=http,mux=ts,url=192.168.0.220:8080}}
[00000260] main input debug: set input option: sout to #transcode{vcodec=mp4v,vb=768,scale=1}:duplicate{dst=std{access=http,mux=ts,url=192.168.0.220:8080}}
[00000260] main input debug: waiting for thread completion
[00000260] main input warning: sout-keep true
[00000260] main input warning: sout keep : reusing sout
[00000260] main input warning: sout keep : you probably want to use gather stream_out
[00000260] main input debug: `http://80.240.228.233/liveimgs/camera003_233.jpg' gives access `http' demux `' path `80.240.228.233/liveimgs/camera003_233.jpg'
[00000260] main input debug: demux2_New: access='http' demux='' path='80.240.228.233/liveimgs/camera003_233.jpg'
[00000260] main input debug: thread 1083005872 (input) created at priority 0 (src/input/input.c:228)
[00000261] main demuxer debug: looking for access_demux module
[00000261] main demuxer debug: probing 0 candidates
[00000261] main demuxer warning: no access_demux module matched "http"
[00000260] main input debug: access2_New: access='http' path='80.240.228.233/liveimgs/camera003_233.jpg'
[00000262] main access debug: looking for access2 module
[00000262] main access debug: probing 6 candidates
[00000262] access_http access debug: http: server='80.240.228.233' port=80 file='/liveimgs/camera003_233.jpg
[00000262] access_http access debug: proxy 141.29.125.66:81
[00000262] main access debug: net: connecting to '141.29.125.66:81'
[00000262] main access debug: looking for network module
[00000262] main access debug: probing 2 candidates
[00000262] ipv4 access debug: connection in progress
[00000142] main module debug: using network module "ipv4"
[00000142] main module debug: unlocking module "ipv4"
[00000262] access_http access debug: protocol 'HTTP' answer code 206
[00000262] access_http access debug: Content-Type: image/jpeg
[00000262] access_http access debug: stream size=9626
[00000028] main module debug: using access2 module "access_http"
[00000263] main private debug: pre buffering
[00000263] main private debug: received first data for our buffer
[00000260] main input debug: demux2_New: access='http' demux='' path='80.240.228.233/liveimgs/camera003_233.jpg'
[00000264] main demuxer debug: looking for demux2 module
[00000264] main demuxer debug: probing 26 candidates
[00000264] mp4 demuxer warning: MP4 plugin discarded (not a valid file)
[00000264] avi demuxer warning: avi module discarded (invalid header)
[00000264] asf demuxer warning: ASF plugin discarded (not a valid file)
[00000264] mpgv demuxer warning: ES module discarded (no startcode)
[00000264] main demuxer debug: looking for id3 module
[00000264] main demuxer debug: probing 1 candidate
[00000264] id3 demuxer debug: checking for ID3 tag
[00000118] main module debug: using id3 module "id3"
[00000118] main module debug: unlocking module "id3"
[00000264] mpga demuxer warning: mpga module discarded
[00000264] aac demuxer warning: AAC module discarded
[00000264] ts demuxer warning: TS module discarded (lost sync)
[00000264] pva demuxer warning: PVA module discarded
[00000264] nsv demuxer warning: NSV module discarded
[00000264] aiff demuxer warning: AIFF module discarded
[00000264] playlist demuxer warning: old import module discarded: invalid file
[00000264] playlist demuxer warning: pls import module discarded
[00000264] au demuxer warning: AU module discarded
[00000264] mjpeg demuxer debug: JPEG SOI marker detected
[00000260] main input debug: Selecting program id=0
[00000115] main module debug: using demux2 module "mjpeg"
[00000265] main packetizer debug: looking for packetizer module
[00000265] main packetizer debug: probing 13 candidates
[00000158] main module debug: using packetizer module "packetizer_copy"
[00000260] main input debug: stream out mode -> no decoder thread
[00000260] main input debug: starting in synch mode
[00000260] main input debug: `http://80.240.228.233/liveimgs/camera003_233.jpg' sucessfully opened
[00000264] mjpeg demuxer debug: JPEG EOI detected at 9626

here is the output from the vlc client:

banjann@osir124x:/opt/VideoLAN/bin> ./vlc -vvv http://192.168.0.220:8080
VLC media player snapshot-20041002 Janus
[00000001] main vlc debug: opening config file /home/banjann/.vlc/vlcrc
[00000001] main vlc warning: config file /home/banjann/.vlc/vlcrc does not exist yet
[00000001] main vlc debug: checking builtin modules
[00000001] main vlc debug: checking plugin modules
[00000001] main vlc debug: loading plugins cache file /home/banjann/.vlc/vlcplugins
[00000001] main vlc debug: recursively browsing `modules'
[00000001] main vlc debug: recursively browsing `/opt/VideoLAN/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 153 modules
[00000001] main vlc debug: opening config file /home/banjann/.vlc/vlcrc
[00000001] main vlc warning: config file /home/banjann/.vlc/vlcrc does not exist yet
[00000000] main root debug: VLC media player - version snapshot-20041002 Janus - (c) 1996-2004 VideoLAN
[00000000] main root debug: libvlc was configured with ./configure --prefix=/opt/VideoLAN --disable-ogg --disable-vorbis --disable-gtk --enable-faad --with-faad-tree=/home/grineri/installations/VideoLAN/faad2-2.0 --with-dvdcss-tree=/home/grineri/installations/VideoLAN/libdvdcss-1.2.8 --with-dvbpsi-tree=/home/grineri/installations/VideoLAN/libdvbpsi3-0.1.4 --with-mad-tree=/home/grineri/installations/VideoLAN/libmad-0.15.0b --with-a52-tree=/home/grineri/installations/VideoLAN/a52dec-0.7.4 --with-dvdplay=/usr --with-ffmpeg-tree=/home/grineri/installations/VideoLAN/ffmpeg-20040520 --with-ffmpeg-faac --disable-libmpeg2
[00000001] main vlc debug: translation test: code is "C"
[00000001] main vlc debug: opening config file /home/banjann/.vlc/vlcrc
[00000001] main vlc warning: config file /home/banjann/.vlc/vlcrc does not exist yet
[00000001] main vlc debug: checking builtin modules
[00000001] main vlc debug: checking plugin modules
[00000001] main vlc debug: loading plugins cache file /home/banjann/.vlc/vlcplugins
[00000001] main vlc debug: recursively browsing `modules'
[00000001] main vlc debug: recursively browsing `/opt/VideoLAN/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 153 modules
[00000001] main vlc debug: opening config file /home/banjann/.vlc/vlcrc
[00000001] main vlc warning: config file /home/banjann/.vlc/vlcrc does not exist yet
[00000001] main vlc debug: CPU has capabilities 486 586 MMX FPU
[00000001] main vlc debug: looking for memcpy module
[00000001] main vlc debug: probing 2 candidates
[00000005] main module debug: using memcpy module "memcpymmx"
[00000190] main playlist debug: creating group Normal with id 1 at position 0
[00000190] main playlist debug: waiting for thread completion
[00000190] main playlist debug: thread 1078750128 (playlist) created at priority 0 (src/playlist/playlist.c:107)
[00000191] main interface debug: looking for interface module
[00000191] main interface debug: probing 1 candidate
[00000096] main module debug: using interface module "hotkeys"
[00000191] main interface debug: interface initialized
[00000191] main interface debug: thread 1080871856 (interface) created at priority 0 (src/interface/interface.c:209)
[00000190] main playlist debug: adding playlist item `http://192.168.0.220:8080' ( http://192.168.0.220:8080 )
[00000193] main interface debug: looking for interface module
[00000193] main interface debug: probing 1 candidate
Remote control interface initialized, `h' for help
[00000093] main module debug: using interface module "rc"
[00000193] main interface debug: interface initialized
[00000190] main playlist debug: creating new input thread
[00000195] main input debug: waiting for thread completion
[00000195] main input debug: thread 1083005872 (input) created at priority 0 (src/input/input.c:228)
[00000193] main interface debug: thread 1085107120 (manager) created at priority 0 (src/interface/interface.c:194)
[00000195] main input debug: `http://192.168.0.220:8080' gives access `http' demux `' path `192.168.0.220:8080'
[00000195] main input debug: demux2_New: access='http' demux='' path='192.168.0.220:8080'
[00000196] main demuxer debug: looking for access_demux module
[00000196] main demuxer debug: probing 0 candidates
[00000196] main demuxer warning: no access_demux module matched "http"
[00000195] main input debug: access2_New: access='http' path='192.168.0.220:8080'
[00000197] main access debug: looking for access2 module
[00000197] main access debug: probing 6 candidates
[00000197] access_http access debug: http: server='192.168.0.220' port=8080 file='(null)
[00000197] main access debug: net: connecting to '192.168.0.220:8080'
[00000197] main access debug: looking for network module
[00000197] main access debug: probing 2 candidates
[00000197] ipv4 access debug: connection in progress
[00000197] ipv4 access warning: cannot connect socket (SO_ERROR)
[00000197] ipv6 access warning: IPv6 error: unknown host 192.168.0.220
[00000197] main access debug: net: connection to '192.168.0.220:8080' failed
[00000197] access_http access error: cannot connect to 192.168.0.220:8080
[00000197] main access debug: net: connecting to '192.168.0.220:8080'
[00000197] main access debug: looking for network module
[00000197] main access debug: probing 2 candidates
[00000197] ipv4 access debug: connection in progress
[00000197] ipv4 access warning: cannot connect socket (SO_ERROR)
[00000197] ipv6 access warning: IPv6 error: unknown host 192.168.0.220
[00000197] main access debug: net: connection to '192.168.0.220:8080' failed
[00000197] access_http access error: cannot connect to 192.168.0.220:8080
[00000197] main access debug: net: connecting to '192.168.0.220:8080'
[00000197] main access debug: looking for network module
[00000197] main access debug: probing 2 candidates
[00000197] ipv4 access debug: connection in progress
[00000197] ipv4 access warning: cannot connect socket (SO_ERROR)
[00000197] ipv6 access warning: IPv6 error: unknown host 192.168.0.220
[00000197] main access debug: net: connection to '192.168.0.220:8080' failed
[00000197] access_mms access error: cannot connect to192.168.0.220:8080
[00000197] vcd access warning: could not open 192.168.0.220:8080
[00000197] access_file access warning: cannot stat() file `192.168.0.220:8080' (No such file or directory)
[00000197] cdda access warning: could not open 192.168.0.220:8080
[00000197] main access warning: no access2 module matching "http" could be loaded
[00000195] main input error: no suitable access module for `http://192.168.0.220:8080'
[00000195] main input debug: thread 1083005872 joined (src/input/input.c:290)

thx

Peric@

Would you preferd to sent you in the future the logs in the mail?

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 10 Nov 2004 17:15

Yet another idea :)
./vlc -vvv --http-proxy yyy.29.125.66:81 http://80.240.228.233/liveimgs/camera003_233.jpg :input-repeat=-1 :sout='#transcode{vcodec=mp4v,vb=768,scale=1}:duplicate{dst=std{access=http,mux=ts,url=xxx.168.0.220:8080}}' --sout-keep

perhaps this might work.....
Don't use PMs for support questions.

perica
Blank Cone
Blank Cone
Posts: 15
Joined: 02 Nov 2004 13:27

Postby perica » 11 Nov 2004 09:49

Hi!

It does not work! First jpeg is successfully opened but it can continue!

The log is:

[00000195] main input error: INPUT_CONTROL_SET_POSITION(_OFFSET) 0.0% failed
[00000214] mjpeg demuxer warning: no more data
[00000214] mjpeg demuxer warning: cannot peek data
[00000195] main input debug: repeating the same input (-1)
[00000195] main input debug: [1/2] l=10 c=5
[00000195] main input debug: control type=10
[00000195] main input debug: control type=5
...
...
[00000195] main input error: INPUT_CONTROL_SET_POSITION(_OFFSET) 0.0% failed
[00000214] mjpeg demuxer warning: no more data
[00000214] mjpeg demuxer warning: cannot peek data
[00000195] main input debug: repeating the same input (-1)
[00000195] main input debug: [1/2] l=10 c=5
[00000195] main input debug: control type=10
[00000195] main input debug: control type=5


I have a filling that the problem is in parallel processing. Open the stream over the http and streaming after transcoding.
If I open the http stream and play it it works, also it is possible to transcode the mjpeg file from disc and stream it.

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 11 Nov 2004 12:42

The problem is that this just isn't a multipart jpeg stream...
It's a jpeg image that is continously being updated. They are not the same. Write intellinet and ask them if they provide a raw MULTIPART JPEG (mime type of x-mixed-replace) stream.
Don't use PMs for support questions.

perica
Blank Cone
Blank Cone
Posts: 15
Joined: 02 Nov 2004 13:27

Postby perica » 17 Nov 2004 11:21

thx!

I have tried with the Axis web cam and it works.

But for the project I need to transcode the existing source (jpeg image that is continuously being updated - http://80.240.228.233/liveimgs/camera003_233.jpg) to the mpeg-4 and vice versa.
Is there any VLC developer who would like to extend the VLC code to be able to do this.
This job would be paid.

Please apply if any one would like to this, and for which amount of money!!

vio
New Cone
New Cone
Posts: 9
Joined: 20 Nov 2005 10:08

question

Postby vio » 13 Jan 2006 19:15

Perica,

Did you get it working? Streaming from an image? I'm trying to do the same application, but is not luck yet.

Tks,
Vio

vio
New Cone
New Cone
Posts: 9
Joined: 20 Nov 2005 10:08

stream from image working

Postby vio » 21 Jan 2006 10:44

I got some hints from Meuuh and is working like this:
1. mkfifo /tmp/fifo.avi
2. start ffmpeg: ffmpeg -r 0.5 -i /var/www/images/old/%03d.jpg -vcodec msmpeg4 -s 640x480 -r 2 -b 100 -y /tmp/fifo.avi -loop
(images are in the format 001.jpg, 002.jpg ....)

3. start vlc server: /usr/local/bin/vlc -vvv -I dummy /tmp/fifo.avi --sout '#std{access=mmsh,mux=asfh,url=:8090}' --no-sout-audio --sout-asf-title="test" --sout-asf-author="..." --sout-asf-copyright="..." --sout-asf-comment="" --sout-asf-packet-size=1500 --file-caching=1000

If is not working fine you can try to reconvert images with convert like this:
convert /var/www/images/aaa_tmp.jpg /var/www/images/old/001.jpg


Thanks to videolan and ffmpeg developers.
Vio
thx!

I have tried with the Axis web cam and it works.

But for the project I need to transcode the existing source (jpeg image that is continuously being updated - http://80.240.228.233/liveimgs/camera003_233.jpg) to the mpeg-4 and vice versa.
Is there any VLC developer who would like to extend the VLC code to be able to do this.
This job would be paid.

Please apply if any one would like to this, and for which amount of money!!

hackeron
Blank Cone
Blank Cone
Posts: 24
Joined: 18 Jul 2008 13:30

Re: How to open the mjpeg stream?

Postby hackeron » 10 Nov 2020 23:53

Did you manage to get this working? - My current command is:

Code: Select all

cvlc --verbose 1 --no-audio --repeat --rate 10 "http://192.168.1.51/cgi-bin/snapshot.cgi?d=1&q=0&chn=0&u=admin&p=pass" --sout '#standard{access=http{mime="multipart/x-mixed-replace;boundary=randomboundry"},mux=mpjpeg,dst='":30831/video.mjpeg}" vlc://pause:5
But it is giving this:

Code: Select all

VLC media player 3.0.11 Vetinari (revision 3.0.11-0-gdc0c5ced72) [01238d18] main input warning: es out timeshift: auto reset rate to 1000 [01238d18] main input warning: es out timeshift: auto stop [011dbb58] main libvlc error: interface "globalhotkeys,none" initialization failed [01283fb0] dummy interface: using the dummy interface module... [b27032b8] main mux error: cannot add this stream [b27008e8] main stream output warning: new sout input failed (sout_input: 0xb15005b8) [b2716300] main decoder error: cannot create packetizer output (RV24) [b2716300] main decoder error: buffer deadlock prevented
Not sure why. Any ideas?

dwjorgeb
New Cone
New Cone
Posts: 1
Joined: 22 Mar 2021 05:37

Re: How to open the mjpeg stream?

Postby dwjorgeb » 22 Mar 2021 05:42

Did you manage to get this working? - My current command is:

Code: Select all

cvlc --verbose 1 --no-audio --repeat --rate 10 "http://192.168.1.51/cgi-bin/snapshot.cgi?d=1&q=0&chn=0&u=admin&p=pass" --sout '#standard{access=http{mime="multipart/x-mixed-replace;boundary=randomboundry"},mux=mpjpeg,dst='":30831/video.mjpeg}" vlc://pause:5
But it is giving this:

Code: Select all

VLC media player 3.0.11 Vetinari (revision 3.0.11-0-gdc0c5ced72) [01238d18] main input warning: es out timeshift: auto reset rate to 1000 [01238d18] main input warning: es out timeshift: auto stop [011dbb58] main libvlc error: interface "globalhotkeys,none" initialization failed [01283fb0] dummy interface: using the dummy interface module... [b27032b8] main mux error: cannot add this stream [b27008e8] main stream output warning: new sout input failed (sout_input: 0xb15005b8) [b2716300] main decoder error: cannot create packetizer output (RV24) [b2716300] main decoder error: buffer deadlock prevented
Not sure why. Any ideas?
Did you manage to solve it?

I'm having the same errors and my command is similar to yours. Even with those errors/warnings, I can open the stream just fine on VLC and MPC-HC, but it won't open on browsers :roll:

Been at this for 2 days, I'm already banging my head on the desk. My camera's feed is already MJPEG, I just want to pipe it from RTSP to HTTP, no transcoding or anything.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 15 guests