Hallo,
QuoteOriginal von jha
Wenn ihr euren Stream mit vlc oder mplayer ansehen könnt, dann postet doch mal die Kommandozeile, mit der das geht.
unter Windows kann ich mplayer wie folgt aufrufen und bekomme den Stream von ZM:
mplayer "http://server01.thole.home/cgi-bin/nph-zms?mode=mpeg&monitor=1&scale=100&bitrate=150000&maxfps=10&format=asf&user=vdr"
Wenn ich versuche auf dem VDR den mplayer zu starten kommt folgende Ausgabe:
heiko@vdr$ sudo mplayer -vo mpegpes:card=1 "http://server01.thole.home/cgi-bin/nph-zms?mode=mpeg&monitor=1&scale=100&bitrate=150000&maxfps=10&format=asf&user=vdr"
MPlayer dev-CVS--3.3.5 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner (Family: 6, Stepping: 3)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
This codecs.conf is too old and incompatible with this MPlayer release! at line 6
Linux RTC init error in ioctl (rtc_irqp_set 1024): Invalid argument
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such device
Can't init input joystick
Setting up LIRC support...
mplayer: could not open config files /home/heiko/.lircrc and /etc/lirc//lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.
You will not be able to use your remote control.
Playing http://server01.thole.home/cgi-bin/nph-zms?mode=mpeg&monitor=1&scale=100&bitrate=150000&maxfps=10&format=asf&user=vdr.
STREAM_HTTP(1), URL: http://server01.thole.home/cgi-bin/nph-zms?mode=mpeg&monitor=1&scale=100&bitrate=150000&maxfps=10&format=asf&user=vdr
Resolving server01.thole.home for AF_INET6...
Couldn't resolve name for AF_INET6: server01.thole.home
Resolving server01.thole.home for AF_INET...
Connecting to server server01.thole.home[192.168.0.50]: 80...
STREAM_ASF, URL: http://server01.thole.home/cgi-bin/nph-zms?mode=mpeg&monitor=1&scale=100&bitrate=150000&maxfps=10&format=asf&user=vdr
Resolving server01.thole.home for AF_INET6...
Couldn't resolve name for AF_INET6: server01.thole.home
Resolving server01.thole.home for AF_INET...
Connecting to server server01.thole.home[192.168.0.50]: 80...
size_confirm mismatch!: 30130 43520
Error while parsing chunk header
Failed, exiting
STREAM_HTTP(2), URL: http://server01.thole.home/cgi-bin/nph-zms?mode=mpeg&monitor=1&scale=100&bitrate=150000&maxfps=10&format=asf&user=vdr
Resolving server01.thole.home for AF_INET6...
Couldn't resolve name for AF_INET6: server01.thole.home
Resolving server01.thole.home for AF_INET...
Connecting to server server01.thole.home[192.168.0.50]: 80...
Cache size set to 320 KBytes
Cache fill: 17.50% (57344 bytes)
ASF file format detected.
VIDEO: [MP43] 580x500 24bpp 1000.000 fps 0.0 kbps ( 0.0 kbyte/s)
Opening /dev/dvb/adapter0/video0+audio0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm: ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 580 x 500 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Opening video filter: [lavc]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [mpegpes] 580x500 => 580x500 Mpeg PES
DVB: height=500 not supported (try 240/480 (ntsc) or 288/576 (pal)
FATAL: Cannot initialize video driver.
VDec: vo config request - 580 x 500 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
Could not open codec.
FATAL: Cannot initialize video driver.
FATAL: Could not initialize video filters (-vf) or video output (-vo).
Exiting... (End of file)
Display More
(ich habe VDR zuvor beendete)
Bei mir ist der MPEG-Stream allerdings um ein paar Sekunden verzögert (liegt evtl. an meinem kleinen Server). Wenn ich allerdings nicht den MPEG-Stream, sondern die Einzelbilder abrufe ist alles ganz i.O. Die URL ändert sich dann:
http://server01.thole.home/cgi-bin/nph-zms?mode=jpeg&monitor=1&scale=100&maxfps=15&user=vdr&rand=1206102896
Das "mode=jpeg" macht den Unterschied. Wenn ich dafür dann noch "mode=single" einsetzte, bekomme ich auch nur ein Bild.
Kann man das nicht irgendwie nutzen? Ich denke da an eine OSD-Anzeige:
- Bild vom ZM-Server holen (z.B. per wget)
- Bild im OSD anzeigen
Hat jemand eine Idee?
Danke
Heiko