mjpeg stream with vlc

About encoding, codec settings, muxers and filter usage
Reiner

mjpeg stream with vlc

Postby Reiner » 11 Apr 2006 01:51

Hello,

I would like my video of an Axis video server streams. I use the following command to it:
vlc -vvv http://192.168.6.90/axis-cgi/mjpg/video ... F&camera=1 --sout='#transcode{vcodec=mp4v,vb=1024,scale=1}:duplicate{dst=std{access=udp,mux=ts,url=192.168.6.200:1234}}' --ttl 12.

I get as result:
mjpeg demuxer debug: Discard MIME header: Content-Length:16217.

What do I make wrong? I use the vlc under Linux Debian.

Reiner

Reiner

log

Postby Reiner » 11 Apr 2006 10:00

debian:~# vlc -vvv http://192.168.6.90/axis-cgi/mjpg/video ... ion=CIF&ca
mera=1 --sout='#transcode{vcodec=mp4v,vb=1024,scale=1}:duplicate{dst=std{access=
udp,mux=ts,url=192.168.6.200:1234}}' --ttl 12
VLC media player 0.8.2-svn Janus
[1] 2677
-bash: --sout=#transcode{vcodec=mp4v,vb=1024,scale=1}:duplicate{dst=std{access=u
dp,mux=ts,url=192.168.6.200:1234}}: command not found
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc warning: config file /root/.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 /root/.vlc/cache/plugins-0
4041e.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 198 modules
debian:~# libhal.c 767 : org.freedesktop.DBus.Error.ServiceDoesNotExist raised
"Service "org.freedesktop.Hal" does not exist"

[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc warning: config file /root/.vlc/vlcrc does not exist yet
[00000000] main root debug: VLC media player - version 0.8.2-svn Janus - (c) 199
6-2005 VideoLAN
[00000000] main root debug: libvlc was configured with ./configure --mandir=/sha
re/man --infodir=/share/info --enable-release --prefix=/usr --disable-gnome --di
sable-gtk --disable-familiar --disable-fb --enable-ggi --enable-sdl --enable-esd
--disable-qt --enable-mad --enable-arts --enable-alsa --enable-lirc --enable-a5
2 --enable-aa --enable-dvbpsi --enable-xosd --enable-mozilla --disable-kde --ena
ble-mp4 --enable-dvb --enable-dv --disable-satellite --enable-ogg --enable-vorbi
s --enable-wxwindows --with-wx-config=wxgtk-2.4-config --disable-slp --enable-fl
ac --disable-skins --disable-basic-skins --enable-skins2 --enable-freetype --ena
ble-mkv --enable-v4l --enable-pvr --disable-speex --enable-caca --enable-livedot
com --enable-libmpeg2 --enable-dts --enable-fribidi --enable-cdio --enable-mod -
-enable-theora --enable-modplug --enable-dvdnav --enable-gnutls --enable-ffmpeg
--enable-ncurses --enable-faad --with-faad-tree=extras/faad2 --enable-x264 --wit
h-x264-tree=extras/x264 --enable-glide --enable-svgalib --enable-dvd --without-d
vdcss
[00000001] main vlc debug: translation test: code is "de"
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc warning: config file /root/.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 /root/.vlc/cache/plugins-0
4041e.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 198 modules
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc warning: config file /root/.vlc/vlcrc does not exist yet
[00000001] main vlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main vlc debug: looking for memcpy module: 3 candidates
[00000010] main module debug: using memcpy module "memcpymmxext"
[00000246] main playlist debug: waiting for thread completion
[00000246] main playlist debug: thread 1085918128 (playlist) created at priority
0 (src/playlist/playlist.c:149)
[00000247] main private debug: waiting for thread completion
[00000247] main private debug: thread 1094306736 (preparser) created at priority
0 (src/playlist/playlist.c:171)
[00000248] main interface debug: looking for interface module: 1 candidate
[00000131] main module debug: using interface module "hotkeys"
[00000248] main interface debug: interface initialized
[00000248] main interface debug: thread 1102715824 (interface) created at priori
ty 0 (src/interface/interface.c:211)
[00000246] main playlist: adding playlist item `http://192.168.6.90/axis-cgi/mjp
g/video.cgi?resolution=CIF' ( http://192.168.6.90/axis-cgi/mjpg/video.cgi?resolu
tion=CIF )
[00000250] main interface debug: looking for interface module: 5 candidates
[00000250] skins2 interface error: Cannot open display
[00000250] skins2 interface error: Cannot initialize OSFactory
Remote-Control-Interface initialisiert. Geben Sie `h' für Hilfe ein
[00000129] main module debug: using interface module "rc"
[00000250] main interface debug: interface initialized
[00000250] main interface debug: thread 1113447344 (manager) created at priority
0 (src/interface/interface.c:196)
[00000246] main playlist debug: creating new input thread
[00000254] main input debug: waiting for thread completion
[00000254] main input debug: `http://192.168.6.90/axis-cgi/mjpg/video.cgi?resolu
tion=CIF' gives access `http' demux `' path `192.168.6.90/axis-cgi/mjpg/video.cg
i?resolution=CIF'
[00000254] main input debug: creating demux: access='http' demux='' path='192.16
8.6.90/axis-cgi/mjpg/video.cgi?resolution=CIF'
[00000255] main demuxer debug: looking for access_demux module: 0 candidates
[00000255] main demuxer warning: no access_demux module matched "http"
[00000254] main input debug: creating access 'http' path='192.168.6.90/axis-cgi/
mjpg/video.cgi?resolution=CIF'
[00000256] main access debug: looking for access2 module: 6 candidates
[00000256] access_http access debug: http: server='192.168.6.90' port=80 file='/
axis-cgi/mjpg/video.cgi?resolution=CIF
[00000256] main access debug: net: connecting to '192.168.6.90:80'
[00000256] main access debug: looking for network module: 2 candidates
[00000256] ipv4 access debug: connection in progress
[00000254] main input debug: thread 1121835952 (input) created at priority 0 (sr
c/input/input.c:227)
[00000192] main module debug: using network module "ipv4"
[00000192] main module debug: unlocking module "ipv4"
[00000256] access_http access debug: protocol 'HTTP' answer code 200
[00000256] access_http access debug: Pragma: no-cache
[00000256] access_http access debug: Content-Type: multipart/x-mixed-replace; bo
undary=--myboundary
[00000023] main module debug: using access2 module "access_http"
[00000259] main private debug: pre buffering
[00000259] main private debug: received first data for our buffer
[00000259] main private debug: prebuffering done 42939 bytes in 0s - 353 kbytes/
s
[00000254] main input debug: creating demux: access='http' demux='' path='192.16
8.6.90/axis-cgi/mjpg/video.cgi?resolution=CIF'
[00000260] main demuxer debug: looking for demux2 module: 37 candidates
[00000260] main demuxer debug: looking for id3 module: 2 candidates
[00000260] id3tag demuxer debug: checking for ID3 tag
[00000176] main module debug: using id3 module "id3tag"
[00000176] main module debug: unlocking module "id3tag"
[00000260] mjpeg demuxer debug: Multipart MIME detected, using separator: myboun
dary
[00000260] mjpeg demuxer debug: Discard MIME header: Content-Length: 13770
[00000254] main input debug: selecting program id=0
[00000153] main module debug: using demux2 module "mjpeg"
[00000296] main decoder debug: looking for decoder module: 21 candidates
[00000296] ffmpeg decoder debug: libavcodec initialized (interface 4747 )
[00000296] ffmpeg decoder debug: postprocessing disabled
[00000296] ffmpeg decoder debug: using direct rendering
[00000296] ffmpeg decoder debug: ffmpeg codec (Motion JPEG Video) started
[00000115] main module debug: using decoder module "ffmpeg"
[00000296] main decoder debug: thread 1150933936 (decoder) created at priority 0
(src/input/decoder.c:159)
[00000256] access_http access debug: GET META (null) (null) (null)
[00000254] main input debug: `http://192.168.6.90/axis-cgi/mjpg/video.cgi?resolu
tion=CIF' sucessfully opened
[00000260] mjpeg demuxer debug: Discard MIME header: Content-Length: 13755
[00000296] main decoder debug: no usable vout present, spawning one
[00000322] main video output debug: looking for video output module: 6 candidate
s
[00000322] xvideo video output error: cannot open display
[00000322] x11 video output error: cannot open display
[00000322] opengl video output debug: Texture size: 512x512
[00000327] main private debug: looking for opengl provider module: 1 candidate
[00000327] glx private error: Cannot open display
[00000327] glx private error: no GLX support
[00000322] opengl video output warning: No OpenGL provider found
[00000260] mjpeg demuxer debug: Discard MIME header: Content-Length: 13765
[00000260] mjpeg demuxer debug: Discard MIME header: Content-Length: 13785

paolo
New Cone
New Cone
Posts: 3
Joined: 22 Dec 2004 17:11

Re: log

Postby paolo » 12 Apr 2006 20:40

Hi, instead of http protocol why don't you use the rtsp?
for the rtsp you could use the following parameter

rtsp://192.168.6.90:554/mpeg4/media.amp

I use it for my Axis network cam, on Windows, and it is great.

Rember to set the RTP/RTSP delay, or you will see the video stream after 2/3 seconds.

Regards
Paolo

bbishopski
New Cone
New Cone
Posts: 6
Joined: 12 Apr 2006 23:37

Axis Camera delay

Postby bbishopski » 14 Apr 2006 15:05

I also have an Axis camera - I can view mjpg (without the CIF parm that you have).

HOWEVER, I have a 2-3 second delay!

What is the delay parmeter you mentioned?

Is that a VLC parm?

The Axis player is fine (no delay).

paolo
New Cone
New Cone
Posts: 3
Joined: 22 Dec 2004 17:11

Re: Axis Camera delay

Postby paolo » 14 Apr 2006 15:44

go to settings->preferences
Input/Codecs
Demuxers
RTP/RTSP

set it to 80 or 125

and the delay is setting to 80 ms

Moreover, go to SoutStream->Display
and set the delay to 80, if you set this value to 0
it will function not very well

Happy Easter
Paolo

thresh
Site Administrator
Site Administrator
Posts: 92
Joined: 22 Mar 2006 11:28
VLC version: git master
Operating System: Linux
Location: Korolev, Russian Federation

Postby thresh » 12 May 2006 00:18

was anyone of you able to transcode video from rtsp stream?
Konstantin Pavlov


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 10 guests