Hi all,
ich schicke mal gleich vorraus, dass ich mich mit Linux nicht wirklich, eigentlich nicht die Bohne, auskenne, ich aber mit Eurer Unterstützung gerne folgende Aufgabe lösen möchte.
ZIEL
Ich nutze IP-TV (http://www.aon.tv) und möchte mein TS-239Pro gerne als PVR/DVR (http://en.wikipedia.org/wiki/Digital_video_recorder) nutzen.
ANSATZ
- Installation IPKG VLC, IPKG H264
- Startscript für VLC (Param: Tag, Monat, Std, Min, Dauer, URL), Speicherung auf Qrecordings
- Aufruf Startscript über Cronjob
- PHP WebInterface um Aufnahmen zu verwalten (Crontab)
- Wiedergabe über Twonky
UMSETZUNG
Leider komme ich schon über Punkt 1, der Installation von VLC nicht wirklich weiter.
Ich habe das IPKG heruntergeladen, einen eigenen User "VLC" über das WebAdminInterface angelegt und auch die hier (http://forum.qnapclub.de/viewt…&p=26228&hilit=vlc#p26228) beschriebenen Verlinkungen vorgenommen, bekomme aber beim Start immer folgende Fehlermeldung:
VLC media player 0.9.9a Grishenko[00000001] main libvlc debug: VLC media player - version 0.9.9a Grishenko - (c) 1996-2009 the VideoLAN team[00000001] main libvlc debug: libvlc was configured with ./configure '--build=i386-pc-linux-gnu' '--host=i686-unknown-linux-gnu' '--target=i686-unknown-linux-gnu' '--prefix=/opt' '--enable-v4l' '--disable-v4l2' '--enable-bonjour' '--enable-x264' '--enable-dvbpsi' '--enable-a52' '--enable-dvdnav' '--with-dvdnav-config-path=/home/slug/optware/ts509/staging/opt/bin' '--enable-faad' '--enable-flac' '--disable-gnutls' '--enable-mpc' '--enable-ncurses' '--enable-ogg' '--enable-png' '--disable-remoteosd' '--enable-shout' '--enable-speex' '--enable-vorbis' '--disable-alsa' '--disable-dca' '--disable-glx' '--disable-gnomevfs' '--disable-libcdio' '--disable-libcddb' '--disable-screen' '--disable-sdl' '--disable-wxwidgets' '--disable-skins2' '--disable-x11' '--disable-nls' '--disable-static' 'build_alias=i386-pc-linux-gnu' 'host_alias=i686-unknown-linux-gnu' 'target_alias=i686-unknown-linux-gnu' 'CC=/home/slug/optware/ts509/toolchain/i686-unknown-linux-gnu/bin/i686-unknown-linux-gnu-gcc' 'LDFLAGS= -L/home/slug/optware/ts509/staging/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link,/home/slug/optware/ts509/staging/opt/lib ' 'CPPFLAGS=-O2 -O2 -I/home/slug/optware/ts509/staging/opt/include -I/home/slug/optware/ts509/staging/opt/include/ncurses' 'CPP=/home/slug/optware/ts509/toolchain/i686-unknown-linux-gnu/bin/i686-unknown-linux-gnu-gcc -E' 'CXX=/home/slug/optware/ts509/toolchain/i686-unknown-linux-gnu/bin/i686-unknown-linux-gnu-g++' 'PKG_CONFIG_PATH=/home/slug/optware/ts509/staging/opt/lib/pkgconfig'[00000001] main libvlc debug: translation test: code is "C"process 4787: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/opt/var/lib/dbus/machine-id": No such file or directorySee the manual page for dbus-uuidgen to correct this issue. D-Bus not built with -rdynamic so unable to print a backtraceAborted
Bzgl. Startscript habe ich schon mal folgende "Inspiration" gefunden:
#!/bin/shset -eURL="$1"SAVEFILE="$2"DURATION="$3"DISPLAY= vlc -q "$URL" \ --sout="#duplicate{dst=std{access=file,url='$SAVEFILE'},dst=nodisplay}" \ --intf=dummy < /dev/null > /dev/null 2>&1 &pid=$!sleep $DURATIONkill $pidwait $pid
Beispiel URL für Aufnahme (ORF1, H264, MPEG4)
UPDATE
Das Problem mit der machine id konnte ich lösen, vlc kann ich über die Konsole als User VLC starten, es wird auch eine Datei mit 1Kb angelegt, dann bricht die ganze sache leider ab.
Aufruf
vlc -q -vvv -I rc -V dummy --rc-fake-tty 'udp://@239.0.2.60:8208' --sout="#duplicate{dst=std{access=file,dst=/share/Qrecordings/t6.mp4},dst=nodisplay}" --intf=dummy
Output
VLC media player 0.9.9a Grishenko
[00000001] main libvlc debug: VLC media player - version 0.9.9a Grishenko - (c) 1996-2009 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--build=i386-pc-linux-gnu' '--host=i686-unknown-linux-gnu' '--target=i686-unknown-linux-gnu' '--prefix=/opt' '--enable-v4l' '--disable-v4l2' '--enable-bonjour' '--enable-x264' '--enable-dvbpsi' '--enable-a52' '--enable-dvdnav' '--with-dvdnav-config-path=/home/slug/optware/ts509/staging/opt/bin' '--enable-faad' '--enable-flac' '--disable-gnutls' '--enable-mpc' '--enable-ncurses' '--enable-ogg' '--enable-png' '--disable-remoteosd' '--enable-shout' '--enable-speex' '--enable-vorbis' '--disable-alsa' '--disable-dca' '--disable-glx' '--disable-gnomevfs' '--disable-libcdio' '--disable-libcddb' '--disable-screen' '--disable-sdl' '--disable-wxwidgets' '--disable-skins2' '--disable-x11' '--disable-nls' '--disable-static' 'build_alias=i386-pc-linux-gnu' 'host_alias=i686-unknown-linux-gnu' 'target_alias=i686-unknown-linux-gnu' 'CC=/home/slug/optware/ts509/toolchain/i686-unknown-linux-gnu/bin/i686-unknown-linux-gnu-gcc' 'LDFLAGS= -L/home/slug/optware/ts509/staging/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link,/home/slug/optware/ts509/staging/opt/lib ' 'CPPFLAGS=-O2 -O2 -I/home/slug/optware/ts509/staging/opt/include -I/home/slug/optware/ts509/staging/opt/include/ncurses' 'CPP=/home/slug/optware/ts509/toolchain/i686-unknown-linux-gnu/bin/i686-unknown-linux-gnu-gcc -E' 'CXX=/home/slug/optware/ts509/toolchain/i686-unknown-linux-gnu/bin/i686-unknown-linux-gnu-g++' 'PKG_CONFIG_PATH=/home/slug/optware/ts509/staging/opt/lib/pkgconfig'
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc debug: checking builtin modules
[00000001] main libvlc debug: checking plugin modules
[00000001] main libvlc debug: loading plugins cache file //.cache/vlc/plugins-04041e.dat
[00000001] main libvlc warning: could not open plugins cache file //.cache/vlc/plugins-04041e.dat for reading
[00000001] main libvlc debug: recursively browsing `/opt/lib/vlc'
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/mux/libmux_ogg_plugin.so' (libogg.so.0: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/mux/libmux_ts_plugin.so' (libdvbpsi.so.4: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/audio_filter/liba52tofloat32_plugin.so' (liba52.so.0: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/audio_filter/libmpgatofixed32_plugin.so' (libmad.so.0: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/codec/libvorbis_plugin.so' (libvorbisenc.so.2: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/codec/libspeex_plugin.so' (libspeex.so.1: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/codec/liblibmpeg2_plugin.so' (libmpeg2.so.0: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/codec/libfaad_plugin.so' (libfaad.so.0: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/codec/libavcodec_plugin.so' (libavcodec.so.51: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/codec/libflac_plugin.so' (libFLAC.so.8: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/meta_engine/libtaglib_plugin.so' (libtag.so.1: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/access/libdvdread_plugin.so' (libdvdread.so.3: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/access/libdvb_plugin.so' (libdvbpsi.so.4: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/access/libdvdnav_plugin.so' (libdvdnav.so.4: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/video_filter/libimgresample_plugin.so' (libavcodec.so.51: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/video_filter/libpostproc_plugin.so' (libpostproc.so.51: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/misc/libfreetype_plugin.so' (libfribidi.so.0: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/gui/libncurses_plugin.so' (libncursesw.so.5: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/demux/libmpc_plugin.so' (libmpcdec.so.5: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/demux/libts_plugin.so' (libdvbpsi.so.4: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/demux/libavformat_plugin.so' (libavformat.so.52: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/demux/libogg_plugin.so' (libogg.so.0: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/access_output/libaccess_output_shout_plugin.so' (libshout.so.3: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/access_output/libaccess_output_http_plugin.so' (libavahi-common.so.3: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/services_discovery/libupnp_intel_plugin.so' (libupnp.so.3: cannot open shared object file: No such file or directory)
[00000001] main libvlc warning: cannot load module `/opt/lib/vlc/services_discovery/libbonjour_plugin.so' (libavahi-common.so.3: cannot open shared object file: No such file or directory)
[00000001] main libvlc debug: module bank initialized, found 214 modules
[00000001] main libvlc debug: opening config file (//.config/vlc/vlcrc)
Alles anzeigen
HILFE!
Könnt Ihr mir bitte helfen? Mir wäre schon sehr geholfen, wenn ich via Cronjob eine Aufnahme schedulen könnte. :thumb:
Many thx,
LG
gfcom