MJPEG Camera Stream

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
bzbit
Blank Cone
Blank Cone
Posts: 21
Joined: 23 Feb 2012 01:07
VLC version: 2.0.3
Operating System: Windows

MJPEG Camera Stream

Postby bzbit » 25 Feb 2012 01:40

I have a DLink DCS-932L Camera. It provides an MJPEG stream over HTTP.

When I attempt to open the camera using VLC I use the following syntax in the 'open network stream' box:

http://user:pass@xxx.xxx.xxx.xxx:80/mjpeg.cgi

VLC successfully connects to the camera but when the data starts to stream VLC reports:

EOF Reached

before I see anything.
BTW: This same thing happens in VLC 1.1.11 and VLC 2.0.

If I use FFMPEG to open the camera I get all the data properly...but I'd rather use VLC.

Anyone have any suggestions?

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: MJPEG Camera Stream

Postby Sébastien Escudier » 27 Feb 2012 08:35

show the logs (vlc -vv or verbosity=2) but I think it will be hard to tell without the stream to test.

bzbit
Blank Cone
Blank Cone
Posts: 21
Joined: 23 Feb 2012 01:07
VLC version: 2.0.3
Operating System: Windows

Re: MJPEG Camera Stream

Postby bzbit » 02 Mar 2012 01:34

here is the log...I have obscured the usernames/passwords and inet addresses also since I kept getting the error 'your message contains too many URL's I had to replace the URLS's with the text 'URL'

qt4 warning: Input option: http-caching=1200
main debug: adding item `URL' ( http://user:pw@xxx.xxx.xxx.xxx/mjpeg.cgi )
qt4 debug: Adding a new MRL to recent ones: http://user:pw@xxx.xxx.xxx.xxx/mjpeg.cgi
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index -1
main debug: processing request item URL node null skip 0
main debug: resyncing on URL/mjpeg.cgi
main debug:URL/mjpeg.cgi is at 0
main debug: starting new item
main debug: creating new input thread
main debug: Creating an input for 'http://xxx.xxx.xxx.xxx/mjpeg.cgi'
main debug: thread (input) created at priority 1 (../.././src/input/input.c:220)
main debug: thread started
main debug: using timeshift granularity of 50 MiB
main debug: using timeshift path 'C:\Users\xxxx\AppData\Local\Temp'
main debug: `http://user:pw@xxx.xxx.xxx.xxx/mjpeg.cgi' gives access `http' demux `' path `user:pw@xxx.xxx.xxx.xxx/mjpeg.cgi'
main debug: creating demux: access='http' demux='' path='user:pw@xxx.xxx.xxx.xxx/mjpeg.cgi'
main debug: looking for access_demux module: 0 candidates
main debug: no access_demux module matched "http"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: creating access 'http' path='user:pw@xxx.xxx.xxx.xxx/mjpeg.cgi'
main debug: looking for access module: 2 candidates
access_http debug: http: server='xxx.xxx.xxx.xxx' port=80 file='/mjpeg.cgi'
access_http debug: user='user'
qt4 debug: IM: Setting an input
main debug: meta ok for (null), need to fetch art
main debug: net: connecting to xxx.xxx.xxx.xxx port 80
main debug: connection succeeded (socket = 1320)
access_http debug: protocol 'HTTP' answer code 200
access_http debug: Server: GoAhead-Webs
access_http debug: Pragma: no-cache
access_http debug: Content-Type: multipart/x-mixed-replace;boundary=--video boundary--
main debug: using access module "access_http"
main debug: TIMER module_need() : 155.000 ms - Total 155.000 ms / 1 intvls (Avg 155.000 ms)
main debug: Using AStream*Stream
main debug: pre buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 1024 bytes in 0s - 1000000 KiB/s
main debug: looking for stream_filter module: 2 candidates
main debug: no stream_filter module matching "any" could be loaded
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: looking for stream_filter module: 1 candidate
main debug: using stream_filter module "stream_filter_record"
main debug: TIMER module_need() : 5.000 ms - Total 5.000 ms / 1 intvls (Avg 5.000 ms)
main debug: creating demux: access='http' demux='' path='user:pw@xxx.xxx.xxx.xxx/mjpeg.cgi'
main debug: looking for demux module: 52 candidates
lua debug: Trying Lua scripts in C:\Users\xxxx\AppData\Roaming\vlc\lua\playlist
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\playlist
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\anevia_streams.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\anevia_xml.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\appletrailers.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\bbc_co_uk.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\break.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\canalplus.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\cue.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\dailymotion.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\france2.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\googlevideo.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\jamendo.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\joox.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\katsomo.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\koreus.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\lelombrik.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\megavideo.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\metacafe.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\metachannels.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\mpora.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\pinkbike.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\rockbox_fm_presets.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\vimeo.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\youtube.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\youtube_homepage.lua
avcodec debug: detected format: ingenient
avcodec warning: av_find_stream_info failed
main debug: selecting program id=0
avcodec debug: adding es: video codec = MJPG
avcodec debug: AVFormat supported stream
avcodec debug: - format = ingenient (raw Ingenient MJPEG)
avcodec debug: - start time = -1
avcodec debug: - duration = -1
main debug: using demux module "avcodec"
main debug: TIMER module_need() : 115.000 ms - Total 115.000 ms / 1 intvls (Avg 115.000 ms)
main debug: looking for decoder module: 34 candidates
avcodec debug: libavcodec initialized (interface 0x350500)
avcodec debug: trying to use direct rendering
avcodec debug: ffmpeg codec (Motion JPEG Video) started
main debug: using decoder module "avcodec"
main debug: TIMER module_need() : 25.000 ms - Total 25.000 ms / 1 intvls (Avg 25.000 ms)
main debug: thread started
main debug: thread (decoder) created at priority 0 (../.././src/input/decoder.c:301)
main debug: looking for meta reader module: 2 candidates
lua debug: Trying Lua scripts in C:\Users\xxxx\AppData\Roaming\vlc\lua\meta\reader
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\reader
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\reader\filename.lua
main debug: no meta reader module matching "any" could be loaded
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: `http://user:pw@xxx.xxx.xxx.xxx/mjpeg.cgi' successfully opened
main debug: EOF reached
main debug: finished input
main debug: waitpipe: object killed
main debug: thread times: real 0m0.000000s, kernel 0m0.000000s, user 0m0.000000s
avcodec debug: ffmpeg codec (Motion JPEG Video) stopped
main debug: removing module "avcodec"
main debug: killing decoder fourcc `MJPG', 0 PES in FIFO
main debug: removing module "avcodec"
main debug: removing module "stream_filter_record"
main debug: removing module "access_http"
main debug: Program doesn't contain anymore ES
main debug: thread ended
main debug: dead input
main debug: thread times: real 0m0.300000s, kernel 0m0.031200s, user 0m0.031200s
main debug: changing item without a request (current 0/1)
main debug: nothing to play
main debug: looking for meta fetcher module: 1 candidate
lua debug: Trying Lua scripts in C:\Users\xxxx\AppData\Roaming\vlc\lua\meta\fetcher
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\fetcher
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\fetcher\tvrage.lua
main debug: using meta fetcher module "lua"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: removing module "lua"
main debug: searching art for http://xxx.xxx.xxx.xxx/mjpeg.cgi
main debug: looking for art finder module: 2 candidates
lua debug: Trying Lua scripts in C:\Users\xxxx\AppData\Roaming\vlc\lua\meta\art
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\art
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\01_googleimage.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\02_frenchtv.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\03_lastfm.lua
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\04_musicbrainz.lua
main debug: no art finder module matching "any" could be loaded
main debug: TIMER module_need() : 5.000 ms - Total 5.000 ms / 1 intvls (Avg 5.000 ms)
main debug: art not found for http://xxx.xxx.xxx.xxx/mjpeg.cgi
qt4 debug: IM: Deleting the input
main debug: TIMER input launching for 'http://xxx.xxx.xxx.xxx/mjpeg.cgi' : 300.000 ms - Total 300.000 ms / 1 intvls (Avg 300.000 ms)

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: MJPEG Camera Stream

Postby Sébastien Escudier » 02 Mar 2012 08:19

how did you launch this stream, what option did you pass to vlc ?

bzbit
Blank Cone
Blank Cone
Posts: 21
Joined: 23 Feb 2012 01:07
VLC version: 2.0.3
Operating System: Windows

Re: MJPEG Camera Stream

Postby bzbit » 06 Mar 2012 01:52

I didn't pass any options to VLC. I just opened the GUI and used the 'open network stream' from the 'Media' menu:

in the text box, I typed:

http://user:pass@xxx.xxx.xxx.xxx:80/mjpeg.cgi

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: MJPEG Camera Stream

Postby Sébastien Escudier » 06 Mar 2012 08:38

Then I don't know.
If you can, provide me a link to your camera and I will have a look.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 7 guests