[ANNOUNCE] iStreamdev-1.0.1 - stream vdr & media files to your Iphone

  • i have had a brutal time of getting this to compile.


    but i finally managed to get it to work.


    here is what worked for me :


    compile a fresh svn of ffmpeg
    the compile options i used were :


    ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libxvid --enable-x11grab


    the segmenter Makefile i compile line :


    gcc -Wall -g segmenter.c -o segmenter -lavformat -lavcodec -lavutil -lbz2 -lm -lz -lfaac -lmp3lame -lx264 -lfaad -lfaad -lpthread

  • Hi there,


    since "Apple TV" is also based on iOS, I wonder if it might be possible to run iStreamdev even with this tiny black device?


    Cheers
    fnu

    HowTo: APT pinning

    Einmal editiert, zuletzt von fnu ()

  • First: Thanks so much!!! It's working Perfect on my Debian Squeeze + VDR 1.7.14



    Here is an HowTo für Debian Sqeeze (In German)


    Vorrausetzung: Debian squeeze mit VDR+streamdev-plugin + build umgebung


    Multimedia Repository in /etc/apt/sources.list:


    # Debian Multimedia Repository
    deb http://www.debian-multimedia.org squeeze main
    deb-src http://www.debian-multimedia.org squeeze main


    Step 1: HTTP Server mit php5 installieren:


    apt-get install php5-cgi lightttpd
    nano /etc/lighttpd/lighttpd.conf


    (Die Portnummer kann ohne Probleme angepasst werden bei Bedarf)


    "mod_fastcgi",
    "mod_rewrite",
    "mod_auth"


    fastcgi.server = ( ".php" => ((
    "bin-path" => "/usr/bin/php-cgi",
    "socket" => "/tmp/php.socket"
    )))


    /etc/init.d/lighttpd restart


    Step 2: x264 bauen


    apt-get install yasm
    cd /usr/src
    git clone git://git.videolan.org/x264.git
    cd x264/
    ./configure
    make
    make install
    cd ..


    Step 3: lame bauen


    wget http://downloads.sourceforge.n…3.98.4/lame-3.98.4.tar.gz
    tar xzvf lame-3.98.4.tar.gz
    cd lame-3.98.4
    ./configure --disable-shared
    make
    make install
    cd ..


    Step 4: ffmpeg bauen


    apt-get install libfaac-dev libfaad-dev
    git clone git://git.ffmpeg.org/ffmpeg.git
    cd ffmpeg
    ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libx264 --enable-libmp3lame --enable-libfaac
    make
    make install
    cp ffmpeg /usr/bin/


    Step 5: iStreamdev ins HTTP-Root installieren und bei Bedarf über die config.php konfigurieren (Sollte aus der Tüte laufen, es sei denn vdr-plugin-streamdev läuft auf anderen Ports)


    cd /var/www
    git clone git://projects.vdr-developer.org/istreamdev.git
    ln -s /var/ramdisk/ ram (Oder wo auch immer man eine Ramdisk hat - 30MB sollten reichen)
    cp config_default.php config.php (Passwort/username dort drin merken oder ändern)
    chown www:data:www-data *-R
    chmod +x *.php bin/*


    cd /var/www/istreamdev/segmenter/
    make
    cp segmenter /usr/bin/



    Fertig! Über http://<vdr ip>/istreamdev sollte es im Safari laufen. Ich habe lighttpd auf Port 12345 gestartet, nur diesen Port in der Fritz! Box weiter geleitet und mir die URL http://user:passwort@beimirzuh…ndns.org:12345/istreamdev auf dem iPhone Homescreen abgelegt. Nun hab ich Sky Überall dabei :)

    VDR im Keller:
    AMD Athlon II X2 220 2,8 GHz / 2GB RAM / 2x TechnoTrend 1600 DVB-S2 / Debian 6.0 / VDR 1.7.14 (+vdr-streamdev +iStreamdev + VDR-Admin-AM + Sky Komplett und HD+ Abo an /dev/ttySx )
    4x 2 TB als Raid 5 + 2x 8 GB SLC IDE SSD als Raid 1


    VDR Clienten 2x XBMC:
    Schlafzimmer: Revo an 23" LCD, Karmic + XBMC 10.0+pvr
    Wohnzimmer: HTPC an 40" LCD, Karmic + XBMC 10.0+pvr, Athlon X2 64 5400, BlueRay, nVidia 9400 GT, BlueRay unter Win7)
    2x iPhone 4 (iStreamdev)

  • Kann ich nicht vergleichen, ich habe gleich auf lighttpd gesetzt da der simpler zu konfigurieren ist :)


    Ich denke aber der größte Performanceunterschied wird durch 2 Sachen geprägt:


    - Wurde ffmpeg mit allen CPU-Optimierungen compiliert
    - Liegt der ram Ordner in einer Ramdisk.

    VDR im Keller:
    AMD Athlon II X2 220 2,8 GHz / 2GB RAM / 2x TechnoTrend 1600 DVB-S2 / Debian 6.0 / VDR 1.7.14 (+vdr-streamdev +iStreamdev + VDR-Admin-AM + Sky Komplett und HD+ Abo an /dev/ttySx )
    4x 2 TB als Raid 5 + 2x 8 GB SLC IDE SSD als Raid 1


    VDR Clienten 2x XBMC:
    Schlafzimmer: Revo an 23" LCD, Karmic + XBMC 10.0+pvr
    Wohnzimmer: HTPC an 40" LCD, Karmic + XBMC 10.0+pvr, Athlon X2 64 5400, BlueRay, nVidia 9400 GT, BlueRay unter Win7)
    2x iPhone 4 (iStreamdev)

    Einmal editiert, zuletzt von Phr0zenPhara0 ()

  • Ok, da geb ich Dir recht.


    - Das mit dem RAM Ordner finde ich nicht so tragisch. Wenn's einmal läuft, läuft's gut!


    - Das mit den Optimierungen kann ich nicht sagen. Ich habe mich an die diversen Beschreibungen gehalten und es, so wie es jondalar in dem Thread im yaVDR Unterforum beschrieben hat, separat kompiliert. Allerdings in einer VM, da ich auf meinem produktiven keinen unnötigen Paket-Balast haben wollte, den ich nicht brauche. Evtl. sollte ich da nochmal drüber nachdenken...


    Danke für die Hinweise!

    Gruß
    Holger


    HTPC: yaVDR 0.5, M3N78-VM, Athlon II X2 240, 2GB, 2x TT S2-1600, Antec Fusion Remote, Harmony 650, LG 50PK550

  • alib and TheTroll


    I have a change request for svdrp.php. In some conditions, the Command function seems to fail. In my case the fgets function did not notice eol and eof and so the whole SVDRP message was read over and over again.


    Here's my modification, according to the fact that the length parameter in the fgets function is optional and if you omit it, fgets will automatically determine the line size and read until eol.


    Old:


    New:


    Would be nice, if you would check it into the git repo. Thanks! ;)


    Greetz,
    Holger


    EDIT: Also filed an official bug request.

    Gruß
    Holger


    HTPC: yaVDR 0.5, M3N78-VM, Athlon II X2 240, 2GB, 2x TT S2-1600, Antec Fusion Remote, Harmony 650, LG 50PK550

    2 Mal editiert, zuletzt von pandel ()

  • Hi there,


    sorry for my silly question, if already answered :)


    After my CPU performance is limited, I wonder if there is any possibility to terminate previous streaming sessions, when the $maxencodingprocesses are reached?


    rgds
    WoZ

    Clients
    VDR1: yaVDR 0.5 stable auf ZOTAC ION A 4Gbyte RAM / mit ATRIC - IR - Einschalter softhddevice per streamdev am Server
    VDR2 / VDR3: MLD 5.1 auf Raspberry pi3
    2 x VOMP 0.4 auf mediamvp
    Server
    Cubietruck, Lubuntu Trusty, vdr aus yaVDR - sourcen, 1 x TT S2-3600, 1 x TT S2-3650 CI, 1 x sundtek SkyTV III, 1 x sundtek SkyTV IV

  • Hi WoZ,


    you have two possibilities:


    1.) on the same page from where you started the stream (edge/3g/wifi buttons) you can stop it; the buttons change on that page while a stream is running


    2.) go to the <Home> page; on top of the page there should be a list of running sessions -> select one and stop it


    Hope that helps... :)

    Gruß
    Holger


    HTPC: yaVDR 0.5, M3N78-VM, Athlon II X2 240, 2GB, 2x TT S2-1600, Antec Fusion Remote, Harmony 650, LG 50PK550

  • Hi Holger,


    thank you for your reply.


    Yes it is quite clear, that it is possible to terminate one or all sessions with the GUI itself. My question, however, is if there is a possibility to terminate the oldest session automatically.


    Cheers
    Wolfgang

    Clients
    VDR1: yaVDR 0.5 stable auf ZOTAC ION A 4Gbyte RAM / mit ATRIC - IR - Einschalter softhddevice per streamdev am Server
    VDR2 / VDR3: MLD 5.1 auf Raspberry pi3
    2 x VOMP 0.4 auf mediamvp
    Server
    Cubietruck, Lubuntu Trusty, vdr aus yaVDR - sourcen, 1 x TT S2-3600, 1 x TT S2-3650 CI, 1 x sundtek SkyTV III, 1 x sundtek SkyTV IV

  • Hi Wolfgang!


    Ah, I understand. No, there's no automatic way of terminating the oldest session. But I think, it shouldn't be too problematic to implement such a function. Have a look at session.php, function sessioncreate. Should be the right place to start :)

    Gruß
    Holger


    HTPC: yaVDR 0.5, M3N78-VM, Athlon II X2 240, 2GB, 2x TT S2-1600, Antec Fusion Remote, Harmony 650, LG 50PK550

  • HEY!


    I just noticed that there's some work going on in the git repo. alib's back, juhuu :)!! My change request was checked in days ago and he made some modifications regarding ipad support. Perhaps development is starting again :)

    Gruß
    Holger


    HTPC: yaVDR 0.5, M3N78-VM, Athlon II X2 240, 2GB, 2x TT S2-1600, Antec Fusion Remote, Harmony 650, LG 50PK550

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!