Wowza Community

Duplicate output stream with vlc

Hi all,

I’ve used vlc to encode live stream and then send it to wowza server. However, i want to sent the output encoded to 2 wowza server. I’ve used duplicate module, but it still not work:

cvlc -vvv input stream – sout “#transcode{vcodec=x264,fps=25,vb=200,width=480,height=360,scale=1,acodec=mp3,ab=64,channels=2,samplerate=44100}:duplicate{dst=rtp{dst=x.x.x.x,port=20017,mux=ts},dst=rtp{dst=x.x.x.x,port=20018,mux=ts}}”

vlc error is:

[0x837888] main libvlc debug: translation test: code is “C”

[0x837888] main libvlc debug: checking plugin modules

[0x837888] main libvlc debug: loading plugins cache file /home/sctvencoding1/.cache/vlc/plugins-04081e.dat

[0x837888] main libvlc debug: recursively browsing `/usr/lib/vlc’

[0x837888] main libvlc debug: module bank initialized (383 modules)

[0x837888] main libvlc debug: opening config file (/home/sctvencoding1/.config/vlc/vlcrc)

[0x837888] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU

[0x837888] main libvlc debug: looking for memcpy module: 3 candidates

[0x837888] main libvlc debug: using memcpy module “memcpymmxext”

[0x92d208] main input debug: Creating an input for ‘Media Library’

[0x92d208] main input debug: Input is a meta file: disabling unneeded options

[0x92d208] main input debug: using timeshift granularity of 50 MBytes

[0x92d208] main input debug: using timeshift path ‘/tmp’

[0x92d208] main input debug: file/xspf-open:///home/sctvencoding1/.local/share/vlc/ml.xspf' gives access file’ demux xspf-open' path /home/sctvencoding1/.local/share/vlc/ml.xspf’

[0x92d208] main input debug: creating demux: access=‘file’ demux=‘xspf-open’ path=’/home/sctvencoding1/.local/share/vlc/ml.xspf’

[0x936708] main demux debug: looking for access_demux module: 1 candidate

[0x936708] main demux warning: no access_demux module matching “file” could be loaded

[0x936708] main demux debug: TIMER module_need() : 0.653 ms - Total 0.653 ms / 1 intvls (Avg 0.653 ms)

[0x92d208] main input debug: creating access ‘file’ path=’/home/sctvencoding1/.local/share/vlc/ml.xspf’

[0x938718] main access debug: looking for access module: 3 candidates

[0x938718] access_file access debug: opening file `/home/sctvencoding1/.local/share/vlc/ml.xspf’

[0x938718] main access debug: using access module “access_file”

[0x938718] main access debug: TIMER module_need() : 0.496 ms - Total 0.496 ms / 1 intvls (Avg 0.496 ms)

[0x936c58] main stream debug: Using AStream*Stream

[0x936c58] main stream debug: pre buffering

[0x936c58] main stream debug: received first data after 0 ms

[0x936c58] main stream debug: pre-buffering done 296 bytes in 0s - 26278 kbytes/s

[0x937218] main stream debug: looking for stream_filter module: 5 candidates

[0x937218] main stream debug: TIMER module_need() : 0.455 ms - Total 0.455 ms / 1 intvls (Avg 0.455 ms)

[0x94b8b8] main stream debug: looking for stream_filter module: 1 candidate

[0x94b8b8] main stream debug: using stream_filter module “stream_filter_record”

[0x94b8b8] main stream debug: TIMER module_need() : 0.156 ms - Total 0.156 ms / 1 intvls (Avg 0.156 ms)

[0x92d208] main input debug: creating demux: access=‘file’ demux=‘xspf-open’ path=’/home/sctvencoding1/.local/share/vlc/ml.xspf’

[0x949968] main demux debug: looking for demux module: 1 candidate

[0x949968] playlist demux debug: using XSPF playlist reader

[0x949968] main demux debug: using demux module “playlist”

[0x949968] main demux debug: TIMER module_need() : 0.264 ms - Total 0.264 ms / 1 intvls (Avg 0.264 ms)

[0x92d208] main input debug: `file/xspf-open:///home/sctvencoding1/.local/share/vlc/ml.xspf’ successfully opened

[0x94a678] main xml debug: looking for xml module: 2 candidates

[0x94a678] main xml debug: using xml module “xml”

[0x94a678] main xml debug: TIMER module_need() : 0.540 ms - Total 0.540 ms / 1 intvls (Avg 0.540 ms)

[0x949968] playlist demux debug: parsed 0 tracks successfully

[0x94a678] main xml debug: removing module “xml”

[0x92d208] main input debug: EOF reached

[0x949968] main demux debug: removing module “playlist”

[0x94b8b8] main stream debug: removing module “stream_filter_record”

[0x938718] main access debug: removing module “access_file”

[0x92d208] main input debug: TIMER input launching for ‘Media Library’ : 5.315 ms - Total 5.315 ms / 1 intvls (Avg 5.315 ms)

[0x92c888] main playlist debug: Activated

[0x935908] main interface debug: looking for interface module: 1 candidate

[0x935908] main interface debug: using interface module “hotkeys”

[0x935908] main interface debug: TIMER module_need() : 0.260 ms - Total 0.260 ms / 1 intvls (Avg 0.260 ms)

[0x935908] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)

[0x935908] main interface debug: thread started

[0x936228] main interface debug: looking for interface module: 1 candidate

[0x936228] inhibit interface error: Failed to connect to the D-Bus session daemon: /bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.

[0x936228] main interface warning: no interface module matching “inhibit,none” could be loaded

[0x936228] main interface debug: TIMER module_need() : 2.092 ms - Total 2.092 ms / 1 intvls (Avg 2.092 ms)

[0x936228] main interface error: no suitable interface module

[0x837888] main libvlc error: interface “inhibit,none” initialization failed

[0x936228] main interface debug: looking for interface module: 1 candidate

[0x936228] main interface debug: using interface module “screensaver”

[0x936228] main interface debug: TIMER module_need() : 0.218 ms - Total 0.218 ms / 1 intvls (Avg 0.218 ms)

[0x936228] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)

[0x92c888] main playlist debug: adding item `udp://232.2.1.1:10001’ ( udp://@232.2.1.1:10001 )

[0x930f38] main interface debug: looking for interface module: 1 candidate

[0x930f38] main interface debug: using interface module “signals”

[0x930f38] main interface debug: TIMER module_need() : 0.233 ms - Total 0.233 ms / 1 intvls (Avg 0.233 ms)

[0x930f38] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)

[0x932a78] main interface debug: looking for interface module: 1 candidate

[0x932a78] main interface warning: no interface module matching “globalhotkeys,none” could be loaded

[0x932a78] main interface debug: TIMER module_need() : 0.548 ms - Total 0.548 ms / 1 intvls (Avg 0.548 ms)

[0x932a78] main interface error: no suitable interface module

[0x837888] main libvlc error: interface “globalhotkeys,none” initialization failed

[0x932a78] main interface debug: looking for interface module: 1 candidate

[0x932a78] dummy interface: using the dummy interface module…

[0x932a78] main interface debug: using interface module “dummy”

[0x932a78] main interface debug: TIMER module_need() : 0.227 ms - Total 0.227 ms / 1 intvls (Avg 0.227 ms)

[0x932a78] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)

[0x932a78] main interface debug: thread started

[0x936228] main interface debug: thread started

[0x932a78] main interface debug: thread ended

[0x92c888] main playlist debug: rebuilding array of current - root Playlist

[0x92c888] main playlist debug: rebuild done - 1 items, index -1

[0x92c888] main playlist debug: processing request item null node Playlist skip 0

[0x92c888] main playlist debug: starting new item

[0x92c888] main playlist debug: creating new input thread

[0x94d4f8] main input debug: Creating an input for ‘x.x.x.x’

[0x94d4f8] main input debug: thread (input) created at priority 10 (input/input.c:230)

[0x94d4f8] main input debug: thread started

[0x94fc18] main stream output debug: stream=`transcode’

[0x94feb8] main stream out debug: looking for sout stream module: 1 candidate

[0x94fc18] main stream output error: invalid chain

[0x94feb8] stream_out_transcode stream out error: cannot create chain

[0x94feb8] main stream out warning: no sout stream module matching “transcode” could be loaded

[0x94feb8] main stream out debug: TIMER module_need() : 0.337 ms - Total 0.337 ms / 1 intvls (Avg 0.337 ms)

[0x94feb8] main stream out debug: destroying chain… (name=transcode)

[0x94feb8] main stream out debug: destroying chain done

[0x94fc18] main stream output error: stream chain failed for `transcode{venc=x264{keyint=50,profile=baseline,

level=5.1,nocabac,qpmax=36,qpmin=10,me=hex,merange=24,subme=9,qcomp=0.6},

vcodec=x264,fps=25,vb=200,width=480,height=360,scale=1,acodec=mp3,ab=64,channels=2,samplerate=44100}

:duplicate{dst=rtp{dst=x.x.x.x,port=20017,mux=ts},dst=rtp{dst=x.x.x.x,port=20018,mux=ts}}’

[0x94d4f8] main input error: cannot start stream output instance, aborting

[0x92c888] main playlist debug: finished input

[0x94d4f8] main input debug: thread ended

[0x92c888] main playlist debug: dead input

[0x94d4f8] main input debug: TIMER input launching for ‘x.x.x.x’ : 3.995 ms - Total 3.995 ms / 1 intvls (Avg 3.995 ms)

[0x92c888] main playlist debug: changing item without a request (current 0/1)

[0x92c888] main playlist debug: nothing to play

pl help me

I don’t know how to do that or if it is possible with VLC. You might check on VLC forum for advice.

Richard