Hi r-2003,
ich hab gleich versucht, das nach Deiner Anleitung zum Laufen zu bringen. Complieren kann ich den vlc auch ohne Fehler Trotzdem bekomme ich Fehler, wenn ich eine .sh nach Deiner Vorlage aufrufe:
media:~ # ./teststream.sh
VLC media player 0.8.1 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/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 168 modules
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000000] main root debug: VLC media player - version 0.8.1 Janus - (c) 1996-2004 VideoLAN
[00000000] main root debug: libvlc was configured with ./configure --prefix=/usr --enable-wxwindows
[00000001] main vlc debug: translation test: code is "C"
[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/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 168 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
[00000001] main vlc debug: probing 3 candidates
[00000010] main module debug: using memcpy module "memcpymmxext"
[00000396] main playlist debug: creating group Normal with id 1 at position 0
[00000396] main playlist debug: waiting for thread completion
[00000396] main playlist debug: thread 16386 (playlist) created at priority 0 (src/playlist/playlist.c:107)
[00000397] main interface debug: looking for interface module
[00000397] main interface debug: probing 1 candidate
[00000244] main module debug: using interface module "hotkeys"
[00000397] main interface debug: interface initialized
[00000397] main interface debug: thread 32771 (interface) created at priority 0 (src/interface/interface.c:209)
[00000396] main playlist debug: adding playlist item `http://192.168.3.199:3000/PS/3' ( http://192.168.3.199:3000/PS/3 )
[00000398] main interface debug: looking for interface module
[00000398] main interface debug: probing 2 candidates
Remote control interface initialized, `h' for help
[00000242] main module debug: using interface module "rc"
[00000398] main interface debug: interface initialized
[00000396] main playlist debug: creating new input thread
[00000399] main input debug: waiting for thread completion
[00000399] main input debug: thread 49156 (input) created at priority 0 (src/input/input.c:228)
[00000400] main stream output debug: stream=`transcode'
[00000401] main private debug: looking for sout stream module
[00000401] main private debug: probing 1 candidate
[00000400] main stream output debug: stream=`standard'
[00000403] main private debug: looking for sout stream module
[00000403] main private debug: probing 1 candidate
[00000398] main interface debug: thread 65541 (manager) created at priority 0 (src/interface/interface.c:194)
[00000403] main private debug: set sout option: sout-standard-access to http
[00000403] main private debug: set sout option: sout-standard-mux to asf
[00000403] main private debug: set sout option: sout-standard-url to 192.168.3.199:4711
[00000403] stream_out_standard private debug: creating `http/asf://192.168.3.199:4711'
[00000403] stream_out_standard private debug: extention is 199:4711
[00000403] stream_out_standard private debug: extention -> mux=(null)
[00000403] stream_out_standard private debug: using `http/asf://192.168.3.199:4711'
[00000404] main private debug: looking for sout access module
[00000404] main private debug: probing 1 candidate
[00000404] main private: creating httpd
[00000406] main private debug: thread 81926 (httpd host thread) created at priority 0 (src/misc/httpd.c:1170)
[00000248] main module debug: using sout access module "access_output_http"
[00000403] stream_out_standard private debug: access opened
[00000407] main private debug: looking for sout mux module
[00000407] main private debug: probing 1 candidate
[00000407] mux_asf private debug: Asf muxer opened
[00000407] mux_asf private debug: meta data: title='' author='' copyright='' comment='' rating=''
[00000210] main module debug: using sout mux module "mux_asf"
[00000403] stream_out_standard private debug: mux opened
[00000353] main module debug: using sout stream module "stream_out_standard"
[00000401] main private debug: set sout option: sout-transcode-vcodec to mp4v
[00000401] main private debug: set sout option: sout-transcode-acodec to mpga
[00000401] main private debug: set sout option: sout-transcode-vb to 512
[00000401] main private debug: set sout option: sout-transcode-ab to 64
[00000401] main private debug: set sout option: sout-transcode-scale to 0.25
[00000401] main private debug: set sout option: sout-transcode-deinterlace to (null)
[00000401] stream_out_transcode private debug: codec audio=mpga 0Hz 0 channels 64Kb/s
[00000401] stream_out_transcode private debug: codec video=mp4v 0x0 scaling: 0.250000 512kb/s
[00000355] main module debug: using sout stream module "stream_out_transcode"
[00000399] main input debug: `http://192.168.3.199:3000/PS/3' gives access `http' demux `' path `192.168.3.199:3000/PS/3'
[00000399] main input debug: demux2_New: access='http' demux='' path='192.168.3.199:3000/PS/3'
[00000408] main demuxer debug: looking for access_demux module
[00000408] main demuxer debug: probing 0 candidates
[00000408] main demuxer warning: no access_demux module matched "http"
[00000399] main input debug: access2_New: access='http' path='192.168.3.199:3000/PS/3'
[00000409] main access debug: looking for access2 module
[00000409] main access debug: probing 7 candidates
[00000409] access_http access debug: http: server='192.168.3.199' port=3000 file='/PS/3
[00000409] main access debug: net: connecting to '192.168.3.199:3000'
[00000409] main access debug: looking for network module
[00000409] main access debug: probing 2 candidates
[00000409] ipv4 access debug: connection in progress
[00000219] main module debug: using network module "ipv4"
[00000219] main module debug: unlocking module "ipv4"
[00000409] access_http access debug: protocol 'HTTP' answer code 200
[00000409] access_http access debug: Content-Type: video/mpeg
[00000321] main module debug: using access2 module "access_http"
[00000410] main private debug: pre buffering
[00000410] main private debug: received first data for our buffer
[00000410] main private debug: prebuffering done 32352 bytes in 1s - 25 kbytes/s
[00000399] main input debug: demux2_New: access='http' demux='' path='192.168.3.199:3000/PS/3'
[00000411] main demuxer debug: looking for demux2 module
[00000411] main demuxer debug: probing 31 candidates
[00000411] mp4 demuxer warning: MP4 plugin discarded (not a valid file)
[00000411] avi demuxer warning: avi module discarded (invalid header)
[00000411] asf demuxer warning: ASF plugin discarded (not a valid file)
[00000411] mpgv demuxer warning: ES module discarded (system startcode)
[00000411] main demuxer debug: looking for id3 module
[00000411] main demuxer debug: probing 2 candidates
[00000411] id3tag demuxer debug: checking for ID3 tag
[00000285] main module debug: using id3 module "id3tag"
[00000285] main module debug: unlocking module "id3tag"
[00000411] aac demuxer warning: AAC module discarded
[00000411] sap demuxer warning: SDP (UDP) module discarded
[00000411] mkv demuxer warning: matroska module discarded (invalid header 0x000001e4)
[00000411] ogg demuxer warning: ogg module discarded (invalid header)
[00000411] real demuxer warning: Real module discarded
[00000411] playlist demuxer warning: old import module discarded: invalid file
[00000411] playlist demuxer warning: pls import module discarded
[00000411] au demuxer warning: AU module discarded
[00000411] mod demuxer warning: MOD module discarded (path=192.168.3.199:3000/PS/3)
[00000411] ts demuxer warning: TS module discarded
[00000411] nsv demuxer warning: NSV module discarded
[00000411] aiff demuxer warning: AIFF module discarded
[00000411] pva demuxer warning: PVA module discarded
[00000308] main module debug: using demux2 module "ps"
[00000399] main input debug: starting in synch mode
[00000399] main input debug: `http://192.168.3.199:3000/PS/3' sucessfully opened
[00000399] main input debug: Selecting program id=0
[00000412] main packetizer debug: looking for packetizer module
[00000412] main packetizer debug: probing 14 candidates
[00000393] main module debug: using packetizer module "packetizer_mpegvideo"
[00000399] main input debug: stream out mode -> no decoder thread
[00000412] packetizer_mpegvideo packetizer debug: Size 720x576 fps=25.000
[00000399] main input debug: control type=1
[00000413] main packetizer debug: looking for packetizer module
[00000413] main packetizer debug: probing 14 candidates
[00000258] main module debug: using packetizer module "mpeg_audio"
[00000399] main input debug: stream out mode -> no decoder thread
[00000413] mpeg_audio packetizer: MPGA channels:2 samplerate:48000 bitrate:192
[00000400] main stream output debug: adding a new input
[00000401] stream_out_transcode private debug: creating audio transcoding from fcc=`mpga' to fcc=`mpga'
[00000414] main decoder debug: looking for decoder module
[00000414] main decoder debug: probing 17 candidates
[00000257] main module debug: using decoder module "mpeg_audio"
[00000415] main encoder debug: looking for encoder module
[00000415] main encoder debug: probing 4 candidates
[00000415] ffmpeg encoder debug: libavcodec initialized (interface 4731 )
[00000415] ffmpeg encoder debug: found encoder MPEG Audio layer 1/2
[00000015] main module debug: using encoder module "ffmpeg"
[00000416] main private debug: looking for audio filter2 module
[00000416] main private debug: probing 3 candidates
[00000416] mpgatofixed32 private debug: mpga->s16l, bits per sample: 16
[00000372] main module debug: using audio filter2 module "mpgatofixed32"
[00000417] main private debug: looking for audio filter2 module
[00000417] main private debug: probing 3 candidates
[00000417] audio_format private debug: fl32->s16l, bits per sample: 32
[00000377] main module debug: using audio filter2 module "audio_format"
[00000407] main private debug: adding a new input
[00000407] mux_asf private debug: adding input
[00000407] mux_asf private debug: adding mp3 header
[00000414] mpeg_audio decoder: MPGA channels:2 samplerate:48000 bitrate:192
[00000400] main stream output debug: adding a new input
[00000401] stream_out_transcode private debug: creating video transcoding from fcc=`mpgv' to fcc=`mp4v'
[00000418] main decoder debug: looking for decoder module
[00000418] main decoder debug: probing 17 candidates
[00000274] main module debug: using decoder module "libmpeg2"
[00000419] main encoder debug: looking for encoder module
[00000419] main encoder debug: probing 4 candidates
[00000419] ffmpeg encoder debug: libavcodec already initialized
[00000419] ffmpeg encoder debug: found encoder MPEG-4 Video
[00000015] main module debug: using encoder module "ffmpeg"
[00000015] main module debug: unlocking module "ffmpeg"
[00000400] main stream output warning: trying to send non-dated packet to stream output!
[00000418] libmpeg2 decoder debug: 720x576, aspect 576000, 25.000 fps
./teststream.sh: line 3: 13132 Killed vlc -vvv http://192.168.3.199:3000/PS/3 --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=512,ab=64,scale=0.25,deinterlace}:standard{access=http,mux=asf,url=192.168.3.199:4711}' --ttl 2
---
Nachdem es (wahrscheinlich) am ffmpeg liegt, könntest Du mir Deine Version und ggfs. die ./configure Zeile Deiner Installation verraten?
Kann man mit dieser Lösung eigentlich auch die maximale Bandbreite eines Streams fix festlegen (Video: x kbit/s; Audio: y kbit/s)?
Beste Grüße
Peter