MLD-5.x > General
IPTV für IPCAM-Stream
hampit:
Hi,
meine Kamera stellt unter rsdp:IP ein Livebild zur Verfügung.
Habe eine webcam.conf in /etc/vdr/plugins/iptv/channels/webcam.conf
mit dem Inhalt
URL="rsdp://user:pass@IP"
Im Log erscheint:
--- Code: ---su: unknown user vlcuser
--- End code ---
Über VLC am PC bekomme ich mit der URL ein Bild.
Wie binde ich die Kamera am besten in den VDR ein?
Danke
P3f:
Servus Hampit,
der Aufruf mit dem User kommt aus dem Script /etc/vdr/plugins/iptv/vlc2iptv (Zeile 99)
--- Code: ---su vlcuser -c "vlc \"${URL}\" \
--sout \"#transcode{vcodec=mp2v$RESIZE_OPTIONS,acodec=mpga,vb=${VIDEO_BITRATE},ab=${AUDIO_BITRATE}}:standard{access=udp,mux=ts{pid-video=${VPID},pid-audio=${APID},pid-spu=${SPID}},dst=127.0.0.1:${PORT}}\" \
--intf dummy & "
--- End code ---
meiner Meinung nach sollte der Aufruf dann wie folgt geändert werden (Achtung das letzte " ist ebenfalls entfernt):
--- Code: ---vlc \"${URL}\" \
--sout \"#transcode{vcodec=mp2v$RESIZE_OPTIONS,acodec=mpga,vb=${VIDEO_BITRATE},ab=${AUDIO_BITRATE}}:standard{access=udp,mux=ts{pid-video=${VPID},pid-audio=${APID},pid-spu=${SPID}},dst=127.0.0.1:${PORT}}\" \
--intf dummy &
--- End code ---
Kannst Du bitte das mal probieren!
Danke,
Pit
hampit:
Danke für die Antwort.
Im log erscheint dann.
--- Code: ---VLC is not supposed to be run as root. Sorry.If you need to use real-time priorities and/or privileged TCP ports
you can use vlc-wrapper (make sure it is Set-UID root and
cannot be run by non-trusted users first).
VLC is not supposed to be run as root. Sorry.
If you need to use real-time priorities and/or privileged TCP ports
you can use vlc-wrapper (make sure it is Set-UID root and
cannot be run by non-trusted users first).
--- End code ---
hampit:
das konnte man lösen mit
--- Code: --- sed -i 's/geteuid/getppid/' /usr/bin/vlc
--- End code ---
Dann kommt aber
--- Code: ---[0000000000859818] pulse audio output error: PulseAudio server connection failure: Connection refused
[000000000083b2a8] dummy interface: using the dummy interface module...
[00007fc43c001278] stream_out_standard stream out error: no mux specified or found by extension
[00007fc43c000e58] core stream output error: stream chain failed for `standard{mux="",access=""#transcode{vcodec=mp2v,acodec=mpga,vb=2400,ab=320}",dst="standard{access=udp,mux=ts{pid-video=2=2,pid-audio=3=@4,pid-spu=0},dst=127.0.0.1:4321}""}'
[00007fc4400009b8] core input error: cannot start stream output instance, aborting
--- End code ---
clausmuus:
Hi,
in der original Zeile muss das vlcuser durch ein user ersätzt werden.
Claus
Navigation
[0] Message Index
[#] Next page
Go to full version