Advertisement
tovis

Squeeze vlc streming: v4l2 input, mpeg2 output

Jan 17th, 2012
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Logtalk 12.44 KB | None | 0 0
  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=:8080/stream_mpeg2} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep >rep-vlc-001.err 2>&1
  3.  
  4. Result (rep-vlc-001.err):
  5.  
  6. VLC media player 1.1.3 The Luggage (revision exported)
  7. [0x14d9120] main libvlc debug: VLC media player - 1.1.3 The Luggage
  8. [0x14d9120] main libvlc debug: Copyright © 1996-2010 the VideoLAN team
  9. [0x14d9120] main libvlc debug: revision exported
  10. [0x14d9120] 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. [0x14d9120] main libvlc debug: translation test: code is "C"
  12. [0x14d9120] main libvlc debug: checking plugin modules
  13. [0x14d9120] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins-04081e-1f8.dat
  14. [0x14d9120] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
  15. [0x14d9120] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins-04081e-1f8.dat
  16. [0x14d9120] main libvlc debug: module bank initialized (373 modules)
  17. [0x14d9120] main libvlc debug: opening config file (/home/tovis/.config/vlc/vlcrc)
  18. [0x14d9120] main libvlc debug: CPU has capabilities MMX 3DNow! MMXEXT SSE SSE2 SSE3 FPU
  19. [0x14d9120] main libvlc debug: looking for memcpy module: 4 candidates
  20. [0x14d9120] main libvlc debug: using memcpy module "memcpymmxext"
  21. [0x15b12c0] main input debug: Creating an input for 'Media Library'
  22. [0x15b12c0] main input debug: Input is a meta file: disabling unneeded options
  23. [0x15b12c0] main input debug: using timeshift granularity of 50 MiB
  24. [0x15b12c0] main input debug: using timeshift path '/tmp'
  25. [0x15b12c0] 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. [0x15b12c0] main input debug: creating demux: access='file' demux='xspf-open' path='/home/tovis/.local/share/vlc/ml.xspf'
  27. [0x15b7b40] main demux debug: looking for access_demux module: 2 candidates
  28. [0x15b7b40] main demux debug: no access_demux module matching "file" could be loaded
  29. [0x15b7b40] main demux debug: TIMER module_need() : 0.388 ms - Total 0.388 ms / 1 intvls (Avg 0.388 ms)
  30. [0x15b12c0] main input debug: creating access 'file' path='/home/tovis/.local/share/vlc/ml.xspf'
  31. [0x15bad40] main access debug: looking for access module: 2 candidates
  32. [0x15bad40] filesystem access debug: opening file `/home/tovis/.local/share/vlc/ml.xspf'
  33. [0x15bad40] main access debug: using access module "filesystem"
  34. [0x15bad40] main access debug: TIMER module_need() : 0.173 ms - Total 0.173 ms / 1 intvls (Avg 0.173 ms)
  35. [0x15b8d80] main stream debug: Using AStream*Stream
  36. [0x15b8d80] main stream debug: pre buffering
  37. [0x15b8d80] main stream debug: received first data after 0 ms
  38. [0x15b8d80] main stream debug: pre-buffering done 296 bytes in 0s - 15213 KiB/s
  39. [0x15bb5a0] main stream debug: looking for stream_filter module: 5 candidates
  40. [0x15bb5a0] main stream debug: no stream_filter module matching "any" could be loaded
  41. [0x15bb5a0] main stream debug: TIMER module_need() : 0.264 ms - Total 0.264 ms / 1 intvls (Avg 0.264 ms)
  42. [0x15bb5a0] main stream debug: looking for stream_filter module: 1 candidate
  43. [0x15bb5a0] main stream debug: using stream_filter module "stream_filter_record"
  44. [0x15bb5a0] main stream debug: TIMER module_need() : 0.085 ms - Total 0.085 ms / 1 intvls (Avg 0.085 ms)
  45. [0x15b12c0] main input debug: creating demux: access='file' demux='xspf-open' path='/home/tovis/.local/share/vlc/ml.xspf'
  46. [0x15c8e90] main demux debug: looking for demux module: 1 candidate
  47. [0x15c8e90] playlist demux debug: using XSPF playlist reader
  48. [0x15c8e90] main demux debug: using demux module "playlist"
  49. [0x15c8e90] main demux debug: TIMER module_need() : 0.146 ms - Total 0.146 ms / 1 intvls (Avg 0.146 ms)
  50. [0x15cce20] main demux meta debug: looking for meta reader module: 2 candidates
  51. [0x15cce20] lua demux meta debug: Trying Lua scripts in /home/tovis/.local/share/vlc/lua/meta/reader
  52. [0x15cce20] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
  53. [0x15cce20] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
  54. [0x15cce20] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
  55. [0x15cce20] main demux meta debug: no meta reader module matching "any" could be loaded
  56. [0x15cce20] main demux meta debug: TIMER module_need() : 2.706 ms - Total 2.706 ms / 1 intvls (Avg 2.706 ms)
  57. [0x15b12c0] main input debug: `file/xspf-open:///home/tovis/.local/share/vlc/ml.xspf' successfully opened
  58. [0x15ddff0] main xml debug: looking for xml module: 2 candidates
  59. [0x15ddff0] main xml debug: using xml module "xml"
  60. [0x15ddff0] main xml debug: TIMER module_need() : 0.467 ms - Total 0.467 ms / 1 intvls (Avg 0.467 ms)
  61. [0x15c8e90] playlist demux debug: parsed 0 tracks successfully
  62. [0x15ddff0] main xml debug: removing module "xml"
  63. [0x15b12c0] main input debug: EOF reached
  64. [0x15c8e90] main demux debug: removing module "playlist"
  65. [0x15bb5a0] main stream debug: removing module "stream_filter_record"
  66. [0x15bad40] main access debug: removing module "filesystem"
  67. [0x15b12c0] main input debug: TIMER input launching for 'Media Library' : 4.077 ms - Total 4.077 ms / 1 intvls (Avg 4.077 ms)
  68. [0x15b7000] main interface debug: looking for interface module: 1 candidate
  69. [0x15b7000] main interface debug: using interface module "hotkeys"
  70. [0x15b7000] main interface debug: TIMER module_need() : 0.245 ms - Total 0.245 ms / 1 intvls (Avg 0.245 ms)
  71. [0x15d2d10] 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. [0x15d2d10] inhibit interface error: Failed to connect to the D-Bus session daemon: /usr/bin/dbus-launch terminated abnormally without any error message
  75. [0x15d2d10] main interface debug: no interface module matching "inhibit,none" could be loaded
  76. [0x15d2d10] main interface debug: TIMER module_need() : 1.016 ms - Total 1.016 ms / 1 intvls (Avg 1.016 ms)
  77. [0x15d2d10] main interface error: no suitable interface module
  78. [0x15afd30] main playlist debug: Activated
  79. [0x15afd30] main playlist debug: adding item `v4l2:///dev/video0' ( v4l2:///dev/video0 )
  80. [0x15afd30] main playlist debug: rebuilding array of current - root Playlist
  81. [0x15afd30] main playlist debug: rebuild done - 0 items, index -1
  82. [0x15b2c10] main interface debug: looking for interface module: 1 candidate
  83. [0x15b2c10] main interface debug: using interface module "signals"
  84. [0x15b2c10] main interface debug: TIMER module_need() : 0.588 ms - Total 0.588 ms / 1 intvls (Avg 0.588 ms)
  85. [0x15b6630] main interface debug: looking for interface module: 0 candidates
  86. [0x15b6630] main interface debug: no interface module matched "globalhotkeys,none"
  87. [0x15b6630] main interface debug: TIMER module_need() : 0.047 ms - Total 0.047 ms / 1 intvls (Avg 0.047 ms)
  88. [0x15b6630] main interface error: no suitable interface module
  89. [0x14d9120] main libvlc error: interface "globalhotkeys,none" initialization failed
  90. [0x14d9120] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
  91. [0x15b66a0] main interface debug: looking for interface module: 3 candidates
  92. [0x15b66a0] lua interface debug: Found lua interface script: /usr/lib/vlc/lua/intf/rc.luac
  93. [0x15b66a0] [rc] main interface debug: using interface module "lua"
  94. [0x15b66a0] [rc] main interface debug: TIMER module_need() : 0.342 ms - Total 0.342 ms / 1 intvls (Avg 0.342 ms)
  95. [0x15afd30] main playlist debug: processing request item null node Playlist skip 0
  96. [0x15afd30] main playlist debug: rebuilding array of current - root Playlist
  97. [0x15afd30] main playlist debug: rebuild done - 1 items, index -1
  98. [0x15afd30] main playlist debug: starting new item
  99. [0x15afd30] main playlist debug: creating new input thread
  100. [0x15cac80] main input debug: Creating an input for 'v4l2:///dev/video0'
  101. [0x15cac80] main input debug: thread (input) created at priority 10 (input/input.c:214)
  102. [0x15cac80] main input debug: thread started
  103. [0x15e33c0] main stream output debug: using sout chain=`transcodesamplerate=44100:httpdst=:8080/stream_mpeg2'
  104. [0x15e33c0] main stream output debug: stream=`8080/stream_mpeg2'
  105. [0x7fdea4000e20] main stream out debug: looking for sout stream module: 0 candidates
  106. [0x7fdea4000e20] main stream out debug: no sout stream module matched "8080/stream_mpeg2"
  107. [0x7fdea4000e20] main stream out debug: TIMER module_need() : 0.122 ms - Total 0.122 ms / 1 intvls (Avg 0.122 ms)
  108. [0x7fdea4000e20] main stream out debug: destroying chain... (name=(null))
  109. [0x7fdea4000e20] main stream out debug: destroying chain done
  110. [0x15e33c0] main stream output error: stream chain failed for `transcodesamplerate=44100:httpdst=:8080/stream_mpeg2'
  111. [0x15afd30] main playlist debug: finished input
  112. [0x15cac80] main input error: cannot start stream output instance, aborting
  113. [0x15cac80] main input debug: thread ended
  114. [0x15afd30] main playlist debug: dead input
  115. [0x15cac80] main input debug: TIMER input launching for 'v4l2:///dev/video0' : 0.681 ms - Total 0.681 ms / 1 intvls (Avg 0.681 ms)
  116. [0x15afd30] main playlist debug: changing item without a request (current 0/1)
  117. [0x15afd30] main playlist debug: nothing to play
  118. [0x15b66a0] [rc] lua interface: Listening on host "*console".
  119. VLC media player 1.1.3 The Luggage
  120. Remote control interface initialized. Type `help' for help.
  121. > shutdown
  122.  
  123. > Shutting down.[0x15b66a0] [rc] lua interface: Requested shutdown.
  124. Bye-bye!
  125. > [0x14d9120] main libvlc debug: deactivating the playlist
  126. [0x15afd30] main playlist debug: Deactivate
  127. [0x15e0c10] main playlist export debug: saving Media Library to file /home/tovis/.local/share/vlc/ml.xspf
  128. [0x15e0c10] main playlist export debug: looking for playlist export module: 1 candidate
  129. [0x15e0c10] main playlist export debug: using playlist export module "export"
  130. [0x15e0c10] main playlist export debug: TIMER module_need() : 0.258 ms - Total 0.258 ms / 1 intvls (Avg 0.258 ms)
  131. [0x15e0c10] main playlist export debug: removing module "export"
  132. [0x15afd30] main playlist debug: Deactivated
  133. [0x14d9120] main libvlc debug: removing all services discovery tasks
  134. [0x14d9120] main libvlc debug: removing all interfaces
  135. [0x15b66a0] [rc] main interface debug: removing module "lua"
  136. [0x15b2c10] main interface debug: removing module "signals"
  137. [0x15b7000] main interface debug: removing module "hotkeys"
  138. [0x15afd30] main playlist debug: destroying
  139. [0x14d9120] main libvlc debug: TIMER ML Load : Total 4.929 ms / 1 intvls (Avg 4.929 ms)
  140. [0x14d9120] main libvlc debug: TIMER Items array build : Total 0.061 ms / 2 intvls (Avg 0.031 ms)
  141. [0x14d9120] main libvlc debug: TIMER ML Dump : Total 0.360 ms / 1 intvls (Avg 0.360 ms)
  142. [0x14d9120] main libvlc debug: removing stats
  143. [0x14d9120] main libvlc debug: removing module "memcpymmxext"
  144.  
  145. I was try to play on XP box, using command:
  146. vlc http://192.168.1.248:8080/stream_mpeg2
  147.  
  148. 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
Advertisement