Streaming video from webcam to .swf player

About encoding, codec settings, muxers and filter usage
skulaluks
New Cone
New Cone
Posts: 5
Joined: 03 Feb 2010 17:46

Streaming video from webcam to .swf player

Postby skulaluks » 03 Feb 2010 21:08

I would like to stream a realtime video from my webcam to some .swf flash player like http://www.longtailvideo.com/players/jw-flv-player/
that is embedded on my webapage.
The problem is that i cannot make any .swf player working with any type of video stream from VLC.
Thanks for help

skulaluks
New Cone
New Cone
Posts: 5
Joined: 03 Feb 2010 17:46

Re: Streaming video from webcam to .swf player

Postby skulaluks » 04 Feb 2010 12:09

I've found some info here but still no progress
http://www.longtailvideo.com/support/tu ... JW-Player

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: Streaming video from webcam to .swf player

Postby Greg » 04 Feb 2010 13:52

Assuming you have the JWPlayer example working OK on your website

try this as an example output string (Windows)

:sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=25,width=256,height=192,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}

Follow the tutorial to modify the JWP example to point at http://<yourip>:8081/mediaplayer/stream.flv

Rename and save in the same /mediaplayer/ folder

You might want to try "Flowplayer" as an alternative to JWP

skulaluks
New Cone
New Cone
Posts: 5
Joined: 03 Feb 2010 17:46

Re: Streaming video from webcam to .swf player

Postby skulaluks » 04 Feb 2010 18:19

thanks Greg,
I manage to stream with the VLC (although the frame-rate is like 0.1 fps)
i put following code to my page:

<embed width="640" height="480" type="application/x-shockwave-flash" src="player.swf" style="" name="mpl" quality="high" wmode="transparent" allowscriptaccess="always" allowfullscreen="true" flashvars="controlbar=bottom&playlist=none&&quickkeys-1&start=0&autostart=1&file=stream.flv&streamer=http://192.168.1.101:8081/mediaplayer/stream.flv" id="mpl">

The page successfully loads the player, but it doesn't display the video.

I dont know where to create folder /mediaplayer/
or file stream.flv

Please help

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: Streaming video from webcam to .swf player

Postby Greg » 04 Feb 2010 21:58

When you downloaded JWP, it came in a folder called "mediaplayer"....Yes?
if not just go download it again, place the unziped folder "mediaplayer" in your root web directory
you can then run the example "readme.html" from yourwebrootdir/mediaplayer/readme.html... You have done this. Yes?
Check out the example code on that page, extract the section for the embedded player and modify it to suit as per JWP tutorial and my previous post. Then save it under a new "name.html" in that same dir IE.... /mediaplayer
It should look like this

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>JWPlayerExpt1</title>

</head>
<body>
JWPlayer test 1<br>
<br>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("player","9.0.0");
</script><object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" height="310" width="384"><param name="movie" value="player.swf"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="flashvars" value="file=http://192.168.0.21:8081/mediaplayer/st ... v"><object type="application/x-shockwave-flash" data="player.swf" height="288" width="384"><param name="movie" value="player.swf"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="flashvars" value="file=http://192.168.0.21:8081/mediaplayer/stream.flv">
<p><a href="http://get.adobe.com/flashplayer">Get
Flash</a> to see this player.</p>
</object>
</object>
</body></html>

But with yourIP in the path

Now point your browser at.... yourwebrootdir/mediaplayer/name.html

There is no file stream.flv as such. it is the output from VLC

Does this all make more sense now?

Suggest you try to get it working as above before you start tinkering about with sizes etc

skulaluks
New Cone
New Cone
Posts: 5
Joined: 03 Feb 2010 17:46

Re: Streaming video from webcam to .swf player

Postby skulaluks » 05 Feb 2010 13:24

It works!!!
thanks Greg.
I had to just correctly go through this wizard: http://www.longtailvideo.com/support/jw ... xample=201
-I used option flv player with a single video
- in the file properties>file i put the address of my stream http://<myIP>/mediaplayer/stream.flv (it wasn't even my public ip and it worked)

Greg,
can you please tell me how did you achieve to get this generated output string using a VLC GUI:

:sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=25,width=256,height=192,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}

I don't see if the destination of the stream is a file or http?

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: Streaming video from webcam to .swf player

Postby Greg » 05 Feb 2010 14:20

Top secret...Couldn't possibly tell you how..-:)

The info Is all from the forums and documentation. It's just not presented in an easy 1 stop format (yet)
I am currently working on (and nearly completed) a wiki that covers this very subject.
Pleased it worked for you!
You might want to edit the sout parameters to suit your needs, the example was for WAN use with a target bandwidth of approx 230k
btw
yes, it is http

also, you might want to go check out "Flowplayer" it works as well and much the same as JWP, but the implementation and docu is easier and looks a little slicker.

skulaluks
New Cone
New Cone
Posts: 5
Joined: 03 Feb 2010 17:46

Re: Streaming video from webcam to .swf player

Postby skulaluks » 07 Feb 2010 21:32

is it possible to run this vlc option from commandline?
i tried to run following:
"C:\Program Files\VideoLAN\VLC\vlc.exe" ":sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=12,width=640,height=480,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}"

and vlc just reports an error:
File reading failed:
VLC could not open the file ":sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=12,width=640,height=480,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}".
Your input can't be opened:
VLC is unable to open the MRL ':sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=12,width=640,height=480,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}'. Check the log for details.

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: Streaming video from webcam to .swf player

Postby Greg » 08 Feb 2010 14:08

Yes, but not like that.
(no input...!?)

The following is an extract from the wiki I am working on.
The example I gave you earlier is "Method 2 Win XP"

Please let me know if you find this reasonably understandable, and can get it working.


Appendix


The following is an example of a full command line with the same settings as Method 2 Win XP. The first part, up to ”sout” is the input string. The vdev= and adev= are the (your) input devices and can be viewed and extracted from the first “streaming” window or tab in the GUI, with the “show more options” box checked. You will need to apply the correct syntax for your OS. In Windows ( note the quotation marks,Eg ”<xxx>” syntax) you would enter this at the command prompt at C:/program files/videolan/vlc
Also note in this example video size has been defined twice, both in the input and output sections. If you did not include a setting for Video Size in the GUI screen it would not be present in the input string. Try it out. It is not necessary, but should work OK with or without this parameter in the input section. I have included it to show how the string is generated in the GUI. The complete input and output sections can be simply copied and pasted into a string to create full working command line.

vlc dshow:// :dshow-vdev="Conexant's BtPCI Capture" :dshow-adev="Aureon 5.1 Fun Wave" :dshow-size="256x192" --sout="#transcode{vcodec=h264,vb=200,deinterlace,fps=25,width=256,height=192,ab=32,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}"

Time-off
New Cone
New Cone
Posts: 5
Joined: 18 Jan 2010 15:38

Re: Streaming video from webcam to .swf player

Postby Time-off » 12 Feb 2010 14:57

acodec=mp4a

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: Streaming video from webcam to .swf player

Postby Greg » 12 Feb 2010 15:06

I have found mp3 to be better at lower bitrates, and works with incomplete ffmpeg eg some linux distros

Especially in the latest 1.05 version where ab=32. mp4a sounds dire!

Thats why mp3

burek
Blank Cone
Blank Cone
Posts: 40
Joined: 10 May 2008 21:52

Re: Streaming video from webcam to .swf player

Postby burek » 18 Apr 2011 18:30

I'm sorry for resurrecting an old thread, but my problem is directly related to this problem, with the difference, I'd like to avoid recompression process (usins #transcode). Is this possible?

Let me explain. I've got a webcam that is already sending producing h264 video via rtsp. I was thinking to get the stream from the webcam and just "remux" it to FLV. Am I making an obvious mistake or is this possible? The goal is to avoid the process of recompression, since the video codec, used by webcam, is already h264 (which I prefer) and I would like to mux this h264 video into flv (like Youtube does) and stream it via http.

These are the commands I've been using so far:

1. (doesn't work)

Code: Select all

cvlc -vvv rtsp://webcam:554/h264_2 --sout '#standard{access=http,mux=ffmpeg{flv},dst=0.0.0.0:4567/video.flv}'
output:

Code: Select all

VLC media player 1.1.7 The Luggage (revision exported) [0x2238120] main libvlc debug: VLC media player - 1.1.7 The Luggage [0x2238120] main libvlc debug: Copyright © 1996-2011 the VideoLAN team [0x2238120] main libvlc debug: revision exported [0x2238120] main libvlc debug: configured with ./configure '--enable-static' '--build=x86_64-linux-gnu' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--sysconfdir=/etc' '--with-binary-version=3' '--enable-a52' '--enable-aa' '--enable-bonjour' '--enable-caca' '--enable-dca' '--enable-dirac' '--enable-dvb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-ggi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libproxy' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mozilla' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-pulse' '--enable-qt4' '--enable-realrtsp' '--enable-schroedinger' '--enable-sdl' '--enable-shout' '--enable-skins2' '--enable-smb' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--with-mozilla-pkg=libxul' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-osso_screensaver' '--disable-portaudio' '--disable-projectm' '--disable-sqlite' '--disable-telx' '--disable-x264' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv' '--enable-libva' '--enable-pvr' '--enable-udev' '--enable-v4l' '--enable-v4l2' '--enable-svgalib' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2' 'LDFLAGS=-Wl,--as-needed' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' [0x2238120] main libvlc debug: translation test: code is "C" [0x2238120] main libvlc debug: checking plugin modules [0x2238120] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins-04081e-3e8.dat [0x2238120] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins' [0x2238120] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins-04081e-3e8.dat [0x2238120] main libvlc debug: module bank initialized (369 modules) [0x2238120] main libvlc debug: opening config file (/root/.config/vlc/vlcrc) [0x2238120] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 FPU [0x2238120] main libvlc debug: looking for memcpy module: 3 candidates [0x2238120] main libvlc debug: using memcpy module "memcpymmxext" [0x230bfe0] main input debug: Creating an input for 'Media Library' [0x230bfe0] main input debug: Input is a meta file: disabling unneeded options [0x230bfe0] main input debug: using timeshift granularity of 50 MiB [0x230bfe0] main input debug: using timeshift path '/tmp' [0x230bfe0] main input debug: `file/xspf-open:///root/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/root/.local/share/vlc/ml.xspf' [0x230bfe0] main input debug: creating demux: access='file' demux='xspf-open' path='/root/.local/share/vlc/ml.xspf' [0x2312430] main demux debug: looking for access_demux module: 2 candidates [0x2312430] main demux debug: no access_demux module matching "file" could be loaded [0x2312430] main demux debug: TIMER module_need() : 0.810 ms - Total 0.810 ms / 1 intvls (Avg 0.810 ms) [0x230bfe0] main input debug: creating access 'file' path='/root/.local/share/vlc/ml.xspf' [0x2315600] main access debug: looking for access module: 2 candidates [0x2315600] filesystem access debug: opening file `/root/.local/share/vlc/ml.xspf' [0x2315600] main access debug: using access module "filesystem" [0x2315600] main access debug: TIMER module_need() : 0.512 ms - Total 0.512 ms / 1 intvls (Avg 0.512 ms) [0x2314460] main stream debug: Using AStream*Stream [0x2314460] main stream debug: pre buffering [0x2314460] main stream debug: received first data after 0 ms [0x2314460] main stream debug: pre-buffering done 296 bytes in 0s - 8258 KiB/s [0x23148e0] main stream debug: looking for stream_filter module: 5 candidates [0x23148e0] main stream debug: no stream_filter module matching "any" could be loaded [0x23148e0] main stream debug: TIMER module_need() : 0.678 ms - Total 0.678 ms / 1 intvls (Avg 0.678 ms) [0x23148e0] main stream debug: looking for stream_filter module: 1 candidate [0x23148e0] main stream debug: using stream_filter module "stream_filter_record" [0x23148e0] main stream debug: TIMER module_need() : 0.293 ms - Total 0.293 ms / 1 intvls (Avg 0.293 ms) [0x230bfe0] main input debug: creating demux: access='file' demux='xspf-open' path='/root/.local/share/vlc/ml.xspf' [0x2322bd0] main demux debug: looking for demux module: 1 candidate [0x2322bd0] playlist demux debug: using XSPF playlist reader [0x2322bd0] main demux debug: using demux module "playlist" [0x2322bd0] main demux debug: TIMER module_need() : 0.374 ms - Total 0.374 ms / 1 intvls (Avg 0.374 ms) [0x23275c0] main demux meta debug: looking for meta reader module: 2 candidates [0x23275c0] lua demux meta debug: Trying Lua scripts in /root/.local/share/vlc/lua/meta/reader [0x23275c0] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0x23275c0] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0x23275c0] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0x23275c0] main demux meta debug: no meta reader module matching "any" could be loaded [0x23275c0] main demux meta debug: TIMER module_need() : 3.880 ms - Total 3.880 ms / 1 intvls (Avg 3.880 ms) [0x230bfe0] main input debug: `file/xspf-open:///root/.local/share/vlc/ml.xspf' successfully opened [0x2338b60] main xml debug: looking for xml module: 2 candidates [0x2338b60] main xml debug: using xml module "xml" [0x2338b60] main xml debug: TIMER module_need() : 0.815 ms - Total 0.815 ms / 1 intvls (Avg 0.815 ms) [0x2322bd0] playlist demux debug: parsed 0 tracks successfully [0x2338b60] main xml debug: removing module "xml" [0x230bfe0] main input debug: EOF reached [0x2322bd0] main demux debug: removing module "playlist" [0x23148e0] main stream debug: removing module "stream_filter_record" [0x2315600] main access debug: removing module "filesystem" [0x230bfe0] main input debug: TIMER input launching for 'Media Library' : 7.197 ms - Total 7.197 ms / 1 intvls (Avg 7.197 ms) [0x230c940] main interface debug: looking for interface module: 1 candidate [0x230c940] main interface debug: using interface module "hotkeys" [0x230c940] main interface debug: TIMER module_need() : 0.407 ms - Total 0.407 ms / 1 intvls (Avg 0.407 ms) [0x2322bd0] main interface debug: looking for interface module: 1 candidate Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS") Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE") [0x2322bd0] inhibit interface error: Failed to connect to the D-Bus session daemon: /usr/bin/dbus-launch terminated abnormally without any error message [0x2322bd0] main interface debug: no interface module matching "inhibit,none" could be loaded [0x2322bd0] main interface debug: TIMER module_need() : 1.468 ms - Total 1.468 ms / 1 intvls (Avg 1.468 ms) [0x2322bd0] main interface error: no suitable interface module [0x2249ef0] main playlist debug: Activated [0x2249ef0] main playlist debug: rebuilding array of current - root Playlist [0x2249ef0] main playlist debug: adding item `rtsp://192.168.25.21:554/h264_2' ( rtsp://192.168.25.21:554/h264_2 ) [0x2249ef0] main playlist debug: rebuild done - 0 items, index -1 [0x2311a20] main interface debug: looking for interface module: 1 candidate [0x2311a20] main interface debug: using interface module "signals" [0x2311a20] main interface debug: TIMER module_need() : 0.640 ms - Total 0.640 ms / 1 intvls (Avg 0.640 ms) [0x230ca60] main interface debug: looking for interface module: 0 candidates [0x230ca60] main interface debug: no interface module matched "globalhotkeys,none" [0x230ca60] main interface debug: TIMER module_need() : 0.181 ms - Total 0.181 ms / 1 intvls (Avg 0.181 ms) [0x230ca60] main interface error: no suitable interface module [0x2238120] main libvlc error: interface "globalhotkeys,none" initialization failed [0x230f210] main interface debug: looking for interface module: 1 candidate [0x230f210] dummy interface: using the dummy interface module... [0x230f210] main interface debug: using interface module "dummy" [0x230f210] main interface debug: TIMER module_need() : 0.367 ms - Total 0.367 ms / 1 intvls (Avg 0.367 ms) [0x2249ef0] main playlist debug: processing request item null node Playlist skip 0 [0x2249ef0] main playlist debug: rebuilding array of current - root Playlist [0x2249ef0] main playlist debug: rebuild done - 1 items, index -1 [0x2249ef0] main playlist debug: starting new item [0x2249ef0] main playlist debug: creating new input thread [0x230e050] main input debug: Creating an input for 'rtsp://192.168.25.21:554/h264_2' [0x230e050] main input debug: thread started [0x230e050] main input debug: thread (input) created at priority 10 (input/input.c:214) [0x7f1a10000f90] main stream output debug: using sout chain=`standard{access=http,mux=ffmpeg{flv},dst=0.0.0.0:4567/video.flv}' [0x7f1a10000f90] main stream output debug: stream=`standard' [0x7f1a10001380] main stream out debug: looking for sout stream module: 1 candidate [0x7f1a10001380] main stream out debug: set config option: sout-standard-access to http [0x7f1a10001380] main stream out debug: set config option: sout-standard-mux to ffmpeg{flv} [0x7f1a10001380] main stream out debug: set config option: sout-standard-dst to 0.0.0.0:4567/video.flv [0x7f1a10001380] stream_out_standard stream out debug: creating `http/ffmpeg{flv}://0.0.0.0:4567/video.flv' [0x7f1a10001380] stream_out_standard stream out debug: extension is flv [0x7f1a10001380] stream_out_standard stream out debug: extension -> mux=ffmpeg{mux=flv} [0x7f1a10001380] stream_out_standard stream out debug: using `http/ffmpeg{flv}://0.0.0.0:4567/video.flv' [0x232f4b0] main access out debug: looking for sout access module: 1 candidate [0x232f4b0] main access out: creating httpd [0x232f4b0] main access out debug: net: listening to 0.0.0.0 port 4567 [0x232f4b0] main access out debug: using sout access module "access_output_http" [0x232f4b0] main access out debug: TIMER module_need() : 0.664 ms - Total 0.664 ms / 1 intvls (Avg 0.664 ms) [0x7f1a10001380] stream_out_standard stream out debug: access opened [0x2333e50] main mux debug: looking for sout mux module: 1 candidate [0x2333e50] main mux warning: option flv is unknown [0x2333e50] main mux debug: using sout mux module "avformat" [0x2333e50] main mux debug: TIMER module_need() : 6.875 ms - Total 6.875 ms / 1 intvls (Avg 6.875 ms) [0x7f1a10001380] stream_out_standard stream out debug: mux opened [0x7f1a10001380] main stream out debug: using sout stream module "stream_out_standard" [0x7f1a10001380] main stream out debug: TIMER module_need() : 8.129 ms - Total 8.129 ms / 1 intvls (Avg 8.129 ms) [0x230e050] main input debug: using timeshift granularity of 50 MiB [0x230e050] main input debug: using timeshift path '/tmp' [0x230e050] main input debug: `rtsp://192.168.25.21:554/h264_2' gives access `rtsp' demux `' path `192.168.25.21:554/h264_2' [0x230e050] main input debug: creating demux: access='rtsp' demux='' path='192.168.25.21:554/h264_2' [0x2814de0] main demux debug: looking for access_demux module: 1 candidate Sending request: OPTIONS rtsp://192.168.25.21:554/h264_2 RTSP/1.0 CSeq: 1 User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received OPTIONS response: RTSP/1.0 200 OK CSeq: 1 Date: Mon, Apr 18 2011 16:18:27 GMT Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER Sending request: DESCRIBE rtsp://192.168.25.21:554/h264_2 RTSP/1.0 CSeq: 2 Accept: application/sdp User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received DESCRIBE response: RTSP/1.0 200 OK CSeq: 2 Date: Mon, Apr 18 2011 16:18:27 GMT Content-Base: rtsp://192.168.25.21/h264_2/ Content-Type: application/sdp Content-Length: 647 Need to read 647 extra bytes Read 647 extra bytes: v=0 o=- 1303134258561175 1 IN IP4 0.0.0.0 s=Session streamed by "nessyMediaServer" i=h264_2 t=0 0 a=tool:LIVE555 Streaming Media v2010.04.09_dyna_modi_2010.05.05 a=type:broadcast a=control:* a=range:npt=0- a=x-qt-text-nam:Session streamed by "nessyMediaServer" a=x-qt-text-inf:h264_2 m=video 0 RTP/AVP 99 c=IN IP4 0.0.0.0 a=rtpmap:99 H264/90000 a=fmtp:99 packetization-mode=28;profile-level-id=42801F; sprop-parameter-sets=J0KAH42NKCg/f+AAgABtQEBAUAAAPoAADDUGQABQAAAtAC7y4yAAKAAAFoAXeXBPosAA,KM48gA== a=control:track1 a=cliprect:0,0,320,240 a=framerate:25.000000 m=audio 7878 RTP/AVP 0 a=rtpmap:0 PCMU/8000/1 a=control:track2 [0x2814de0] live555 demux debug: RTP subsession 'video/H264' Sending request: SETUP rtsp://192.168.25.21/h264_2/track1 RTSP/1.0 CSeq: 3 Transport: RTP/AVP;unicast;client_port=47564-47565 User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received SETUP response: RTSP/1.0 200 OK CSeq: 3 Cache-Control: must-revalidate Date: Mon, Apr 18 2011 16:18:27 GMT Transport: RTP/AVP;unicast;destination=192.168.25.18;source=192.168.25.21;client_port=47564-47565;server_port=6970-6971 Session: 22 [0x230e050] main input debug: selecting program id=0 [0x2814de0] live555 demux debug: RTP subsession 'audio/PCMU' Sending request: SETUP rtsp://192.168.25.21/h264_2/track2 RTSP/1.0 CSeq: 4 Transport: RTP/AVP;unicast;client_port=7878-7879 Session: 22 User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received SETUP response: RTSP/1.0 200 OK CSeq: 4 Cache-Control: must-revalidate Date: Mon, Apr 18 2011 16:18:27 GMT Transport: RTP/AVP;unicast;destination=192.168.25.18;source=192.168.25.21;client_port=7878-7879;server_port=6972-6973 Session: 22 [0x2814de0] live555 demux debug: setup start: 0.000000 stop:0.000000 Sending request: PLAY rtsp://192.168.25.21/h264_2/ RTSP/1.0 CSeq: 5 Session: 22 Range: npt=0.000- User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received PLAY response: RTSP/1.0 200 OK CSeq: 5 Date: Mon, Apr 18 2011 16:18:27 GMT Range: npt=0.000- Session: 22 RTP-Info: url=rtsp://192.168.25.21/h264_2/track1;seq=43344;rtptime=945392296,url=rtsp://192.168.25.21/h264_2/track2;seq=50789;rtptime=544960242 [0x2814de0] live555 demux debug: We have a timeout of 60 seconds [0x2814de0] live555 demux debug: spawned timeout thread [0x2814de0] live555 demux debug: play start: 0.000000 stop:0.000000 [0x2814de0] main demux debug: using access_demux module "live555" [0x2814de0] main demux debug: TIMER module_need() : 25.744 ms - Total 25.744 ms / 1 intvls (Avg 25.744 ms) [0x27fa960] main decoder debug: looking for packetizer module: 21 candidates [0x27fa960] packetizer_h264 decoder debug: found NAL_SPS (sps_id=0) [0x27fa960] packetizer_h264 decoder debug: found NAL_PPS (pps_id=0 sps_id=0) [0x27fa960] main decoder debug: using packetizer module "packetizer_h264" [0x27fa960] main decoder debug: TIMER module_need() : 2.396 ms - Total 2.396 ms / 1 intvls (Avg 2.396 ms) [0x27fa960] main decoder debug: thread started [0x27fa960] main decoder debug: thread (decoder) created at priority 0 (input/decoder.c:301) [0x2848e30] main decoder debug: looking for packetizer module: 21 candidates [0x2848e30] main decoder debug: using packetizer module "packetizer_copy" [0x2848e30] main decoder debug: TIMER module_need() : 1.695 ms - Total 1.695 ms / 1 intvls (Avg 1.695 ms) [0x2848e30] main decoder debug: thread started [0x2848e30] main decoder debug: thread (decoder) created at priority 5 (input/decoder.c:301) [0x230e050] main input debug: starting in async mode [0x7f1a10001560] main demux meta debug: looking for meta reader module: 2 candidates [0x7f1a10001560] lua demux meta debug: Trying Lua scripts in /root/.local/share/vlc/lua/meta/reader [0x7f1a10001560] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0x7f1a10001560] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0x7f1a10001560] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0x7f1a10001560] main demux meta debug: no meta reader module matching "any" could be loaded [0x7f1a10001560] main demux meta debug: TIMER module_need() : 0.852 ms - Total 0.852 ms / 1 intvls (Avg 0.852 ms) [0x230e050] main input debug: `rtsp://192.168.25.21:554/h264_2' successfully opened Sending request: GET_PARAMETER rtsp://192.168.25.21/h264_2/ RTSP/1.0 CSeq: 6 Session: 22 User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received GET_PARAMETER response: RTSP/1.0 200 OK CSeq: 6 Date: Mon, Apr 18 2011 16:18:27 GMT Session: 22 [0x230e050] main input debug: switching to sync mode [0x230e050] main input debug: Buffering 0% [0x230e050] main input debug: Buffering 5% [0x230e050] main input debug: Buffering 16% [0x7f1a10000f90] main stream output debug: adding a new sout input (sout_input:0x2849770) [0x230e050] main input debug: Buffering 16% [0x2333e50] main mux debug: adding a new input [0x2333e50] avformat mux debug: adding input [0x230e050] main input debug: Buffering 19% [0x230e050] main input debug: Buffering 22% [0x230e050] main input debug: Buffering 26% [0x230e050] main input debug: Buffering 26% [0x230e050] main input debug: Buffering 29% [0x230e050] main input debug: Buffering 32% [0x230e050] main input debug: Buffering 36% [0x230e050] main input debug: Buffering 36% [0x230e050] main input debug: Buffering 39% [0x230e050] main input debug: Buffering 42% [0x230e050] main input debug: Buffering 46% [0x230e050] main input debug: Buffering 49% [0x230e050] main input debug: Buffering 49% [0x230e050] main input debug: Buffering 52% [0x230e050] main input debug: Buffering 56% [0x230e050] main input debug: Buffering 59% [0x230e050] main input debug: Buffering 59% [0x230e050] main input debug: Buffering 63% [0x230e050] main input debug: Buffering 66% [0x230e050] main input debug: Buffering 69% [0x230e050] main input debug: Buffering 69% [0x230e050] main input debug: Buffering 69% [0x230e050] main input debug: Buffering 69% [0x230e050] main input debug: Buffering 72% [0x230e050] main input debug: Buffering 76% [0x7f1a10000f90] main stream output debug: adding a new sout input (sout_input:0x2857c00) [0x2333e50] main mux debug: adding a new input [0x2333e50] avformat mux debug: adding input [0x2333e50] avformat mux warning: Missing frame rate, assuming 25fps [0x230e050] main input debug: Buffering 79% [0x230e050] main input debug: Buffering 79% [0x230e050] main input debug: Buffering 82% [0x230e050] main input debug: Buffering 86% [0x230e050] main input debug: Buffering 89% [0x230e050] main input debug: Buffering 89% [0x230e050] main input debug: Buffering 92% [0x230e050] main input debug: Buffering 96% [0x230e050] main input debug: Buffering 99% [0x230e050] main input debug: Stream buffering done (1234 ms in 1145 ms) [0x230e050] main input debug: Decoder buffering done in 0 ms [0x2333e50] avformat mux debug: writing header codec not compatible with flv [0x2333e50] avformat mux error: could not write header [0x2814de0] live555 demux debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP() [0x230e050] main input debug: ES_OUT_RESET_PCR called [0x230e050] main input debug: Buffering 0% [0x230e050] main input debug: Buffering 0% [0x230e050] main input debug: Buffering 0% [0x230e050] main input debug: Buffering 0% [0x230e050] main input debug: Buffering 10% [0x230e050] main input debug: Buffering 10% [0x230e050] main input debug: Buffering 10% [0x230e050] main input debug: Buffering 10% [0x230e050] main input debug: Buffering 21% [0x230e050] main input debug: Buffering 21% [0x230e050] main input debug: Buffering 21% [0x230e050] main input debug: Buffering 21% [0x230e050] main input debug: Buffering 21% [0x230e050] main input debug: Buffering 31% [0x230e050] main input debug: Buffering 31% [0x230e050] main input debug: Buffering 31% [0x230e050] main input debug: Buffering 31% [0x230e050] main input debug: Buffering 42% [0x230e050] main input debug: Buffering 42% [0x230e050] main input debug: Buffering 42% [0x230e050] main input debug: Buffering 42% [0x230e050] main input debug: Buffering 53% [0x230e050] main input debug: Buffering 53% [0x230e050] main input debug: Buffering 53% [0x230e050] main input debug: Buffering 53% [0x230e050] main input debug: Buffering 64% [0x230e050] main input debug: Buffering 64% [0x230e050] main input debug: Buffering 64% [0x230e050] main input debug: Buffering 64% [0x230e050] main input debug: Buffering 74% [0x230e050] main input debug: Buffering 74% [0x230e050] main input debug: Buffering 74% [0x230e050] main input debug: Buffering 74% [0x230e050] main input debug: Buffering 74% [0x2814de0] live555 demux debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP() [0x230e050] main input debug: ES_OUT_RESET_PCR called [0x230e050] main input debug: Buffering 0% [0x230e050] main input debug: Buffering 2% [0x230e050] main input debug: Buffering 2% [0x230e050] main input debug: Buffering 2% [0x230e050] main input debug: Buffering 5% [0x230e050] main input debug: Buffering 10% [0x230e050] main input debug: Buffering 10% [0x230e050] main input debug: Buffering 12% [0x230e050] main input debug: Buffering 15% [0x230e050] main input debug: Buffering 21% [0x230e050] main input debug: Buffering 21% [0x230e050] main input debug: Buffering 22% [0x230e050] main input debug: Buffering 25% [0x230e050] main input debug: Buffering 31% [0x230e050] main input debug: Buffering 31% [0x230e050] main input debug: Buffering 32% [0x230e050] main input debug: Buffering 36% [0x230e050] main input debug: Buffering 42% [0x230e050] main input debug: Buffering 42% [0x230e050] main input debug: Buffering 42% [0x230e050] main input debug: Buffering 46% [0x230e050] main input debug: Buffering 49% [0x230e050] main input debug: Buffering 53% [0x230e050] main input debug: Buffering 53% [0x230e050] main input debug: Buffering 56% [0x230e050] main input debug: Buffering 59% [0x230e050] main input debug: Buffering 63% [0x230e050] main input debug: Buffering 63% [0x230e050] main input debug: Buffering 65% [0x230e050] main input debug: Buffering 69% [0x230e050] main input debug: Buffering 74% [0x230e050] main input debug: Buffering 74% [0x230e050] main input debug: Buffering 75% [0x230e050] main input debug: Buffering 79% [0x230e050] main input debug: Buffering 85% [0x230e050] main input debug: Buffering 85% [0x230e050] main input debug: Buffering 85% [0x230e050] main input debug: Buffering 89% [0x230e050] main input debug: Buffering 96% [0x230e050] main input debug: Buffering 96% [0x230e050] main input debug: Buffering 96% [0x230e050] main input debug: Buffering 99% [0x230e050] main input debug: Stream buffering done (1232 ms in 1203 ms) [0x230e050] main input debug: Decoder buffering done in 0 ms [0x2311a20] signals interface error: Caught Interrupt signal, exiting... [0x2238120] main libvlc debug: deactivating the playlist [0x2249ef0] main playlist debug: Deactivate [0x2249ef0] main playlist debug: incoming request - stopping current input [0x2249ef0] main playlist debug: dying input [0x230e050] main input debug: control type=0 [0x230e050] main input debug: control: stopping input [0x2249ef0] main playlist debug: dying input [0x27fa960] main decoder debug: removing module "packetizer_h264" [0x27fa960] main decoder debug: killing decoder fourcc `h264', 0 PES in FIFO [0x7f1a10000f90] main stream output debug: removing a sout input (sout_input:0x2857c00) [0x2333e50] avformat mux debug: removing input [0x2848e30] main decoder debug: removing module "packetizer_copy" [0x2848e30] main decoder debug: killing decoder fourcc `mlaw', 0 PES in FIFO [0x7f1a10000f90] main stream output debug: removing a sout input (sout_input:0x2849770) [0x2333e50] avformat mux debug: removing input [0x2333e50] main mux warning: no more input streams for this mux Sending request: TEARDOWN rtsp://192.168.25.21/h264_2/ RTSP/1.0 CSeq: 7 Session: 22 User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received TEARDOWN response: RTSP/1.0 200 OK CSeq: 7 Date: Mon, Apr 18 2011 16:18:46 GMT [0x2814de0] main demux debug: removing module "live555" [0x230e050] main input debug: Program doesn't contain anymore ES [0x230e050] main input debug: thread ended [0x2249ef0] main playlist debug: dead input [0x7f1a10000f90] main stream output debug: destroying useless sout [0x7f1a10001380] main stream out debug: destroying chain... (name=standard) [0x2333e50] main mux debug: removing module "avformat" [0x2333750] main http server debug: waitpipe: object killed [0x2333750] main http server debug: HTTP host removed [0x2333660] main http server debug: no hosts left, stopping httpd [0x232f4b0] access_output_http access out debug: Close [0x232f4b0] main access out debug: removing module "access_output_http" [0x7f1a10001380] main stream out debug: removing module "stream_out_standard" [0x7f1a10001380] main stream out debug: destroying chain done [0x230e050] main input debug: TIMER input launching for 'rtsp://192.168.25.21:554/h264_2' : 39.832 ms - Total 39.832 ms / 1 intvls (Avg 39.832 ms) [0x232d430] main playlist export debug: saving Media Library to file /root/.local/share/vlc/ml.xspf [0x232d430] main playlist export debug: looking for playlist export module: 1 candidate [0x232d430] main playlist export debug: using playlist export module "export" [0x232d430] main playlist export debug: TIMER module_need() : 0.518 ms - Total 0.518 ms / 1 intvls (Avg 0.518 ms) [0x232d430] main playlist export debug: removing module "export" [0x2249ef0] main playlist debug: Deactivated [0x2238120] main libvlc debug: removing all services discovery tasks [0x2238120] main libvlc debug: removing all interfaces [0x230f210] main interface debug: removing module "dummy" [0x2311a20] main interface debug: removing module "signals" [0x230c940] main interface debug: removing module "hotkeys" [0x2249ef0] main playlist debug: destroying [0x2238120] main libvlc debug: TIMER ML Load : Total 8.485 ms / 1 intvls (Avg 8.485 ms) [0x2238120] main libvlc debug: TIMER Items array build : Total 0.073 ms / 2 intvls (Avg 0.036 ms) [0x2238120] main libvlc debug: TIMER ML Dump : Total 0.672 ms / 1 intvls (Avg 0.672 ms) [0x2238120] main libvlc debug: removing stats [0x2238120] main libvlc debug: removing module "memcpymmxext"
Last edited by burek on 18 Apr 2011 18:33, edited 1 time in total.
Image
          • www.gusari.org

burek
Blank Cone
Blank Cone
Posts: 40
Joined: 10 May 2008 21:52

Re: Streaming video from webcam to .swf player

Postby burek » 18 Apr 2011 18:31

2. (works when watched from VLC, not from JWPlayer)

Code: Select all

cvlc -vvv rtsp://webcam:554/h264_2 --sout '#standard{access=http,mux=ts,dst=0.0.0.0:4567/video.flv}'
output:

Code: Select all

VLC media player 1.1.7 The Luggage (revision exported) [0x1bf9120] main libvlc debug: VLC media player - 1.1.7 The Luggage [0x1bf9120] main libvlc debug: Copyright © 1996-2011 the VideoLAN team [0x1bf9120] main libvlc debug: revision exported [0x1bf9120] main libvlc debug: configured with ./configure '--enable-static' '--build=x86_64-linux-gnu' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--sysconfdir=/etc' '--with-binary-version=3' '--enable-a52' '--enable-aa' '--enable-bonjour' '--enable-caca' '--enable-dca' '--enable-dirac' '--enable-dvb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-ggi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libproxy' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mozilla' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-pulse' '--enable-qt4' '--enable-realrtsp' '--enable-schroedinger' '--enable-sdl' '--enable-shout' '--enable-skins2' '--enable-smb' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--with-mozilla-pkg=libxul' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-osso_screensaver' '--disable-portaudio' '--disable-projectm' '--disable-sqlite' '--disable-telx' '--disable-x264' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv' '--enable-libva' '--enable-pvr' '--enable-udev' '--enable-v4l' '--enable-v4l2' '--enable-svgalib' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2' 'LDFLAGS=-Wl,--as-needed' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' [0x1bf9120] main libvlc debug: translation test: code is "C" [0x1bf9120] main libvlc debug: checking plugin modules [0x1bf9120] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins-04081e-3e8.dat [0x1bf9120] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins' [0x1bf9120] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins-04081e-3e8.dat [0x1bf9120] main libvlc debug: module bank initialized (369 modules) [0x1bf9120] main libvlc debug: opening config file (/root/.config/vlc/vlcrc) [0x1bf9120] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 FPU [0x1bf9120] main libvlc debug: looking for memcpy module: 3 candidates [0x1bf9120] main libvlc debug: using memcpy module "memcpymmxext" [0x1cccfe0] main input debug: Creating an input for 'Media Library' [0x1cccfe0] main input debug: Input is a meta file: disabling unneeded options [0x1cccfe0] main input debug: using timeshift granularity of 50 MiB [0x1cccfe0] main input debug: using timeshift path '/tmp' [0x1cccfe0] main input debug: `file/xspf-open:///root/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/root/.local/share/vlc/ml.xspf' [0x1cccfe0] main input debug: creating demux: access='file' demux='xspf-open' path='/root/.local/share/vlc/ml.xspf' [0x1cd3430] main demux debug: looking for access_demux module: 2 candidates [0x1cd3430] main demux debug: no access_demux module matching "file" could be loaded [0x1cd3430] main demux debug: TIMER module_need() : 0.792 ms - Total 0.792 ms / 1 intvls (Avg 0.792 ms) [0x1cccfe0] main input debug: creating access 'file' path='/root/.local/share/vlc/ml.xspf' [0x1cd6600] main access debug: looking for access module: 2 candidates [0x1cd6600] filesystem access debug: opening file `/root/.local/share/vlc/ml.xspf' [0x1cd6600] main access debug: using access module "filesystem" [0x1cd6600] main access debug: TIMER module_need() : 0.507 ms - Total 0.507 ms / 1 intvls (Avg 0.507 ms) [0x1cd5460] main stream debug: Using AStream*Stream [0x1cd5460] main stream debug: pre buffering [0x1cd5460] main stream debug: received first data after 0 ms [0x1cd5460] main stream debug: pre-buffering done 296 bytes in 0s - 8258 KiB/s [0x1cd58e0] main stream debug: looking for stream_filter module: 5 candidates [0x1cd58e0] main stream debug: no stream_filter module matching "any" could be loaded [0x1cd58e0] main stream debug: TIMER module_need() : 0.673 ms - Total 0.673 ms / 1 intvls (Avg 0.673 ms) [0x1cd58e0] main stream debug: looking for stream_filter module: 1 candidate [0x1cd58e0] main stream debug: using stream_filter module "stream_filter_record" [0x1cd58e0] main stream debug: TIMER module_need() : 0.290 ms - Total 0.290 ms / 1 intvls (Avg 0.290 ms) [0x1cccfe0] main input debug: creating demux: access='file' demux='xspf-open' path='/root/.local/share/vlc/ml.xspf' [0x1ce3bd0] main demux debug: looking for demux module: 1 candidate [0x1ce3bd0] playlist demux debug: using XSPF playlist reader [0x1ce3bd0] main demux debug: using demux module "playlist" [0x1ce3bd0] main demux debug: TIMER module_need() : 0.370 ms - Total 0.370 ms / 1 intvls (Avg 0.370 ms) [0x1ce85c0] main demux meta debug: looking for meta reader module: 2 candidates [0x1ce85c0] lua demux meta debug: Trying Lua scripts in /root/.local/share/vlc/lua/meta/reader [0x1ce85c0] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0x1ce85c0] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0x1ce85c0] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0x1ce85c0] main demux meta debug: no meta reader module matching "any" could be loaded [0x1ce85c0] main demux meta debug: TIMER module_need() : 3.858 ms - Total 3.858 ms / 1 intvls (Avg 3.858 ms) [0x1cccfe0] main input debug: `file/xspf-open:///root/.local/share/vlc/ml.xspf' successfully opened [0x1cf9b60] main xml debug: looking for xml module: 2 candidates [0x1cf9b60] main xml debug: using xml module "xml" [0x1cf9b60] main xml debug: TIMER module_need() : 0.807 ms - Total 0.807 ms / 1 intvls (Avg 0.807 ms) [0x1ce3bd0] playlist demux debug: parsed 0 tracks successfully [0x1cf9b60] main xml debug: removing module "xml" [0x1cccfe0] main input debug: EOF reached [0x1ce3bd0] main demux debug: removing module "playlist" [0x1cd58e0] main stream debug: removing module "stream_filter_record" [0x1cd6600] main access debug: removing module "filesystem" [0x1cccfe0] main input debug: TIMER input launching for 'Media Library' : 7.157 ms - Total 7.157 ms / 1 intvls (Avg 7.157 ms) [0x1ccd940] main interface debug: looking for interface module: 1 candidate [0x1ccd940] main interface debug: using interface module "hotkeys" [0x1ccd940] main interface debug: TIMER module_need() : 0.403 ms - Total 0.403 ms / 1 intvls (Avg 0.403 ms) [0x1ce3bd0] main interface debug: looking for interface module: 1 candidate Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS") Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE") [0x1ce3bd0] inhibit interface error: Failed to connect to the D-Bus session daemon: /usr/bin/dbus-launch terminated abnormally without any error message [0x1ce3bd0] main interface debug: no interface module matching "inhibit,none" could be loaded [0x1ce3bd0] main interface debug: TIMER module_need() : 1.462 ms - Total 1.462 ms / 1 intvls (Avg 1.462 ms) [0x1ce3bd0] main interface error: no suitable interface module [0x1c0aef0] main playlist debug: Activated [0x1c0aef0] main playlist debug: rebuilding array of current - root Playlist [0x1c0aef0] main playlist debug: rebuild done - 0 items, index -1 [0x1c0aef0] main playlist debug: adding item `rtsp://192.168.25.21:554/h264_2' ( rtsp://192.168.25.21:554/h264_2 ) [0x7fc864001180] main interface debug: looking for interface module: 1 candidate [0x7fc864001180] main interface debug: using interface module "signals" [0x7fc864001180] main interface debug: TIMER module_need() : 0.641 ms - Total 0.641 ms / 1 intvls (Avg 0.641 ms) [0x1ce3bd0] main interface debug: looking for interface module: 0 candidates [0x1ce3bd0] main interface debug: no interface module matched "globalhotkeys,none" [0x1ce3bd0] main interface debug: TIMER module_need() : 0.184 ms - Total 0.184 ms / 1 intvls (Avg 0.184 ms) [0x1ce3bd0] main interface error: no suitable interface module [0x1bf9120] main libvlc error: interface "globalhotkeys,none" initialization failed [0x1ce3bd0] main interface debug: looking for interface module: 1 candidate [0x1ce3bd0] dummy interface: using the dummy interface module... [0x1ce3bd0] main interface debug: using interface module "dummy" [0x1ce3bd0] main interface debug: TIMER module_need() : 0.370 ms - Total 0.370 ms / 1 intvls (Avg 0.370 ms) [0x1c0aef0] main playlist debug: processing request item null node Playlist skip 0 [0x1c0aef0] main playlist debug: rebuilding array of current - root Playlist [0x1c0aef0] main playlist debug: rebuild done - 1 items, index -1 [0x1c0aef0] main playlist debug: starting new item [0x1c0aef0] main playlist debug: creating new input thread [0x1cd0280] main input debug: Creating an input for 'rtsp://192.168.25.21:554/h264_2' [0x1cd0280] main input debug: thread started [0x1cd0280] main input debug: thread (input) created at priority 10 (input/input.c:214) [0x1cef390] main stream output debug: using sout chain=`standard{access=http,mux=ts,dst=0.0.0.0:4567/video.flv}' [0x1cef390] main stream output debug: stream=`standard' [0x1cef740] main stream out debug: looking for sout stream module: 1 candidate [0x1cef740] main stream out debug: set config option: sout-standard-access to http [0x1cef740] main stream out debug: set config option: sout-standard-mux to ts [0x1cef740] main stream out debug: set config option: sout-standard-dst to 0.0.0.0:4567/video.flv [0x1cef740] stream_out_standard stream out debug: creating `http/ts://0.0.0.0:4567/video.flv' [0x1cef740] stream_out_standard stream out debug: extension is flv [0x1cef740] stream_out_standard stream out debug: extension -> mux=ffmpeg{mux=flv} [0x1cef740] stream_out_standard stream out debug: using `http/ts://0.0.0.0:4567/video.flv' [0x1cf3380] main access out debug: looking for sout access module: 1 candidate [0x1cf3380] main access out: creating httpd [0x1cf3380] main access out debug: net: listening to 0.0.0.0 port 4567 [0x1cf3380] main access out debug: using sout access module "access_output_http" [0x1cf3380] main access out debug: TIMER module_need() : 0.652 ms - Total 0.652 ms / 1 intvls (Avg 0.652 ms) [0x1cef740] stream_out_standard stream out debug: access opened [0x1cf4b20] main mux debug: looking for sout mux module: 1 candidate [0x1cf4b20] mux_ts mux debug: shaping=200000 pcr=70000 dts_delay=400000 [0x1cf4b20] main mux debug: using sout mux module "mux_ts" [0x1cf4b20] main mux debug: TIMER module_need() : 0.689 ms - Total 0.689 ms / 1 intvls (Avg 0.689 ms) [0x1cef390] main stream output debug: muxer support adding stream at any time [0x1cef390] main stream output debug: muxer prefers to wait for all ES before starting to mux [0x1cef740] stream_out_standard stream out debug: mux opened [0x1cef740] main stream out debug: using sout stream module "stream_out_standard" [0x1cef740] main stream out debug: TIMER module_need() : 1.924 ms - Total 1.924 ms / 1 intvls (Avg 1.924 ms) [0x1cd0280] main input debug: using timeshift granularity of 50 MiB [0x1cd0280] main input debug: using timeshift path '/tmp' [0x1cd0280] main input debug: `rtsp://192.168.25.21:554/h264_2' gives access `rtsp' demux `' path `192.168.25.21:554/h264_2' [0x1cd0280] main input debug: creating demux: access='rtsp' demux='' path='192.168.25.21:554/h264_2' [0x1cf88c0] main demux debug: looking for access_demux module: 1 candidate Sending request: OPTIONS rtsp://192.168.25.21:554/h264_2 RTSP/1.0 CSeq: 1 User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received OPTIONS response: RTSP/1.0 200 OK CSeq: 1 Date: Mon, Apr 18 2011 16:25:02 GMT Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER Sending request: DESCRIBE rtsp://192.168.25.21:554/h264_2 RTSP/1.0 CSeq: 2 Accept: application/sdp User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received DESCRIBE response: RTSP/1.0 200 OK CSeq: 2 Date: Mon, Apr 18 2011 16:25:02 GMT Content-Base: rtsp://192.168.25.21/h264_2/ Content-Type: application/sdp Content-Length: 647 Need to read 647 extra bytes Read 647 extra bytes: v=0 o=- 1303134258561175 1 IN IP4 0.0.0.0 s=Session streamed by "nessyMediaServer" i=h264_2 t=0 0 a=tool:LIVE555 Streaming Media v2010.04.09_dyna_modi_2010.05.05 a=type:broadcast a=control:* a=range:npt=0- a=x-qt-text-nam:Session streamed by "nessyMediaServer" a=x-qt-text-inf:h264_2 m=video 0 RTP/AVP 99 c=IN IP4 0.0.0.0 a=rtpmap:99 H264/90000 a=fmtp:99 packetization-mode=28;profile-level-id=42801F; sprop-parameter-sets=J0KAH42NKCg/f+AAgABtQEBAUAAAPoAADDUGQABQAAAtAC7y4yAAKAAAFoAXeXBPosAA,KM48gA== a=control:track1 a=cliprect:0,0,320,240 a=framerate:25.000000 m=audio 7878 RTP/AVP 0 a=rtpmap:0 PCMU/8000/1 a=control:track2 [0x1cf88c0] live555 demux debug: RTP subsession 'video/H264' Sending request: SETUP rtsp://192.168.25.21/h264_2/track1 RTSP/1.0 CSeq: 3 Transport: RTP/AVP;unicast;client_port=48186-48187 User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received SETUP response: RTSP/1.0 200 OK CSeq: 3 Cache-Control: must-revalidate Date: Mon, Apr 18 2011 16:25:02 GMT Transport: RTP/AVP;unicast;destination=192.168.25.18;source=192.168.25.21;client_port=48186-48187;server_port=6970-6971 Session: 23 [0x1cd0280] main input debug: selecting program id=0 [0x1cf88c0] live555 demux debug: RTP subsession 'audio/PCMU' Sending request: SETUP rtsp://192.168.25.21/h264_2/track2 RTSP/1.0 CSeq: 4 Transport: RTP/AVP;unicast;client_port=7878-7879 Session: 23 User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received SETUP response: RTSP/1.0 200 OK CSeq: 4 Cache-Control: must-revalidate Date: Mon, Apr 18 2011 16:25:02 GMT Transport: RTP/AVP;unicast;destination=192.168.25.18;source=192.168.25.21;client_port=7878-7879;server_port=6972-6973 Session: 23 [0x1cf88c0] live555 demux debug: setup start: 0.000000 stop:0.000000 Sending request: PLAY rtsp://192.168.25.21/h264_2/ RTSP/1.0 CSeq: 5 Session: 23 Range: npt=0.000- User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received PLAY response: RTSP/1.0 200 OK CSeq: 5 Date: Mon, Apr 18 2011 16:25:02 GMT Range: npt=0.000- Session: 23 RTP-Info: url=rtsp://192.168.25.21/h264_2/track1;seq=49596;rtptime=2579761005,url=rtsp://192.168.25.21/h264_2/track2;seq=2913;rtptime=942462975 [0x1cf88c0] live555 demux debug: We have a timeout of 60 seconds [0x1cf88c0] live555 demux debug: spawned timeout thread [0x1cf88c0] live555 demux debug: play start: 0.000000 stop:0.000000 [0x1cf88c0] main demux debug: using access_demux module "live555" [0x1cf88c0] main demux debug: TIMER module_need() : 32.750 ms - Total 32.750 ms / 1 intvls (Avg 32.750 ms) [0x1cf6640] main decoder debug: looking for packetizer module: 21 candidates [0x1cf6640] packetizer_h264 decoder debug: found NAL_SPS (sps_id=0) [0x1cf6640] packetizer_h264 decoder debug: found NAL_PPS (pps_id=0 sps_id=0) [0x1cf6640] main decoder debug: using packetizer module "packetizer_h264" [0x1cf6640] main decoder debug: TIMER module_need() : 2.701 ms - Total 2.701 ms / 1 intvls (Avg 2.701 ms) [0x1cf6640] main decoder debug: thread started [0x1cf6640] main decoder debug: thread (decoder) created at priority 0 (input/decoder.c:301) [0x1d25f80] main decoder debug: looking for packetizer module: 21 candidates [0x1d25f80] main decoder debug: using packetizer module "packetizer_copy" [0x1d25f80] main decoder debug: TIMER module_need() : 1.564 ms - Total 1.564 ms / 1 intvls (Avg 1.564 ms) [0x1d25f80] main decoder debug: thread started [0x1d25f80] main decoder debug: thread (decoder) created at priority 5 (input/decoder.c:301) [0x1cd0280] main input debug: starting in async mode [0x1d2f490] main demux meta debug: looking for meta reader module: 2 candidates [0x1d2f490] lua demux meta debug: Trying Lua scripts in /root/.local/share/vlc/lua/meta/reader [0x1d2f490] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0x1d2f490] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0x1d2f490] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0x1d2f490] main demux meta debug: no meta reader module matching "any" could be loaded [0x1d2f490] main demux meta debug: TIMER module_need() : 0.830 ms - Total 0.830 ms / 1 intvls (Avg 0.830 ms) [0x1cd0280] main input debug: `rtsp://192.168.25.21:554/h264_2' successfully opened Sending request: GET_PARAMETER rtsp://192.168.25.21/h264_2/ RTSP/1.0 CSeq: 6 Session: 23 User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received GET_PARAMETER response: RTSP/1.0 200 OK CSeq: 6 Date: Mon, Apr 18 2011 16:25:02 GMT Session: 23 [0x1cd0280] main input debug: switching to sync mode [0x1cd0280] main input debug: Buffering 0% [0x1cd0280] main input debug: Buffering 0% [0x1cd0280] main input debug: Buffering 10% [0x1cd0280] main input debug: Buffering 13% [0x1cd0280] main input debug: Buffering 13% [0x1cd0280] main input debug: Buffering 13% [0x1cd0280] main input debug: Buffering 17% [0x1cef390] main stream output debug: adding a new sout input (sout_input:0x7fc864001580) [0x1cd0280] main input debug: Buffering 17% [0x1cf4b20] main mux debug: adding a new input [0x1cf4b20] mux_ts mux debug: adding input codec=mlaw pid=68 [0x1cf4b20] main mux error: cannot add this stream [0x1d25f80] main decoder error: cannot create packetizer output (mlaw) [0x1cd0280] main input debug: Buffering 20% [0x1cef390] main stream output debug: adding a new sout input (sout_input:0x1d2ef40) [0x1cf4b20] main mux debug: adding a new input [0x1cf4b20] mux_ts mux debug: adding input codec=h264 pid=69 [0x1cf4b20] mux_ts mux debug: new PCR PID is 69 [0x1cd0280] main input debug: Buffering 23% [0x1cd0280] main input debug: Buffering 27% [0x1cd0280] main input debug: Buffering 27% [0x1cd0280] main input debug: Buffering 30% [0x1cd0280] main input debug: Buffering 33% [0x1cd0280] main input debug: Buffering 37% [0x1cd0280] main input debug: Buffering 37% [0x1cd0280] main input debug: Buffering 40% [0x1cd0280] main input debug: Buffering 43% [0x1cd0280] main input debug: Buffering 47% [0x1cd0280] main input debug: Buffering 47% [0x1cd0280] main input debug: Buffering 50% [0x1cd0280] main input debug: Buffering 53% [0x1cd0280] main input debug: Buffering 57% [0x1cd0280] main input debug: Buffering 57% [0x1cd0280] main input debug: Buffering 60% [0x1cd0280] main input debug: Buffering 63% [0x1cd0280] main input debug: Buffering 67% [0x1cd0280] main input debug: Buffering 70% [0x1cd0280] main input debug: Buffering 70% [0x1cd0280] main input debug: Buffering 73% [0x1cd0280] main input debug: Buffering 77% [0x1cd0280] main input debug: Buffering 80% [0x1cd0280] main input debug: Buffering 80% [0x1cd0280] main input debug: Buffering 83% [0x1cd0280] main input debug: Buffering 87% [0x1cd0280] main input debug: Buffering 90% [0x1cd0280] main input debug: Buffering 90% [0x1cd0280] main input debug: Buffering 93% [0x1cd0280] main input debug: Buffering 97% [0x1cd0280] main input debug: Stream buffering done (1207 ms in 1125 ms) [0x1cd0280] main input debug: Decoder buffering done in 0 ms [0x1cf88c0] live555 demux debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP() [0x1cd0280] main input debug: ES_OUT_RESET_PCR called [0x1cd0280] main input debug: Buffering 0% [0x1cd0280] main input debug: Buffering 0% [0x1cd0280] main input debug: Buffering 0% [0x1cd0280] main input debug: Buffering 3% [0x1cd0280] main input warning: clock gap, unexpected stream discontinuity [0x1cd0280] main input warning: feeding synchro with a new reference point trying to recover from clock gap [0x1cd0280] main input debug: Buffering 0% [0x1cd0280] main input debug: Buffering 0% [0x1cd0280] main input debug: Buffering 0% [0x1cd0280] main input debug: Buffering 0% [0x1cd0280] main input debug: Buffering 0% [0x1cf88c0] live555 demux debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP() [0x1cd0280] main input debug: ES_OUT_RESET_PCR called [0x1cd0280] main input debug: Buffering 0% [0x1cd0280] main input debug: Buffering 3% [0x1cd0280] main input debug: Buffering 6% [0x1cd0280] main input debug: Buffering 10% [0x1cd0280] main input debug: Buffering 10% [0x1cd0280] main input debug: Buffering 13% [0x1cd0280] main input debug: Buffering 16% [0x1cd0280] main input debug: Buffering 21% [0x1cd0280] main input debug: Buffering 21% [0x1cd0280] main input debug: Buffering 23% [0x1cd0280] main input debug: Buffering 26% [0x1cd0280] main input debug: Buffering 32% [0x1cd0280] main input debug: Buffering 32% [0x1cd0280] main input debug: Buffering 33% [0x1cd0280] main input debug: Buffering 36% [0x1cd0280] main input debug: Buffering 42% [0x1cd0280] main input debug: Buffering 42% [0x1cd0280] main input debug: Buffering 42% [0x1cd0280] main input debug: Buffering 46% [0x1cd0280] main input debug: Buffering 49% [0x1cd0280] main input debug: Buffering 53% [0x1cd0280] main input debug: Buffering 53% [0x1cd0280] main input debug: Buffering 56% [0x1cd0280] main input debug: Buffering 59% [0x1cd0280] main input debug: Buffering 64% [0x1cd0280] main input debug: Buffering 64% [0x1cd0280] main input debug: Buffering 66% [0x1cd0280] main input debug: Buffering 69% [0x1cd0280] main input debug: Buffering 75% [0x1cd0280] main input debug: Buffering 75% [0x1cd0280] main input debug: Buffering 76% [0x1cd0280] main input debug: Buffering 79% [0x1cd0280] main input debug: Buffering 79% [0x1cd0280] main input debug: Buffering 79% [0x1cd0280] main input debug: Buffering 85% [0x1cd0280] main input debug: Buffering 85% [0x1cd0280] main input debug: Buffering 86% [0x1cd0280] main input debug: Buffering 90% [0x1cd0280] main input debug: Buffering 96% [0x1cd0280] main input debug: Buffering 96% [0x1cd0280] main input debug: Buffering 96% [0x1cd0280] main input debug: Buffering 99% [0x1cd0280] main input debug: Stream buffering done (1240 ms in 1240 ms) [0x1cd0280] main input debug: Decoder buffering done in 0 ms [0x1cf4b20] mux_ts mux debug: adjusting rate at 0/410369 (7/0) [0x1cf4b20] mux_ts mux warning: packet with too strange dts (dts=4379387713,old=4379432387,pcr=4379432387) [0x7fc864001180] signals interface error: Caught Interrupt signal, exiting... [0x1bf9120] main libvlc debug: deactivating the playlist [0x1c0aef0] main playlist debug: Deactivate [0x1c0aef0] main playlist debug: incoming request - stopping current input [0x1c0aef0] main playlist debug: dying input [0x1cd0280] main input debug: control type=0 [0x1cd0280] main input debug: control: stopping input [0x1c0aef0] main playlist debug: dying input [0x1cf6640] main decoder debug: removing module "packetizer_h264" [0x1cf6640] main decoder debug: killing decoder fourcc `h264', 0 PES in FIFO [0x1cef390] main stream output debug: removing a sout input (sout_input:0x1d2ef40) [0x1cf4b20] mux_ts mux debug: removing input pid=69 [0x1cf4b20] mux_ts mux debug: new PCR PID is 8191 [0x1cf4b20] main mux warning: no more input streams for this mux [0x1d25f80] main decoder debug: removing module "packetizer_copy" [0x1d25f80] main decoder debug: killing decoder fourcc `mlaw', 0 PES in FIFO Sending request: TEARDOWN rtsp://192.168.25.21/h264_2/ RTSP/1.0 CSeq: 7 Session: 23 User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received TEARDOWN response: RTSP/1.0 200 OK CSeq: 7 Date: Mon, Apr 18 2011 16:25:20 GMT [0x1cf88c0] main demux debug: removing module "live555" [0x1cd0280] main input debug: Program doesn't contain anymore ES [0x1cd0280] main input debug: thread ended [0x1c0aef0] main playlist debug: dead input [0x1cef390] main stream output debug: destroying useless sout [0x1cef740] main stream out debug: destroying chain... (name=standard) [0x1cf4b20] main mux debug: removing module "mux_ts" [0x1cf47f0] main http server debug: waitpipe: object killed [0x1cf47f0] main http server debug: HTTP host removed [0x1cf4700] main http server debug: no hosts left, stopping httpd [0x1cf3380] access_output_http access out debug: Close [0x1cf3380] main access out debug: removing module "access_output_http" [0x1cef740] main stream out debug: removing module "stream_out_standard" [0x1cef740] main stream out debug: destroying chain done [0x1cd0280] main input debug: TIMER input launching for 'rtsp://192.168.25.21:554/h264_2' : 40.749 ms - Total 40.749 ms / 1 intvls (Avg 40.749 ms) [0x1cf5970] main playlist export debug: saving Media Library to file /root/.local/share/vlc/ml.xspf [0x1cf5970] main playlist export debug: looking for playlist export module: 1 candidate [0x1cf5970] main playlist export debug: using playlist export module "export" [0x1cf5970] main playlist export debug: TIMER module_need() : 0.510 ms - Total 0.510 ms / 1 intvls (Avg 0.510 ms) [0x1cf5970] main playlist export debug: removing module "export" [0x1c0aef0] main playlist debug: Deactivated [0x1bf9120] main libvlc debug: removing all services discovery tasks [0x1bf9120] main libvlc debug: removing all interfaces [0x1ce3bd0] main interface debug: removing module "dummy" [0x7fc864001180] main interface debug: removing module "signals" [0x1ccd940] main interface debug: removing module "hotkeys" [0x1c0aef0] main playlist debug: destroying [0x1bf9120] main libvlc debug: TIMER ML Load : Total 8.452 ms / 1 intvls (Avg 8.452 ms) [0x1bf9120] main libvlc debug: TIMER Items array build : Total 0.068 ms / 2 intvls (Avg 0.034 ms) [0x1bf9120] main libvlc debug: TIMER ML Dump : Total 0.689 ms / 1 intvls (Avg 0.689 ms) [0x1bf9120] main libvlc debug: removing stats [0x1bf9120] main libvlc debug: removing module "memcpymmxext"
3. (doesn't work)

Code: Select all

cvlc -vvv rtsp://webcam:554/h264_2 --sout '#standard{access=http,mux=mp4,dst=0.0.0.0:4567/video.flv}'
output:

Code: Select all

VLC media player 1.1.7 The Luggage (revision exported) [0x1928120] main libvlc debug: VLC media player - 1.1.7 The Luggage [0x1928120] main libvlc debug: Copyright © 1996-2011 the VideoLAN team [0x1928120] main libvlc debug: revision exported [0x1928120] main libvlc debug: configured with ./configure '--enable-static' '--build=x86_64-linux-gnu' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--sysconfdir=/etc' '--with-binary-version=3' '--enable-a52' '--enable-aa' '--enable-bonjour' '--enable-caca' '--enable-dca' '--enable-dirac' '--enable-dvb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-ggi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libproxy' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mozilla' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-pulse' '--enable-qt4' '--enable-realrtsp' '--enable-schroedinger' '--enable-sdl' '--enable-shout' '--enable-skins2' '--enable-smb' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--with-mozilla-pkg=libxul' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-osso_screensaver' '--disable-portaudio' '--disable-projectm' '--disable-sqlite' '--disable-telx' '--disable-x264' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv' '--enable-libva' '--enable-pvr' '--enable-udev' '--enable-v4l' '--enable-v4l2' '--enable-svgalib' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2' 'LDFLAGS=-Wl,--as-needed' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' [0x1928120] main libvlc debug: translation test: code is "C" [0x1928120] main libvlc debug: checking plugin modules [0x1928120] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins-04081e-3e8.dat [0x1928120] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins' [0x1928120] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins-04081e-3e8.dat [0x1928120] main libvlc debug: module bank initialized (369 modules) [0x1928120] main libvlc debug: opening config file (/root/.config/vlc/vlcrc) [0x1928120] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 FPU [0x1928120] main libvlc debug: looking for memcpy module: 3 candidates [0x1928120] main libvlc debug: using memcpy module "memcpymmxext" [0x19fbfe0] main input debug: Creating an input for 'Media Library' [0x19fbfe0] main input debug: Input is a meta file: disabling unneeded options [0x19fbfe0] main input debug: using timeshift granularity of 50 MiB [0x19fbfe0] main input debug: using timeshift path '/tmp' [0x19fbfe0] main input debug: `file/xspf-open:///root/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/root/.local/share/vlc/ml.xspf' [0x19fbfe0] main input debug: creating demux: access='file' demux='xspf-open' path='/root/.local/share/vlc/ml.xspf' [0x1a02430] main demux debug: looking for access_demux module: 2 candidates [0x1a02430] main demux debug: no access_demux module matching "file" could be loaded [0x1a02430] main demux debug: TIMER module_need() : 0.770 ms - Total 0.770 ms / 1 intvls (Avg 0.770 ms) [0x19fbfe0] main input debug: creating access 'file' path='/root/.local/share/vlc/ml.xspf' [0x1a05600] main access debug: looking for access module: 2 candidates [0x1a05600] filesystem access debug: opening file `/root/.local/share/vlc/ml.xspf' [0x1a05600] main access debug: using access module "filesystem" [0x1a05600] main access debug: TIMER module_need() : 0.510 ms - Total 0.510 ms / 1 intvls (Avg 0.510 ms) [0x1a04460] main stream debug: Using AStream*Stream [0x1a04460] main stream debug: pre buffering [0x1a04460] main stream debug: received first data after 0 ms [0x1a04460] main stream debug: pre-buffering done 296 bytes in 0s - 7812 KiB/s [0x1a048e0] main stream debug: looking for stream_filter module: 5 candidates [0x1a048e0] main stream debug: no stream_filter module matching "any" could be loaded [0x1a048e0] main stream debug: TIMER module_need() : 0.672 ms - Total 0.672 ms / 1 intvls (Avg 0.672 ms) [0x1a048e0] main stream debug: looking for stream_filter module: 1 candidate [0x1a048e0] main stream debug: using stream_filter module "stream_filter_record" [0x1a048e0] main stream debug: TIMER module_need() : 0.291 ms - Total 0.291 ms / 1 intvls (Avg 0.291 ms) [0x19fbfe0] main input debug: creating demux: access='file' demux='xspf-open' path='/root/.local/share/vlc/ml.xspf' [0x1a12bd0] main demux debug: looking for demux module: 1 candidate [0x1a12bd0] playlist demux debug: using XSPF playlist reader [0x1a12bd0] main demux debug: using demux module "playlist" [0x1a12bd0] main demux debug: TIMER module_need() : 0.372 ms - Total 0.372 ms / 1 intvls (Avg 0.372 ms) [0x1a175c0] main demux meta debug: looking for meta reader module: 2 candidates [0x1a175c0] lua demux meta debug: Trying Lua scripts in /root/.local/share/vlc/lua/meta/reader [0x1a175c0] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0x1a175c0] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0x1a175c0] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0x1a175c0] main demux meta debug: no meta reader module matching "any" could be loaded [0x1a175c0] main demux meta debug: TIMER module_need() : 3.918 ms - Total 3.918 ms / 1 intvls (Avg 3.918 ms) [0x19fbfe0] main input debug: `file/xspf-open:///root/.local/share/vlc/ml.xspf' successfully opened [0x1a28b60] main xml debug: looking for xml module: 2 candidates [0x1a28b60] main xml debug: using xml module "xml" [0x1a28b60] main xml debug: TIMER module_need() : 0.820 ms - Total 0.820 ms / 1 intvls (Avg 0.820 ms) [0x1a12bd0] playlist demux debug: parsed 0 tracks successfully [0x1a28b60] main xml debug: removing module "xml" [0x19fbfe0] main input debug: EOF reached [0x1a12bd0] main demux debug: removing module "playlist" [0x1a048e0] main stream debug: removing module "stream_filter_record" [0x1a05600] main access debug: removing module "filesystem" [0x19fbfe0] main input debug: TIMER input launching for 'Media Library' : 7.181 ms - Total 7.181 ms / 1 intvls (Avg 7.181 ms) [0x19fc940] main interface debug: looking for interface module: 1 candidate [0x19fc940] main interface debug: using interface module "hotkeys" [0x19fc940] main interface debug: TIMER module_need() : 0.403 ms - Total 0.403 ms / 1 intvls (Avg 0.403 ms) [0x1a12bd0] main interface debug: looking for interface module: 1 candidate Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS") Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE") [0x1a12bd0] inhibit interface error: Failed to connect to the D-Bus session daemon: /usr/bin/dbus-launch terminated abnormally without any error message [0x1a12bd0] main interface debug: no interface module matching "inhibit,none" could be loaded [0x1a12bd0] main interface debug: TIMER module_need() : 1.468 ms - Total 1.468 ms / 1 intvls (Avg 1.468 ms) [0x1a12bd0] main interface error: no suitable interface module [0x1939ef0] main playlist debug: Activated [0x1939ef0] main playlist debug: rebuilding array of current - root Playlist [0x1939ef0] main playlist debug: adding item `rtsp://192.168.25.21:554/h264_2' ( rtsp://192.168.25.21:554/h264_2 ) [0x1939ef0] main playlist debug: rebuild done - 0 items, index -1 [0x1a01a20] main interface debug: looking for interface module: 1 candidate [0x1a01a20] main interface debug: using interface module "signals" [0x1a01a20] main interface debug: TIMER module_need() : 0.634 ms - Total 0.634 ms / 1 intvls (Avg 0.634 ms) [0x19fccc0] main interface debug: looking for interface module: 0 candidates [0x19fccc0] main interface debug: no interface module matched "globalhotkeys,none" [0x19fccc0] main interface debug: TIMER module_need() : 0.177 ms - Total 0.177 ms / 1 intvls (Avg 0.177 ms) [0x19fccc0] main interface error: no suitable interface module [0x1928120] main libvlc error: interface "globalhotkeys,none" initialization failed [0x19fccc0] main interface debug: looking for interface module: 1 candidate [0x19fccc0] dummy interface: using the dummy interface module... [0x19fccc0] main interface debug: using interface module "dummy" [0x19fccc0] main interface debug: TIMER module_need() : 0.370 ms - Total 0.370 ms / 1 intvls (Avg 0.370 ms) [0x1939ef0] main playlist debug: processing request item null node Playlist skip 0 [0x1939ef0] main playlist debug: rebuilding array of current - root Playlist [0x1939ef0] main playlist debug: rebuild done - 1 items, index -1 [0x1939ef0] main playlist debug: starting new item [0x1939ef0] main playlist debug: creating new input thread [0x7f3bb8000d30] main input debug: Creating an input for 'rtsp://192.168.25.21:554/h264_2' [0x7f3bb8000d30] main input debug: thread started [0x7f3bb8000d30] main input debug: thread (input) created at priority 10 (input/input.c:214) [0x1a1eaf0] main stream output debug: using sout chain=`standard{access=http,mux=mp4,dst=0.0.0.0:4567/video.flv}' [0x1a1eaf0] main stream output debug: stream=`standard' [0x1a1f070] main stream out debug: looking for sout stream module: 1 candidate [0x1a1f070] main stream out debug: set config option: sout-standard-access to http [0x1a1f070] main stream out debug: set config option: sout-standard-mux to mp4 [0x1a1f070] main stream out debug: set config option: sout-standard-dst to 0.0.0.0:4567/video.flv [0x1a1f070] stream_out_standard stream out debug: creating `http/mp4://0.0.0.0:4567/video.flv' [0x1a1f070] stream_out_standard stream out debug: extension is flv [0x1a1f070] stream_out_standard stream out debug: extension -> mux=ffmpeg{mux=flv} [0x1a1f070] stream_out_standard stream out error: mov and mp4 work only with file output [0x1a1f070] stream_out_standard stream out debug: using `http/mp4://0.0.0.0:4567/video.flv' [0x1a1fe50] main access out debug: looking for sout access module: 1 candidate [0x1a1fe50] main access out: creating httpd [0x1a1fe50] main access out debug: net: listening to 0.0.0.0 port 4567 [0x1a1fe50] main access out debug: using sout access module "access_output_http" [0x1a1fe50] main access out debug: TIMER module_need() : 0.654 ms - Total 0.654 ms / 1 intvls (Avg 0.654 ms) [0x1a1f070] stream_out_standard stream out debug: access opened [0x1a24330] main mux debug: looking for sout mux module: 1 candidate [0x1a24330] mux_mp4 mux debug: Mp4 muxer opened [0x1a24330] main mux debug: using sout mux module "mux_mp4" [0x1a24330] main mux debug: TIMER module_need() : 0.406 ms - Total 0.406 ms / 1 intvls (Avg 0.406 ms) [0x1a1f070] stream_out_standard stream out debug: mux opened [0x1a1f070] main stream out debug: using sout stream module "stream_out_standard" [0x1a1f070] main stream out debug: TIMER module_need() : 1.650 ms - Total 1.650 ms / 1 intvls (Avg 1.650 ms) [0x7f3bb8000d30] main input debug: using timeshift granularity of 50 MiB [0x7f3bb8000d30] main input debug: using timeshift path '/tmp' [0x7f3bb8000d30] main input debug: `rtsp://192.168.25.21:554/h264_2' gives access `rtsp' demux `' path `192.168.25.21:554/h264_2' [0x7f3bb8000d30] main input debug: creating demux: access='rtsp' demux='' path='192.168.25.21:554/h264_2' [0x1a24b70] main demux debug: looking for access_demux module: 1 candidate Sending request: OPTIONS rtsp://192.168.25.21:554/h264_2 RTSP/1.0 CSeq: 1 User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received OPTIONS response: RTSP/1.0 200 OK CSeq: 1 Date: Mon, Apr 18 2011 16:26:43 GMT Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER Sending request: DESCRIBE rtsp://192.168.25.21:554/h264_2 RTSP/1.0 CSeq: 2 Accept: application/sdp User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received DESCRIBE response: RTSP/1.0 200 OK CSeq: 2 Date: Mon, Apr 18 2011 16:26:43 GMT Content-Base: rtsp://192.168.25.21/h264_2/ Content-Type: application/sdp Content-Length: 647 Need to read 647 extra bytes Read 647 extra bytes: v=0 o=- 1303134258561175 1 IN IP4 0.0.0.0 s=Session streamed by "nessyMediaServer" i=h264_2 t=0 0 a=tool:LIVE555 Streaming Media v2010.04.09_dyna_modi_2010.05.05 a=type:broadcast a=control:* a=range:npt=0- a=x-qt-text-nam:Session streamed by "nessyMediaServer" a=x-qt-text-inf:h264_2 m=video 0 RTP/AVP 99 c=IN IP4 0.0.0.0 a=rtpmap:99 H264/90000 a=fmtp:99 packetization-mode=28;profile-level-id=42801F; sprop-parameter-sets=J0KAH42NKCg/f+AAgABtQEBAUAAAPoAADDUGQABQAAAtAC7y4yAAKAAAFoAXeXBPosAA,KM48gA== a=control:track1 a=cliprect:0,0,320,240 a=framerate:25.000000 m=audio 7878 RTP/AVP 0 a=rtpmap:0 PCMU/8000/1 a=control:track2 [0x1a24b70] live555 demux debug: RTP subsession 'video/H264' Sending request: SETUP rtsp://192.168.25.21/h264_2/track1 RTSP/1.0 CSeq: 3 Transport: RTP/AVP;unicast;client_port=46524-46525 User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received SETUP response: RTSP/1.0 200 OK CSeq: 3 Cache-Control: must-revalidate Date: Mon, Apr 18 2011 16:26:43 GMT Transport: RTP/AVP;unicast;destination=192.168.25.18;source=192.168.25.21;client_port=46524-46525;server_port=6970-6971 Session: 24 [0x7f3bb8000d30] main input debug: selecting program id=0 [0x1a24b70] live555 demux debug: RTP subsession 'audio/PCMU' Sending request: SETUP rtsp://192.168.25.21/h264_2/track2 RTSP/1.0 CSeq: 4 Transport: RTP/AVP;unicast;client_port=7878-7879 Session: 24 User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received SETUP response: RTSP/1.0 200 OK CSeq: 4 Cache-Control: must-revalidate Date: Mon, Apr 18 2011 16:26:43 GMT Transport: RTP/AVP;unicast;destination=192.168.25.18;source=192.168.25.21;client_port=7878-7879;server_port=6972-6973 Session: 24 [0x1a24b70] live555 demux debug: setup start: 0.000000 stop:0.000000 Sending request: PLAY rtsp://192.168.25.21/h264_2/ RTSP/1.0 CSeq: 5 Session: 24 Range: npt=0.000- User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received PLAY response: RTSP/1.0 200 OK CSeq: 5 Date: Mon, Apr 18 2011 16:26:43 GMT Range: npt=0.000- Session: 24 RTP-Info: url=rtsp://192.168.25.21/h264_2/track1;seq=29783;rtptime=3616379951,url=rtsp://192.168.25.21/h264_2/track2;seq=30804;rtptime=3002987409 [0x1a24b70] live555 demux debug: We have a timeout of 60 seconds [0x1a24b70] live555 demux debug: spawned timeout thread [0x1a24b70] live555 demux debug: play start: 0.000000 stop:0.000000 [0x1a24b70] main demux debug: using access_demux module "live555" [0x1a24b70] main demux debug: TIMER module_need() : 18.993 ms - Total 18.993 ms / 1 intvls (Avg 18.993 ms) [0x1a25e90] main decoder debug: looking for packetizer module: 21 candidates [0x1a25e90] packetizer_h264 decoder debug: found NAL_SPS (sps_id=0) [0x1a25e90] packetizer_h264 decoder debug: found NAL_PPS (pps_id=0 sps_id=0) [0x1a25e90] main decoder debug: using packetizer module "packetizer_h264" [0x1a25e90] main decoder debug: TIMER module_need() : 2.837 ms - Total 2.837 ms / 1 intvls (Avg 2.837 ms) [0x1a25e90] main decoder debug: thread (decoder) created at priority 0 (input/decoder.c:301) [0x1a25e90] main decoder debug: thread started [0x1a51560] main decoder debug: looking for packetizer module: 21 candidates [0x1a51560] main decoder debug: using packetizer module "packetizer_copy" [0x1a51560] main decoder debug: TIMER module_need() : 1.550 ms - Total 1.550 ms / 1 intvls (Avg 1.550 ms) [0x1a51560] main decoder debug: thread started [0x1a51560] main decoder debug: thread (decoder) created at priority 5 (input/decoder.c:301) [0x7f3bb8000d30] main input debug: starting in async mode [0x1a5ab00] main demux meta debug: looking for meta reader module: 2 candidates [0x1a5ab00] lua demux meta debug: Trying Lua scripts in /root/.local/share/vlc/lua/meta/reader [0x1a5ab00] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0x1a5ab00] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0x1a5ab00] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0x1a5ab00] main demux meta debug: no meta reader module matching "any" could be loaded [0x1a5ab00] main demux meta debug: TIMER module_need() : 0.812 ms - Total 0.812 ms / 1 intvls (Avg 0.812 ms) [0x7f3bb8000d30] main input debug: `rtsp://192.168.25.21:554/h264_2' successfully opened Sending request: GET_PARAMETER rtsp://192.168.25.21/h264_2/ RTSP/1.0 CSeq: 6 Session: 24 User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received GET_PARAMETER response: RTSP/1.0 200 OK CSeq: 6 Date: Mon, Apr 18 2011 16:26:43 GMT Session: 24 [0x7f3bb8000d30] main input debug: switching to sync mode [0x7f3bb8000d30] main input debug: Buffering 0% [0x7f3bb8000d30] main input debug: Buffering 3% [0x7f3bb8000d30] main input debug: Buffering 14% [0x7f3bb8000d30] main input debug: Buffering 17% [0x1a1eaf0] main stream output debug: adding a new sout input (sout_input:0x1a5a1b0) [0x7f3bb8000d30] main input debug: Buffering 17% [0x1a24330] main mux debug: adding a new input [0x1a24330] mux_mp4 mux error: unsupported codec mlaw in mp4 [0x1a24330] main mux error: cannot add this stream [0x1a51560] main decoder error: cannot create packetizer output (mlaw) [0x7f3bb8000d30] main input debug: Buffering 20% [0x7f3bb8000d30] main input debug: Buffering 24% [0x7f3bb8000d30] main input debug: Buffering 27% [0x7f3bb8000d30] main input debug: Buffering 27% [0x7f3bb8000d30] main input debug: Buffering 30% [0x7f3bb8000d30] main input debug: Buffering 35% [0x7f3bb8000d30] main input debug: Buffering 37% [0x7f3bb8000d30] main input debug: Buffering 40% [0x7f3bb8000d30] main input debug: Buffering 40% [0x7f3bb8000d30] main input debug: Buffering 40% [0x7f3bb8000d30] main input debug: Buffering 40% [0x7f3bb8000d30] main input debug: Buffering 44% [0x7f3bb8000d30] main input debug: Buffering 47% [0x1a1eaf0] main stream output debug: adding a new sout input (sout_input:0x7f3bb84c6100) [0x1a24330] main mux debug: adding a new input [0x1a24330] mux_mp4 mux debug: adding input [0x7f3bb8000d30] main input debug: Buffering 47% [0x7f3bb8000d30] main input debug: Buffering 50% [0x7f3bb8000d30] main input debug: Buffering 53% [0x7f3bb8000d30] main input debug: Buffering 57% [0x7f3bb8000d30] main input debug: Buffering 57% [0x7f3bb8000d30] main input debug: Buffering 60% [0x7f3bb8000d30] main input debug: Buffering 63% [0x7f3bb8000d30] main input debug: Buffering 67% [0x7f3bb8000d30] main input debug: Buffering 70% [0x7f3bb8000d30] main input debug: Buffering 70% [0x7f3bb8000d30] main input debug: Buffering 74% [0x7f3bb8000d30] main input debug: Buffering 77% [0x7f3bb8000d30] main input debug: Buffering 80% [0x7f3bb8000d30] main input debug: Buffering 80% [0x7f3bb8000d30] main input debug: Buffering 84% [0x7f3bb8000d30] main input debug: Buffering 87% [0x7f3bb8000d30] main input debug: Buffering 90% [0x7f3bb8000d30] main input debug: Buffering 90% [0x7f3bb8000d30] main input debug: Buffering 94% [0x7f3bb8000d30] main input debug: Buffering 97% [0x7f3bb8000d30] main input debug: Stream buffering done (1211 ms in 1125 ms) [0x7f3bb8000d30] main input debug: Decoder buffering done in 0 ms [0x1a24330] mux_mp4 mux warning: i_length <= 0 [0x1a24b70] live555 demux debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP() [0x7f3bb8000d30] main input debug: ES_OUT_RESET_PCR called [0x7f3bb8000d30] main input debug: Buffering 0% [0x7f3bb8000d30] main input debug: Buffering 3% [0x7f3bb8000d30] main input debug: Buffering 6% [0x7f3bb8000d30] main input debug: Buffering 9% [0x7f3bb8000d30] main input debug: Buffering 9% [0x1a24b70] live555 demux debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP() [0x7f3bb8000d30] main input debug: ES_OUT_RESET_PCR called [0x7f3bb8000d30] main input debug: Buffering 0% [0x7f3bb8000d30] main input debug: Buffering 2% [0x7f3bb8000d30] main input debug: Buffering 2% [0x7f3bb8000d30] main input debug: Buffering 2% [0x7f3bb8000d30] main input debug: Buffering 6% [0x7f3bb8000d30] main input debug: Buffering 6% [0x7f3bb8000d30] main input debug: Buffering 9% [0x7f3bb8000d30] main input debug: Buffering 12% [0x7f3bb8000d30] main input debug: Buffering 17% [0x7f3bb8000d30] main input debug: Buffering 17% [0x7f3bb8000d30] main input debug: Buffering 19% [0x7f3bb8000d30] main input debug: Buffering 22% [0x7f3bb8000d30] main input debug: Buffering 27% [0x7f3bb8000d30] main input debug: Buffering 27% [0x7f3bb8000d30] main input debug: Buffering 29% [0x7f3bb8000d30] main input debug: Buffering 32% [0x7f3bb8000d30] main input debug: Buffering 38% [0x7f3bb8000d30] main input debug: Buffering 38% [0x7f3bb8000d30] main input debug: Buffering 38% [0x7f3bb8000d30] main input debug: Buffering 42% [0x7f3bb8000d30] main input debug: Buffering 45% [0x7f3bb8000d30] main input debug: Buffering 49% [0x7f3bb8000d30] main input debug: Buffering 49% [0x7f3bb8000d30] main input debug: Buffering 52% [0x7f3bb8000d30] main input debug: Buffering 55% [0x7f3bb8000d30] main input debug: Buffering 59% [0x7f3bb8000d30] main input debug: Buffering 59% [0x7f3bb8000d30] main input debug: Buffering 61% [0x7f3bb8000d30] main input debug: Buffering 65% [0x7f3bb8000d30] main input debug: Buffering 70% [0x7f3bb8000d30] main input debug: Buffering 70% [0x7f3bb8000d30] main input debug: Buffering 72% [0x7f3bb8000d30] main input debug: Buffering 75% [0x7f3bb8000d30] main input debug: Buffering 81% [0x7f3bb8000d30] main input debug: Buffering 81% [0x7f3bb8000d30] main input debug: Buffering 82% [0x7f3bb8000d30] main input debug: Buffering 85% [0x7f3bb8000d30] main input debug: Buffering 91% [0x7f3bb8000d30] main input debug: Buffering 91% [0x7f3bb8000d30] main input debug: Buffering 92% [0x7f3bb8000d30] main input debug: Buffering 95% [0x7f3bb8000d30] main input debug: Buffering 99% [0x7f3bb8000d30] main input debug: Stream buffering done (1228 ms in 1200 ms) [0x7f3bb8000d30] main input debug: Decoder buffering done in 0 ms [0x1a24330] mux_mp4 mux warning: i_length <= 0 [0x1a24330] mux_mp4 mux warning: i_length <= 0 [0x1a24330] mux_mp4 mux warning: i_length <= 0 Sending request: GET_PARAMETER rtsp://192.168.25.21/h264_2/ RTSP/1.0 CSeq: 7 Session: 24 User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received GET_PARAMETER response: RTSP/1.0 200 OK CSeq: 7 Date: Mon, Apr 18 2011 16:27:41 GMT Session: 24 [0x1a01a20] signals interface error: Caught Interrupt signal, exiting... [0x1928120] main libvlc debug: deactivating the playlist [0x1939ef0] main playlist debug: Deactivate [0x1939ef0] main playlist debug: incoming request - stopping current input [0x1939ef0] main playlist debug: dying input [0x7f3bb8000d30] main input debug: control type=0 [0x7f3bb8000d30] main input debug: control: stopping input [0x1939ef0] main playlist debug: dying input [0x1a25e90] main decoder debug: removing module "packetizer_h264" [0x1a25e90] main decoder debug: killing decoder fourcc `h264', 0 PES in FIFO [0x1a1eaf0] main stream output debug: removing a sout input (sout_input:0x7f3bb84c6100) [0x1a24330] mux_mp4 mux debug: removing input [0x1a24330] main mux warning: no more input streams for this mux [0x1a51560] main decoder debug: removing module "packetizer_copy" [0x1a51560] main decoder debug: killing decoder fourcc `mlaw', 0 PES in FIFO Sending request: TEARDOWN rtsp://192.168.25.21/h264_2/ RTSP/1.0 CSeq: 8 Session: 24 User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09) Received TEARDOWN response: RTSP/1.0 200 OK CSeq: 8 Date: Mon, Apr 18 2011 16:28:13 GMT [0x1a24b70] main demux debug: removing module "live555" [0x7f3bb8000d30] main input debug: Program doesn't contain anymore ES [0x7f3bb8000d30] main input debug: thread ended [0x1939ef0] main playlist debug: dead input [0x1a1eaf0] main stream output debug: destroying useless sout [0x1a1f070] main stream out debug: destroying chain... (name=standard) [0x1a24330] mux_mp4 mux debug: Close [0x1a1fe50] access_output_http access out warning: HTTP sout access cannot seek [0x1a24330] mux_mp4 mux debug: movie duration 89s [0x1a24330] mux_mp4 mux debug: created 1 chunks (stco) [0x1a1fe50] access_output_http access out warning: HTTP sout access cannot seek [0x1a24330] mux_mp4 mux warning: read() not supported by access output, won't create a fast start file [0x1a1fe50] access_output_http access out warning: HTTP sout access cannot seek [0x1a24330] main mux debug: removing module "mux_mp4" [0x1a24010] main http server debug: waitpipe: object killed [0x1a24010] main http server debug: HTTP host removed [0x1a23f20] main http server debug: no hosts left, stopping httpd [0x1a1fe50] access_output_http access out debug: Close [0x1a1fe50] main access out debug: removing module "access_output_http" [0x1a1f070] main stream out debug: removing module "stream_out_standard" [0x1a1f070] main stream out debug: destroying chain done [0x7f3bb8000d30] main input debug: TIMER input launching for 'rtsp://192.168.25.21:554/h264_2' : 26.806 ms - Total 26.806 ms / 1 intvls (Avg 26.806 ms) [0x1a257e0] main playlist export debug: saving Media Library to file /root/.local/share/vlc/ml.xspf [0x1a257e0] main playlist export debug: looking for playlist export module: 1 candidate [0x1a257e0] main playlist export debug: using playlist export module "export" [0x1a257e0] main playlist export debug: TIMER module_need() : 0.507 ms - Total 0.507 ms / 1 intvls (Avg 0.507 ms) [0x1a257e0] main playlist export debug: removing module "export" [0x1939ef0] main playlist debug: Deactivated [0x1928120] main libvlc debug: removing all services discovery tasks [0x1928120] main libvlc debug: removing all interfaces [0x19fccc0] main interface debug: removing module "dummy" [0x1a01a20] main interface debug: removing module "signals" [0x19fc940] main interface debug: removing module "hotkeys" [0x1939ef0] main playlist debug: destroying [0x1928120] main libvlc debug: TIMER ML Load : Total 8.472 ms / 1 intvls (Avg 8.472 ms) [0x1928120] main libvlc debug: TIMER Items array build : Total 0.086 ms / 2 intvls (Avg 0.043 ms) [0x1928120] main libvlc debug: TIMER ML Dump : Total 0.675 ms / 1 intvls (Avg 0.675 ms) [0x1928120] main libvlc debug: removing stats [0x1928120] main libvlc debug: removing module "memcpymmxext"
I think the problem is not in JWPlayer, because it works when I switch to another input url with real FLV video.
Thanks in advance.
Image
          • www.gusari.org

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: Streaming video from webcam to .swf player

Postby Greg » 18 Apr 2011 23:20

This works for me using a vlc/h264/rtsp source

Code: Select all

cvlc -vvv rtsp://192.168.0.21:5544/rstream :file-caching=3000 --sout '#standard{access=http,mux=ffmpeg{mux=flv},dst=192.168.0.11:8082/jwplayer/stream.flv}'

burek
Blank Cone
Blank Cone
Posts: 40
Joined: 10 May 2008 21:52

Re: Streaming video from webcam to .swf player

Postby burek » 19 Apr 2011 01:25

Thanks a lot :) I've realized I was using "mux=ffmpeg{flv}" instead of "mux=ffmpeg{mux=flv}" :)
Anyway, it works now, but it's somehow strange.. It waits for about 2 minutes (?) before starting to play anything..

This is the output of the VLC client (Tools - Messages):

Code: Select all

main debug: processing request item http://192.168.25.18:4567/video.flv node Playlist skip 0 main debug: resyncing on http://192.168.25.18:4567/video.flv main debug: http://192.168.25.18:4567/video.flv is at 0 main debug: starting new item main debug: creating new input thread main debug: Creating an input for 'http://192.168.25.18:4567/video.flv' main debug: thread started main debug: using timeshift granularity of 50 MiB main debug: using timeshift path 'C:\DOCUME~1\Milojica\LOCALS~1\Temp' main debug: thread (input) created at priority 1 (../.././src/input/input.c:214) main debug: `http://192.168.25.18:4567/video.flv' gives access `http' demux `' path `192.168.25.18:4567/video.flv' main debug: creating demux: access='http' demux='' path='192.168.25.18:4567/video.flv' main debug: looking for access_demux module: 0 candidates main debug: no access_demux module matched "http" main debug: TIMER module_need() : 0.408 ms - Total 0.408 ms / 1 intvls (Avg 0.408 ms) main debug: creating access 'http' path='192.168.25.18:4567/video.flv' main debug: looking for access module: 2 candidates access_http debug: http: server='192.168.25.18' port=4567 file='/video.flv' qt4 debug: IM: Setting an input main debug: net: connecting to 192.168.25.18 port 4567 main debug: connection succeeded (socket = 1556) access_http debug: protocol 'HTTP' answer code 200 access_http debug: Content-Type: application/octet-stream main debug: using access module "access_http" main debug: TIMER module_need() : 151.354 ms - Total 151.354 ms / 1 intvls (Avg 151.354 ms) main debug: Using AStream*Stream main debug: pre buffering main debug: received first data after 17 ms main debug: pre-buffering done 1024 bytes in 0s - 56 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.412 ms - Total 0.412 ms / 1 intvls (Avg 0.412 ms) main debug: looking for stream_filter module: 1 candidate main debug: using stream_filter module "stream_filter_record" main debug: TIMER module_need() : 0.477 ms - Total 0.477 ms / 1 intvls (Avg 0.477 ms) main debug: creating demux: access='http' demux='' path='192.168.25.18:4567/video.flv' main debug: looking for demux module: 52 candidates ts warning: TS module discarded (lost sync) lua debug: Trying Lua scripts in C:\Documents and Settings\Milojica\Application Data\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: flv
and after around 2-3 minutes, the video starts playing perfectly (with a delay, of course) and the messages (continued) show this:

Code: Select all

avcodec debug: detected format: flv main debug: selecting program id=0 avcodec debug: adding es: video codec = h264 avcodec debug: AVFormat supported stream avcodec debug: - format = flv (FLV format) avcodec debug: - start time = 251247000 avcodec debug: - duration = 0 main debug: using demux module "avcodec" main debug: TIMER module_need() : 115992.291 ms - Total 115992.291 ms / 1 intvls (Avg 115992.285 ms) main debug: looking for decoder module: 34 candidates avcodec debug: libavcodec already initialized avcodec debug: trying to use direct rendering avcodec debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) started main debug: using decoder module "avcodec" main debug: TIMER module_need() : 2.915 ms - Total 2.915 ms / 1 intvls (Avg 2.915 ms) main debug: thread (decoder) created at priority 0 (../.././src/input/decoder.c:301) main debug: thread started main debug: looking for meta reader module: 2 candidates lua debug: Trying Lua scripts in C:\Documents and Settings\Milojica\Application Data\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() : 4.335 ms - Total 4.335 ms / 1 intvls (Avg 4.335 ms) main debug: `http://192.168.25.18:4567/video.flv' successfully opened main debug: Buffering 0% main debug: Buffering 3% main debug: Buffering 6% main debug: Buffering 10% main debug: Buffering 13% main debug: Buffering 16% main debug: Buffering 20% main debug: Buffering 23% main debug: Buffering 26% main debug: Buffering 30% main debug: Buffering 33% main debug: Buffering 36% main debug: Buffering 40% main debug: Buffering 43% main debug: Buffering 46% main debug: Buffering 49% main debug: Buffering 53% main debug: Buffering 56% main debug: Buffering 59% main debug: Buffering 63% main debug: Buffering 66% main debug: Buffering 69% main debug: Buffering 73% main debug: Buffering 76% main debug: Buffering 79% main debug: Buffering 83% main debug: Buffering 86% main debug: Buffering 89% main debug: Buffering 93% main debug: Buffering 96% main debug: Buffering 99% main debug: Stream buffering done (1243 ms in 3 ms) main debug: no usable vout present, spawning one main debug: looking for text renderer module: 2 candidates freetype debug: Building font databases. freetype debug: Took 303919 microseconds freetype debug: Using Arial as font from file C:/WINDOWS/fonts/arial.ttf freetype debug: using fontsize: 2 main debug: using text renderer module "freetype" main debug: TIMER module_need() : 306.875 ms - Total 306.875 ms / 1 intvls (Avg 306.875 ms) main debug: looking for video filter2 module: 18 candidates swscale debug: 32x32 chroma: YUVA -> 16x16 chroma: YUVA with scaling using Bicubic (good quality) main debug: using video filter2 module "swscale" main debug: TIMER module_need() : 3.946 ms - Total 3.946 ms / 1 intvls (Avg 3.946 ms) main debug: looking for video filter2 module: 18 candidates yuvp debug: YUVP to YUVA converter main debug: using video filter2 module "yuvp" main debug: TIMER module_need() : 0.631 ms - Total 0.631 ms / 1 intvls (Avg 0.631 ms) main debug: window size: 426x240 main debug: Deinterlacing available main debug: deinterlace 0, mode blend, is_needed 0 main debug: looking for video output module: 1 candidate vout_wrapper debug: Opening vout display wrapper main debug: looking for vout display module: 8 candidates directx debug: creating Vout EventThread directx debug: DirectXCreateWindow main debug: looking for vout window hwnd module: 3 candidates qt4 debug: requesting video... qt4 debug: Video was requested 0, 0 main debug: using vout window hwnd module "qt4" main debug: TIMER module_need() : 58.818 ms - Total 58.818 ms / 1 intvls (Avg 58.818 ms) directx debug: created video sub-window directx debug: Vout EventThread running directx debug: disabling screen saver directx debug: directx-device: directx debug: DirectXEnumCallback: RADEON 9200 SERIES , \\.\DISPLAY1 directx debug: selecting RADEON 9200 SERIES , \\.\DISPLAY1 directx debug: screen dimensions (0x0,1280x768) directx debug: DirectDraw Capabilities: overlay=1 yuvoverlay=1 can_deinterlace_overlay=1 colorkey=1 stretch=1 bltfourcc=1 main debug: VoutDisplayEvent 'resize' 434x274 window directx debug: YUV overlay surface created successfully main debug: using vout display module "directx" main debug: TIMER module_need() : 236.084 ms - Total 236.084 ms / 1 intvls (Avg 236.084 ms) main debug: using video output module "vout_wrapper" main debug: TIMER module_need() : 236.950 ms - Total 236.950 ms / 1 intvls (Avg 236.950 ms) main debug: got 1 direct buffer(s) main debug: pic render sz 320x240, of (0,0), vsz 320x240, 4cc I420, sar 4:3, msk r0x0 g0x0 b0x0 main debug: pic in sz 320x240, of (0,0), vsz 320x240, 4cc I420, sar 4:3, msk r0x0 g0x0 b0x0 main debug: pic out sz 320x240, of (0,0), vsz 320x240, 4cc I420, sar 4:3, msk r0x0 g0x0 b0x0 main debug: direct render, mapping render pictures 0-23 to system pictures 1-24 main debug: VoutDisplayEvent 'resize' 426x240 window avcodec debug: using direct rendering main debug: End of video preroll main debug: Received first picture main debug: Decoder buffering done in 585 ms main debug: Post-processing available main warning: vlc_object_find_name(postproc) is not safe! main debug: VoutDisplayEvent 'resize' 427x240 window freetype debug: using fontsize: 15 main debug: looking for video blending module: 1 candidate blend debug: chroma: YUVA -> I420 main debug: using video blending module "blend" main debug: TIMER module_need() : 0.468 ms - Total 0.468 ms / 1 intvls (Avg 0.468 ms) main debug: auto hidding mouse main warning: late picture skipped (8468 > -871) main warning: late picture skipped (1768 > -655) main warning: late picture skipped (9621 > -661) main warning: late picture skipped (3028 > -6730) main warning: late picture skipped (513 > -1308)
Any way to solve this delay?
Thanks again for your help.
Image
          • www.gusari.org


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 13 guests