tovis

vlc streaming of v4l2 camera

Jan 17th, 2012
1,001
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. The command was this:
  2. vlc -vvv v4l2:///dev/video0 :sout=#transcode{vcodec=mp2v,vb=800,scale=1,acodec=mpga,ab=128,channels=2,samplerate=44100} :http{mux=ts,dst=192.168.1.248:8080/stream_mpeg2} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep >rep-vlc-002.err 2>&1
  3.  
  4. Result (rep-vlc-002.err):
  5.  
  6. VLC media player 1.1.3 The Luggage (revision exported)
  7. [0xa32120] main libvlc debug: VLC media player - 1.1.3 The Luggage
  8. [0xa32120] main libvlc debug: Copyright © 1996-2010 the VideoLAN team
  9. [0xa32120] main libvlc debug: revision exported
  10. [0xa32120] main libvlc debug: configured with ./configure  '--build=x86_64-linux-gnu' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--sysconfdir=/etc' '--with-binary-version=1squeeze6' '--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/' '--with-mozilla-pkg=libxul' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-libva' '--disable-osso_screensaver' '--disable-portaudio' '--disable-projectm' '--disable-sqlite' '--disable-telx' '--disable-x264' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv' '--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'
  11. [0xa32120] main libvlc debug: translation test: code is "C"
  12. [0xa32120] main libvlc debug: checking plugin modules
  13. [0xa32120] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins-04081e-1f8.dat
  14. [0xa32120] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
  15. [0xa32120] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins-04081e-1f8.dat
  16. [0xa32120] main libvlc debug: module bank initialized (373 modules)
  17. [0xa32120] main libvlc debug: opening config file (/home/tovis/.config/vlc/vlcrc)
  18. [0xa32120] main libvlc debug: CPU has capabilities MMX 3DNow! MMXEXT SSE SSE2 SSE3 FPU
  19. [0xa32120] main libvlc debug: looking for memcpy module: 4 candidates
  20. [0xa32120] main libvlc debug: using memcpy module "memcpymmxext"
  21. [0xb0a2d0] main input debug: Creating an input for 'Media Library'
  22. [0xb0a2d0] main input debug: Input is a meta file: disabling unneeded options
  23. [0xb0a2d0] main input debug: using timeshift granularity of 50 MiB
  24. [0xb0a2d0] main input debug: using timeshift path '/tmp'
  25. [0xb0a2d0] main input debug: `file/xspf-open:///home/tovis/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/tovis/.local/share/vlc/ml.xspf'
  26. [0xb0a2d0] main input debug: creating demux: access='file' demux='xspf-open' path='/home/tovis/.local/share/vlc/ml.xspf'
  27. [0xb10a10] main demux debug: looking for access_demux module: 2 candidates
  28. [0xb10a10] main demux debug: no access_demux module matching "file" could be loaded
  29. [0xb10a10] main demux debug: TIMER module_need() : 0.410 ms - Total 0.410 ms / 1 intvls (Avg 0.410 ms)
  30. [0xb0a2d0] main input debug: creating access 'file' path='/home/tovis/.local/share/vlc/ml.xspf'
  31. [0xb13b50] main access debug: looking for access module: 2 candidates
  32. [0xb13b50] filesystem access debug: opening file `/home/tovis/.local/share/vlc/ml.xspf'
  33. [0xb13b50] main access debug: using access module "filesystem"
  34. [0xb13b50] main access debug: TIMER module_need() : 0.189 ms - Total 0.189 ms / 1 intvls (Avg 0.189 ms)
  35. [0xb12bd0] main stream debug: Using AStream*Stream
  36. [0xb12bd0] main stream debug: pre buffering
  37. [0xb12bd0] main stream debug: received first data after 0 ms
  38. [0xb12bd0] main stream debug: pre-buffering done 296 bytes in 0s - 28906 KiB/s
  39. [0xb14570] main stream debug: looking for stream_filter module: 5 candidates
  40. [0xb14570] main stream debug: no stream_filter module matching "any" could be loaded
  41. [0xb14570] main stream debug: TIMER module_need() : 0.284 ms - Total 0.284 ms / 1 intvls (Avg 0.284 ms)
  42. [0xb14570] main stream debug: looking for stream_filter module: 1 candidate
  43. [0xb14570] main stream debug: using stream_filter module "stream_filter_record"
  44. [0xb14570] main stream debug: TIMER module_need() : 0.089 ms - Total 0.089 ms / 1 intvls (Avg 0.089 ms)
  45. [0xb0a2d0] main input debug: creating demux: access='file' demux='xspf-open' path='/home/tovis/.local/share/vlc/ml.xspf'
  46. [0xb21ef0] main demux debug: looking for demux module: 1 candidate
  47. [0xb21ef0] playlist demux debug: using XSPF playlist reader
  48. [0xb21ef0] main demux debug: using demux module "playlist"
  49. [0xb21ef0] main demux debug: TIMER module_need() : 0.161 ms - Total 0.161 ms / 1 intvls (Avg 0.161 ms)
  50. [0xb25a80] main demux meta debug: looking for meta reader module: 2 candidates
  51. [0xb25a80] lua demux meta debug: Trying Lua scripts in /home/tovis/.local/share/vlc/lua/meta/reader
  52. [0xb25a80] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
  53. [0xb25a80] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
  54. [0xb25a80] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
  55. [0xb25a80] main demux meta debug: no meta reader module matching "any" could be loaded
  56. [0xb25a80] main demux meta debug: TIMER module_need() : 2.769 ms - Total 2.769 ms / 1 intvls (Avg 2.769 ms)
  57. [0xb0a2d0] main input debug: `file/xspf-open:///home/tovis/.local/share/vlc/ml.xspf' successfully opened
  58. [0xb37000] main xml debug: looking for xml module: 2 candidates
  59. [0xb37000] main xml debug: using xml module "xml"
  60. [0xb37000] main xml debug: TIMER module_need() : 0.490 ms - Total 0.490 ms / 1 intvls (Avg 0.490 ms)
  61. [0xb21ef0] playlist demux debug: parsed 0 tracks successfully
  62. [0xb37000] main xml debug: removing module "xml"
  63. [0xb0a2d0] main input debug: EOF reached
  64. [0xb21ef0] main demux debug: removing module "playlist"
  65. [0xb14570] main stream debug: removing module "stream_filter_record"
  66. [0xb13b50] main access debug: removing module "filesystem"
  67. [0xb0a2d0] main input debug: TIMER input launching for 'Media Library' : 4.321 ms - Total 4.321 ms / 1 intvls (Avg 4.321 ms)
  68. [0xb10010] main interface debug: looking for interface module: 1 candidate
  69. [0xb10010] main interface debug: using interface module "hotkeys"
  70. [0xb10010] main interface debug: TIMER module_need() : 0.265 ms - Total 0.265 ms / 1 intvls (Avg 0.265 ms)
  71. [0xb12930] main interface debug: looking for interface module: 1 candidate
  72. Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
  73. Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
  74. [0xb12930] inhibit interface error: Failed to connect to the D-Bus session daemon: /usr/bin/dbus-launch terminated abnormally without any error message
  75. [0xb12930] main interface debug: no interface module matching "inhibit,none" could be loaded
  76. [0xb12930] main interface debug: TIMER module_need() : 1.053 ms - Total 1.053 ms / 1 intvls (Avg 1.053 ms)
  77. [0xb12930] main interface error: no suitable interface module
  78. [0xb08d40] main playlist debug: Activated
  79. [0xb08d40] main playlist debug: adding item `v4l2:///dev/video0' ( v4l2:///dev/video0 )
  80. [0xb08d40] main playlist debug: rebuilding array of current - root Playlist
  81. [0xb08d40] main playlist debug: rebuild done - 1 items, index -1
  82. [0xb0b890] main interface debug: looking for interface module: 1 candidate
  83. [0xb0b890] main interface debug: using interface module "signals"
  84. [0xb0b890] main interface debug: TIMER module_need() : 0.584 ms - Total 0.584 ms / 1 intvls (Avg 0.584 ms)
  85. [0xb0d800] main interface debug: looking for interface module: 0 candidates
  86. [0xb0d800] main interface debug: no interface module matched "globalhotkeys,none"
  87. [0xb0d800] main interface debug: TIMER module_need() : 0.046 ms - Total 0.046 ms / 1 intvls (Avg 0.046 ms)
  88. [0xb0d800] main interface error: no suitable interface module
  89. [0xa32120] main libvlc error: interface "globalhotkeys,none" initialization failed
  90. [0xa32120] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
  91. [0xb0da50] main interface debug: looking for interface module: 3 candidates
  92. [0xb0da50] lua interface debug: Found lua interface script: /usr/lib/vlc/lua/intf/rc.luac
  93. [0xb0da50] [rc] main interface debug: using interface module "lua"
  94. [0xb0da50] [rc] main interface debug: TIMER module_need() : 0.352 ms - Total 0.352 ms / 1 intvls (Avg 0.352 ms)
  95. [0xb08d40] main playlist debug: processing request item null node Playlist skip 0
  96. [0xb08d40] main playlist debug: starting new item
  97. [0xb08d40] main playlist debug: creating new input thread
  98. [0xb26580] main input debug: Creating an input for 'v4l2:///dev/video0'
  99. [0xb26580] main input debug: thread (input) created at priority 10 (input/input.c:214)
  100. [0xb26580] main input debug: thread started
  101. [0xb3b840] main stream output debug: using sout chain=`transcodesamplerate=44100'
  102. [0xb3b840] main stream output debug: stream=`transcodesamplerate=44100'
  103. [0xb3ba00] main stream out debug: looking for sout stream module: 0 candidates
  104. [0xb3ba00] main stream out debug: no sout stream module matched "transcodesamplerate=44100"
  105. [0xb3ba00] main stream out debug: TIMER module_need() : 0.080 ms - Total 0.080 ms / 1 intvls (Avg 0.080 ms)
  106. [0xb3ba00] main stream out debug: destroying chain... (name=(null))
  107. [0xb3ba00] main stream out debug: destroying chain done
  108. [0xb3b840] main stream output error: stream chain failed for `transcodesamplerate=44100'
  109. [0xb08d40] main playlist debug: finished input
  110. [0xb26580] main input error: cannot start stream output instance, aborting
  111. [0xb08d40] main playlist debug: dead input
  112. [0xb26580] main input debug: thread ended
  113. [0xb26580] main input debug: TIMER input launching for 'v4l2:///dev/video0' : 0.754 ms - Total 0.754 ms / 1 intvls (Avg 0.754 ms)
  114. [0xb08d40] main playlist debug: changing item without a request (current 0/1)
  115. [0xb08d40] main playlist debug: nothing to play
  116. [0xb0da50] [rc] lua interface: Listening on host "*console".
  117. VLC media player 1.1.3 The Luggage
  118. Remote control interface initialized. Type `help' for help.
  119. > Shutting down.[0xb0da50] [rc] lua interface: Requested shutdown.
  120. Bye-bye!
  121. > [0xa32120] main libvlc debug: deactivating the playlist
  122. [0xb08d40] main playlist debug: Deactivate
  123. [0xb3b6f0] main playlist export debug: saving Media Library to file /home/tovis/.local/share/vlc/ml.xspf
  124. [0xb3b6f0] main playlist export debug: looking for playlist export module: 1 candidate
  125. [0xb3b6f0] main playlist export debug: using playlist export module "export"
  126. [0xb3b6f0] main playlist export debug: TIMER module_need() : 0.269 ms - Total 0.269 ms / 1 intvls (Avg 0.269 ms)
  127. [0xb3b6f0] main playlist export debug: removing module "export"
  128. [0xb08d40] main playlist debug: Deactivated
  129. [0xa32120] main libvlc debug: removing all services discovery tasks
  130. [0xa32120] main libvlc debug: removing all interfaces
  131. [0xb0da50] [rc] main interface debug: removing module "lua"
  132. [0xb0b890] main interface debug: removing module "signals"
  133. [0xb10010] main interface debug: removing module "hotkeys"
  134. [0xb08d40] main playlist debug: destroying
  135. [0xa32120] main libvlc debug: TIMER ML Load : Total 5.216 ms / 1 intvls (Avg 5.216 ms)
  136. [0xa32120] main libvlc debug: TIMER Items array build : Total 0.057 ms / 1 intvls (Avg 0.057 ms)
  137. [0xa32120] main libvlc debug: TIMER ML Dump : Total 0.379 ms / 1 intvls (Avg 0.379 ms)
  138. [0xa32120] main libvlc debug: removing stats
  139. [0xa32120] main libvlc debug: removing module "memcpymmxext"
  140.  
  141. I was try to play on XP box, using command:
  142. vlc http://192.168.1.248:8080/stream_mpeg2
  143.  
  144. Error was that it couldn't open MRL "http://192.168.1.248:8080/stream_mpeg2"
Advertisement
Add Comment
Please, Sign In to add comment