cannot pre fill buffer

About encoding, codec settings, muxers and filter usage
lintyro
New Cone
New Cone
Posts: 7
Joined: 10 Jan 2006 03:20

cannot pre fill buffer

Postby lintyro » 14 Feb 2006 10:15

hi all,
i stream from an acquisition card :
vlc v4l:/dev/video1:norm=pal:frequency=128250:size=320x240:channel=0:adev=/dev/dsp2:audio=0 --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=3000,ab=256,venc=ffmpeg{keyint=80,hurry-up,vt=800000},deinterlace}:std{access=udp,mux=ts,url=192.168.151.36:1234}' --ttl 12
VLC media player 0.8.4a Janus
Remote control interface initialized, `h' for help
status change: ( New input: v4l:/dev/video1:norm=pal:frequency=128250:size=320x240:channel=0:adev=/dev/dsp2:audio=0 )
status change: ( audio volume: 256 )
status change: ( play state: 1 )

and relayed the streaming by another pc:
# vlc udp:@1234 --sout '#std{access=http,mux=asf,url=:8080}'
VLC media player 0.8.4a Janus
Remote control interface initialized, `h' for help
[00000234] main private: creating httpd
status change: ( New input: udp:@1234 )
status change: ( audio volume: 256 )
status change: ( play state: 1 )

then read the streaning by vlc player,but it doesn't work,the error message:
main debug: creating new input thread
main debug: waiting for thread completion
main debug: thread 3660 (input) created at priority 1 (src/input/input.c:230)
main debug: `http://192.168.151.36:8080' gives access `http' demux `' path `192.168.151.36:8080'
main debug: creating demux: access='http' demux='' path='192.168.151.36:8080'
main debug: looking for access_demux module: 0 candidates
main warning: no access_demux module matched "http"
main debug: creating access 'http' path='192.168.151.36:8080'
main debug: looking for access2 module: 7 candidates
access_http debug: http: server='192.168.151.36' port=8080 file='(null)
main debug: net: connecting to 192.168.151.36 port 8080
main debug: connection in progress
access_http debug: protocol 'HTTP' answer code 200
access_http debug: Content-Type: application/octet-stream
main debug: using access2 module "access_http"
main debug: pre buffering
main error: cannot pre fill buffer
main warning: cannot create a stream_t from access
main debug: unlocking module "access_http"
main debug: thread times: real 0m9.125000s, kernel 0m0.015625s, user 0m0.015625s
main debug: thread 3660 joined (src/input/input.c:386)
main warning: refcount is 1, delaying before deletion (id=489,type=-7)
main: nothing to play

why? thanks

tonsofpcs
Cone that earned his stripes
Cone that earned his stripes
Posts: 363
Joined: 04 Jan 2006 10:03
Location: Binghamton, NY, USA
Contact:

Postby tonsofpcs » 14 Feb 2006 19:45

What happens if you change the 'repeater' mux to ts instead of asf?

lintyro
New Cone
New Cone
Posts: 7
Joined: 10 Jan 2006 03:20

Postby lintyro » 15 Feb 2006 02:31

What happens if you change the 'repeater' mux to ts instead of asf?
it will be ok of vlc , but the streaming can't be read by mediaplayer, my client player is mediaplayer. :(

tonsofpcs
Cone that earned his stripes
Cone that earned his stripes
Posts: 363
Joined: 04 Jan 2006 10:03
Location: Binghamton, NY, USA
Contact:

Postby tonsofpcs » 15 Feb 2006 05:58

What if you remove 'mux' from the repeater?

lintyro
New Cone
New Cone
Posts: 7
Joined: 10 Jan 2006 03:20

Postby lintyro » 15 Feb 2006 10:58

remove the "mux", the repeater does'not work,
]# vlc -vvv udp: --sout '#transcode{vcodec=WMV1,acodec=mp3,vb=1024,ab=128}:std{access=http,url=:8080}' VLC media player 0.8.4a Janus
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc debug: checking builtin modules
[00000001] main vlc debug: checking plugin modules
[00000001] main vlc debug: loading plugins cache file /root/.vlc/cache/plugins-04041e.dat
[00000001] main vlc debug: recursively browsing `modules'
[00000001] main vlc debug: recursively browsing `/usr/local/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 180 modules
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main vlc debug: looking for memcpy module: 3 candidates
[00000010] main module debug: using memcpy module "memcpymmxext"
[00000222] main playlist debug: waiting for thread completion
[00000222] main playlist debug: thread 3084454832 (playlist) created at priority 0 (src/playlist/playlist.c:183)
[00000223] main private debug: waiting for thread completion
[00000223] main private debug: thread 3073964976 (preparser) created at priority 0 (src/playlist/playlist.c:205)
[00000224] main interface debug: looking for interface module: 1 candidate
[00000121] main module debug: using interface module "hotkeys"
[00000224] main interface debug: interface initialized
[00000224] main interface debug: thread 3063475120 (interface) created at priority 0 (src/interface/interface.c:211)
[00000226] main interface debug: looking for interface module: 2 candidates
[00000217] main module debug: using interface module "screensaver"
[00000226] main interface debug: interface initialized
[00000226] main interface debug: thread 3052985264 (interface) created at priority 0 (src/interface/interface.c:211)
[00000222] main playlist debug: adding playlist item `udp:' ( udp: )
[00000228] main interface debug: looking for interface module: 1 candidate
[00000115] main module debug: using interface module "rc"
[00000228] main interface debug: interface initialized
[00000228] main interface debug: thread 3042491312 (manager) created at priority 0 (src/interface/interface.c:196)
[00000222] main playlist debug: creating new input thread
[00000230] main input debug: waiting for thread completion
[00000231] main stream output debug: stream=`transcode'
[00000232] main private debug: looking for sout stream module: 1 candidate
[00000231] main stream output debug: stream=`std'
[00000235] main private debug: looking for sout stream module: 1 candidate
[00000230] main input debug: thread 3032001456 (input) created at priority 0 (src/input/input.c:230)
status change: ( New input: udp: )
status change: ( audio volume: 256 )
status change: ( play state: 1 )
[00000235] main private debug: set sout option: sout-standard-access to http
[00000235] main private debug: set sout option: sout-standard-url to :8080
[00000235] stream_out_standard private debug: creating `http/(null)://:8080'
[00000235] stream_out_standard private error: no mux specified or found by extention
[00000235] main private warning: no sout stream module matching "std" could be loaded
[00000235] main private debug: destroying chain... (name=std)
[00000235] main private debug: destroying chain done
[00000232] stream_out_transcode private error: cannot create chain
[00000232] main private warning: no sout stream module matching "transcode" could be loaded
[00000232] main private debug: destroying chain... (name=transcode)
[00000232] main private debug: destroying chain done
[00000231] main stream output error: stream chained failed for `transcode{vcodec=WMV1,acodec=mp3,vb=1024,ab=128}:std{access=http,url=:8080}'
[00000230] main input error: cannot start stream output instance, aborting
status change: ( stop state: 0 )
[00000230] main input debug: thread 3032001456 joined (src/input/input.c:386)
[00000222] main playlist: nothing to play

lintyro
New Cone
New Cone
Posts: 7
Joined: 10 Jan 2006 03:20

Postby lintyro » 15 Feb 2006 11:32

when i stream from acquisition card by http but not udp,and relay by http, all is ok.
#vlc v4l:/dev/video1:norm=pal:frequency=128250:size=320x240:channel=0:adev=/dev/dsp2:audio=0 --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=3000,ab=256,venc=ffmpeg{keyint=80,hurry-up,vt=800000},deinterlace}:std{access=http,mux=ts,url=:1234}' --ttl 12
# vlc http:192.168.151.88:1234 --sout '#std{access=http,mux=asf,url=:8080}'

but there is a flaw, if the streaming from the acquisition card is stop, the "repeater" will stop too, when the acquisition card work again, the command must be run again on the "repeater" so the streaming can be relayed afresh. if relay the streaming by udp(streaming from card use udp too), when the card work agian, the command needn't run again on the repeater.
(i'm chinese, enlish is so badly.)


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 2 guests